/* sequoia. Issue 01: a skincare magazine you walk through */
:root {
  --sage: #A8C69F;
  --sage-deep: #8FB386;
  --tint: #E9F1E5;
  --moss: #3F5A44;
  --ink: #232C25;
  --muted: #6E776B;
  --paper: #F4F2EC;       /* warm magazine paper */
  --paper-2: #ECE9E1;
  --white: #FFFFFF;
  --line: #D8D4C8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.nowrap { white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--moss); line-height: 1; }
h2 { font-size: clamp(44px, 6.4vw, 104px); letter-spacing: -.015em; }
em { font-style: italic; font-weight: 500; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

/* Magazine furniture */
.page-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 48px; }
.page-head.light { border-color: rgba(255,255,255,.7); color: var(--white); }
.kicker, .folio { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.folio { color: var(--muted); font-family: var(--serif); font-style: italic; letter-spacing: .04em; font-size: 15px; text-transform: none; }
.page-head.light .folio { color: rgba(255,255,255,.75); }
.caption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); margin-top: 12px; }
.caption.light { color: rgba(255,255,255,.8); }
.hover-line { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.hover-line:hover { background-size: 100% 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--moss); color: var(--white); text-decoration: none; font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: .04em; padding: 16px 28px; border-radius: 40px; border: none; cursor: pointer; transition: background .3s; }
.btn:hover { background: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--moss); }
.btn-light:hover { background: var(--tint); }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--moss); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 32px 40px; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-issue { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.loader-word { font-family: var(--serif); font-weight: 600; font-size: clamp(72px, 18vw, 260px); line-height: .9; display: flex; overflow: hidden; }
.loader-word span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.loader-word span:nth-child(2) { transition-delay: .04s; } .loader-word span:nth-child(3) { transition-delay: .08s; }
.loader-word span:nth-child(4) { transition-delay: .12s; } .loader-word span:nth-child(5) { transition-delay: .16s; }
.loader-word span:nth-child(6) { transition-delay: .2s; }  .loader-word span:nth-child(7) { transition-delay: .24s; }
.loader-word span:nth-child(8) { transition-delay: .28s; }
.loader.show .loader-word span { transform: none; }
.loader-word .dot { color: var(--sage); }
.loader-count { align-self: flex-end; font-size: 14px; letter-spacing: .16em; }

/* ---------- Cursor + progress ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; background: var(--moss); transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s; opacity: 0; display: flex; align-items: center; justify-content: center; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; background: rgba(168,198,159,.85); }
.cursor.label { width: 88px; height: 88px; background: var(--moss); }
.cursor-label { color: var(--white); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.label .cursor-label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sage-deep); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, color .4s, transform .5s var(--ease); color: var(--white); }
.nav.solid { background: rgba(244,242,236,.9); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav-inner .btn { justify-self: end; }
.wordmark { display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 600; font-size: 28px; text-decoration: none; letter-spacing: .02em; line-height: 1; color: inherit; }
.wordmark .seed { height: .9em; width: auto; margin-right: .3em; }
.nav:not(.solid) .wordmark .seed { filter: brightness(0) invert(1); }
.wordmark .dot { color: var(--sage); }
.nav-issue { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.page-indicator { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 15px; }
.nav:not(.solid) .btn-small { background: var(--white); color: var(--moss); }

/* ---------- Cover ---------- */
.cover { height: 170vh; position: relative; background: var(--paper-2); }
.cover-stage { position: sticky; top: 0; height: 100vh; height: 100svh; perspective: 1600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover-card {
  --p: 0; --rx: 0deg; --ry: 0deg;
  position: relative; width: 100%; height: 100%; overflow: hidden; color: var(--white);
  transform: scale(calc(1 - var(--p) * .3)) rotateX(calc(var(--p) * 18deg + var(--rx))) rotateY(var(--ry)) translateY(calc(var(--p) * -6vh));
  border-radius: calc(var(--p) * 24px); transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 calc(var(--p) * 60px) calc(var(--p) * 120px) -40px rgba(35,44,37,.6);
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); }
.cover-img { transition: opacity .9s var(--ease); }
.cover-issue, .cover-lines, .cover-switch-label { text-shadow: 0 1px 12px rgba(35,44,37,.55), 0 0 2px rgba(35,44,37,.35); }
.masthead { text-shadow: 0 2px 30px rgba(35,44,37,.18); }
.cover-img-next { opacity: 0; }
.cover-img-next.show { opacity: 1; }
.cover-switch { position: absolute; right: 40px; bottom: 112px; display: flex; align-items: center; gap: 6px; transform: translateZ(40px); z-index: 2; }
.cover-switch-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-right: 6px; opacity: .85; }
.cover-switch button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: transparent; color: var(--white); font-family: var(--serif); font-size: 16px; cursor: pointer; transition: background .3s, color .3s; }
.cover-switch button:hover, .cover-switch button[data-cover][aria-pressed="true"] { background: var(--white); color: var(--moss); }
/* Timer ring on the active cover button while auto-flipping */
.cover-switch button[data-cover] { position: relative; }
.cover-switch.playing button[data-cover][aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,.95) calc(var(--t, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.cover-pause { font-family: var(--sans) !important; font-size: 10px !important; letter-spacing: -1px; margin-left: 6px; }
.cover-pause .ic-play { display: none; font-size: 11px; letter-spacing: 0; }
.cover-pause[aria-pressed="true"] .ic-pause { display: none; }
.cover-pause[aria-pressed="true"] .ic-play { display: inline; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,44,37,.35) 0%, rgba(35,44,37,0) 35%, rgba(35,44,37,0) 55%, rgba(35,44,37,.55) 100%); }
.masthead { position: absolute; top: 8vh; left: 0; right: 0; text-align: center; color: var(--white); font-size: clamp(88px, 20vw, 340px); line-height: .8; letter-spacing: -.03em; white-space: nowrap; transform: translateZ(60px); }
.mh-l { display: inline-block; transform: translateY(40%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
body.ready .mh-l { transform: none; opacity: 1; }
.mh-l:nth-child(2) { transition-delay: .05s; } .mh-l:nth-child(3) { transition-delay: .1s; } .mh-l:nth-child(4) { transition-delay: .15s; }
.mh-l:nth-child(5) { transition-delay: .2s; }  .mh-l:nth-child(6) { transition-delay: .25s; } .mh-l:nth-child(7) { transition-delay: .3s; }
.mh-l:nth-child(8) { transition-delay: .35s; }
.masthead .dot { color: var(--sage); }
.cover-issue { position: absolute; top: calc(8vh + clamp(88px, 20vw, 340px) * .82); left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.cover-lines { position: absolute; left: 40px; bottom: 48px; list-style: none; max-width: 420px; transform: translateZ(40px); }
.cover-lines li { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.5); }
.cover-lines span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.cover-cta { position: absolute; right: 40px; bottom: 48px; color: var(--white); text-decoration: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.7); border-radius: 40px; padding: 14px 22px; transform: translateZ(40px); transition: background .3s, color .3s; }
.cover-cta:hover { background: var(--white); color: var(--moss); }

/* ---------- Pages turning in ---------- */
main { perspective: 1800px; overflow-x: clip; }
.page { --e: 1; padding: 140px 0; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--e)) * 12deg)) translateY(calc((1 - var(--e)) * 80px)); opacity: calc(.25 + var(--e) * .75); will-change: transform; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Contents ---------- */
.contents { background: var(--paper); position: relative; }
.toc { list-style: none; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 24px; padding: 22px 0; text-decoration: none; color: var(--moss); }
.toc-num { font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.toc-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 76px); line-height: 1; transition: transform .6s var(--ease), color .3s, font-style .3s; }
.toc-page { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 18px; }
.toc a:hover .toc-title { transform: translateX(24px); color: var(--sage-deep); font-style: italic; }
.toc-preview { position: fixed; top: 0; left: 0; width: 260px; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; z-index: 40; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg); transition: opacity .3s, transform .5s var(--ease); box-shadow: 0 30px 60px -20px rgba(35,44,37,.5); }
.toc-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }

/* ---------- Editor's letter ---------- */
.letter { background: var(--white); }
.letter-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.letter-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.statement { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.15; color: var(--moss); margin-bottom: 36px; }
.statement .w { opacity: .15; transition: opacity .4s; }
.statement .w.lit { opacity: 1; }
.dropcap::first-letter { float: left; font-size: 3.4em; line-height: .78; padding: .06em .08em 0 0; color: var(--sage-deep); font-weight: 600; }
.letter-body { font-size: 19px; color: var(--muted); max-width: 560px; column-count: 1; }
.signoff { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 28px; color: var(--moss); }

/* ---------- World shelf (pinned horizontal, 3D) ---------- */
.shelf-section { position: relative; background: var(--paper-2); height: 400vh; }
.shelf-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; perspective: 1400px; }
.shelf-intro { flex: 0 0 auto; width: min(34vw, 460px); position: relative; z-index: 2; margin-right: 4vw; }
.shelf-intro h2 { font-size: clamp(52px, 6.4vw, 104px); }
.shelf-lede { color: var(--muted); margin: 24px 0 18px; max-width: 360px; }
.hint { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.shelf-track { display: flex; gap: 48px; padding: 0 12vw 0 40px; align-items: center; will-change: transform; transform-style: preserve-3d; }
.product { --ry: 0deg; --tx: 0deg; --ty: 0deg; flex: 0 0 auto; width: clamp(240px, 24vw, 360px); transform: rotateY(var(--ry)); transition: transform .2s linear; transform-style: preserve-3d; }
.product-card { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; transform: rotateX(var(--ty)) rotateY(var(--tx)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 30px 60px -30px rgba(35,44,37,.45); transform-style: preserve-3d; }
.product:hover .product-card { box-shadow: 0 50px 80px -30px rgba(35,44,37,.6); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateZ(0); transition: transform .8s var(--ease); }
.product:hover .product-card img { transform: scale(1.14); }
.glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.45), rgba(255,255,255,0) 55%); opacity: 0; transition: opacity .4s; pointer-events: none; mix-blend-mode: soft-light; }
.product:hover .glare { opacity: 1; }
.product-flag { position: absolute; top: 14px; left: 14px; background: rgba(244,242,236,.92); color: var(--moss); font-size: 11px; letter-spacing: .16em; padding: 5px 10px; border-radius: 20px; }
.product-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 10px; }
.product h3 { font-size: 32px; margin-top: 6px; }
.product-note { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.shelf-end { flex: 0 0 auto; width: 340px; }
.also { font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--moss); margin: 14px 0 20px; }
.disclaimer { font-size: 12px; color: var(--muted); }

/* ---------- Tokyo dispatch ---------- */
.tokyo { position: relative; overflow: hidden; background: var(--ink); color: var(--white); min-height: 120vh; display: flex; align-items: center; }
.tokyo-bg { position: absolute; inset: -15% 0; }
.tokyo-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tokyo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,44,37,.85), rgba(35,44,37,.2)); }
.tokyo-inner { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 64px; }
.tokyo-inner .page-head { grid-column: 1 / -1; }
.tokyo-title { color: var(--white); font-size: clamp(90px, 15vw, 240px); line-height: .85; position: relative; }
.jp { position: absolute; top: -.1em; right: .1em; writing-mode: vertical-rl; font-size: .22em; letter-spacing: .3em; color: var(--sage); font-family: serif; }
.tokyo-lede { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; max-width: 520px; margin-top: 32px; grid-column: 1; }
.tokyo-inset { grid-column: 2; grid-row: 2 / 4; align-self: end; max-width: 460px; justify-self: end; transform-style: preserve-3d; }
.tokyo-inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s var(--ease); }

/* ---------- Method: 3D flip cards ---------- */
.method { background: var(--paper); }
.method h2 { margin-bottom: 64px; }
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.flip { background: none; border: none; cursor: pointer; aspect-ratio: 3 / 4; text-align: left; padding: 0; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip:hover .flip-inner, .flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.flip-front { background: var(--white); border: 1px solid var(--line); color: var(--moss); }
.flip-back { background: var(--moss); color: var(--white); transform: rotateY(180deg); font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.flip-num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--sage-deep); }
.flip-back .flip-num { color: var(--sage); }
.flip-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.flip-hint { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Texture collage ---------- */
.texture { background: var(--tint); overflow: hidden; }
.texture-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.texture-text p { color: var(--muted); font-size: 19px; margin-top: 24px; max-width: 440px; }
.collage { position: relative; height: 640px; }
.c { position: absolute; object-fit: cover; border-radius: 4px; box-shadow: 0 40px 70px -30px rgba(35,44,37,.5); transition: transform .3s ease-out; }
.c1 { width: 62%; height: 74%; left: 0; top: 4%; }
.c2 { width: 36%; height: 54%; right: 2%; top: 0; }
.c3 { width: 42%; height: 40%; right: 10%; bottom: 0; }

/* ---------- Field notes ---------- */
.notes { background: var(--white); }
.notes h2 { margin-bottom: 24px; }
.notes-head { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.notes-lede { color: var(--muted); font-size: 19px; max-width: 520px; }
.notes-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 65% 40%; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(35,44,37,.45); }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.note { padding: 28px 28px 36px 0; border-right: 1px solid var(--line); transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s var(--ease); }
.note + .note { padding-left: 28px; }
.note:last-child { border-right: none; }
.note-num { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.note h3 { font-size: 34px; margin: 18px 0 14px; }
.note p { color: var(--muted); }
.follow { margin-top: 48px; color: var(--muted); }
.follow a { color: var(--moss); }

/* ---------- Subscribe ---------- */
.subscribe { position: relative; overflow: hidden; background: var(--moss); color: var(--white); }
.subscribe-photo { position: absolute; inset: -10% 0 -10% 50%; }
.subscribe-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.subscribe-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.subscribe-title { color: var(--white); font-size: clamp(56px, 7.5vw, 116px); line-height: .92; margin-bottom: 24px; }
.subscribe-title em { color: var(--sage); }
.subscribe-explainer { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; color: var(--sage); max-width: 440px; margin-bottom: 14px; }
.subscribe-lead { color: rgba(255,255,255,.85); font-size: 19px; max-width: 420px; }
.form-wrap { background: rgba(35,44,37,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 36px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: flex; flex-direction: column; gap: 10px; border: none; }
.field-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); padding: 0; }
input[type=email] { font-family: var(--sans); font-size: 20px; font-weight: 300; color: var(--white); background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.5); padding: 10px 0; }
input[type=email]::placeholder { color: rgba(255,255,255,.45); }
input[type=email]:focus { outline: none; border-bottom-color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 30px; font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: var(--white); }
.chips input:checked + span { background: var(--white); color: var(--moss); border-color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.field.invalid .chips span, input[aria-invalid="true"] { border-color: #F2B8B0; }
.form-note { font-size: 13px; color: rgba(255,255,255,.65); text-align: center; }
.form-error { font-size: 14px; color: #F2B8B0; text-align: center; }
.thanks h3 { color: var(--white); font-size: 40px; margin-bottom: 8px; }
.thanks p { color: rgba(255,255,255,.85); }
.thanks a { color: var(--sage); }

/* ---------- Footer ---------- */
.footer { background: var(--moss); color: rgba(255,255,255,.8); padding: 0 0 24px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 32px; }
.footer-links { display: flex; gap: 28px; font-size: 15px; }
.fine { font-size: 13px; opacity: .7; }
.credits { font-size: 12px; opacity: .55; margin-top: 18px; max-width: 900px; }
.footer-word { font-family: var(--serif); font-weight: 600; color: var(--sage); font-size: clamp(90px, 24vw, 380px); line-height: .85; letter-spacing: -.02em; margin-top: 40px; white-space: nowrap; }
.footer-word .dot { color: var(--white); }

/* ---------- Privacy / legal page ---------- */
.legal-page .nav { position: sticky; }
.legal { padding: 72px 0 120px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 24px; }
.legal-lede { font-size: 20px; color: var(--muted); margin-bottom: 56px; }
.legal section { border-top: 1px solid var(--line); padding: 32px 0; }
.legal h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a { color: var(--moss); }
.legal-back { margin-top: 40px; }
.form-note a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .page { padding: 96px 0; }
  .nav-issue { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .letter-grid, .texture-grid, .subscribe-grid, .tokyo-inner { grid-template-columns: 1fr; gap: 40px; }
  .tokyo-inset, .tokyo-lede { grid-column: 1; grid-row: auto; justify-self: start; }
  .flips, .columns, .notes-head { grid-template-columns: 1fr; }
  .notes-head { gap: 32px; }
  .notes-photo { max-width: 360px; }
  .flip { aspect-ratio: 16 / 10; }
  .note, .note + .note { padding: 24px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .collage { height: 440px; }
  .toc a { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .toc-preview { display: none; }
  /* Shelf becomes a normal sideways swipe on small screens */
  .shelf-section { height: auto; padding: 96px 0; }
  .shelf-pin { position: static; height: auto; display: block; }
  .shelf-intro { width: 84vw; margin-right: 0; scroll-snap-align: start; }
  .shelf-track { transform: none !important; overflow-x: auto; padding: 0 20px 20px; gap: 20px; scroll-snap-type: x mandatory; align-items: flex-start; }
  .product { width: 76vw; scroll-snap-align: start; transform: none !important; }
  .shelf-end { width: 76vw; }
  .cover-lines { left: 20px; right: 20px; bottom: 96px; }
  .cover-cta { right: 20px; bottom: 28px; }
  .cover-switch { left: 20px; right: auto; bottom: 36px; }
  .cover-switch-label { display: none; }
  .cover-switch button { width: 30px; height: 30px; font-size: 14px; }
  .cover-cta { padding: 11px 16px; font-size: 11px; }
  .subscribe-photo { inset: 0; }
  .form-wrap { padding: 24px 18px; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 24px; }
  .nav-inner .btn-small { padding: 9px 14px; font-size: 13px; }
  .masthead { top: 11vh; }
  .cover-issue { top: calc(11vh + 92px); font-size: 10px; letter-spacing: .14em; padding: 0 16px; }
  .nav-inner .btn-small .arrow { display: none; }
  .cover-lines li:nth-child(3) { display: none; }
  .loader { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .mh-l { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
  .page { transform: none; opacity: 1; }
}
