/* NBD newsletter landing v1
   Greens from "Personal letter emails v1" (Figma y8KKj4fzEMPmPQ7LITPvIq, 128:147).
   Cream, Deep and Ink are the brand palette. Moss is for accents and large type only. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "La Belle Aurore"; src: url("/fonts/la-belle-aurore.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --forest: #1F2B22;
  --moss-deep: #3D472E;
  --olive: #59613A;
  --moss: #6E7550;
  --sage: #B7C2A6;
  --sage-light: #DCE3D1;
  --pistachio: #E4EAD0;
  --mint: #EEF2E7;
  --paper: #FBF9F5;
  --cream: #F3EFE7;
  --deep: #2E2819;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --script: "La Belle Aurore", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-x: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--forest); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, ul, figure { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
h1, h2 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Bracketed slot for a line Esther still owes. Same convention as the email concepts. */
.slot { color: var(--sage); }

.skip { position: fixed; top: 16px; left: 16px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--cream); color: var(--forest); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transform: translateY(-200%); transition: transform 300ms var(--ease); }
.skip:focus-visible { transform: none; outline: 2px solid var(--sage-light); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 24px; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease), opacity 300ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }
.btn--sm { padding: 8px 12px; font-size: 14px; line-height: 20px; border-radius: 8px; }
.btn--cream { background: var(--cream); color: var(--forest); }
.btn--cream:hover { background: var(--sage-light); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.4); }
.btn--ghost:hover { background: rgba(243, 239, 231, 0.12); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Nav: floats off the top edge, sized to its content */
.nav { position: fixed; top: 16px; left: 50%; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(31, 43, 34, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.12); transform: translateX(-50%); }
.nav__mark { display: block; border-radius: 4px; }
.nav__mark img { width: 88px; height: auto; }
.nav__mark:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 4px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--page-x) 64px; background: var(--forest); overflow: hidden; }
.hero__inner { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; gap: 48px; }
.hero__copy { max-width: 680px; }

.from { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.from__avatar { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.24); }
.from__name { font-size: 14px; line-height: 20px; font-weight: 600; }
.from__sub { font-size: 12px; line-height: 16px; color: var(--sage); }

.hero__title { font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -0.01em; color: var(--cream); }
.hero__title > span { display: block; }
.underline { position: relative; width: fit-content; padding-bottom: 8px; }
.underline__stroke { position: absolute; left: 0; bottom: -8px; width: 100%; height: 16px; overflow: visible; fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; transform-origin: left center; }
.js .underline__stroke { transform: scaleX(0); animation: draw 900ms var(--ease) 900ms forwards; }
@keyframes draw { to { transform: scaleX(1); } }

.hero__sub { margin-top: 32px; max-width: 520px; font-size: 18px; line-height: 28px; }

/* Join form */
.join { margin-top: 32px; max-width: 480px; }
.join__label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sage-light); }
.join__row { display: flex; gap: 8px; padding: 4px; border-radius: 16px; background: rgba(243, 239, 231, 0.08); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.2); transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
.join__row:focus-within { background: rgba(243, 239, 231, 0.12); box-shadow: inset 0 0 0 1px rgba(220, 227, 209, 0.7), 0 0 0 3px rgba(220, 227, 209, 0.2); }
.join__input { flex: 1; min-width: 0; padding: 12px 12px; border: 0; border-radius: 12px; background: transparent; font-size: 16px; line-height: 24px; color: var(--cream); }
.join__input::placeholder { color: var(--sage); opacity: 1; }
.join__input:focus { outline: none; }
.join__btn { flex: none; }
.join__btn:focus-visible { outline-offset: 0; }
.join.is-error .join__row { box-shadow: inset 0 0 0 1px #E9B9A6, 0 0 0 3px rgba(233, 185, 166, 0.2); }
.join__msg { min-height: 24px; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--sage-light); }
.join.is-error .join__msg { color: #F2C7B6; }
.join__fine { font-size: 12px; line-height: 16px; color: var(--sage); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Loading: the button text gives way to a soft sweep, no spinner */
.join.is-loading .join__btn { pointer-events: none; position: relative; overflow: hidden; color: rgba(31, 43, 34, 0.55); }
.join.is-loading .join__btn::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.45); transform: translateX(-100%); animation: sweep 1100ms var(--ease) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

.join.is-done .join__row { display: none; }
.join.is-done .join__label { display: none; }
.join.is-done .join__msg { min-height: 0; margin-top: 0; font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--cream); }

/* Hero visual: Esther's photo with the decision card over it */
.hero__visual { position: relative; width: 100%; max-width: 480px; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--moss-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.deck { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.deck__ghost { position: absolute; left: 16px; right: 16px; top: -8px; height: 100%; border-radius: 24px; background: rgba(31, 43, 34, 0.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.14); }

.card { position: relative; padding: 24px; border-radius: 24px; background: rgba(31, 43, 34, 0.6); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.22), 0 24px 48px rgba(13, 10, 5, 0.25); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; }
.card:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 4px; }
.card.is-dragging { cursor: grabbing; }
.card.is-animating { transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.card__top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(243, 239, 231, 0.85); }
.card__count { font-weight: 400; font-variant-numeric: tabular-nums; }
.card__title { min-height: 72px; margin-top: 8px; font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--cream); }
.strike { --p: 0%; background-image: linear-gradient(var(--cream), var(--cream)); background-repeat: no-repeat; background-size: var(--p) 2px; background-position: left 58%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.strike.from-right { background-position: right 58%; }
.card.is-animating .strike { transition: background-size 400ms var(--ease); }
.card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.card__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(243, 239, 231, 0.8); }
.card__hint svg { width: 16px; height: 4px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.card__actions { display: flex; align-items: center; gap: 12px; }
.circle { display: grid; place-items: center; border: 0; border-radius: 9999px; cursor: pointer; transition: transform 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.circle svg { fill: currentColor; }
.circle:active { transform: scale(0.94); }
.circle:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }
.circle--no { width: 40px; height: 40px; background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.2px rgba(243, 239, 231, 0.6); }
.circle--no svg { width: 16px; height: 16px; }
.circle--no:hover { background: rgba(243, 239, 231, 0.12); }
.circle--yes { width: 48px; height: 48px; background: var(--cream); color: var(--forest); }
.circle--yes svg { width: 20px; height: 20px; }
.circle--yes:hover { background: var(--sage-light); transform: scale(1.04); }
.card__stamp { position: absolute; left: 24px; bottom: 40px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--cream); opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
.card__hint { transition: opacity 300ms var(--ease); }
.card.is-stamped .card__hint { opacity: 0; }
.card__stamp.is-on { opacity: 1; transform: none; }
.card__done { display: grid; justify-items: start; gap: 8px; }
.card__done[hidden] { display: none; }
.card__done .card__title { min-height: 0; margin: 0 0 8px; }

/* Tagline reveal */
.ask { padding: 96px var(--page-x); background: var(--mint); color: var(--forest); }
.ask__inner { max-width: 1200px; margin: 0 auto; display: grid; justify-items: center; gap: 64px; text-align: center; }
.ask__title { max-width: 680px; font-family: var(--serif); font-size: 36px; line-height: 40px; letter-spacing: -0.01em; }
.ask__title .line { display: block; }
.ask__title .w { transition: opacity 600ms var(--ease); }
.js .ask__title .w { opacity: 0.3; }
.js .ask__title .w.is-on { opacity: 1; }
.ask__list { list-style: none; display: grid; gap: 24px; justify-items: center; }
.ask__list li { display: flex; align-items: center; font-family: var(--serif); font-size: 36px; line-height: 40px; color: var(--olive); }
/* The brand strokes: flat where they meet the letters, falling a little as they leave.
   Length 0.42, gap 0.24 and weight 0.035 of the letter height (tokens.md section 10). */
.dash { --h: 26px; width: calc(var(--h) * 0.42); height: calc(var(--h) * 0.1); margin-right: calc(var(--h) * 0.24); background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M39 2C26 2 14 4 1 8' fill='none' stroke='%2359613A' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); align-self: center; }
.dash--r { margin-right: 0; margin-left: calc(var(--h) * 0.24); transform: scaleX(-1); }

/* Closing */
.close { padding: 96px var(--page-x); background: var(--olive); }
.close__inner { max-width: 1040px; margin: 0 auto; display: grid; gap: 48px; align-items: center; }
.photo--close { max-width: 440px; width: 100%; background: var(--moss-deep); }
.close__mark img { width: 220px; height: auto; }
.close__copy .join { margin-top: 40px; }
.join--olive .join__row { background: rgba(31, 43, 34, 0.24); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.24); }
.join--olive .join__input::placeholder { color: var(--sage-light); }
.join--olive .join__label { color: var(--cream); }
.join--olive .join__msg { color: var(--cream); }
.sign { margin-top: 40px; }
.sign__script { font-family: var(--script); font-size: 48px; line-height: 1; color: var(--cream); }
.sign__name { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--sage-light); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 40px var(--page-x); background: var(--forest); font-size: 12px; line-height: 16px; color: var(--sage); }
.foot img { width: 72px; height: auto; margin-right: auto; }

/* Motion: load and scroll reveals. Hidden only once the script has run. */
.js .rise { opacity: 0; transform: translateY(24px); animation: rise 800ms var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  :root { --page-x: 40px; }
  .hero__title { font-size: 60px; }
  .ask__title { font-size: 60px; line-height: 1; }
  .ask__list { grid-auto-flow: column; gap: 48px; }
  .ask__list li { font-size: 48px; line-height: 1; }
  .dash { --h: 34px; }
}

@media (min-width: 1024px) {
  :root { --page-x: 64px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; }
  .hero__title { font-size: 72px; }
  .hero__visual { justify-self: end; }
  .deck { left: -64px; right: auto; bottom: 40px; width: 380px; }
  .ask { padding: 96px var(--page-x); }
  .close__inner { grid-template-columns: 440px minmax(0, 1fr); gap: 96px; }
}

@media (max-width: 400px) {
  .join__row { flex-direction: column; }
  .join__btn { width: 100%; }
  .card__title { font-size: 24px; line-height: 32px; min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .reveal { animation: none; transform: none; opacity: 1; transition: opacity 300ms linear; }
  .js .underline__stroke { animation: none; transform: none; }
  .card.is-animating { transition: opacity 300ms linear; }
  .join.is-loading .join__btn::after { animation: none; transform: none; }
}

/* ===== Angle pages (v2): micro-decisions, smaller-yes, no-big-deal ===== */

/* Hero tones */
.hero--light { background: var(--mint); color: var(--forest); }
.hero--light .hero__title { color: var(--forest); }
.hero--light .hero__sub { color: var(--moss-deep); }
.hero--light .from__sub, .hero--light .slot { color: var(--olive); }
.hero--light .from__avatar { box-shadow: 0 0 0 1px rgba(31, 43, 34, 0.16); }
.hero--light .underline__stroke { stroke: var(--olive); }
.hero--olive { background: var(--olive); }
.hero--olive .from__sub, .hero--olive .slot, .hero--olive .join__fine { color: var(--sage-light); }
.hero--olive .underline__stroke { stroke: var(--sage-light); }
.hero__kicker { margin-top: 16px; font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--sage-light); }

.underline--inline { display: inline-block; padding-bottom: 0; }

/* Stacked hero: centered copy, wide photo below */
.hero--stack .hero__inner { justify-items: center; }
.hero--stack .hero__copy { display: grid; justify-items: center; text-align: center; }
.hero--stack .hero__sub { margin-left: auto; margin-right: auto; }
.hero--stack .join { width: 100%; text-align: left; }
.hero--stack .hero__visual { max-width: 1040px; }
.photo--wide { aspect-ratio: 4 / 5; }
.photo--wide img { object-position: 42% 30%; }

/* Light form */
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--moss-deep); }
.btn--forest:focus-visible { outline-color: var(--olive); }
.join--light .join__label { color: var(--forest); }
.join--light .join__row { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.18); }
.join--light .join__row:focus-within { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--olive), 0 0 0 3px rgba(89, 97, 58, 0.18); }
.join--light .join__input { color: var(--forest); }
.join--light .join__input::placeholder { color: var(--moss); }
.join--light .join__msg { color: var(--moss-deep); }
.join--light .join__fine { color: var(--olive); }
.join--light.is-error .join__row { box-shadow: inset 0 0 0 1px #B4532F, 0 0 0 3px rgba(180, 83, 47, 0.16); }
.join--light.is-error .join__msg { color: #8A3A22; }
.join--light.is-done .join__msg { color: var(--forest); }
.join--light.is-loading .join__btn { color: rgba(243, 239, 231, 0.55); }
.join--center { margin-left: auto; margin-right: auto; }

/* Picker card: one of Esther's option lists as a choice */
.pick { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.card--pick { cursor: default; touch-action: auto; }
.card--pick .card__title { min-height: 0; margin-top: 8px; }
.pick__value { position: relative; display: inline-block; }
.pick__value .underline__stroke { bottom: -10px; stroke: var(--sage-light); transform: scaleX(0); animation: none; transition: transform 500ms var(--ease); }
.pick__value.is-drawn .underline__stroke { transform: scaleX(1); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 24px; padding: 4px; border-radius: 12px; background: rgba(243, 239, 231, 0.1); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.18); }
.seg__opt { border: 0; border-radius: 8px; padding: 12px 4px; background: transparent; color: var(--cream); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.seg__opt:hover { background: rgba(243, 239, 231, 0.14); }
.seg__opt:active { transform: scale(0.98); }
.seg__opt:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }
.seg__opt[aria-checked="true"] { background: var(--cream); color: var(--forest); font-weight: 600; }
.pick__note { margin-top: 12px; font-size: 12px; line-height: 16px; color: rgba(243, 239, 231, 0.8); }

/* Statement section (large two line reveal on a dark green) */
.say { padding: 96px var(--page-x); background: var(--moss-deep); color: var(--cream); }
.say--mint { background: var(--mint); color: var(--forest); }
.say__inner { max-width: 1200px; margin: 0 auto; display: grid; justify-items: center; text-align: center; }
.say__title { max-width: 680px; font-family: var(--serif); font-size: 36px; line-height: 40px; letter-spacing: -0.01em; }
.say__title .line { display: block; }
.say__title .w { transition: opacity 600ms var(--ease); }
.js .say__title .w { opacity: 0.3; }
.js .say__title .w.is-on { opacity: 1; }

/* Habit tabs: Esther's own list, under her own headings */
.tabs { width: 100%; max-width: 880px; margin-top: 64px; text-align: left; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.tab { position: relative; border: 0; background: transparent; padding: 8px 0 16px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--olive); cursor: pointer; transition: color 300ms var(--ease); }
.tab:hover { color: var(--forest); }
.tab[aria-selected="true"] { color: var(--forest); font-weight: 600; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }
.tabs__panel { margin-top: 32px; }
.tabs__panel[hidden] { display: none; }
.habits { list-style: none; display: grid; }
.habits li { display: grid; gap: 4px; padding: 24px 0; }
.habits li + li { box-shadow: inset 0 1px 0 rgba(31, 43, 34, 0.14); }
.habits__line { font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--forest); }
.habits__opts { font-size: 14px; line-height: 20px; color: var(--olive); }
.js .tabs__panel:not([hidden]) .habits li { animation: rise 600ms var(--ease) both; }
.js .tabs__panel:not([hidden]) .habits li:nth-child(2) { animation-delay: 60ms; }
.js .tabs__panel:not([hidden]) .habits li:nth-child(3) { animation-delay: 120ms; }
.js .tabs__panel:not([hidden]) .habits li:nth-child(4) { animation-delay: 180ms; }
.tabs__note { margin-top: 24px; font-size: 12px; line-height: 16px; color: var(--olive); text-align: center; }

/* Closing, centered */
.end { padding: 96px var(--page-x); background: var(--forest); text-align: center; }
.end--olive { background: var(--olive); }
.end--moss { background: var(--moss-deep); }
.end__inner { max-width: 680px; margin: 0 auto; display: grid; justify-items: center; }
.end__mark { width: 160px; height: auto; }
.end__title { margin-top: 40px; font-family: var(--serif); font-size: 36px; line-height: 40px; color: var(--cream); }
.end .join { width: 100%; text-align: left; }
.end__title .line { display: block; }
.end .sign { margin-top: 40px; }

@media (min-width: 640px) {
  .say__title { font-size: 60px; line-height: 1; }
  .end__title { font-size: 48px; line-height: 1; }
  .habits li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; }
  .habits__opts { text-align: right; }
}

@media (min-width: 1024px) {
  .hero--flip .hero__inner { grid-template-columns: 440px minmax(0, 1fr); gap: 96px; }
  .hero--flip .hero__visual { order: -1; justify-self: start; max-width: 440px; }
  .hero--stack .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero--stack .hero__visual { justify-self: center; }
  .pick { left: auto; right: -40px; bottom: 40px; width: 380px; }
  .photo--wide { aspect-ratio: 3 / 2; }
  .photo--wide img { object-position: center; }
}

@media (max-width: 400px) {
  .seg__opt { font-size: 12px; line-height: 20px; padding: 12px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .tabs__panel:not([hidden]) .habits li { animation: none; }
  .tab::after, .pick__value .underline__stroke { transition: none; }
}

/* ===== Smaller yes v3: sections that show what the newsletter shares ===== */
.hero--light .hero__kicker { color: var(--olive); }
.section { padding: 96px var(--page-x); }
.section--paper { background: var(--paper); color: var(--forest); }
.section--mint { background: var(--mint); color: var(--forest); }
.section--olive { background: var(--olive); color: var(--cream); }
.section__inner { max-width: 1120px; margin: 0 auto; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--olive); }
.eyebrow--light { color: var(--sage-light); }
.h2 { margin-top: 8px; font-family: var(--serif); font-size: 36px; line-height: 40px; letter-spacing: -0.01em; color: var(--forest); }

.num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--forest); color: var(--cream); font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Inside every issue */
.inside { display: grid; gap: 48px; align-items: center; }
.issue { position: relative; width: 100%; max-width: 440px; justify-self: center; padding: 32px; border-radius: 24px; background: var(--cream); color: var(--forest); box-shadow: 0 24px 48px rgba(46, 40, 25, 0.1), inset 0 0 0 1px rgba(46, 40, 25, 0.06); }
.issue__head { display: flex; align-items: center; justify-content: space-between; }
.issue__mark { width: 72px; height: auto; }
.issue__tag { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--olive); }
.issue .from { margin: 24px 0 0; }
.issue .from__sub { color: var(--olive); }
.issue__subject { margin-top: 16px; font-family: var(--serif); font-size: 30px; line-height: 36px; }
.issue__part { position: relative; margin-top: 24px; padding-left: 40px; }
.issue__label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--olive); }
.issue__line { margin-top: 4px; font-family: var(--serif); font-size: 24px; line-height: 32px; }
.issue__text { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--moss-deep); }
.issue .slot { color: var(--olive); }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.version { padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.16); }
.version--yes { background: var(--forest); color: var(--cream); box-shadow: none; }
.version__k { font-size: 12px; line-height: 16px; color: var(--olive); }
.version--yes .version__k { color: var(--sage-light); }
.version__v { margin-top: 2px; font-family: var(--serif); font-size: 24px; line-height: 32px; }
.issue .sign { margin-top: 24px; padding-left: 40px; }
.issue .sign__script { font-size: 36px; color: var(--forest); }

.format { list-style: none; display: grid; gap: 32px; margin-top: 40px; }
.format li { position: relative; padding-left: 48px; }
.format .num { top: 0; width: 32px; height: 32px; font-size: 14px; line-height: 20px; }
.format__title { font-family: var(--serif); font-size: 24px; line-height: 32px; color: var(--forest); }
.format__text { margin-top: 4px; max-width: 480px; color: var(--moss-deep); }

/* Topics */
.topics__head { display: grid; justify-items: center; text-align: center; }
.tabs--wide { max-width: 1120px; margin: 40px auto 0; }
.topic-grid { list-style: none; display: grid; gap: 16px; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.08); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.topic:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.14), 0 16px 32px rgba(46, 40, 25, 0.08); }
.topic__cat { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--olive); }
.topic__title { font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--forest); text-wrap: balance; }
.topic__pair { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--forest); }
.topic__src { margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 16px; color: var(--moss-deep); }
.js .tabs__panel:not([hidden]) .topic { animation: rise 600ms var(--ease) both; }
.js .tabs__panel:not([hidden]) .topic:nth-child(2) { animation-delay: 60ms; }
.js .tabs__panel:not([hidden]) .topic:nth-child(3) { animation-delay: 120ms; }

/* About */
.about { display: grid; gap: 48px; align-items: center; }
.about .photo { width: 100%; max-width: 400px; }
.about__title { margin-top: 8px; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--cream); }
.about__text { margin-top: 24px; max-width: 520px; font-size: 18px; line-height: 28px; color: var(--cream); }
.about__quote { margin-top: 32px; max-width: 520px; font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--sage-light); }
.about .sign { margin-top: 32px; }

@media (min-width: 640px) {
  .h2 { font-size: 48px; line-height: 1; }
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic { min-height: 216px; }
  .about__title { font-size: 60px; }
}

@media (min-width: 1024px) {
  .inside { grid-template-columns: 440px minmax(0, 1fr); gap: 96px; }
  .about { grid-template-columns: 400px minmax(0, 1fr); gap: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .tabs__panel:not([hidden]) .topic { animation: none; }
  .topic:hover { transform: none; }
}

/* ===== Founder letter page (live index): The Next Best Decision Diaries ===== */
.lt { background: var(--paper); color: var(--forest); }
.lt-col { width: 100%; max-width: 680px; margin: 0 auto; }
.lt-hero { padding: 40px var(--page-x) 64px; background: var(--mint); }
.lt-mark { display: block; width: 88px; height: auto; margin: 0 auto 24px; }
.lt-eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--olive); }
.lt-avatar { flex: none; width: 32px; height: 32px; border-radius: 9999px; object-fit: cover; box-shadow: 0 0 0 2px #FFFFFF; }
.lt-title { margin-top: 16px; text-align: center; font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -0.015em; color: var(--forest); }
.lt-promise { margin-top: 24px; text-align: center; font-family: var(--serif); font-size: 24px; line-height: 32px; color: var(--olive); text-wrap: balance; }
.lt-photo { margin-top: 40px; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--moss-deep); }
.lt-photo--portrait { aspect-ratio: 4 / 5; max-width: 520px; margin-left: auto; margin-right: auto; }
.lt-photo--portrait img { object-position: 50% 40%; }
.lt-photo img, .lt-inline img { width: 100%; height: 100%; object-fit: cover; }

/* Form with names */
.lt-form { max-width: none; margin-top: 32px; }
.lt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lt-field--email { grid-column: 1 / -1; }
.lt-field { display: grid; gap: 8px; }
.lt-field label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--forest); }
.lt-opt { font-weight: 400; color: var(--olive); }
.lt-field input { width: 100%; padding: 12px 16px; border: 0; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.18); font-size: 16px; line-height: 24px; color: var(--forest); transition: box-shadow 300ms var(--ease); }
.lt-field input::placeholder { color: var(--moss); opacity: 1; }
.lt-field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--olive), 0 0 0 3px rgba(89, 97, 58, 0.18); }
.lt-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #B4532F, 0 0 0 3px rgba(180, 83, 47, 0.16); }
.lt-submit { width: 100%; margin-top: 16px; padding: 16px 24px; border-radius: 12px; }
.lt-form .join__msg { min-height: 20px; }
.join.is-done .lt-fields, .join.is-done .lt-submit { display: none; }
.lt-form--dark .lt-field label { color: var(--cream); }
.lt-form--dark .lt-opt { color: var(--sage); }
.lt-form--dark .lt-field input { background: rgba(243, 239, 231, 0.08); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.24); color: var(--cream); }
.lt-form--dark .lt-field input::placeholder { color: var(--sage); }
.lt-form--dark .lt-field input:focus { box-shadow: inset 0 0 0 1px var(--sage-light), 0 0 0 3px rgba(220, 227, 209, 0.2); }
.lt-form--dark .join__msg { color: var(--sage-light); }
.lt-form--dark.is-done .join__msg { color: var(--cream); }

/* Letter */
.lt-letter { padding: 80px var(--page-x) 48px; }
.lt-hi { font-family: var(--serif); font-size: 36px; line-height: 40px; color: var(--forest); }
.lt-p { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--moss-deep); }
.lt-quote { margin: 40px 0 0; padding: 0; }
.lt-quote::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 16px; background: var(--olive); }
.lt-quote p { font-family: var(--serif); font-size: 30px; line-height: 36px; color: var(--forest); text-wrap: balance; }
.lt-inline { margin: 40px 0 0; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--moss-deep); }

/* Every week */
.lt-week { padding: 0 var(--page-x) 64px; }
.lt-box { padding: 32px 24px; border-radius: 24px; background: var(--mint); }
.lt-box__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--olive); }
.lt-lines { list-style: none; display: grid; gap: 16px; margin-top: 16px; }
.lt-lines li { display: flex; align-items: baseline; gap: 16px; }
.lt-num { flex: none; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--forest); }
.lt-lines p { font-family: var(--serif); font-size: 24px; line-height: 32px; color: var(--forest); }

/* Why now */
.lt-why { padding: 80px var(--page-x); background: var(--forest); color: var(--cream); }
.lt-kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sage-light); }
.lt-why__title { margin-top: 16px; font-family: var(--serif); font-size: 36px; line-height: 40px; color: var(--cream); text-wrap: balance; }
.lt-points { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.lt-points li { position: relative; padding-left: 20px; font-size: 18px; line-height: 28px; color: var(--sage-light); }
.lt-points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 9999px; background: var(--sage-light); }

/* Sign-off */
.lt-sign { padding: 64px var(--page-x) 96px; }
.lt-script { margin-top: 8px; font-family: var(--script); font-size: 48px; line-height: 1.1; color: var(--forest); }
.lt-name { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--olive); }
.lt-ps { margin-top: 32px; color: var(--forest); }

@media (min-width: 640px) {
  .lt-title { font-size: 72px; }
  .lt-promise { font-size: 30px; line-height: 36px; }
  .lt-box { padding: 32px; }
  .lt-why__title { font-size: 48px; line-height: 1; }
  .lt-quote p { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1024px) {
  .lt-title { font-size: 96px; letter-spacing: -0.02em; }
  .lt-letter { padding-top: 96px; }
}
