/* ===========================================================
   Dear Lois Vintage — REFINED stylesheet (delicate / fine-line)
   Sample direction. Palette unchanged; softer weights, hairlines,
   more air, gold flourishes echoing the logo.
   =========================================================== */

:root {
  /* palette (unchanged) */
  --ink: #33261A;
  --ink-soft: #5A4737;
  --parchment: #F3E8D6;
  --paper: #FBF5E8;
  --terracotta: #BD4F2C;
  --terracotta-dark: #93391E;
  --mustard: #D9A23B;
  --olive: #566143;

  /* refined additions */
  --ink-grey: #6E6A62;     /* soft logo-grey for delicate text */
  --gold-line: #C2A06A;    /* muted gold for hairline flourishes */
  --cream: #F7F1E6;        /* airier page ground, like the logo bg */
  --hair: rgba(110, 106, 98, 0.22); /* hairline border colour */
  --olive-wash: rgba(86, 97, 67, 0.09);  /* soft olive panel tint */
  --olive-hair: rgba(86, 97, 67, 0.30);  /* olive hairline */

  --font-script: "Parisienne", "Snell Roundhand", cursive;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1080px;
  --radius: 2px;
  --shadow-soft: 0 18px 40px rgba(51, 38, 26, 0.06);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--ink-grey);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--terracotta); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;          /* lighter — delicate */
  line-height: 1.25;
  color: var(--ink-soft);
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--olive);
  margin: 0 0 1rem;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.measure { max-width: 56ch; }
.measure.center { margin-inline: auto; }

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

/* ---------- flourish divider ---------- */
.flourish {
  display: block;
  width: 220px;
  max-width: 60%;
  height: auto;
  margin: 1.6rem auto;
  opacity: 0.9;
}
.flourish--sm { width: 150px; margin: 1.1rem auto; }

/* ---------- buttons (thin, letterspaced) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn--primary { background: var(--terracotta); color: var(--paper); border-color: var(--terracotta); }
.btn--primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink-soft); border-color: var(--hair); }
.btn--line:hover { border-color: var(--ink-soft); color: var(--ink); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 230, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; gap: 0.28rem; }
.wordmark__logo { display: block; height: 58px; width: auto; transition: opacity 0.25s ease; }
.wordmark:hover .wordmark__logo { opacity: 0.75; }
.wordmark__name {
  font-family: var(--font-script);
  font-size: 2.05rem;
  color: var(--ink-grey);
  line-height: 0.9;
}
.wordmark__sub {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.6rem;
  color: var(--ink-grey);
  padding-left: 0.2rem;
}
.wordmark:hover .wordmark__name { color: var(--terracotta); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; width: 26px; margin-inline: auto; background: var(--ink-soft); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; }
.site-nav a {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-grey); padding-block: 0.4rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--olive); border-bottom-color: var(--olive); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.hero h1 { margin-bottom: 0.2em; }

/* ---------- hero handwriting ----------
   "Dear Lois" writes itself out on load like a pen writing a letter.
   The .wp paths in index.html are the real Parisienne letterforms, shown as
   solid ink; each letter sits behind a mask whose hidden "pen" strokes follow
   the natural stroke order, revealing the ink as the pen travels. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero-script { margin: 0.6rem 0 0.4rem; }
.hero-script .write {
  width: min(540px, 88vw);
  height: auto;
  display: block;
  margin-inline: auto;
  overflow: visible;
}
.wp { fill: var(--ink-grey); }
/* THE WRITING — the finished Parisienne calligraphy is the only thing shown;
   an invisible pen (white mask strokes, feathered by #penblur so the ink
   bleeds in softly) reveals it along real stroke order at one constant speed.
   Dash values are real measured path lengths — never pathLength (Safari). */
.pen {
  fill: none;
  stroke: #fff;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pen0a { stroke-dasharray: 341 400; stroke-dashoffset: 361; animation: wdraw 1.20s linear 0.15s forwards; }
.pen0b { stroke-dasharray: 142 200; stroke-dashoffset: 162; animation: wdraw 0.54s linear 1.37s forwards; }
.pen1  { stroke-dasharray: 151 210; stroke-dashoffset: 171; animation: wdraw 0.57s linear 1.95s forwards; }
.pen2a { stroke-dasharray: 101 160; stroke-dashoffset: 121; animation: wdraw 0.40s linear 2.56s forwards; }
.pen2b { stroke-dasharray: 70 130;  stroke-dashoffset: 90;  animation: wdraw 0.30s linear 2.98s forwards; }
.pen3  { stroke-dasharray: 99 160;  stroke-dashoffset: 119; animation: wdraw 0.40s linear 3.32s forwards; }
.pen4  { stroke-dasharray: 440 500; stroke-dashoffset: 460; animation: wdraw 1.53s linear 3.80s forwards; }
.pen5a { stroke-dasharray: 107 165; stroke-dashoffset: 127; animation: wdraw 0.42s linear 5.37s forwards; }
.pen5b { stroke-dasharray: 38 100;  stroke-dashoffset: 58;  animation: wdraw 0.19s linear 5.80s forwards; }
.pen6a { stroke-dasharray: 69 130;  stroke-dashoffset: 89;  animation: wdraw 0.30s linear 6.03s forwards; }
.pen6b { stroke-dasharray: 4 62;    stroke-dashoffset: 24;  animation: wdraw 0.08s linear 6.36s forwards; }
.pen7  { stroke-dasharray: 151 210; stroke-dashoffset: 171; animation: wdraw 0.57s linear 6.48s forwards; }
@keyframes wdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pen { animation: none; stroke-dashoffset: 0; }
}
.hero-tag {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.hero .lede { font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--ink-grey); margin-inline: auto; max-width: 46ch; font-weight: 300; }
.hero .sprig { width: 150px; margin: 0 auto 1.6rem; opacity: 0.85; }
.hero .btn-row { margin-top: 2rem; }

/* ---------- product grid ---------- */
.grid { display: grid; gap: clamp(2rem, 4vw, 3.2rem); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.card { background: transparent; display: flex; flex-direction: column; }
.card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.03); }

.card__body { padding: 1.3rem 0.2rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.card__title { font-size: 1.2rem; margin-bottom: 0.15rem; color: var(--ink-soft); }
.card__price { font-family: var(--font-body); font-weight: 400; letter-spacing: 0.05em; color: var(--olive); margin-bottom: 0.9rem; font-size: 0.95rem; }
.card__desc { font-size: 0.92rem; color: var(--ink-grey); margin-bottom: 1.2rem; max-width: 32ch; }
.card .btn { margin-top: auto; }

/* curator tag — refined hairline */
.curator-tag {
  border-top: 1px dashed var(--hair);
  padding-top: 0.7rem;
  margin: 0 auto 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-grey);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.curator-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex: 0 0 auto; }

/* ---------- Lois teaser ---------- */
.lois { text-align: center; }
.lois blockquote {
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.6;
  color: var(--olive);
  max-width: 30ch;
  margin: 0 auto 1.4rem;
}
.lois .leaf { width: 46px; margin: 0 auto 1.4rem; opacity: 0.8; }
.lois cite { font-style: normal; font-family: var(--font-script); font-size: 1.7rem; color: var(--ink-grey); display: block; margin-bottom: 1.6rem; }

/* ---------- soft strip (replaces solid olive block) ---------- */
.strip { text-align: center; border-block: 1px solid var(--olive-hair); background: var(--olive-wash); }
.strip h3 { color: var(--olive); }
.strip p { color: var(--ink-grey); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hair); background: var(--cream); padding-block: 3.5rem 2rem; margin-top: 1rem; color: var(--ink-grey); }
.site-footer a { color: var(--ink-grey); }
.site-footer a:hover { color: var(--terracotta); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr; margin-bottom: 2.4rem; }
.site-footer .wordmark__name { color: var(--ink-grey); }
.site-footer h4 { color: var(--olive); font-family: var(--font-body); font-weight: 400; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid var(--hair); padding-top: 1.5rem; font-size: 0.75rem; letter-spacing: 0.04em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: var(--ink-grey); }

/* ---------- page intro ---------- */
.page-head { text-align: center; }

/* ---------- gallery ---------- */
.gallery-grid { columns: 3 230px; column-gap: 1.1rem; }
.gallery-grid figure {
  margin: 0 0 1.1rem; break-inside: avoid;
  border: 1px solid var(--hair); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.gallery-grid img { width: 100%; height: auto; }
.gallery-grid figcaption { padding: 0.7rem 0.9rem 0.9rem; font-size: 0.8rem; color: var(--ink-grey); text-align: center; }

/* ---------- journal ---------- */
.journal-list { display: grid; gap: 2.6rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.journal-card { background: transparent; }
.journal-card .card__media { aspect-ratio: 16 / 10; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.journal-card .card__media img { width: 100%; height: 100%; object-fit: cover; }
.journal-card__body { padding: 1.2rem 0.2rem 0; text-align: center; }
.journal-card time { display: block; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.5rem; }
.journal-card h3 { color: var(--ink-soft); }
.journal-card p { font-size: 0.92rem; color: var(--ink-grey); max-width: 36ch; margin: 0 auto 1em; }

/* ---------- about ---------- */
.about-split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; grid-template-columns: minmax(0, 240px) 1fr; }
.about-split img { border: 1px solid var(--hair); border-radius: var(--radius); width: 100%; height: auto; }
.about-split h3 { color: var(--olive); margin-top: 1.7rem; }
.about-split .leaf { width: 42px; margin: 0 0 1rem; opacity: 0.85; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 0.8rem; align-items: baseline; padding-block: 0.7rem; border-bottom: 1px dashed var(--hair); }
.contact-list .label { flex: 0 0 6.5rem; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.66rem; color: var(--olive); }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--ink-grey); }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-weight: 300; font-size: 1rem;
  color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--hair); border-radius: var(--radius); padding: 0.75rem 0.9rem;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-wash); }
.form-note { font-size: 0.85rem; color: var(--ink-grey); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--hair);
    transform: translateY(-150%); transition: transform 0.3s ease;
    padding: 1rem 1.5rem 1.6rem;
  }
  .site-nav[data-open="true"] { transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .site-nav a { display: block; padding-block: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

/* ---------- scroll reveals (ink-drawn) ----------
   .reveal is added by script.js only when JS runs, motion is allowed, and the
   element starts below the fold — so nothing is ever hidden without it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  /* flourish dividers draw themselves left-to-right, like a pen stroke */
  .js img.flourish.reveal {
    transform: none;
    clip-path: inset(-2px 100% -2px 0);
    transition: clip-path 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  }
  .js img.flourish.reveal.is-visible {
    clip-path: inset(-2px 0 -2px 0);
  }
  /* cards arrive one after another, softly */
  .js .grid .card.reveal:nth-child(2),
  .js .gallery-grid img.reveal:nth-child(2) { transition-delay: 0.12s; }
  .js .grid .card.reveal:nth-child(3),
  .js .gallery-grid img.reveal:nth-child(3) { transition-delay: 0.24s; }
  .js .grid .card.reveal:nth-child(4) { transition-delay: 0.36s; }
}

/* ---------- sprigs & motes (the enchanted layer) ----------
   Built by script.js; fixed and pointer-events:none so it never blocks a tap.
   Sits below the sticky header (z 100) and skip link (z 200). */
@media (prefers-reduced-motion: no-preference) {
  .enchant { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
  .enchant__sketch {
    position: absolute;
    opacity: 0.85;
    transform: rotate(var(--tilt, 0deg));
  }
  .enchant__sketch svg { display: block; width: 100%; height: auto; }
  .enchant__sketch .sk { stroke-linecap: round; stroke-linejoin: round; }
  .enchant__sketch .sk-dot { opacity: 0; }
  .enchant__sprig {
    position: absolute;
    width: 130px;
    opacity: 0.4;
    animation: sprig-sway 16s ease-in-out infinite alternate;
  }
  .enchant__sprig--left  { left: -26px; top: 26%; }
  .enchant__sprig--right { right: -26px; top: 58%; scale: -1 1; animation-duration: 19s; }
  @keyframes sprig-sway {
    from { transform: rotate(-4deg) translateY(0); }
    to   { transform: rotate(4deg) translateY(-14px); }
  }
}

/* hero sprig (inline SVG so it can draw itself; sized like the old img) */
.hero svg.sprig { display: block; height: auto; }
