/* Prefer local OFL fonts, with browser fallbacks and no webfont requests. */
:root {
  --ink: #1c372d;
  --paper: #f8f5ed;
  --muted: #4f6156;
  --accent: #a53528;
  --line: #d9ded2;
  --gutter: clamp(16px, 3vw, 32px);
  --content-width: 1200px;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body, figure, p, h1, h2, h3 { margin: 0; }
body { display: flex; flex-direction: column; height: 100dvh; }
main { min-height: 0; flex: 1; overflow: auto; scrollbar-gutter: stable both-edges; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 2 * var(--gutter), var(--content-width)); margin-inline: auto; }

.top, .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.top { flex: none; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 42px); font-size: 14px; }
nav a, .foot a { text-decoration: none; }
nav a:hover, .text-link:hover, .foot a:hover { text-decoration: underline; }
.nav-action { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 8px; padding: 8px 12px; background: var(--paper); transform: translateY(-150%); z-index: 2; }
.skip:focus { transform: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 76px);
  padding-block: clamp(30px, 6vh, 84px);
}

.eyebrow { color: var(--muted); font-size: 13px; font-weight: 750; letter-spacing: .12em; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
h1, h2 { font-family: "Noto Serif CJK SC", "Noto Serif SC", serif; font-weight: 850; line-height: 1.15; }
h1 { margin-block: 16px 22px; font-size: clamp(39px, 5.1vw, 104px); letter-spacing: -.055em; }
h1 span, h1 em { display: block; }
h1 em { color: var(--accent); font-style: normal; }
h2 { margin-block: 9px 16px; font-size: clamp(30px, 3.5vw, 66px); letter-spacing: -.035em; }
.lead, .platform-note { max-width: 33ch; color: var(--muted); }
.lead { font-size: clamp(16px, 1.4vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; }
.button, .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 14px; font-weight: 720; text-decoration: none; }
.button { padding-inline: 16px; border-radius: 9px; background: var(--ink); color: white; }
.button:hover { background: #2f5143; }
.platform-line { margin-top: 12px; color: var(--muted); font-size: 13px; }
.platform-line span { margin-inline: 3px; }

.hero-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px, 3vw, 42px);
  border-radius: 20px;
  background: #294034;
  color: white;
}

.hero-table { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 37% center; }
.hero-preview::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(15deg, #10291fee 0%, #10291f20 74%); }
.hero-screen {
  grid-column: 2;
  display: block;
  width: clamp(184px, 20vw, 274px);
  height: auto;
  border: 5px solid #172a23;
  border-radius: 23px;
  background: var(--paper);
  box-shadow: 0 14px 36px #10231c80;
}

.hero-preview figcaption { grid-column: 1; grid-row: 1; display: grid; gap: 3px; }
.hero-preview figcaption span { font-size: 12px; }
.hero-preview figcaption strong { font-size: 17px; line-height: 1.45; }

.workflow-content, .platforms {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(22px, 6vw, 100px);
  padding-block: clamp(36px, 7vw, 104px);
}

.workflow { color: #fffaf0; background: var(--ink); }
.workflow .eyebrow, .steps p { color: #d5e3d8; }
.steps, .platform-list { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 12px; padding-block: 14px; border-top: 1px solid #ffffff40; }
.steps li:last-child { border-bottom: 1px solid #ffffff40; }
.steps li > span { align-self: center; color: #d7e3d3; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; }
.steps p { grid-column: 2; margin-top: 4px; font-size: 15px; }

.platform-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 13px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.platform-list li:first-child { border-top: 1px solid var(--line); }
.platform-list h3 { font-size: 19px; }
.platform-list p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.platform-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e8eddf; }
.platform-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.platform-status { padding: 3px 8px; background: #e8eddf; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.platform-status.pending { background: #f3e5d5; color: #704632; }

.recipes { background: #edf0e6; padding-block: clamp(36px, 6vw, 84px); }
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); margin-top: 26px; }
.dishes img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; background: #e1e6d8; }
.dishes figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 10px; }
.dishes small { color: var(--muted); font-size: 13px; }
.dishes strong { font-size: 18px; }
.foot { color: var(--muted); font-size: 14px; flex-wrap: wrap; }

@media (max-width: 780px) {
  main { scrollbar-gutter: stable; }
  .hero, .workflow-content, .platforms { grid-template-columns: 1fr; }
  h1 { font-size: clamp(38px, 8vw, 64px); }
  .hero-screen { width: clamp(165px, 39vw, 245px); }
}

@media (max-width: 480px) {
  .top { flex-wrap: wrap; gap: 4px 10px; padding-block: 8px; }
  nav { flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
  .nav-action { padding: 5px 8px; }
  .dishes { grid-template-columns: 1fr; gap: 22px; }
  .dishes img { aspect-ratio: 16/9; }
  .platform-list li { column-gap: 8px; }
  .platform-list p { overflow-wrap: anywhere; }
  .hero-preview figcaption strong { font-size: 14px; }
}
