/* Pizza Night website. "Risen" tokens from the app (CLAUDE.md §7). */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --dough: #F3E2BF;
  --flour: #FFF5DF;
  --crust: #3B2414;
  --crust-muted: #7A5A40;
  --crust-body: #5A3F2A;
  --basil: #2E7D4F;
  --basil-shadow: #1F5A38;
  --toast: #C7772E;
  --toast-text: #A35E1F;
  --dough-shade: #E2C995;
  --dough-fill: #F6D9A3;
  --dough-fill-deep: #EBC484;
  --cheek: #F4A98A;
  --success-tint: #E8F1E9;
  --night: #E6DEF2;

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;

  --radius-card: 32px;
  --radius-small: 20px;
  --puffy: 0 6px 0 var(--dough-shade);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--dough);
  color: var(--crust-body);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--basil); text-underline-offset: 3px; }
a:hover { color: var(--basil-shadow); }

h1, h2, h3, .display {
  font-family: var(--display);
  color: var(--crust);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.375rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--crust); color: var(--flour); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--toast); outline-offset: 3px; border-radius: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--dough) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--dough-shade) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem;
  color: var(--crust); text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--crust); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--crust); text-decoration: none; font-weight: 700; font-size: 0.97rem;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--flour); color: var(--crust); }

.header-cta { margin-left: 8px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-primary { background: var(--basil); color: #fff; box-shadow: 0 5px 0 var(--basil-shadow); }
.btn-primary:hover { color: #fff; transform: translateY(1px); box-shadow: 0 4px 0 var(--basil-shadow); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 0 0 var(--basil-shadow); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 1rem; box-shadow: 0 4px 0 var(--basil-shadow); }
.btn-ghost { background: transparent; color: var(--crust); border: 2px solid var(--crust); }
.btn-ghost:hover { background: var(--flour); color: var(--crust); }
.btn svg { width: 22px; height: 22px; flex: none; }

.store-note { font-size: 0.95rem; color: var(--crust-muted); font-weight: 700; }

/* Pills and cards */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--success-tint); color: var(--basil-shadow);
  font-weight: 800; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px;
}
.card { background: var(--flour); border-radius: var(--radius-card); box-shadow: var(--puffy); }

/* Phone frame around real captures */

.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 603 / 1311;
  border-radius: 46px; background: var(--crust); padding: 10px;
  box-shadow: 0 8px 0 rgba(59, 36, 20, 0.18), 0 30px 60px -20px rgba(59, 36, 20, 0.35);
}
.phone img { width: 100%; height: 100%; border-radius: 37px; object-fit: cover; }

/* Hero */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.eyebrow {
  font-family: var(--display); font-weight: 600; color: var(--toast-text);
  font-size: 1.05rem; letter-spacing: 0.01em;
}
.hero-lede { font-size: 1.25rem; color: var(--crust-body); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero { overflow: hidden; }
.hero-art { position: relative; display: grid; justify-items: start; padding: 20px 0 20px 8%; }
.hero-art .phone { transform: rotate(3deg); max-width: 280px; z-index: 1; }
.hero-pizza {
  position: absolute; width: 480px; height: 480px; right: -150px; top: 50%;
  margin-top: -230px; transform: rotate(-12deg); max-width: none;
  filter: drop-shadow(0 18px 24px rgba(59, 36, 20, 0.22));
}
.bubble { z-index: 2; }
.bubble {
  position: absolute; background: var(--flour); border-radius: 22px; box-shadow: var(--puffy);
  padding: 12px 16px; font-family: var(--display); font-weight: 500; color: var(--crust);
  font-size: 1rem; line-height: 1.25; display: flex; align-items: center; gap: 10px;
}
.bubble img { width: 44px; height: 44px; flex: none; }
.bubble-a { left: -4%; top: 18%; transform: rotate(-4deg); }
.bubble-b { right: 4%; bottom: 6%; transform: rotate(3deg); }
.bubble small { display: block; font-family: var(--body); font-weight: 700; color: var(--crust-muted); font-size: 0.8rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { padding-left: 0; justify-items: center; }
  .hero-art .phone { max-width: 240px; }
  .hero-pizza { width: 340px; height: 340px; right: -170px; margin-top: -170px; }
  .bubble-a { left: 0; }
  .bubble-b { right: 0; }
}

.cta-short { display: none; }

/* Phones: the product and the pizza belong in the first screen, not below it. */
@media (max-width: 640px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero { padding: 20px 0 8px; }
  .hero .wrap { gap: 0; }
  .hero-copy { justify-items: center; text-align: center; gap: 14px; }
  .hero .eyebrow, .hero-copy > .store-note { display: none; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); line-height: 1.04; }
  .hero-lede { font-size: 1.06rem; max-width: 30ch; }
  .hero-actions { justify-content: center; }
  .hero-art { margin-top: 6px; padding: 26px 0 0; height: 470px; align-items: start; }
  .hero-art::before {
    content: ""; position: absolute; left: 50%; top: 40%; width: 150vw; height: 150vw;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--toast) 30%, transparent), transparent);
  }
  .hero-pizza {
    width: 112vw; height: 112vw; max-width: 460px; max-height: 460px;
    left: 50%; right: auto; top: 46%; margin: 0; transform: translate(-6%, -50%) rotate(-12deg);
  }
  .hero-art .phone { max-width: 214px; transform: rotate(4deg) translateX(-14%); }
  .bubble { padding: 9px 12px; font-size: 0.92rem; border-radius: 18px; }
  .bubble img { width: 34px; height: 34px; }
  .bubble small { font-size: 0.74rem; }
  .bubble-a { left: 0; top: 50px; }
  .bubble-b { right: 0; bottom: auto; top: 300px; }
}

/* Promises band */

.promises { background: var(--crust); color: var(--flour); }
.promises ul {
  list-style: none; margin: 0; padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  font-family: var(--display); font-weight: 500; font-size: 1.1rem;
}
.promises li { display: inline-flex; align-items: center; gap: 10px; }
.promises li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dough-fill-deep); }

/* Sections */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head p { font-size: 1.15rem; }
.kicker { font-family: var(--display); font-weight: 600; color: var(--toast-text); font-size: 1rem; }

/* How it works */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.step-card .step-text { padding: 26px 26px 8px; display: grid; gap: 8px; align-content: start; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--dough);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--crust);
}
.step-shot { height: 340px; overflow: hidden; display: flex; justify-content: center; padding-top: 18px; }
.step-shot .phone { max-width: 240px; height: auto; flex: none; align-self: flex-start; }
.step-card:nth-child(1) .step-shot { background: linear-gradient(180deg, var(--flour), var(--dough-fill)); }
.step-card:nth-child(2) .step-shot { background: linear-gradient(180deg, var(--flour), var(--success-tint)); }
.step-card:nth-child(3) .step-shot { background: linear-gradient(180deg, var(--flour), #F9D9CB); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* Feature split */

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-art { order: 2; }
.split-art { display: grid; justify-items: center; }
.split-copy { display: grid; gap: 22px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: 2px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 16px; background: var(--flour); box-shadow: 0 4px 0 var(--dough-shade);
  display: grid; place-items: center; color: var(--basil);
}
.feature-icon svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
}

/* Styles strip */

.styles-band { background: var(--flour); }
.style-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.style-chips li {
  background: var(--dough); border-radius: 999px; padding: 12px 20px; min-height: 48px;
  font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--crust);
  box-shadow: 0 4px 0 var(--dough-shade); display: inline-flex; align-items: center;
}
.style-chips img { width: 40px; height: 40px; margin: -6px 10px -6px -10px; }
.style-chips li.pro { background: transparent; box-shadow: none; border: 2px dashed var(--dough-shade); color: var(--crust-muted); }
.ferments { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 28px; font-weight: 700; color: var(--crust-muted); }

/* FAQ */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--flour); border-radius: var(--radius-small); box-shadow: 0 4px 0 var(--dough-shade); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--crust); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--dough); display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1; color: var(--crust);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 22px; display: grid; gap: 10px; }
.faq-foot { text-align: center; margin-top: 28px; font-weight: 700; }

/* Closing card */

.closing .card {
  padding: clamp(36px, 6vw, 72px); text-align: center; display: grid; justify-items: center; gap: 18px;
  background: radial-gradient(120% 120% at 50% 0%, var(--flour) 0%, var(--dough-fill) 100%);
}
.closing img.mascot { width: 140px; }

/* Legal and support pages */

.page-hero { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-hero .wrap { display: grid; gap: 14px; max-width: 820px; }
.page-hero p { font-size: 1.15rem; }
.updated { font-size: 0.95rem; color: var(--crust-muted); font-weight: 700; }

.prose { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 104px); }
.prose .card { padding: clamp(24px, 4vw, 48px); }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--crust); }
.summary-box { background: var(--success-tint); border-radius: var(--radius-small); padding: 20px 24px; margin-bottom: 28px; }
.summary-box p:last-child { margin-bottom: 0; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.contact-cards .card { padding: 24px; display: grid; gap: 8px; align-content: start; }
.contact-cards h2 { font-size: 1.25rem; margin: 0; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* Footer */

.site-footer { background: var(--crust); color: var(--dough-fill); padding: 56px 0 40px; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--flour); }
.site-footer p { color: var(--dough-shade); font-size: 0.95rem; margin-top: 12px; max-width: 32ch; }
.site-footer h2 { color: var(--flour); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--dough-fill); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { grid-column: 1 / -1; border-top: 1px solid rgba(255, 245, 223, 0.15); padding-top: 22px; font-size: 0.9rem; color: var(--dough-shade); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* 404 */

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.not-found .inner { display: grid; gap: 16px; justify-items: center; }
.not-found img { width: 160px; }

/* App Store button (swap for Apple's official badge artwork before launch) */

.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05;
  background: #000; color: #fff; text-decoration: none; height: 56px; padding: 0 22px; border-radius: 14px;
}
.store-btn:hover { color: #fff; background: #222; }
.store-btn small { font-size: 0.75rem; font-weight: 700; }
.store-btn span { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.store-btn[aria-disabled="true"] { cursor: default; }

/* Breadcrumbs */

.crumbs { font-size: 0.95rem; font-weight: 700; color: var(--crust-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--crust-muted); }
.crumbs a { color: var(--crust-muted); }

/* Tables */

.table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: var(--radius-small); background: var(--dough); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--dough-shade); vertical-align: top; }
.prose thead th { font-family: var(--display); font-weight: 600; color: var(--crust); background: var(--dough-fill); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tr.ours td { background: var(--success-tint); font-weight: 700; color: var(--crust); }
.prose caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 0.9rem; color: var(--crust-muted); }

/* Answer box: the one-paragraph answer at the top of a guide */

.answer-box { background: var(--success-tint); border-radius: var(--radius-small); padding: 20px 24px; margin-bottom: 28px; }
.answer-box p { margin: 0; font-size: 1.1rem; color: var(--crust); }

/* Recipe and style pages */

.style-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.style-hero img { width: 240px; height: 240px; filter: drop-shadow(0 12px 18px rgba(59, 36, 20, 0.2)); }
@media (max-width: 640px) { .style-hero { grid-template-columns: 1fr; } .style-hero img { width: 180px; height: 180px; justify-self: center; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--flour); border-radius: 999px; padding: 6px 14px; font-weight: 800; color: var(--crust); box-shadow: 0 3px 0 var(--dough-shade); font-size: 0.95rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card-grid a { display: grid; gap: 6px; padding: 22px; background: var(--flour); border-radius: 24px; box-shadow: var(--puffy); text-decoration: none; color: var(--crust-body); height: 100%; }
.card-grid a:hover { transform: translateY(-2px); }
.card-grid img { width: 120px; height: 120px; margin: -6px 0 6px; filter: drop-shadow(0 8px 12px rgba(59, 36, 20, 0.18)); }
.card-grid strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--crust); }

.app-cta { margin-top: 32px; padding: 28px; border-radius: var(--radius-card); background: var(--dough-fill); display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.app-cta img { width: 72px; height: 72px; }
.app-cta p { margin: 0; }
@media (max-width: 640px) { .app-cta { grid-template-columns: 1fr; justify-items: start; } }

.style-chips a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.style-chips a:hover { text-decoration: underline; }
.prose .faq { max-width: none; margin-bottom: 28px; }
.prose .faq details { background: var(--dough); }
.hero-actions .store-note { margin-left: 4px; }

.h1-line { display: block; }
