/* What to Eat — web
   Misma paleta que la app: papel cálido, tinta, verde hierba y el naranja
   del logo. Tipografías alojadas aquí (sin peticiones a terceros). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2-variations"), url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2-variations"), url("fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree.woff2") format("woff2-variations"), url("fonts/figtree.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #F6F3EC;
  --surface: #FFFFFF;
  --surface-2: #EDE9DF;
  --hairline: #E1DCD0;
  --ink: #1C1E1A;
  --ink-2: #5F5D55;
  --ink-3: #8E8B80;
  --green: #1E7A3C;
  --green-dark: #155C2C;
  --green-soft: #E3EEE2;
  --orange: #CF6420;
  --orange-soft: #FAEADC;
  --danger: #B93E2E;
  --band: #173B24;
  --band-ink: #F3EFE4;
  --shadow: 0 1px 2px rgba(28, 30, 26, .06), 0 12px 32px -12px rgba(28, 30, 26, .22);
  --shadow-lg: 0 2px 6px rgba(28, 30, 26, .08), 0 34px 70px -28px rgba(28, 30, 26, .45);

  --serif: "Fraunces", "New York", ui-serif, Georgia, serif;
  --sans: "Figtree", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121412;
    --surface: #1B1E1A;
    --surface-2: #262A25;
    --hairline: #30352F;
    --ink: #F1EEE7;
    --ink-2: #B0ADA3;
    --ink-3: #7F7D74;
    --green: #58BC76;
    --green-dark: #3F9A5B;
    --green-soft: #1D3124;
    --orange: #EE8B47;
    --orange-soft: #3A2819;
    --danger: #E5664F;
    --band: #1D3124;
    --band-ink: #F1EEE7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 34px 70px -28px rgba(0, 0, 0, .9);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain, very faint. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { opacity: .08; filter: invert(1); } }

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px;
  background: var(--ink); color: var(--paper); border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 560;
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
em, .italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.eyebrow .dot { color: var(--orange); padding-inline: .4em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--hairline), 0 2px 8px -2px rgba(0,0,0,.18); }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 600; font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .lang {
  border: 1px solid var(--hairline); font-size: 13px; letter-spacing: .06em; padding: 6px 11px; margin-left: 6px;
}
@media (max-width: 760px) {
  .nav .optional { display: none; }
  .site-header .wrap { gap: 12px; }
  .brand span { font-size: 19px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-ink:hover { color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--hairline); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn svg { flex: none; }
.btn small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.btn .stack { text-align: left; line-height: 1.1; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 96px); overflow-x: hidden; overflow-x: clip; }
.hero .wrap {
  display: grid; gap: clamp(36px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero h1 {
  font-size: clamp(56px, 9.2vw, 112px);
  line-height: .93;
  letter-spacing: -.035em;
  font-weight: 540;
  margin-bottom: 26px;
}
.hero h1 .hoy { position: relative; display: inline-block; color: var(--orange); font-style: italic; font-weight: 480; padding-right: .06em; }
.hero h1 .hoy svg { position: absolute; left: -2%; right: 0; bottom: -.2em; width: 104%; height: .28em; overflow: visible; }
.hero h1 .hoy path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .9s cubic-bezier(.6,.1,.2,1) forwards; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hero .fine b { color: var(--ink-2); font-weight: 600; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) rotate(-6deg) scale(.96); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .3s; } .reveal.d4 { animation-delay: .42s; }

/* ---------- Deck ---------- */
.deck-area { position: relative; display: grid; justify-items: center; gap: 22px; animation: drop 1s .25s cubic-bezier(.2,.7,.2,1) both; }
.plate {
  position: absolute; z-index: 0; width: min(118%, 560px); aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-50%, -54%); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 57%, var(--hairline) 57.2% 57.6%, transparent 58%),
    radial-gradient(circle at 38% 30%, var(--surface), var(--surface-2) 72%);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 30px 60px -40px rgba(0,0,0,.45);
  opacity: .9;
}
.deck { position: relative; z-index: 1; width: min(76vw, 350px); aspect-ratio: 3 / 4; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; margin: 0;
  background: var(--surface-2); box-shadow: var(--shadow-lg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
  will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0 42%, rgba(0,0,0,.35) 68%, rgba(0,0,0,.8) 100%);
}
.card figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.card .where { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .82; margin-bottom: 6px; }
.card .dish { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: 31px; line-height: 1.04; letter-spacing: -.015em; }
.card .meta { font-size: 14px; opacity: .86; margin-top: 8px; }
.card .tag {
  position: absolute; z-index: 1; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; color: #fff; background: #CF6420; padding: 5px 9px; border-radius: 999px;
}
.stamp {
  position: absolute; z-index: 2; top: 26px; padding: 6px 12px; border: 3px solid currentColor; border-radius: 10px;
  font: 800 22px/1 var(--sans); letter-spacing: .08em; opacity: 0; transition: opacity .15s; background: rgba(255,255,255,.12);
}
.stamp.save { left: 22px; color: #43C46A; transform: rotate(-12deg); }
.stamp.pass { right: 22px; color: #FF6B55; transform: rotate(12deg); }

/* Stack positions (set by data-pos). */
.card[data-pos="0"] { z-index: 4; transform: none; cursor: grab; }
.card.dragging { cursor: grabbing; }
.card[data-pos="1"] { z-index: 3; transform: translate(22px, 12px) rotate(6deg) scale(.96); filter: brightness(.94); }
.card[data-pos="2"] { z-index: 2; transform: translate(-20px, 20px) rotate(-6.5deg) scale(.93); filter: brightness(.88); }
.card[data-pos="hidden"] { z-index: 1; transform: translateY(30px) scale(.88); opacity: 0; }
.card.out-right { z-index: 5; transform: translateX(135%) rotate(20deg) !important; opacity: 0; }
.card.out-left { z-index: 5; transform: translateX(-135%) rotate(-20deg) !important; opacity: 0; }
.card.out-right .stamp.save, .card.out-left .stamp.pass { opacity: 1; }
.card.dragging { transition: none; }

.deck-controls { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.deck-controls[hidden] { display: none; }
.round {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s;
}
.round:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.round:active { transform: scale(.94); }
.round.like { width: 70px; height: 70px; background: var(--green); color: #fff; }
.deck-hint { font-size: 13px; color: var(--ink-3); min-height: 20px; text-align: center; }
.toast {
  position: absolute; z-index: 5; top: -30px; left: 50%; transform: translate(-50%, -8px);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--hairline);
  opacity: 0; transition: opacity .2s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--green); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--hairline); overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track { display: flex; width: max-content; animation: scroll 70s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); white-space: nowrap; padding-right: 30px; color: var(--ink); }
.marquee li span { font-family: var(--sans); font-style: normal; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-left: 10px; font-weight: 700; }
.marquee li::after { content: "✳"; font-style: normal; color: var(--orange); font-size: .7em; margin-left: 30px; position: relative; top: -.15em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.marquee + .section { padding-top: clamp(64px, 9vw, 112px); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -.03em; }
.section-head p { margin: 18px 0 0; }

/* Recipe card: Ingredientes / Elaboración */
.recipe {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); overflow: hidden;
}
@media (max-width: 860px) { .recipe { grid-template-columns: 1fr; } }
.recipe-meta {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--hairline);
}
.recipe-meta div { flex: 1 1 160px; padding: 18px 26px; border-right: 1px solid var(--hairline); }
.recipe-meta div:last-child { border-right: 0; }
.recipe-meta dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.recipe-meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 560; font-variation-settings: "SOFT" 100; }
.recipe-col { padding: clamp(26px, 4vw, 48px); }
.recipe-col + .recipe-col { border-left: 1px solid var(--hairline); }
@media (max-width: 860px) { .recipe-col + .recipe-col { border-left: 0; border-top: 1px solid var(--hairline); } }
.recipe-col h3 { font-size: 28px; margin-bottom: 22px; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--hairline); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients .qty { flex: none; min-width: 3.4em; font-family: var(--serif); font-size: 26px; font-weight: 600; font-variation-settings: "SOFT" 100; color: var(--green); letter-spacing: -.02em; }
.ingredients .qty.small { font-size: 19px; font-style: italic; font-weight: 500; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 64px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 500;
  color: var(--orange); background: var(--orange-soft);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21.5px; top: 46px; bottom: 6px; width: 1px; background: var(--hairline); }
.steps h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-2); }

/* La carta: gratis / premium */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 820px) { .menu-grid { grid-template-columns: 1fr; } }
.menu {
  position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px;
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow);
}
.menu.premium { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu.premium .menu-note, .menu.premium .leader .v { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.menu.premium .leader .dots { border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.menu h3 { font-size: 38px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu h3 .price { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.menu.premium h3 .price { color: #F09A5E; }
.menu .sub { margin: 8px 0 26px; color: var(--ink-2); font-size: 15px; }
.menu.premium .sub { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.leaders { list-style: none; margin: 0; padding: 0; }
.leader { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.leader .k { flex: 0 1 auto; }
.leader .dots { flex: 1 1 24px; border-bottom: 2px dotted var(--hairline); transform: translateY(-4px); min-width: 24px; }
.leader .v { flex: none; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink-2); text-align: right; }
.menu-note { margin: 24px 0 0; font-size: 14px; color: var(--ink-3); }
.ribbon {
  position: absolute; top: -13px; right: 28px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow);
}

/* Banda de privacidad */
.band { background: var(--band); color: var(--band-ink); border-radius: 32px; padding: clamp(36px, 6vw, 72px); overflow: hidden; position: relative; }
.band h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; max-width: 13em; }
.band h2 em { color: #F09A5E; }
.band ul { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .band ul { grid-template-columns: 1fr; } }
.band li { border-top: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); padding-top: 16px; }
.band li b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 560; margin-bottom: 4px; font-variation-settings: "SOFT" 100; }
.band li span { color: color-mix(in srgb, var(--band-ink) 72%, transparent); font-size: 15.5px; }
.band a { color: var(--band-ink); font-weight: 700; }
.band a:hover { color: #F09A5E; }
.band .more { margin: 32px 0 0; }
.band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent);
  box-shadow: 0 0 0 40px color-mix(in srgb, var(--band-ink) 3%, transparent), 0 0 0 90px color-mix(in srgb, var(--band-ink) 2%, transparent);
  pointer-events: none;
}

/* Cierre */
.closing { text-align: center; }
.closing h2 { font-size: clamp(40px, 6.4vw, 84px); letter-spacing: -.035em; }
.closing h2 em { color: var(--orange); }
.closing .ctas { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Documents (soporte, privacidad, términos, contacto) ---------- */
.doc-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--hairline); }
.doc-hero h1 { font-size: clamp(48px, 7.4vw, 92px); letter-spacing: -.035em; line-height: .95; }
.doc-hero h1 em { color: var(--orange); font-weight: 480; }
.doc-hero .lede { margin-top: 20px; }
.doc-hero .updated { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 110px); }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.toc p { margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }
@media (max-width: 960px) {
  .toc { position: static; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; }
  .toc ol { columns: 2 180px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}

.prose { max-width: 44em; }
.prose > section + section { margin-top: 52px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -.02em; margin-bottom: 14px; scroll-margin-top: 96px; }
.prose h2 .n { font-style: italic; color: var(--orange); font-weight: 480; margin-right: .3em; }
.prose h3 { font-size: 21px; margin: 26px 0 8px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); text-wrap: pretty; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .path { font-weight: 600; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

.summary {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 24px 26px; margin-bottom: 48px; box-shadow: var(--shadow);
}
.summary h2 { font-size: 24px; margin-bottom: 12px; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); margin: 0; }
.summary li svg { flex: none; margin-top: 4px; color: var(--green); }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--green-soft); border-radius: 22px; padding: 22px 26px; margin-bottom: 48px;
}
.contact-card p { margin: 0; color: var(--ink); }
.contact-card .mail { font-family: var(--serif); font-size: 24px; font-weight: 560; font-variation-settings: "SOFT" 100; word-break: break-all; }
.contact-card .note { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

details.faq { border-bottom: 1px solid var(--hairline); }
details.faq:first-of-type { border-top: 1px solid var(--hairline); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-weight: 700; font-size: 17.5px; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.faq .answer { padding: 0 0 18px; }
details.faq .answer p:last-child { margin-bottom: 0; }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 20px; }
@media (max-width: 760px) { .cards-3 { grid-template-columns: 1fr; } }
.mini { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .2s; }
a.mini:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.mini b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 560; font-variation-settings: "SOFT" 100; margin-bottom: 4px; }
.mini span { color: var(--ink-2); font-size: 15px; }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: -.035em; }
.lost h1 em { color: var(--orange); }
.lost p { color: var(--ink-2); margin: 16px auto 28px; max-width: 30em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 44px 0 36px; font-size: 14.5px; color: var(--ink-2); }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--green); }
.site-footer .legal { margin-top: 26px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-3); }
.site-footer .legal p { margin: 0; }
.site-footer .legal a { color: var(--ink-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee .track { animation: none; }
  .hero h1 .hoy path { stroke-dashoffset: 0; }
}
