/* =========================================================================
   Artist portfolio — minimalist black & white
   One accent-free palette: pure monochrome, generous whitespace.
   To restyle globally, edit the variables in :root below.
   ========================================================================= */

:root {
  --ink: #0a0a0a;          /* near-black text            */
  --ink-soft: #4a4a4a;     /* secondary text             */
  --ink-faint: #8a8a8a;    /* captions / meta            */
  --line: #e6e6e6;         /* hairline borders           */
  --paper: #ffffff;        /* background                 */
  --paper-alt: #f6f6f4;    /* alternate section band     */

  /* Sage accent (brand stripe) — used sparingly so artwork stays the star.
     Interpolated between the deeper first print and the lighter, finer second. */
  --sage: #a8bd96;         /* stripe fill / bands / hovers (blended, fresher) */
  --sage-deep: #5f7551;    /* sage text: labels, links (AA on white) */
  --sage-tint: rgba(168, 189, 150, 0.18); /* faint wash behind About */
  --stripe-pitch: 8px;     /* stripe width; finer than the first pass */

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --track-wide: 0.22em;    /* letter-spacing for labels  */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    90deg,
    var(--sage-tint) 0 22px,
    transparent 22px 44px
  );
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Labels / eyebrows — the recurring gallery motif */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 1.05rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  font-weight: 500;
}
.brand-mark { font-weight: 600; }
.nav-list {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-list a { color: var(--ink-soft); transition: color 0.2s ease; }
.nav-list a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.4rem;
  font: inherit; font-size: 0.72rem; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(1.25rem, 3vh, 2.25rem);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 0 0 1.5rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(2rem, 5vh, 3.25rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: clamp(1.4rem, 3.5vh, 2.25rem); }
.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

/* ---------- Gallery (masonry via CSS columns) ---------- */
.gallery {
  column-count: 3;
  column-gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }

.work {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}
.work-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-alt);
  cursor: zoom-in;
}
.work-frame img {
  width: 100%; height: auto;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1), filter 0.4s ease;
}
.work-frame:hover img { transform: scale(1.03); }

/* "Sold" ribbon for one-of-a-kind originals */
.work-status {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 0.35rem 0.7rem;
}
.work.is-sold .work-frame { cursor: default; }
.work.is-sold .work-frame img { filter: grayscale(1) opacity(0.7); }

.work-meta { padding-top: 0.9rem; }
.work-title { font-size: 1.02rem; }
.work-detail { font-size: 0.82rem; color: var(--ink-faint); margin: 0.15rem 0 0; }
.work-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 0.6rem;
  padding-top: 0.6rem; border-top: 1px solid var(--line);
}
.work-price { font-size: 0.95rem; letter-spacing: 0.02em; }
.work-price .sold-text { color: var(--ink-faint); }
/* This is the button that becomes a Stripe "Buy" button later. */
.work-buy {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink); background: none; color: var(--ink);
  padding: 0.5rem 0.9rem; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.work-buy:hover { background: var(--ink); color: var(--paper); }
.work.is-sold .work-buy { display: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  max-width: 64ch;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait { background: var(--paper); border: 1px solid var(--line); }
.about-body p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.about-body p:first-child { color: var(--ink); font-size: 1.12rem; }
.about-body strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 1rem; padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-label {
  flex: 0 0 5.5rem;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 0.15rem;
}
.contact-list a { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.contact-note { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.98);
  padding: clamp(1.5rem, 5vw, 4rem);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 82vh;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}
.lightbox-cap {
  position: absolute; bottom: clamp(1.5rem, 5vw, 3rem); left: 0; right: 0;
  text-align: center; font-size: 0.8rem; color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.lightbox-close {
  position: absolute; top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem);
  background: none; border: 0; cursor: pointer;
  font-size: 0.72rem; letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  font-size: 0.8rem; color: var(--ink-faint);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-inner a { border-bottom: 1px solid var(--line); }

/* ---------- Draft note (remove once content is final) ---------- */
.draft-note {
  background: var(--ink); color: var(--paper);
  font-size: 0.78rem; letter-spacing: 0.04em;
  text-align: center; padding: 0.6rem 1rem;
}
.draft-note strong { font-weight: 600; }

/* ---------- Mobile nav ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
}

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

/* =========================================================================
   Brand identity — "Hannah Elizabeth Art" wordmark + serif headings
   The logo is rendered as live text (crisp at any size) using Cormorant
   Garamond, echoing the supplied logo. Site stays strictly black & white;
   colour comes only from the artwork.
   ========================================================================= */

/* Serif headings run visually small — give them a touch more size/weight. */
h1, h2, h3 { font-weight: 500; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.work-title { font-size: 1.2rem; }

/* --- Wordmark lockup (name over a ruled "ART") ------------------------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--ink);
}
.wordmark .wm-name {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.24em;
  /* trailing letter-spacing pushes the word right; nudge it back to centre */
  text-indent: 0.24em;
}
.wordmark .wm-sub {
  display: flex;
  align-items: center;
  gap: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  text-indent: 0.3em;
}
.wordmark .wm-sub::before,
.wordmark .wm-sub::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* Large — used in the hero */
.wordmark-lg .wm-name { font-size: clamp(2rem, 6.5vw, 3.8rem); }
.wordmark-lg .wm-sub { font-size: clamp(0.72rem, 1.6vw, 0.95rem); margin-top: 0.85em; }
.wordmark-lg .wm-sub::before,
.wordmark-lg .wm-sub::after { width: clamp(2rem, 6vw, 4rem); }

/* Small — used in the sticky header (ART centred under the name) */
.wordmark-sm { align-items: center; }
.wordmark-sm .wm-name { font-size: 0.9rem; letter-spacing: 0.2em; text-indent: 0.2em; }
.wordmark-sm .wm-sub { font-size: 0.56rem; margin-top: 0.4em; letter-spacing: 0.28em; text-indent: 0.28em; }
.wordmark-sm .wm-sub::before,
.wordmark-sm .wm-sub::after { width: 1.4em; }
.site-header .header-inner { height: 78px; }

/* --- Brand-led, centred hero ------------------------------------------ */
.hero-brand { text-align: center; padding-top: clamp(2.25rem, 7vh, 5rem); }
.hero-brand .wordmark { margin-inline: auto; }
.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2rem 0 0;
}
.hero-brand .lede { margin-inline: auto; margin-top: 2rem; max-width: 60ch; text-wrap: balance; }
.hero-brand .hero-actions { justify-content: center; }

/* --- "Register interest" status pill (debut collection in progress) ---- */
.work-status.is-progress { position: static; display: inline-block; background: none; color: var(--ink-faint); border: 1px solid var(--line); padding: 0.3rem 0.7rem; }

/* =========================================================================
   Sage stripe motif — woven through as a brand accent.
   Kept off the gallery tiles so the paintings remain the only strong colour.
   ========================================================================= */

/* Section labels pick up the sage */
.eyebrow { color: var(--sage-deep); }

/* "In progress" pills read sage */
.work-status.is-progress { color: var(--sage-deep); border-color: var(--sage); }

/* About panel now shares the page-wide stripe (no separate treatment) */
.section-alt { background: transparent; }

/* Sage on interactive touches */
.nav-list a:hover { color: var(--sage-deep); }
.contact-list a { border-bottom-color: var(--sage-deep); }
.btn-ghost:hover { background: var(--sage); border-color: var(--sage); color: var(--ink); }

