/*
 * Chef Lu's site: one shared stylesheet.
 * Tokens are copied from Chef Lu's app pack (persona_apps src/personas/chef-lu/persona.ts, theme.light,
 * theme.fonts, theme.radii) and the shared type scale (src/theme/tokens.css). See design/spec.md.
 * No JavaScript except the buy pages' own script (js/buy.js, styles in buy.css); everything else is a link or a <details>.
 */

/* ---------- Fonts (self-hosted latin subsets of the app's three families) ---------- */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/young-serif-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/literata-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/literata-latin-400-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Chef Lu pack, theme.light */
  --color-bg: #f6f1e7;
  --color-bg-elev: #fbf8f1;
  --color-surface: #ffffff;
  --color-ink: #1c2622;
  --color-ink-muted: #48544f;
  --color-ink-faint: #5c6761;
  --color-line: rgba(28, 38, 34, 0.08);
  --color-line-strong: rgba(28, 38, 34, 0.14);
  --color-brand: #24463c;
  --color-brand-hover: #1b372f;
  --color-brand-ink: #f6ebd3;
  --color-accent: #e2873a;
  --color-accent-hover: #cf7629;
  --color-accent-ink: #1c2622;
  --color-accent-text: #a0501a;
  --color-badge: #f7e3cc;
  --color-badge-ink: #8a4a15;
  --color-success: #3f7d4e;
  --gradient-glow: radial-gradient(circle at 50% 20%, rgba(226, 135, 58, 0.16), transparent 60%);

  /* Chef Lu pack, theme.fonts */
  --font-display: 'Young Serif', Georgia, serif;
  --font-lu: 'Literata', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;

  /* Shared type scale (src/theme/tokens.css), px by role */
  --text-body: 17px;
  --text-control: 16px;
  --text-ui: 15px;
  --text-caption: 13px;
  --text-tag: 13px;
  --text-title: 22px;
  --text-h2: 30px;
  --text-h1: 38px;
  --text-hero: 44px;

  /* Chef Lu pack, theme.radii (md 12, lg 22) */
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --gutter: 20px;
  --page-max: 1120px;
  --read-max: 40rem;
  --shadow-soft: 0 1px 2px rgba(28, 38, 34, 0.06), 0 8px 24px rgba(28, 38, 34, 0.08);
  --shadow-button: 0 6px 16px rgba(36, 70, 60, 0.22);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --text-h2: 36px;
    --text-h1: 52px;
    --text-hero: 64px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-title);
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 0.9em;
}

a {
  color: var(--color-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-ink);
}

:focus-visible {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 3px;
}

strong {
  font-weight: 600;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--color-brand);
  color: var(--color-brand-ink);
  border-radius: var(--radius-md);
  font-size: var(--text-ui);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--color-brand-ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.read {
  max-width: var(--read-max);
}

/* Small uppercase label, as in the app's page headers ("STORE", "RECIPES") */
.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: var(--text-tag);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.lede {
  margin-top: 14px;
  font-size: 18px;
  color: var(--color-ink-muted);
}

.muted {
  color: var(--color-ink-muted);
}

.small {
  font-size: var(--text-ui);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-top: 8px;
  padding-bottom: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.brand:hover {
  color: var(--color-ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.brand .brand-mark {
  border-radius: 8px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 -12px 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-muted);
  font-size: var(--text-ui);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-ink);
  background: var(--color-line);
}

.site-nav a[aria-current='page'] {
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

@media (min-width: 600px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-nav ul {
    margin: 0;
  }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-brand-ink);
  box-shadow: var(--shadow-button);
  font-family: var(--font-sans);
  font-size: var(--text-control);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--color-brand-hover);
  color: var(--color-brand-ink);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button-block {
  display: flex;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 600px) {
  .button-block {
    display: inline-flex;
    width: auto;
    min-width: 240px;
  }
}

.cta {
  margin-top: 28px;
}

.cta-note {
  margin-top: 12px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

/* Text link with an arrow, used for the one secondary move on a page */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding: 40px 0;
}

.section-tight {
  padding: 28px 0;
}

.section + .section {
  border-top: 1px solid var(--color-line);
}

.section-head {
  margin-bottom: 20px;
}

.section-head p {
  margin-top: 10px;
  color: var(--color-ink-muted);
}

@media (min-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
}

/* Page title block for inner pages, with the app's warm glow behind it */
.page-head {
  padding: 40px 0 8px;
  background: var(--gradient-glow) no-repeat;
  background-size: 100% 360px;
  background-position: 0 -80px;
}

.page-head .lede {
  max-width: var(--read-max);
}

@media (min-width: 768px) {
  .page-head {
    padding: 72px 0 16px;
  }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background: var(--gradient-glow) no-repeat;
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center 8%;
}

/* Photo fades into the cream page, as on the app's cover */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to bottom, rgba(246, 241, 231, 0), var(--color-bg));
}

.hero-text {
  position: relative;
  margin-top: -36px;
  padding-bottom: 16px;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1;
}

.tagline {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-accent-text);
}

.hero .intro {
  margin-top: 18px;
  max-width: 34rem;
}

@media (min-width: 900px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 24px;
  }
  .hero-photo {
    order: 2;
  }
  .hero-photo img {
    aspect-ratio: 4 / 4.6;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
  }
  .hero-photo::after {
    display: none;
  }
  .hero-text {
    margin-top: 0;
    padding-bottom: 0;
  }
  .tagline {
    font-size: 28px;
  }
  .hero .intro {
    font-size: 19px;
  }
}

/* Full-bleed photo on the phone: the wrap's gutter is removed for the photo only */
@media (max-width: 899px) {
  .hero .wrap {
    padding: 0;
  }
  .hero-text {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* ---------- Feature rows (Home: what cooking with Lu is like) ---------- */
.features {
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
}

.feature h3 {
  font-size: 26px;
}

.feature p {
  margin-top: 10px;
  color: var(--color-ink-muted);
}

.feature .phone {
  width: 236px;
  justify-self: center;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
  }
  .feature {
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 28px;
  }
  .feature .phone {
    width: 230px;
    align-self: end;
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  .feature h3 {
    font-size: 24px;
  }
  .feature p {
    font-size: var(--text-ui);
  }
}

/* ---------- Phone frame for real app screenshots ---------- */
.phone {
  margin: 0;
  padding: 7px;
  border-radius: 40px;
  background: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.phone img {
  width: 100%;
  border-radius: 33px;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  background: var(--color-bg);
}

/* A crop of an app screen (sign-in fields, code entry) */
.screen-crop {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.screen-crop img {
  width: 100%;
}

/* ---------- Callouts ---------- */
.kids {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.kids h2 {
  font-size: 26px;
}

.kids p {
  color: var(--color-ink-muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-badge);
  color: var(--color-badge-ink);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .kids {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
  }
}

/* ---------- A note from Lu ---------- */
.note {
  display: grid;
  gap: 28px;
}

.note-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: center 0%;
  border-radius: var(--radius-lg);
}

/* Lu's own words are set in Literata, the face the app uses for her replies */
.lu-words {
  margin: 0;
  font-family: var(--font-lu);
  font-size: 19px;
  line-height: 1.65;
}

.lu-words p + p {
  margin-top: 1em;
}

.lu-words em {
  font-style: italic;
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 20px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .note {
    grid-template-columns: 0.8fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .lu-words {
    font-size: 20px;
  }
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
}

.principles h3 {
  font-size: 21px;
}

.principles p {
  margin-top: 8px;
  color: var(--color-ink-muted);
}

@media (min-width: 768px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------- Closing band ---------- */
.closing {
  text-align: center;
  background: var(--gradient-glow) no-repeat;
  background-size: 100% 100%;
}

.closing h2 {
  max-width: 18ch;
  margin: 0 auto;
}

.languages {
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
  max-width: 34rem;
  margin: 0 auto 28px;
}

/* ---------- Get the app ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg-elev);
  color: var(--color-ink);
  font-size: var(--text-ui);
  font-weight: 500;
  text-decoration: none;
}

.jump a:hover {
  background: var(--color-surface);
}

.jump svg {
  width: 16px;
  height: 16px;
}

.callout {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: var(--read-max);
}

.callout svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-accent-text);
}

.platform {
  scroll-margin-top: 16px;
}

.platform-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-title svg {
  width: 28px;
  height: 28px;
  color: var(--color-ink-muted);
}

/* Numbered steps, each with its picture */
.steps {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  gap: 16px;
  align-content: start;
}

.step-text {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-text::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-brand-ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.step-text p {
  padding-top: 4px;
}

.step-text .aside {
  margin-top: 10px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.step-pic {
  margin: 0 0 0 50px;
  max-width: 280px;
}

.step-pic.phone {
  max-width: 220px;
}

.step-pic.screen-crop {
  max-width: 300px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 40px;
  }
  .steps-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .step {
    grid-template-rows: auto 1fr;
  }
  .step-text {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-text p {
    padding-top: 0;
  }
  .step-pic {
    margin: 0;
    align-self: end;
  }
  .step-pic.phone {
    max-width: 200px;
  }
  .step > * {
    min-width: 0;
  }
}

/* Drawn browser controls. Simple shapes, not copies of Apple or Google screens. */
.illo {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #e9e5dc;
  border: 1px solid var(--color-line);
  font-family: -apple-system, system-ui, 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #1c1c1e;
}

.illo-stack {
  display: grid;
  gap: 10px;
}

.ui-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ui-address {
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.12);
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-address.left {
  text-align: left;
}

.ui-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #3a3a3c;
}

.ui-btn svg {
  width: 18px;
  height: 18px;
}

/* The control to tap: Lu's accent ring */
.ui-hot {
  position: relative;
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 0 0 2.5px var(--color-accent);
}

.ui-menu {
  display: grid;
  gap: 0;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
}

.ui-row svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: #3a3a3c;
}

.ui-row.ui-hot {
  box-shadow: inset 0 0 0 2px var(--color-accent);
  background: #fff4e8;
  font-weight: 600;
}

/* Grey bars stand in for the other menu items, so the one to tap stands out */
.ui-ghost {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(60, 60, 67, 0.16);
}

.ui-row .ui-ghost {
  flex: 1;
  max-width: 120px;
}

.ui-ghost-icon {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: rgba(60, 60, 67, 0.14);
}

.ui-sheet {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ui-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

.ui-sheet-head span:first-child,
.ui-sheet-head span:last-child {
  font-weight: 400;
  color: #3a3a3c;
}

.ui-sheet-head .ui-hot-text {
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--color-accent);
  background: #fff4e8;
  color: #1c1c1e;
  font-weight: 600;
}

.ui-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.08);
}

.ui-app img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.ui-app small {
  display: block;
  color: #6c6c70;
  font-size: 12px;
}

.ui-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--color-accent);
  background: #fff4e8;
  font-weight: 600;
}

.ui-toggle {
  flex: none;
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: #34a853;
}

.ui-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ui-share-apps {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ui-share-apps span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(60, 60, 67, 0.12);
}

/* Home screens */
.ui-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  padding: 18px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, #cdd8d2 0%, #e9dcc6 100%);
  justify-items: center;
}

.ui-home .ui-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.5);
}

.ui-home.android .ui-icon {
  border-radius: 50%;
}

.ui-home figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
}

.ui-home .ui-lu img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow:
    0 0 0 2.5px var(--color-accent),
    0 4px 10px rgba(0, 0, 0, 0.15);
}

.ui-home.android .ui-lu img {
  border-radius: 50%;
}

.ui-home .ui-lu figcaption {
  font-weight: 600;
  white-space: nowrap;
}

/* The app's own install offer (InstallPrompt), drawn from its layout and wording */
.ui-banner {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px var(--color-line);
  font-family: var(--font-sans);
  color: var(--color-ink);
}

.ui-banner > svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--color-accent);
}

.ui-banner strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.ui-banner p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-ink-muted);
}

.ui-banner-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}

.ui-banner-actions span {
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--color-ink-muted);
}

.ui-banner-actions .ui-install {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 500;
  box-shadow:
    0 0 0 2px var(--color-surface),
    0 0 0 4px var(--color-accent);
}

/* A cropped welcome screen with a drawn address bar under it */
.browser-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line-strong);
  background: #e9e5dc;
  box-shadow: var(--shadow-soft);
}

.browser-shot img {
  width: 100%;
}

.browser-shot .ui-bar {
  margin: 8px;
}

.good-to-know {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.good-to-know li {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
}

.good-to-know h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.35;
}

.good-to-know p {
  margin-top: 6px;
  color: var(--color-ink-muted);
}

@media (min-width: 768px) {
  .good-to-know {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.next p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}

/* ---------- Create an account ---------- */
.hello {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(226, 135, 58, 0.25);
}

@media (min-width: 768px) {
  .portrait {
    width: 112px;
    height: 112px;
  }
}

.questions {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-ui);
}

.questions li {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
}

.questions strong {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
}

.questions span {
  color: var(--color-ink-muted);
}

.account-steps .step {
  max-width: 720px;
}

.account-steps .step-pic {
  max-width: 260px;
}

.account-steps .step-pic.screen-crop {
  max-width: 320px;
}

@media (min-width: 900px) {
  .account-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .account-steps .step {
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-rows: auto;
    gap: 48px;
    max-width: none;
    align-items: start;
  }
  .account-steps .step-text {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
  }
  .account-steps .step-text p {
    padding-top: 4px;
  }
  .account-steps .step-pic {
    align-self: start;
  }
  .account-steps .step-pic.screen-crop {
    max-width: 260px;
  }
}

.data-note {
  max-width: var(--read-max);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
}

.data-note h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.data-note p {
  color: var(--color-ink-muted);
}

/* ---------- Plans ---------- */
.plans {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-ui);
  line-height: 1.45;
}

.plans th,
.plans td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line-strong);
}

.plans thead th {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: 12px;
}

.plans tbody th {
  font-weight: 500;
  color: var(--color-ink);
  width: 34%;
}

.plans td {
  color: var(--color-ink-muted);
}

.plans .yes,
.plans .no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plans .yes svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

.plans .no {
  color: var(--color-ink-faint);
}

.plans .book-title {
  font-style: italic;
}

/* The column for the plan most cooks will want gets no extra weight: three equal columns, no "popular" badge */
.plans-wrap {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 8px 8px 0;
}

.plans tbody tr:last-child th,
.plans tbody tr:last-child td {
  border-bottom: 0;
}

/* Phone: each row becomes a block. The feature reads first, then the three plans side by side. */
@media (max-width: 767px) {
  .plans,
  .plans thead,
  .plans tbody,
  .plans tr {
    display: block;
  }
  .plans-wrap {
    padding: 0;
  }
  .plans thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--color-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 1px 0 var(--color-ink);
  }
  .plans thead tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans thead th {
    border-bottom: 0;
  }
  .plans thead td {
    display: none;
  }
  .plans thead th {
    font-size: 20px;
    padding: 16px 12px 10px;
  }
  .plans tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--color-line-strong);
  }
  .plans tbody tr:last-child {
    border-bottom: 0;
  }
  .plans tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 14px 12px 4px;
    border: 0;
  }
  .plans td {
    padding: 4px 12px 14px;
    border: 0;
    font-size: 14px;
  }
}

.plan-notes {
  display: grid;
  gap: 14px;
  max-width: var(--read-max);
  margin-top: 28px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.plan-notes .soon {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-ink);
}

/* ---------- Books ---------- */
.book {
  display: grid;
  gap: 32px;
}

.book-cover img {
  width: 100%;
  max-width: 340px;
  border-radius: 6px;
  box-shadow:
    0 2px 4px rgba(28, 38, 34, 0.1),
    0 18px 40px rgba(28, 38, 34, 0.18);
}

.book h2 {
  font-size: var(--text-h2);
}

.book-sub {
  margin-top: 8px;
  font-size: 18px;
  color: var(--color-ink-muted);
}

.ticks {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line-strong);
}

.ticks li:last-child {
  border-bottom: 0;
}

.ticks svg {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--color-accent-text);
}

.book-extras {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.book-extras section {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
}

.book-extras h3 {
  font-size: 21px;
}

.book-extras p {
  margin-top: 6px;
  color: var(--color-ink-muted);
}

.pages {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 4px 0 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.pages li {
  flex: none;
  width: 62%;
  max-width: 240px;
  scroll-snap-align: start;
}

.pages img {
  width: 100%;
  border-radius: 4px;
  box-shadow:
    0 1px 3px rgba(28, 38, 34, 0.1),
    0 10px 24px rgba(28, 38, 34, 0.12);
}

.pages figcaption {
  margin-top: 8px;
  font-size: var(--text-caption);
  color: var(--color-ink-muted);
}

@media (min-width: 900px) {
  .book {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .book-extras {
    grid-template-columns: 1fr 1fr;
  }
  .pages {
    overflow: visible;
  }
  .pages li {
    width: auto;
    flex: 1;
    max-width: 220px;
  }
}

.how-to {
  display: grid;
  gap: 28px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.how-to h3 {
  font-size: 24px;
}

.how-to ol {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how-to ol li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.how-to ol li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-badge);
  color: var(--color-badge-ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.how-to .phone {
  width: 220px;
  justify-self: center;
}

@media (min-width: 768px) {
  .how-to {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
    align-items: center;
    padding: 36px 40px;
  }
  .how-to .phone {
    width: 240px;
  }
}

/* Lu's 100 Moods: type-only cover tile until the chosen cover is exported */
.title-tile {
  display: grid;
  align-content: space-between;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 680 / 967;
  padding: 28px 26px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 80% 15%, rgba(226, 135, 58, 0.35), transparent 55%),
    var(--color-brand);
  color: var(--color-brand-ink);
  box-shadow:
    0 2px 4px rgba(28, 38, 34, 0.1),
    0 18px 40px rgba(28, 38, 34, 0.18);
}

.title-tile small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.title-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.02;
}

.title-tile span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-lu);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
}

.coming {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-badge);
  color: var(--color-badge-ink);
  font-weight: 600;
  font-size: var(--text-ui);
}

.book-subtitle {
  margin-top: 8px;
  font-family: var(--font-lu);
  font-style: italic;
  font-size: 18px;
  color: var(--color-ink-muted);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.email-link svg {
  flex: none;
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .email-link {
    font-size: 34px;
  }
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg-elev);
  color: var(--color-ink);
  font-size: var(--text-ui);
  font-weight: 500;
  text-decoration: none;
}

.social a:hover {
  background: var(--color-surface);
}

.social svg {
  width: 18px;
  height: 18px;
}

/* ---------- 404 ---------- */
.lost {
  padding: 72px 0 96px;
  text-align: center;
  background: var(--gradient-glow) no-repeat;
}

.lost .portrait {
  margin: 0 auto 24px;
}

.lost p {
  margin: 14px auto 0;
  max-width: 30rem;
  color: var(--color-ink-muted);
}

.lost .actions {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 36px 0 44px;
  border-top: 1px solid var(--color-line-strong);
  background: var(--color-bg-elev);
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.site-footer .ai-note {
  color: var(--color-ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 14px 0 0 -10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--color-ink-muted);
}

.footer-links a:hover {
  color: var(--color-ink);
}

.copyright {
  margin-top: 6px;
  font-size: var(--text-caption);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* ---------- Small helpers (no inline styles: the site's CSP may forbid them) ---------- */
.ui-ghost.w80 {
  max-width: 80px;
}
.ui-ghost.w90 {
  max-width: 90px;
}
.pic-stack {
  display: grid;
  gap: 14px;
}
.kids p {
  margin-top: 10px;
}
.note-photo {
  margin: 0;
}
.next p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.next .link-arrow {
  font-family: var(--font-sans);
  font-size: var(--text-body);
}
.book > * {
  min-width: 0;
}

/* ---------- Follow Lu (renders only when Lu's social list is filled) ---------- */
.follow-lu h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.follow-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.follow-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
  color: var(--color-ink);
  text-decoration: none;
}

.follow-list a:hover {
  box-shadow: inset 0 0 0 1px var(--color-ink-faint);
}

.follow-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--color-accent-text);
}

.follow-list strong {
  font-weight: 600;
}

.follow-list .handle {
  color: var(--color-ink-muted);
}

@media (min-width: 600px) {
  .follow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-follow {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 12px -10px;
  color: var(--color-ink);
}

.footer-follow span {
  padding: 0 8px 0 10px;
  font-weight: 500;
}

.footer-follow a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-ink-muted);
}

.footer-follow a:hover {
  color: var(--color-ink);
  background: var(--color-line);
}

.footer-follow svg {
  width: 20px;
  height: 20px;
}

.contact {
  max-width: 44rem;
}

.contact > * {
  width: 100%;
}

.contact > .portrait,
.contact > .email-link {
  width: auto;
}

/* ---------- Books: buying on the site ---------- */
.buy {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.buy-how {
  margin-top: 14px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.in-app {
  display: grid;
  gap: 28px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
}

.in-app h3 {
  font-size: 22px;
}

.in-app .phone {
  width: 200px;
  justify-self: center;
}

@media (min-width: 768px) {
  .in-app {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 48px;
    align-items: center;
    padding: 32px 40px;
  }
}

.book-cover {
  margin: 0;
}
.buy {
  margin-top: 20px;
  margin-bottom: 8px;
}
@media (max-width: 899px) {
  .book-cover img,
  .title-tile {
    max-width: 200px;
  }
}
@media (max-width: 899px) {
  .title-tile {
    padding: 20px 18px;
  }
  .title-tile strong {
    font-size: 30px;
  }
  .title-tile span {
    font-size: 13px;
  }
}
.next {
  box-shadow: none;
  border: 1px solid var(--color-line-strong);
}
@media (min-width: 600px) {
  .follow-list {
    display: flex;
    flex-wrap: wrap;
  }
  .follow-list a {
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .plans {
    table-layout: fixed;
  }
  .plans thead td {
    width: 31%;
  }
}

/* ==========================================================================
   Book-first (20 Nov 2026): Home with the book, the shelf, the book pages.
   From the design (sites/lu/design/book-first/_src/book-first.css); the
   checkout-form rules wait for live checkout but are kept with the rest.
   ========================================================================== */
/* ==========================================================================
   Book-first delta (app-designer, 20 Nov 2026). Everything below is new; nothing above is changed.
   Same tokens, fonts and components as the built site. No JavaScript is needed for any of it:
   the order form swaps its fields with :has() on the checked radio (Safari 15.4+, Chrome 105+).
   ========================================================================== */

/* ---------- Form controls (the site's first inputs; sized like the app: 16px+ text, 52px tall) ---------- */
.field {
  display: grid;
  gap: 6px;
}

.field label,
.letters label {
  font-size: var(--text-ui);
  font-weight: 600;
  color: var(--color-ink);
}

.optional {
  font-weight: 400;
  color: var(--color-ink-muted);
}

.field input,
.field textarea,
.letters input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(28, 38, 34, 0.5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-control);
  line-height: 1.4;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.letters input:focus-visible {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 1px;
}

.help {
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--color-ink-muted);
}

/* Errors: the accent text colour (AA on surface) plus an icon and words; never colour alone */
.field.has-error input {
  border: 2px solid var(--color-accent-text);
}

.field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: var(--text-ui);
  font-weight: 500;
  color: var(--color-accent-text);
}

.field-error svg,
.order-alert > svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.button > svg {
  width: 20px;
  height: 20px;
}

/* A quieter button for secondary saves (thank-you letters) */
.button-quiet {
  background: var(--color-surface);
  color: var(--color-brand);
  box-shadow: inset 0 0 0 1.5px var(--color-brand);
}

.button-quiet:hover {
  background: var(--color-bg-elev);
  color: var(--color-brand);
}

/* ---------- Home: Lu, then her book, in the hero ---------- */
.hero-books .hero-photo img {
  aspect-ratio: 4 / 3.7;
  object-position: center 10%;
}

.hero-book {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.hero-book img {
  width: 84px;
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(28, 38, 34, 0.1),
    0 8px 18px rgba(28, 38, 34, 0.16);
}

.hero-book-text {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.hero-book .eyebrow {
  margin: 0;
}

.hero-book-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}

.hero-book-line {
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-ink-muted);
}

.hero-book-meta {
  font-size: var(--text-ui);
  font-weight: 600;
}

.hero-books .cta {
  margin-top: 20px;
}

@media (min-width: 900px) {
  .hero-book {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 22px 18px 18px;
    margin-top: 32px;
  }
  .hero-book img {
    width: 112px;
  }
  .hero-book-title {
    font-size: 26px;
  }
}

/* ---------- Home: the app, coming soon ---------- */
.soon {
  max-width: 46rem;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line-strong);
}

.soon h2 {
  font-size: 28px;
}

.soon-photo {
  margin: -6px -4px 20px;
}

.soon-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-md, 12px);
}

.soon-words {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
  align-items: start;
}

.soon-words .avatar {
  width: 48px;
  height: 48px;
}

.soon-words .lu-words {
  font-size: 18px;
}

@media (min-width: 768px) {
  .soon {
    padding: 40px 44px;
  }
  .soon h2 {
    font-size: 34px;
  }
  .soon-words .lu-words {
    font-size: 19px;
  }
}

/* ---------- Letters sign-up (needs an endpoint; hidden while letters_endpoint is empty) ---------- */
.letters {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.letters-row {
  display: grid;
  gap: 10px;
}

.letters-note {
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--color-ink-muted);
}

@media (min-width: 600px) {
  .letters-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- Books: the shelf ---------- */
.shelf-section {
  padding-top: 32px;
}

.shelf {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shelf-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.shelf-cover img,
.shelf-cover .title-tile {
  width: 112px;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(28, 38, 34, 0.1),
    0 10px 22px rgba(28, 38, 34, 0.16);
}

.shelf-text h2 {
  font-size: 24px;
}

.shelf-text .book-sub {
  font-size: var(--text-ui);
}

.shelf-meta {
  margin-top: 10px;
  font-size: var(--text-ui);
  font-weight: 600;
}

.shelf-text .button,
.shelf-text .link-arrow {
  margin-top: 14px;
}

/* On the phone the button spans the card, under the cover and text */
@media (max-width: 599px) {
  .shelf-text {
    display: contents;
  }
  .shelf-text > h2,
  .shelf-text > p {
    grid-column: 2;
  }
  .shelf-item {
    grid-template-rows: auto;
    row-gap: 4px;
  }
  .shelf-cover {
    grid-row: 1 / span 3;
  }
  .shelf-text > .button,
  .shelf-text > .link-arrow {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .shelf {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .shelf-item {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }
  .shelf-cover img,
  .shelf-cover .title-tile {
    width: 160px;
  }
  .shelf-text h2 {
    font-size: 28px;
  }
}

/* Small title tiles (100 Moods until its cover is exported) */
.title-tile.title-tile-sm,
.title-tile.title-tile-xs {
  max-width: none;
  padding: 12px 10px;
}

.title-tile.title-tile-sm strong {
  font-size: 19px;
}

.title-tile.title-tile-xs strong {
  font-size: 15px;
}

.title-tile.title-tile-sm small,
.title-tile.title-tile-xs small {
  font-size: 8px;
}

@media (min-width: 900px) {
  .title-tile.title-tile-sm {
    padding: 18px 16px;
  }
  .title-tile.title-tile-sm strong {
    font-size: 26px;
  }
}

/* ---------- A book's page ---------- */
/* The order card leads with the edition and its price on one line */
.order-title.edition-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.edition-title .choice-price {
  font-family: var(--font-sans);
  white-space: nowrap;
}

.order .edition-help {
  display: block;
  margin-top: 10px;
}

.book-head {
  padding-bottom: 40px;
}

/* Phone: small cover beside the title, so the order area starts in the first screen.
   Desktop: cover in its own sticky column, title and order to its right. */
.book-top {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px 18px;
  align-items: center;
}

.book-top > * {
  min-width: 0;
}

.book-top .book-cover img,
.book-top > .title-tile {
  width: 148px;
  max-width: none;
}

.book-top > .title-tile {
  padding: 12px 10px;
}

.book-top > .title-tile strong {
  font-size: 18px;
}

.book-top > .title-tile span,
.book-top > .title-tile small {
  display: none;
}

.book-title-block h1 {
  font-size: 30px;
}

.book-title-block .book-sub {
  margin-top: 6px;
  font-size: var(--text-ui);
  line-height: 1.45;
}

.book-top > .order,
.book-top > .book-rest {
  grid-column: 1 / -1;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .book-top {
    grid-template-columns: 340px minmax(0, 36rem);
    gap: 0 64px;
    align-items: start;
  }
  .book-top .book-cover,
  .book-top > .title-tile {
    grid-row: 1 / span 2;
    position: sticky;
    top: 24px;
  }
  .book-top .book-cover img,
  .book-top > .title-tile {
    width: 100%;
    max-width: 340px;
  }
  .book-top > .title-tile {
    padding: 28px 26px;
  }
  .book-top > .title-tile strong {
    font-size: 40px;
  }
  .book-top > .title-tile span,
  .book-top > .title-tile small {
    display: block;
  }
  .book-title-block h1 {
    font-size: var(--text-h1);
  }
  .book-title-block .book-sub {
    font-size: 18px;
  }
  .book-top > .order,
  .book-top > .book-rest {
    grid-column: 2;
    margin-top: 28px;
  }
}

.crumb {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 2px;
  font-size: var(--text-tag);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.crumb::before {
  content: '‹';
  margin-right: 6px;
  font-size: 18px;
  letter-spacing: 0;
}

.book-by {
  margin-top: 10px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.moods-about {
  margin-top: 14px;
}

.book-rest .order {
  margin-top: 24px;
}

/* The order area: options, fields, Buy */
.order {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.order-title {
  font-size: 22px;
}

.choice {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choice-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg-elev);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border: 2px solid var(--color-brand);
  padding: 13px 15px;
  background: var(--color-surface);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 3px;
}

.choice-card input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--color-brand);
}

.choice-text,
.price-list li {
  display: grid;
  gap: 2px;
}

.choice-name {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 12px;
  font-weight: 600;
}

.choice-price {
  font-variant-numeric: tabular-nums;
}

.choice-help {
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-ink-muted);
}

.fields {
  display: grid;
  gap: 16px;
}

/* One form, two sets of fields: the checked option decides which shows (no script) */
.order:has(#copy-gift:checked) .fields-own,
.order:has(#copy-gift:checked) .buy-own,
.order:not(:has(#copy-gift:checked)) .fields-gift,
.order:not(:has(#copy-gift:checked)) .buy-gift {
  display: none;
}

/* Lu's dedication as it will read on the title page (template, no model call) */
.dedication {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px dashed var(--color-line-strong);
}

.dedication figcaption {
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.dedication p {
  margin-top: 6px;
  font-family: var(--font-lu);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
}

.add-note summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--color-accent-text);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.add-note summary::-webkit-details-marker {
  display: none;
}

.add-note summary::before {
  content: '+';
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-badge);
  color: var(--color-badge-ink);
  font-weight: 600;
}

.add-note[open] summary::before {
  content: '–';
}

.add-note .field {
  margin-top: 8px;
}

.order-alert {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-badge);
  color: var(--color-ink);
  font-size: var(--text-ui);
}

.order-alert > svg {
  color: var(--color-accent-text);
}

.order-buy {
  display: grid;
  gap: 12px;
}

.order-buy .button-block {
  width: 100%;
}

.order-foot {
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--color-ink-muted);
}

/* The card's link down to the signed example on the same page */
.order-example {
  display: block;
  width: fit-content;
  margin-top: 6px;
  padding: 6px 0;
  color: var(--color-ink);
  font-weight: 600;
  white-space: nowrap;
}

#signed-copy {
  scroll-margin-top: 16px;
}

/* The print editions, below the signed edition in the price card (site.json amazon) */
.print-editions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.print-title {
  font-size: var(--text-ui);
  font-weight: 600;
}

.print-help {
  margin-top: 2px;
  font-size: var(--text-caption);
  color: var(--color-ink-muted);
}

.print-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

/* Quieter than Buy the book and See a signed copy: the same size as the line above, muted, regular weight */
.print-links a {
  display: inline-block;
  padding: 8px 0;
  font-size: var(--text-caption);
  color: var(--color-ink-muted);
  font-weight: 400;
}

.print-links a:hover {
  color: var(--color-ink);
}

/* checkout_live false: prices shown, no form */
.price-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line-strong);
}

.price-list li:last-child {
  border-bottom: 0;
}

.soon-status .coming {
  margin-top: 0;
}

.order-soon .button-block {
  width: 100%;
}

@media (min-width: 768px) {
  .order {
    padding: 28px;
  }
}

/* Look inside: 11 pages, a sideways strip at every size, each page links to its large image */
.pages.sample {
  overflow-x: auto;
  scroll-padding-left: 0;
}

.pages.sample li {
  width: 40%;
  max-width: 200px;
  flex: none;
}

.pages.sample a {
  display: block;
  border-radius: 4px;
}

.pages.sample .cap {
  display: block;
  margin-top: 8px;
  font-size: var(--text-caption);
  color: var(--color-ink-muted);
}

@media (min-width: 900px) {
  .pages.sample li {
    width: 200px;
    flex: none;
  }
}

/* Look inside, full screen (js/viewer.js): one page at a time, swipe or arrows, ✕ or Back to close */
.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #161b19;
  color: #f6f1e7;
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.viewer::backdrop {
  background: #161b19;
}

html.viewer-open {
  overflow: hidden;
}

.viewer-bar,
.viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px 20px;
}

.viewer-nav {
  padding: 8px 12px max(12px, env(safe-area-inset-bottom));
}

.viewer-count,
.viewer-caption {
  margin: 0;
  font-size: var(--text-ui);
  font-variant-numeric: tabular-nums;
}

.viewer-caption {
  flex: 1;
  text-align: center;
}

.viewer button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(246, 241, 231, 0.35);
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.08);
  color: inherit;
  cursor: pointer;
}

.viewer button:hover {
  background: rgba(246, 241, 231, 0.18);
}

.viewer button:focus-visible {
  outline: 3px solid #f6ebd3;
  outline-offset: 2px;
}

.viewer button:disabled {
  opacity: 0.3;
  cursor: default;
}

.viewer button svg {
  width: 24px;
  height: 24px;
}

.viewer-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.viewer-track::-webkit-scrollbar {
  display: none;
}

.viewer-track:focus {
  outline: none;
}

.viewer-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Centred in the slide and never larger than it, whatever the screen's shape */
.viewer-slide img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 24px);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 2px;
  background: #fff;
}

/* What's inside + the health note */
.book-facts {
  display: grid;
  gap: 28px;
}

.health-note {
  align-self: start;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line-strong);
}

.health-note h3 {
  font-size: 20px;
}

.health-note p {
  margin-top: 8px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

@media (min-width: 900px) {
  .book-facts {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* Also from Lu: one card, the whole card is the link */
.also {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 36rem;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-ink);
  text-decoration: none;
}

.also:hover {
  color: var(--color-ink);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px var(--color-ink-faint);
}

.also img,
.also .title-tile {
  width: 76px;
  border-radius: 3px;
}

.also-text {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.also-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--color-line-strong);
}

.also-line {
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-ink-muted);
}

.also-meta {
  font-size: var(--text-ui);
  font-weight: 600;
}

/* ---------- Thank you ---------- */
.thanks-head h1 {
  font-size: 36px;
}

.thanks-head .email {
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

.next-steps {
  margin-top: 0;
}

.next-steps h2 {
  font-size: 24px;
}

.next-steps ol li span {
  font-size: var(--text-ui);
}

.next-help {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line-strong);
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.optin {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line-strong);
}

.optin h2 {
  font-size: 22px;
}

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 44px;
  font-size: var(--text-ui);
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--color-brand);
}

.optin.is-done p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: var(--text-ui);
}

.optin.is-done svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-success);
}

.back-home {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .thanks-head h1 {
    font-size: 48px;
  }
}

/* Letters result pages reuse .lost (the 404 layout) */
.lost .small {
  margin-top: 8px;
}

.shelf-cover,
.shelf-cover:hover {
  display: block;
  text-decoration: none;
  color: var(--color-brand-ink);
}

.order .letters {
  margin-top: 0;
}

/* ---------- Lu's 100 Moods: how a signed copy comes together ---------- */
.signed-grid {
  display: grid;
  gap: 32px;
}

.signed h3 {
  margin-bottom: 14px;
}

.signed-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.signed-steps li {
  display: grid;
  gap: 6px;
  padding-left: 40px;
  position: relative;
  counter-increment: step;
}

.signed-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-brand);
  color: var(--color-brand-ink);
}

.signed-steps li > span {
  color: var(--color-ink-muted);
}

.signed-steps img {
  display: block;
  margin-top: 6px;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.signed-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signed-fields > span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink-muted);
  font-size: var(--text-ui);
}

.signed-fields b {
  color: var(--color-ink);
  font-weight: 600;
}

.signed-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.signed-pages figure {
  margin: 0;
}

.signed-pages img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}

.signed-pages figcaption {
  margin-top: 8px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

.signed-foot {
  margin-top: 16px;
  font-size: var(--text-ui);
  color: var(--color-ink-muted);
}

@media (min-width: 900px) {
  .signed-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
  }
}

.signed-steps li:last-child img {
  max-width: 220px;
}

/* Home app block on desktop: photo beside the words, the full width of the page */
@media (min-width: 900px) {
  .soon-section .soon {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 44px;
  }
  .soon-section .soon-photo {
    grid-column: 1;
    grid-row: 1 / -1;
    margin: 0;
  }
  .soon-section .soon > :not(.soon-photo) {
    grid-column: 2;
  }
  .soon-section .soon > .eyebrow {
    grid-row: 2;
  }
  .soon-section .soon > h2 {
    grid-row: 3;
  }
  .soon-section .soon > .soon-words {
    grid-row: 4;
  }
  .soon-section .soon-photo img {
    aspect-ratio: 4 / 3;
  }
}

.signed-about {
  justify-self: start;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line-strong);
  font-size: var(--text-ui);
}

/* ---------- Book pages, common layout (Marcos, 21 Nov 2026): top, Look inside, What's inside, Signed, Also ---------- */
.facts-lead {
  margin: 12px 0 18px;
}

.signed-line {
  margin-top: 12px;
  font-family: var(--font-lu);
  font-style: italic;
  color: var(--color-ink-muted);
}

.signed .signed-pages {
  max-width: 580px;
}

.signed .link-arrow {
  margin-top: 8px;
}
