:root{
  --ink:#12161c;
  --ink-soft:#4a5462;
  --paper:#faf8f5;
  --paper-2:#f2ede6;
  --line:#e4ded5;
  --brand:#1f3d33;
  --brand-2:#2f6b58;
  --radius:18px;
  --shadow:0 18px 50px -22px rgba(18,22,28,.35);
  --max:1180px;
  --nav-h:72px;
}
*{box-sizing:border-box}
/* scroll-padding keeps #anchors clear of the fixed header */
html{scroll-behavior:smooth;scroll-padding-top:var(--nav-h)}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
h1,h2,h3{font-family:"Fraunces","Iowan Old Style",Georgia,serif;font-weight:600;letter-spacing:-.02em;line-height:1.1;margin:0 0 .5em}
h1{font-size:clamp(2.6rem,6vw,4.6rem)}
h2{font-size:clamp(1.9rem,3.6vw,2.9rem)}
h3{font-size:1.25rem}
.eyebrow{font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-2);font-weight:600;margin-bottom:14px}
.muted{color:var(--ink-soft)}

/* nav — fixed, not sticky: sticky is unreliable on iOS Safari, and the banner has to
   stay put on every scroll. mountChrome() adds .has-nav to <body> for the offset, so
   pages without a header (admin.html) don't get a phantom gap at the top. */
header.nav{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(250,248,245,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
body.has-nav{padding-top:var(--nav-h)}
.nav-in{display:flex;align-items:center;gap:22px;height:var(--nav-h);max-width:var(--max);margin:0 auto;padding:0 24px}
.logo{font-family:"Fraunces",Georgia,serif;font-size:1.4rem;font-weight:600;text-decoration:none;letter-spacing:-.02em;white-space:nowrap}
.logo span{color:var(--brand-2)}
nav.links{display:flex;gap:26px;margin-left:auto;align-items:center}
nav.links a{text-decoration:none;font-size:.95rem;color:var(--ink-soft);transition:color .2s;white-space:nowrap}
nav.links a:hover,nav.links a.active{color:var(--ink)}
/* flex-shrink:0 — the pill must never be squeezed off the right edge on a phone */
.cart-btn{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;background:var(--brand);border:0;padding:9px 16px;border-radius:999px;font-size:.9rem;font-weight:500;cursor:pointer;text-decoration:none;white-space:nowrap}
.cart-btn:hover{background:var(--brand-2)}
.cart-count{background:rgba(255,255,255,.32);border-radius:999px;padding:1px 7px;min-width:22px;text-align:center;font-size:.78rem;font-weight:600;line-height:1.45}
/* Both the label and the count stay white on the green pill. Listed with nav.links
   in front because `nav.links a` is the tighter selector and used to win, painting
   the label --ink-soft grey — which is what made the pill hard to read. */
.cart-btn,nav.links .cart-btn,.cart-btn .cart-count{color:#fff}

/* hamburger — phones only */
.nav-toggle{display:none;flex:0 0 auto;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;align-items:center;justify-content:center;gap:4px;flex-direction:column}
.nav-toggle span{display:block;width:17px;height:2px;border-radius:2px;background:var(--ink);transition:transform .22s,opacity .22s}
body.nav-open .nav-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}
body.nav-open .nav-toggle span:nth-child(2){opacity:0}
body.nav-open .nav-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* buttons */
.btn{display:inline-block;background:var(--brand);color:#fff;border:0;padding:14px 28px;border-radius:999px;font-size:.98rem;font-weight:500;cursor:pointer;text-decoration:none;transition:transform .18s,background .2s}
.btn:hover{background:var(--brand-2);transform:translateY(-2px)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover{background:var(--paper-2)}
.btn[disabled]{opacity:.5;pointer-events:none}

/* hero */
.hero{position:relative;min-height:78vh;display:flex;align-items:center;overflow:hidden}
.hero img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,rgba(12,16,14,.78),rgba(12,16,14,.25))}
.hero .wrap{position:relative;z-index:2;color:#fff;padding-top:90px;padding-bottom:90px}
.hero h1{color:#fff;max-width:12ch}
.hero p{max-width:46ch;font-size:1.15rem;color:rgba(255,255,255,.86)}
.hero .btn.ghost{color:#fff;border-color:rgba(255,255,255,.5)}
/* Flex, not two inline-blocks spaced with margin-left: on a phone the pair wraps
   and the buttons ended up touching, because a horizontal margin does nothing
   between rows. gap applies on both axes. */
.hero-cta{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px}

section{padding:96px 0}
.section-tight{padding:64px 0}
.split{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center}
.split img{border-radius:var(--radius);box-shadow:var(--shadow)}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;text-align:center}
.stat .n{font-family:"Fraunces",Georgia,serif;font-size:3rem;color:var(--brand-2);line-height:1}
.stat .l{font-size:.95rem;color:var(--ink-soft)}

/* marquee */
.marquee{overflow:hidden;border-block:1px solid var(--line);background:var(--paper-2);padding:18px 0}
.marquee div{display:flex;gap:48px;white-space:nowrap;animation:slide 28s linear infinite;font-family:"Fraunces",Georgia,serif;font-size:1.3rem;color:var(--ink-soft)}
@keyframes slide{to{transform:translateX(-50%)}}

/* pages tour */
.tour{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.card>img{width:100%;aspect-ratio:3/2;object-fit:cover;background:var(--paper-2);cursor:zoom-in}
.card .body{padding:22px}
.tag{display:inline-block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--brand-2);border:1px solid var(--line);border-radius:999px;padding:3px 10px;margin-bottom:10px}
.card ul{margin:10px 0 0;padding-left:18px;color:var(--ink-soft);font-size:.95rem}
/* The finder invitation sits in the tour grid as a sixth cell, so it fills the hole the
   five photo cards leave in a three-column row instead of hanging under the section. */
.card-cta{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 26px;min-height:280px;background:linear-gradient(168deg,#fff 0%,var(--paper) 55%,var(--paper-2) 100%)}
/* The whole card is the hit area: the pill's ::after is stretched over it, so there is
   still exactly one <button> — no nested controls, and the heading keeps being an <h3>.
   Hover and focus land on the button anywhere in the card, since a pseudo-element is
   part of its parent for hit-testing. Trade-off: text inside the card can't be selected. */
.card-cta .vf-launch::after{content:"";position:absolute;inset:0}
.card-cta .spread{width:96px;color:var(--brand-2);opacity:.5;margin-bottom:18px}
.card-cta h3{margin-bottom:8px}
.card-cta p{margin:0 0 24px;font-size:.95rem;max-width:27ch}

/* shop */
.grid{display:grid;gap:28px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.prod{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none;display:block;transition:transform .25s,box-shadow .25s}
.prod:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.swatch{aspect-ratio:4/5;display:grid;place-items:center;position:relative;overflow:hidden}
/* the cover photos are all 3:2 — match it so the whole notebook stays in frame */
.swatch.has-photo{aspect-ratio:3/2;background:var(--paper-2)!important}
.swatch.has-photo .book{display:none}
.swatch>*{grid-area:1/1}
.swatch img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.prod:hover .swatch img{transform:scale(1.04)}
.swatch .book{width:62%;height:78%;border-radius:6px 12px 12px 6px;box-shadow:0 22px 40px -18px rgba(0,0,0,.6),inset -14px 0 22px -18px rgba(255,255,255,.5);display:grid;place-items:center}
.swatch .book span{font-family:"Fraunces",Georgia,serif;color:rgba(255,255,255,.9);font-size:1rem;letter-spacing:.14em}
.prod .body{padding:16px 18px 20px}
.prod .body .v{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft)}
.prod .body .n{font-weight:600;margin:4px 0}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 18px;font-size:.9rem;cursor:pointer}
.chip.on{background:var(--brand);color:#fff;border-color:var(--brand)}

/* product page */
.pdp{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.pdp .swatch{border-radius:var(--radius);border:1px solid var(--line)}
.price{font-size:1.6rem;font-family:"Fraunces",Georgia,serif;margin:6px 0 18px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin-right:12px}
.qty button{border:0;background:#fff;padding:12px 16px;cursor:pointer;font-size:1rem}
.qty input{width:44px;text-align:center;border:0;font-size:1rem;background:#fff}
.colors{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 26px}
.dot{width:34px;height:34px;border-radius:50%;border:2px solid transparent;outline:1px solid var(--line);cursor:pointer;display:block}
.dot.on{border-color:#fff;outline:2px solid var(--brand)}

/* cart */
.line{display:grid;grid-template-columns:76px 1fr auto;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.line .thumb{width:76px;aspect-ratio:3/2;border-radius:10px;object-fit:cover;background:var(--paper-2)}
.totals{display:flex;justify-content:space-between;font-size:1.25rem;font-family:"Fraunces",Georgia,serif;margin:24px 0}
/* subtotal and the bundle saving, stacked above the total */
.sums{margin:24px 0}
.sums .row{display:flex;justify-content:space-between;padding:3px 0;font-size:.95rem;color:var(--ink-soft)}
.sums .row.save{color:var(--brand-2);font-weight:600}
.sums .totals{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line)}

/* forms */
form.contact{display:grid;gap:16px;max-width:520px}
input,textarea,select{font:inherit;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;width:100%}
textarea{min-height:140px;resize:vertical}

footer{background:var(--brand);color:rgba(255,255,255,.8);padding:56px 0 40px;margin-top:40px}
footer a{color:#fff}
.foot{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}

/* lightbox — the page spreads are dense, so let people open one full size */
.lightbox{position:fixed;inset:0;z-index:100;background:rgba(12,16,14,.9);display:flex;align-items:center;justify-content:center;padding:64px 40px;cursor:zoom-out;opacity:0;transition:opacity .2s}
.lightbox.on{opacity:1}
/* Size against the viewport, not with percentages: a percentage max-height here
   doesn't constrain the image, so a tall spread runs off the bottom of the screen.
   The margins leave every edge of the photo visible. */
.lightbox img{width:auto;height:auto;object-fit:contain;
  max-width:calc(100vw - 80px);max-height:calc(100vh - 128px);
  border-radius:10px;box-shadow:var(--shadow)}
@supports (height:100dvh){.lightbox img{max-height:calc(100dvh - 128px)}}
@media(max-width:600px){
  .lightbox{padding:56px 16px}
  .lightbox img{max-width:calc(100vw - 32px);max-height:calc(100vh - 112px)}
  @supports (height:100dvh){.lightbox img{max-height:calc(100dvh - 112px)}}
}
.lightbox .close{position:absolute;top:18px;right:22px;background:none;border:0;color:#fff;font-size:2rem;line-height:1;cursor:pointer}

.notice{background:#fff8e6;border:1px solid #f0dfae;border-radius:12px;padding:12px 16px;font-size:.9rem;margin-bottom:24px}

@media(max-width:860px){
  .split,.pdp{grid-template-columns:1fr;gap:34px}
  .stats{grid-template-columns:1fr;gap:34px}
  nav.links{gap:16px}
  nav.links a{font-size:.88rem}
  section{padding:64px 0}
}

/* Phones: the four links no longer fit beside the logo and the cart pill — laid out
   in a row they overflowed the viewport, which is what let the whole page scroll
   sideways. Below 720px they fold into a drop-down panel instead. */
@media(max-width:720px){
  :root{--nav-h:60px}
  .nav-in{gap:12px;padding:0 18px}
  .logo{font-size:1.25rem}
  .nav-toggle{display:flex;order:3}
  .cart-btn{margin-left:auto;order:2;padding:8px 14px}
  nav.links{
    order:4;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;margin:0;
    background:var(--paper);border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);padding:6px 18px 14px;
    display:none;
  }
  body.nav-open nav.links{display:flex}
  nav.links a{font-size:1rem;padding:13px 2px;border-bottom:1px solid var(--line)}
  nav.links a:last-child{border-bottom:0}
}

/* legal pages */
.legal{max-width:70ch}
.legal h3{margin-top:2.2em}
.legal ul{color:var(--ink-soft);padding-left:20px}
.legal li{margin-bottom:.5em}
.legal .todo{background:#ffe3e3;border:1px solid #f5b5b5;border-radius:6px;padding:1px 8px;font-weight:600;font-size:.9em;white-space:nowrap}
