/* Wild Art — wildartt.com
   Clean rebuild of the 2020 Divi design: Prata display serif + Open Sans,
   white ground, near-black accents, 3-column artwork grids. */

:root {
  --ink: #333;
  --ink-soft: #666;
  --muted: #999;
  --line: #e5e5e5;
  --dark: #111;
  --paper: #fff;
  --wash: #f7f7f7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3.display { font-family: Prata, Georgia, serif; font-weight: 400; }
h1 { font-size: 2.5rem; line-height: 1.2; margin: 0 0 .3em; text-wrap: balance; }
h2 { font-size: 2.1rem; line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar {
  background: var(--dark);
  color: #ddd;
  font-size: 12.5px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px;
}
.topbar a { color: #ddd; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .social { display: flex; gap: 14px; }
.topbar .social svg { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }

/* header / nav */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.logo img { height: 46px; width: auto; display: block; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  text-decoration: none; font-size: 13.5px; color: var(--ink-soft);
  padding: 4px 0;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--dark); }
.navtoggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 880px) {
  .navtoggle { display: block; }
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 9px 0; border-bottom: 1px solid var(--wash); font-size: 15px; }
}

/* hero (home) */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .intro img.script { max-width: 320px; }
.hero .tagline { font-family: Prata, Georgia, serif; font-size: 1.25rem; margin: 18px 0 26px; }
.hero .details { font-size: 14px; margin: 0 0 26px; }
.hero .details b { color: var(--dark); }
.hero .art img { display: block; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } }

.btn {
  display: inline-block; background: var(--dark); color: #fff;
  text-decoration: none; font-size: 13.5px; letter-spacing: .04em;
  padding: 11px 26px; border: 0; cursor: pointer;
}
.btn:hover { background: #000; }

/* generic sections */
section.band { padding: 64px 0; }
section.band.wash { background: var(--wash); }
.center { text-align: center; }
.section-note { color: var(--muted); font-size: 13px; margin-top: -6px; }

/* category cards (home) */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 42px; }
.cats a { text-decoration: none; text-align: center; }
.cats .frame {
  background: #fff; border: 1px solid var(--line); padding: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cats a:hover .frame { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.13); }
.cats img { display: block; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.cats .label { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 12px; }
@media (max-width: 760px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cats { grid-template-columns: 1fr; } }

/* about */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about img { box-shadow: 0 14px 34px rgba(0,0,0,.15); }
@media (max-width: 760px) { .about .wrap { grid-template-columns: 1fr; } }

/* two-column statement text */
.cols2 { columns: 2; column-gap: 48px; text-align: left; margin-top: 8px; }
.cols2 p { break-inside: avoid; margin-top: 0; }
@media (max-width: 700px) { .cols2 { columns: 1; } }

/* artwork grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 48px; }
.grid figure { margin: 0; text-align: center; }
.grid .frame {
  background: #fff; border: 1px solid var(--line); padding: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08); cursor: zoom-in;
  transition: transform .15s ease;
}
.grid .frame:hover { transform: translateY(-3px); }
.grid .frame img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.grid.tall .frame img { aspect-ratio: 3/4; }
.grid figcaption h3 { font-size: 14.5px; margin: 14px 0 6px; font-weight: 700; }
.grid figcaption p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

/* progress strip */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.progress .frame { background:#fff; border:1px solid var(--line); padding:6px; cursor: zoom-in; }
.progress img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.progress .plabel { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
@media (max-width: 760px) { .progress { grid-template-columns: repeat(2, 1fr); } }

/* prints */
.prints .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prints .card { background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.10); padding: 40px 44px; }
.prints .card h2 { font-size: 1.5rem; }
.prints img { box-shadow: 0 14px 34px rgba(0,0,0,.15); }
@media (max-width: 760px) { .prints .wrap { grid-template-columns: 1fr; } }

/* panorama band */
.panorama {
  background-image: url("/art/elephant-zebra-scale3.jpg");
  background-size: cover; background-position: center;
  min-height: 340px;
}

/* contact */
.contact { padding: 72px 0; }
form.enquiry { max-width: 760px; margin: 36px auto 0; display: grid; gap: 16px; }
form.enquiry .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form.enquiry .row2 { grid-template-columns: 1fr; } }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: #eee; border: 1px solid #eee; border-radius: 3px;
  padding: 12px 14px;
}
form.enquiry textarea { min-height: 150px; resize: vertical; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus {
  outline: none; border-color: var(--ink-soft); background: #fff;
}
form.enquiry .verify { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 14px; }
form.enquiry .verify input { width: 72px; text-align: center; }
form.enquiry .hp { position: absolute; left: -9999px; top: -9999px; }
.form-status { font-size: 14px; text-align: center; min-height: 1.5em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #b3261e; }

/* footer */
footer.site {
  background: var(--dark); color: #aaa; font-size: 13px;
  margin-top: 0;
}
footer.site .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 58px; gap: 16px;
}
footer.site a { color: #aaa; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .social { display: flex; gap: 14px; }
footer.site .social svg { width: 15px; height: 15px; fill: currentColor; }

/* lightbox — zooms out of the clicked thumbnail and back into it */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(0,0,0,0);
  transition: background .35s ease;
}
.lb.open { display: block; }
.lb.shown { background: rgba(0,0,0,.92); }
.lb img {
  position: fixed; object-fit: cover;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease;
}
.lb .lb-title {
  position: fixed; left: 0; right: 0; bottom: 26px;
  color: #ddd; font-size: 14px; text-align: center;
  opacity: 0; transition: opacity .25s ease;
}
.lb.shown .lb-title { opacity: 1; }
.lb button { opacity: 0; transition: opacity .25s ease; }
.lb.shown button { opacity: 1; }
.lb button {
  position: absolute; background: none; border: 0; color: #ccc; cursor: pointer;
  font-size: 34px; line-height: 1; padding: 12px;
}
.lb button:hover { color: #fff; }
.lb .lb-close { top: 14px; right: 18px; }
.lb .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
