/* ============================================================
   Joanie's Art styles
   Palette: watercolour paper, ink charcoal, sage + warm ochre
   ============================================================ */
:root {
  --paper:      #f7f2e9;
  --paper-deep: #efe7d8;
  --ink:        #2c2823;
  --ink-soft:   #5b5349;
  --sage:       #6f7d5e;
  --sage-deep:  #56624a;
  --ochre:      #b27542;
  --blue:       #7d99a8;
  --line:       #e2d8c6;
  --card:       #fffdf8;
  --shadow:     28px 28px 60px rgba(64, 54, 38, .10);
  --r:          14px;
  --maxw:       1320px;
  --serif:      "Fraunces", Georgia, "Times New Roman", serif;
  --sans:       "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

img { max-width: 100%; display: block; }

a { color: var(--sage-deep); text-decoration: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- watercolour washes (fixed, behind everything) ---------- */
.washes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.wash {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .42;
}
.wash--sage  { width: 46vw; height: 46vw; top: -12vw; left: -10vw;  background: radial-gradient(circle at 40% 40%, #9aa784, transparent 68%); }
.wash--ochre { width: 40vw; height: 40vw; top: 36vw;  right: -14vw; background: radial-gradient(circle at 50% 50%, #d9a777, transparent 66%); opacity: .34; }
.wash--blue  { width: 38vw; height: 38vw; bottom: -10vw; left: 18vw; background: radial-gradient(circle at 50% 50%, #a8c0cc, transparent 67%); opacity: .30; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(247, 242, 233, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247, 242, 233, .9); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: .2px; color: var(--ink); }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.nav a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: .2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--ochre); transition: width .28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 13vh, 9rem) clamp(1.2rem, 5vw, 3rem) clamp(3rem, 8vh, 6rem);
  text-align: center;
}
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ochre); margin: 0 0 1.1rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: .98; margin: 0;
  letter-spacing: -.5px; color: var(--ink);
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--sage-deep); }
.hero__tagline {
  max-width: 33ch; margin: 1.6rem auto 0; font-size: clamp(1.02rem, 2.3vw, 1.22rem);
  color: var(--ink-soft);
}
.hero__cue {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.6rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__cue svg { animation: bob 2.4s ease-in-out infinite; }
.hero__cue:hover { color: var(--ink); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- section heads ---------- */
.section-head { text-align: center; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); max-width: 40ch; }
.section-head h2, .about h2, .contact h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 2.9rem);
  margin: 0 0 .5rem; color: var(--ink); letter-spacing: -.3px;
}
.section-head p { margin: 0; color: var(--ink-soft); }

/* ---------- gallery (masonry via columns) ---------- */
.gallery-section { max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem, 4vh, 2rem) clamp(1.1rem, 5vw, 3rem) clamp(3rem, 9vh, 6rem); }
.gallery { column-count: 3; column-gap: 1.4rem; }
@media (max-width: 900px) { .gallery { column-count: 2; column-gap: 1.1rem; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }
@media (min-width: 1600px) { :root { --maxw: 1480px; } .gallery { column-count: 4; } }

.art {
  break-inside: avoid; margin: 0 0 1.4rem; position: relative;
  background: var(--card); border-radius: var(--r); padding: .7rem .7rem 0;
  box-shadow: 0 1px 2px rgba(64,54,38,.06), 0 10px 26px rgba(64,54,38,.07);
  cursor: zoom-in; overflow: hidden;
  transform: translateY(14px); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease, box-shadow .35s ease;
}
.art.in { transform: translateY(0); opacity: 1; }
.art:hover { box-shadow: 0 6px 14px rgba(64,54,38,.10), 0 22px 48px rgba(64,54,38,.14); }
.art img { width: 100%; height: auto; border-radius: 8px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.art:hover img { transform: scale(1.025); }
.art figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  padding: .72rem .35rem .85rem;
}
.art figcaption .t { font-family: var(--serif); font-size: 1.04rem; font-weight: 500; color: var(--ink); }
.art figcaption .m { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); white-space: nowrap; }

/* ---------- about ---------- */
.about { position: relative; padding: clamp(3rem, 9vh, 6rem) clamp(1.2rem, 5vw, 3rem); }
.about__inner {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: rgba(255,253,248,.6); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(2rem, 6vw, 3.4rem);
}
.about__lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sage-deep); margin: .2rem 0 1.1rem; }
.about p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 1.05rem; }
.about__sign { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-top: .4rem !important; }

/* ---------- contact ---------- */
.contact { text-align: center; padding: clamp(2rem, 7vh, 4.5rem) clamp(1.2rem, 5vw, 3rem) clamp(3.5rem, 9vh, 6rem); }
.contact p { color: var(--ink-soft); margin: 0 0 1.7rem; }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 500;
  color: var(--paper); background: var(--sage-deep);
  padding: .9rem 1.8rem; border-radius: 999px; letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(86,98,74,.28); transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(44,40,35,.28); }
.contact__where { margin: 1.5rem 0 0; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 2.4rem 1.2rem 3rem; }
.footer__brand { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .35rem; color: var(--ink); }
.footer__meta { font-size: .82rem; letter-spacing: .08em; color: var(--ink-soft); margin: 0; }

/* ---------- small screens: keep header on one line ---------- */
@media (max-width: 430px) {
  .site-header { padding: .85rem 1rem; gap: .6rem; }
  .brand__name { font-size: 1.15rem; }
  .nav { gap: .85rem; }
  .nav a { font-size: .72rem; letter-spacing: .1em; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(34, 30, 24, .9); backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem); opacity: 0; animation: fade .25s ease forwards;
}
.lightbox[hidden] { display: none; }
@keyframes fade { to { opacity: 1; } }
.lb__figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb__figure img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: var(--card);
}
.lb__figure figcaption { color: var(--paper); margin-top: 1rem; text-align: center; font-family: var(--serif); font-size: 1.1rem; }
.lb__figure figcaption .m { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #d8b98f; margin-top: .25rem; }
.lb__btn {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: var(--paper); cursor: pointer; border-radius: 999px;
  width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lb__btn:hover { background: rgba(255,255,255,.22); }
.lb__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); font-size: 2rem; }
.lb__prev { left: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) scale(1.06); }
.lb__next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 560px) {
  .lb__prev { left: .4rem; } .lb__next { right: .4rem; }
  .lb__btn { width: 44px; height: 44px; }
}
