/* ==========================================================================
   ZEFFIE SCHATZ — SITE STYLES
   Every colour and typeface resolves through a token defined in tokens.css,
   so the whole look changes by swapping that one file. Nothing below hard-
   codes a palette value.

   Vertical rhythm lives on .section alone. Do not add top or bottom margins
   to section-level blocks — they collapse unpredictably against each other.
   ========================================================================== */

/* ---- reset ------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;}
*{margin:0;padding:0;}
html{scroll-behavior:smooth;}
/* height:auto is load-bearing: the width/height attributes on every <img>
   reserve space to stop layout shift, but without this the browser honours
   that literal height while clamping the width, stretching the image. */
img{display:block;max-width:100%;height:auto;}
a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;}
ul{list-style:none;}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3{
  font-family:var(--serif);
  font-style:var(--display-style);
  font-weight:var(--display-weight);
  line-height:1.14;
  text-wrap:balance;
}

/* Visible focus for keyboard users on every interactive element. */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

/* Screen-reader-only, but focusable — used by the skip link. */
.sr{
  position:absolute;width:1px;height:1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip:focus{
  position:fixed;top:10px;left:10px;z-index:300;width:auto;height:auto;
  clip:auto;padding:12px 20px;background:var(--accent);color:var(--accent-ink);
  font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;
}

/* ---- layout primitives ------------------------------------------------- */
.wrap{max-width:var(--max);margin:0 auto;padding:0 34px;}
.section{padding:92px 0;}
.section-hero{padding:80px 0 92px;}
.narrow{max-width:700px;}

/* ---- type helpers ------------------------------------------------------ */
.eyebrow{
  font-family:var(--sans);font-size:.72rem;letter-spacing:.28em;
  text-transform:uppercase;font-weight:400;
  color:var(--eyebrow-color,var(--accent));
}
.lead{font-size:1.1rem;color:var(--muted);max-width:54ch;}
.rule{width:46px;height:1px;background:var(--accent);margin:22px 0;}
.page-title{font-size:clamp(2.2rem,5vw,3.4rem);margin:6px 0;}
.h-lg{font-size:clamp(2rem,3.4vw,2.6rem);}
.h-md{font-size:clamp(1.7rem,2.6vw,2.2rem);}
.meta{margin-top:22px;font-size:.86rem;color:var(--muted);}
.prose p + p{margin-top:20px;}

/* ---- buttons ----------------------------------------------------------- */
.btn{
  display:inline-block;font-family:var(--sans);font-size:.75rem;
  letter-spacing:.14em;text-transform:uppercase;padding:14px 30px;
  border:1px solid var(--accent);color:var(--accent);background:transparent;
  border-radius:var(--radius);transition:background .25s,color .25s;
}
.btn:hover{background:var(--accent);color:var(--accent-ink);}
.btn.solid{background:var(--accent);color:var(--accent-ink);}
.btn.solid:hover{background:transparent;color:var(--accent);}
.ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px;}

/* ---- header / nav ------------------------------------------------------ */
.topbar{
  position:sticky;top:0;z-index:50;background:var(--paper-blur);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.bar{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:94px;}
.mark img{height:52px;width:auto;filter:var(--logo-filter);}
.nav-list{display:flex;gap:24px;flex-wrap:wrap;}
.nav-list a{
  font-size:.76rem;letter-spacing:.1em;color:var(--muted);
  padding:6px 0;position:relative;transition:color .2s;
}
.nav-list a::after{
  content:"";position:absolute;left:0;bottom:0;height:1px;width:0;
  background:var(--accent);transition:width .25s;
}
.nav-list a:hover{color:var(--ink);}
.nav-list a:hover::after,.nav-list a[aria-current="page"]::after{width:100%;}
.nav-list a[aria-current="page"]{color:var(--ink);}
.nav-toggle{display:none;font-size:1.5rem;line-height:1;padding:8px;}

/* ---- hero -------------------------------------------------------------- */
.hero{display:grid;grid-template-columns:1.08fr .92fr;gap:64px;align-items:center;}
.hero h1{font-size:clamp(2.5rem,5.4vw,4.2rem);}
.roles{
  font-family:var(--sans);font-size:.78rem;letter-spacing:.28em;
  text-transform:uppercase;color:var(--eyebrow-color,var(--accent));margin-bottom:22px;
}
.hero-art{max-width:400px;width:100%;justify-self:end;}

/* ---- cover artwork ----------------------------------------------------- */
.cover{border-radius:var(--radius);box-shadow:var(--cover-ring),var(--cover-glow);}
.cover-sticky{position:sticky;top:118px;}

/* ---- book note (blurb, quote, tropes) ---------------------------------- */
.pull{
  font-family:var(--serif);font-style:italic;font-size:clamp(1.4rem,2.4vw,1.7rem);
  line-height:1.42;color:var(--ink);border-left:2px solid var(--accent);
  padding-left:22px;margin:26px 0;
}
.tropes{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;}
.tag{
  font-family:var(--sans);font-size:.68rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--accent);background:var(--accent-soft);
  padding:7px 15px;border-radius:40px;
}

/* ---- two-column content ------------------------------------------------ */
.split{display:grid;grid-template-columns:340px 1fr;gap:64px;align-items:start;}
.split-even{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start;}
.split-photo{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px;align-items:start;}

/* ---- placeholder tiles ------------------------------------------------- */
/* Deliberately visible and labelled: an empty frame reads as a bug, a
   labelled one reads as work in progress. Delete these when art arrives. */
.ph{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;text-align:center;padding:16px;background:var(--ph-bg);
  border:1px dashed var(--ph-line);border-radius:var(--radius);color:var(--muted);
  font-family:var(--sans);font-size:.66rem;letter-spacing:.15em;text-transform:uppercase;
}
.ph span{font-size:.58rem;letter-spacing:.1em;opacity:.72;text-transform:none;}
.ph-portrait{aspect-ratio:4/5;}
.ph-cover{aspect-ratio:2/3;}
.ph-square{aspect-ratio:1;}

/* ---- studio teaser strip ----------------------------------------------- */
.strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px;}

/* ---- characters: charcoal art mode ------------------------------------- */
/* Five sketches, drawn on different days, need to read as one set. The card
   carries a warm paper tone and a thin graphite frame; the sketch itself is
   desaturated and multiplied so its own white paper melts into the card
   instead of sitting on it as a bright rectangle. */
.char-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:36px;}
.char{
  background:var(--charcoal-paper);
  border:1px solid var(--charcoal-frame);
  border-radius:5px;
  box-shadow:0 12px 32px -20px rgba(58,46,50,.42);
  padding:14px 14px 4px;
}
.char .art{
  aspect-ratio:4/5;
  background:var(--charcoal-art);
  border:1px solid var(--charcoal-art-line);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.char .art img{
  width:100%;height:100%;
  object-fit:contain;padding:6px;
  filter:grayscale(1) contrast(1.05) brightness(1.02);
  mix-blend-mode:multiply;
}
/* Placeholder until a sketch exists — hatched, so it reads as a reserved
   space rather than a broken image. */
.char .art.empty{
  color:var(--charcoal-ph);font-size:.68rem;letter-spacing:.14em;
  text-transform:uppercase;text-align:center;padding:14px;line-height:1.6;
  background:repeating-linear-gradient(45deg,
    var(--charcoal-art),var(--charcoal-art) 10px,
    var(--charcoal-art-line) 10px,var(--charcoal-art-line) 20px);
}
.char-body{padding:16px 8px 12px;}
.char-body h3{font-size:1.7rem;margin-bottom:2px;}
.char-body p{color:var(--muted);font-size:.9rem;}
.char-who{
  font-family:var(--sans);font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--charcoal-who);margin-bottom:8px;
}

/* ---- paintings gallery ------------------------------------------------- */
/* Masonry via CSS columns: each painting keeps its own proportions rather
   than being cropped to a grid, which is the point of a painter's gallery. */
.gallery{columns:3;column-gap:18px;}
.gallery > *{margin-bottom:18px;break-inside:avoid;width:100%;}
.gallery figure{background:var(--card);}
.gallery a{
  display:block;position:relative;overflow:hidden;
  border-radius:var(--radius);
  box-shadow:0 14px 34px -24px rgba(58,46,50,.55);
  transition:transform .35s ease,box-shadow .35s ease;
}
.gallery a:hover{transform:translateY(-3px);box-shadow:0 22px 44px -24px rgba(58,46,50,.6);}
.gallery img{width:100%;}
.gallery figcaption{
  margin-top:8px;font-size:.74rem;letter-spacing:.04em;color:var(--muted);
}
.g-tall{aspect-ratio:3/4;}
.g-square{aspect-ratio:1;}
.g-portrait{aspect-ratio:4/5;}
.g-wide{aspect-ratio:5/4;}

/* ---- about photo ------------------------------------------------------- */
.portrait{border-radius:var(--radius);box-shadow:0 20px 46px -28px rgba(58,46,50,.5);}

/* ---- lightbox ---------------------------------------------------------- */
.lightbox{
  position:fixed;inset:0;z-index:100;display:none;align-items:center;
  justify-content:center;padding:5vmin;background:rgba(20,16,22,.92);
}
.lightbox[open]{display:flex;}
.lightbox img{max-width:100%;max-height:90vh;width:auto;object-fit:contain;}
.lightbox-close{
  position:absolute;top:18px;right:22px;font-size:2rem;line-height:1;
  color:#F3ECE7;padding:8px 14px;
}

/* ---- buy card ---------------------------------------------------------- */
.buy-card{
  max-width:560px;margin:0 auto;text-align:center;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);padding:58px 46px;
}
.buy-card .cover{width:180px;margin:0 auto 28px;}
.retailers{display:flex;flex-direction:column;gap:14px;margin-top:32px;}
.note{margin-top:38px;font-size:.85rem;color:var(--muted);}

/* ---- status pill ------------------------------------------------------- */
.status{
  display:inline-block;font-family:var(--sans);font-size:.7rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--accent);background:var(--accent-soft);
  padding:7px 16px;border-radius:40px;margin-bottom:22px;
}

/* ---- forms ------------------------------------------------------------- */
.field{
  width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);
  font-family:inherit;font-weight:300;font-size:.9rem;background:var(--field);color:var(--ink);
}
.field::placeholder{color:var(--muted);}
/* The sign-up form is a column (row of fields, then consent, then status),
   so the input and button get their own flex row inside it. Consent and the
   status message must live inside the <form> to be validated and submitted. */
.signup-form{margin-top:24px;}
.form-row{display:flex;gap:10px;max-width:430px;}
.form-stack{display:flex;flex-direction:column;gap:14px;margin-top:24px;max-width:520px;}
.consent{
  display:flex;gap:10px;align-items:flex-start;margin-top:14px;
  font-size:.78rem;color:var(--muted);line-height:1.6;text-align:left;
}
.consent input{margin-top:5px;flex:none;}
/* Honeypot: real people never see it, bots fill it in. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.form-note{margin-top:12px;font-size:.78rem;color:var(--muted);}
.form-msg{margin-top:14px;font-size:.88rem;color:var(--ink);}
.signup-panel{
  background:var(--accent-soft);border:1px solid var(--line);
  border-radius:calc(var(--radius) * 2);padding:58px;text-align:center;
}
.signup-panel .lead{margin-left:auto;margin-right:auto;}
.signup-panel .form-row{margin-left:auto;margin-right:auto;}
.signup-panel .consent{max-width:430px;margin-left:auto;margin-right:auto;}

/* ---- contact details --------------------------------------------------- */
.details li{padding:12px 0;border-bottom:1px solid var(--line);font-size:.92rem;}
.details strong{
  color:var(--eyebrow-color,var(--accent));display:inline-block;width:112px;
  font-weight:400;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;
}
.details a:hover{color:var(--accent);}

/* ---- sampled-palette strip (Nightfall only; hidden otherwise) ---------- */
.paint-strip{display:none;height:7px;width:100%;}
.paint-strip i{flex:1;}
.paint-strip.thin{height:4px;}

/* ---- footer ------------------------------------------------------------ */
.foot{border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;}
.foot-in{
  display:flex;flex-wrap:wrap;gap:14px 26px;align-items:center;
  justify-content:space-between;padding:40px 0;
}
.foot-links{display:flex;gap:20px;flex-wrap:wrap;font-size:.76rem;letter-spacing:.08em;}
.foot-links a:hover{color:var(--accent);}

/* ---- centred section variant ------------------------------------------- */
.center{text-align:center;}
.center .rule,.center .lead{margin-left:auto;margin-right:auto;}
.center .ctas{justify-content:center;}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width:900px){
  .nav-toggle{display:block;}
  .bar{min-height:78px;}
  .mark img{height:44px;}
  .nav-list{
    display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;
    gap:0;background:var(--paper);border-bottom:1px solid var(--line);padding:8px 34px 16px;
  }
  .nav-list.open{display:flex;}
  .nav-list a{padding:13px 0;border-bottom:1px solid var(--line);font-size:.85rem;}
  .nav-list li:last-child a{border-bottom:none;}

  .section,.section-hero{padding:60px 0;}
  .hero,.split,.split-even,.split-photo{grid-template-columns:1fr;gap:38px;}
  .hero-art{max-width:320px;justify-self:start;}
  .cover-sticky{position:static;max-width:280px;}
  .char-grid{grid-template-columns:1fr 1fr;}
  .strip{grid-template-columns:1fr 1fr;}
  .gallery{columns:2;}
  .form-row{flex-direction:column;}
  .signup-panel{padding:38px 26px;}
  .buy-card{padding:40px 26px;}
}
@media(max-width:560px){
  .wrap{padding:0 22px;}
  .nav-list{padding:8px 22px 16px;}
  .char-grid{grid-template-columns:1fr;}
  .gallery{columns:1;}
  .details strong{display:block;width:auto;margin-bottom:2px;}
}

@media(prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;}
  html{scroll-behavior:auto;}
}

@media print{
  .topbar,.nav-toggle,.lightbox,.ctas,.paint-strip{display:none!important;}
  body{background:#fff;color:#000;}
}
