/* Kitchen Crossing website. Palette and type follow the game's GameStyle:
   cream paper, ink outlines with hard shadows, tomato, sage and butter. */
@font-face {
  font-family: 'Lilita One';
  src: url('/static/LilitaOne-Regular.f5b641c45c.ttf') format('truetype');
  font-display: swap;
}

:root {
  --cream: #fff6e0;
  --paper: #fffbf2;
  --shade: #f3e3c0;
  --ink: #3b2617;
  --ink-2: #5e4633;
  --tomato: #e35433;
  --tomato-ink: #b23a1f;
  --sage: #4d9e66;
  --sage-ink: #2e6942;
  --sage-soft: #d6e8d3;
  --butter: #fdc74a;
  --route: #1f5a4a;
  --chef-1: #1f5a4a;
  --chef-2: #c43d2c;
  --chef-3: #4b4aa6;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 72rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--serif);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--tomato-ink); }
b { font-weight: 700; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; overflow-wrap: anywhere; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 8px;
  font: 600 1rem var(--sans); text-decoration: none;
}
.skip:focus { top: 1rem; }
.preview-banner { margin: 0; padding: 0.4rem var(--gutter); background: var(--butter); font: 600 0.85rem var(--sans); text-align: center; }

/* Masthead */
.masthead {
  max-width: var(--measure); margin: 0 auto; padding: 1rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font: 1.3rem var(--display); text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; border: 2px solid var(--ink); }
.masthead-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; font: 500 0.98rem var(--sans); }
.masthead-nav a { text-decoration-color: transparent; padding: 0.5rem 0; }
.masthead-nav a:hover, .masthead-nav a[aria-current] { text-decoration-color: var(--tomato); }

/* Buttons follow the game's chunky buttons: ink outline and a lip that presses down. */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.6rem 1.35rem; border: 2.5px solid var(--ink); border-radius: 14px;
  background: var(--butter); color: var(--ink); box-shadow: 0 4px 0 var(--ink);
  font: 1.15rem/1 var(--display); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.button:hover { color: var(--ink); background: #ffd466; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.button-quiet { background: var(--paper); }
.button-quiet:hover { background: #fff; }
.button-small { min-height: 2.5rem; padding: 0.45rem 0.9rem; font-size: 1rem; }
.button[aria-pressed="true"] { background: var(--sage-soft); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  max-width: var(--measure); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero { overflow-x: clip; }
/* Two routes cross behind the hero screenshot, as on the app icon. */
.plate-hero { position: relative; isolation: isolate; }
.hero-routes { position: absolute; z-index: -1; inset: -6% -14% 4% -14%; width: 128%; height: 102%; overflow: visible; }
.route { fill: none; stroke-width: 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-sage { stroke: var(--route); opacity: 0.75; }
.route-butter { stroke: #e8a847; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.1rem;
  font: 0.95rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-ink);
}
.kicker-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sage); border: 2px solid var(--ink); }
.hero h1 { font-size: clamp(3.3rem, 13.5vw, 7.75rem); line-height: 0.9; margin-bottom: 1.4rem; overflow-wrap: normal; }
.title-line { display: block; }
.title-accent { color: var(--tomato); text-shadow: 0.04em 0.045em 0 var(--ink); }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin: 1.75rem 0 0; }

/* Framed gameplay, drawn like the game's sticker panels. */
.plate { margin: 0; max-width: 34rem; }
.plate-hero { max-width: 36rem; }
.plate picture {
  display: block; overflow: hidden; background: var(--shade);
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--ink);
}
.plate figcaption { margin-top: 1.3rem; font: 0.92rem/1.5 var(--sans); color: var(--ink-2); max-width: 44ch; }
.plate figcaption b { font: 1rem var(--display); color: var(--ink); letter-spacing: 0.01em; }
.plate-hero picture { transform: rotate(1.2deg); }
@media (max-width: 39.99rem) {
  .plate picture { box-shadow: 6px 6px 0 var(--ink); border-radius: 18px; }
  .plate { margin-right: 6px; }
}
.plate-tilt-left picture { transform: rotate(-1deg); }
.plate-tilt-right picture { transform: rotate(0.9deg); }

/* At a glance */
.facts {
  max-width: calc(var(--measure) - 2 * var(--gutter)); margin: 0 auto; width: calc(100% - 2 * var(--gutter));
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.1rem 0.75rem 1rem; border-bottom: 1px dashed var(--ink-2); }
.facts div:nth-child(odd) { border-right: 1px dashed var(--ink-2); }
.facts .facts-wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; flex-direction: column; }
.facts .facts-wide dt { margin: 0 0 0.35rem; }
.facts dd { margin: 0; font: clamp(2.1rem, 7vw, 3.4rem)/1 var(--display); }
.facts dt { font: 600 0.8rem var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin-top: 0.35rem; }
.facts .facts-wide dd { font-size: clamp(1.6rem, 5vw, 2.2rem); }

/* Sections */
.section { max-width: var(--measure); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0; }
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head .section-lede { grid-column: 1 / -1; margin-top: 1.1rem; }
.section-number {
  width: 2.6rem; height: 2.6rem; margin: 0; display: grid; place-items: center; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--chef-1); color: #fff; font: 1.05rem var(--display);
}
#campaign .section-number { background: var(--chef-2); }
#together .section-number { background: var(--chef-3); }
.section h2 { font-size: clamp(2.2rem, 6.5vw, 3.8rem); }
.section-lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; max-width: 46ch; }
.split { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.aside { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--sage); font: 0.98rem/1.55 var(--sans); color: var(--ink-2); max-width: 52ch; }

/* Steps: a dotted route between numbered stops. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.9rem 3.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.2rem; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper);
  font: 1.1rem var(--display);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: calc(1.2rem - 1.5px); top: 2.6rem; bottom: 0.3rem; border-left: 3px dotted var(--sage);
}
.steps h3 { font-size: 1.55rem; margin-bottom: 0.45rem; }
.steps p { margin: 0; max-width: 42ch; }

/* Chapter ledger */
.ledger { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li {
  display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 0.75rem; padding: 0.85rem 0 0.9rem;
  border-bottom: 1px dashed var(--ink-2);
}
.ledger-no { grid-row: span 3; font: 1.3rem/1.1 var(--display); color: var(--tomato-ink); }
.ledger-title { font: 1.2rem/1.2 var(--display); }
.ledger-place { font: 600 0.78rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage-ink); }
.ledger-menu { font-style: italic; color: var(--ink-2); line-height: 1.45; }

.columns { display: grid; gap: 0 3rem; font-size: 1.15rem; }
.columns p { max-width: 44ch; }

/* Closing availability band */
.section-status {
  max-width: none; margin-top: clamp(4rem, 9vw, 7rem); padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter);
  background: var(--ink); color: var(--cream);
}
.section-status > * { max-width: calc(var(--measure) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section-status h2 { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--butter); margin-bottom: 0.9rem; }
.status-line { font: clamp(1.5rem, 4vw, 2.3rem)/1.2 var(--display); margin-bottom: 1.1rem; }
.status-line + p { font-family: var(--sans); }
.section-status a:not(.button) { color: var(--cream); text-decoration-color: var(--butter); }
.section-status a:not(.button):hover { color: var(--butter); }
.section-status :focus-visible { outline-color: var(--butter); }
.section-status .button { box-shadow: 0 4px 0 #000; }

/* Documents: support, privacy, terms, 404 */
.document { max-width: 46rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.document-short { min-height: 50vh; }
.document-head { margin-bottom: 2.5rem; padding-bottom: 1.75rem; border-bottom: 3px solid var(--ink); }
.document h1 { font-size: clamp(2.8rem, 10vw, 4.6rem); margin-bottom: 1rem; }
.document h2 { font-size: clamp(1.6rem, 4.5vw, 2rem); margin: 2.75rem 0 0.9rem; }
.document h3 { font-size: 1.25rem; margin: 1.9rem 0 0.5rem; color: var(--sage-ink); }
.document section > h2:first-child { margin-top: 2.25rem; }
.document ul { padding-left: 1.2rem; }
.document li { margin-bottom: 0.45rem; }
.document ul.plain { list-style: none; padding: 0; }
details { border-bottom: 1px dashed var(--ink-2); }
details:first-of-type { border-top: 1px dashed var(--ink-2); }
summary {
  cursor: pointer; list-style: none; position: relative; padding: 0.95rem 2.25rem 0.95rem 0;
  font: 600 1.06rem/1.35 var(--sans);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0.25rem; top: 0.55rem; font: 1.6rem/1 var(--display); color: var(--tomato-ink); }
details[open] summary::after { content: '−'; }
details p { margin: 0 0 1.1rem; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { width: 100%; border-collapse: collapse; font: 0.95rem/1.45 var(--sans); min-width: 18rem; }
caption { text-align: left; font: 1.05rem var(--display); padding-bottom: 0.6rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px dashed var(--ink-2); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
td:last-child { white-space: nowrap; }

.choices {
  margin: 2rem 0; padding: 1.4rem 1.4rem 1.1rem; background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  scroll-margin-top: 1.5rem;
}
.choices h3 { margin-top: 0; color: var(--ink); }
.choices-status { font-weight: 600; }
.choices-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0 1.1rem; }
.choices-actions[hidden], .choices-id[hidden] { display: none; }
.choices-note, .choices-id { font: 0.9rem/1.5 var(--sans); color: var(--ink-2); }

/* Footer */
.colophon { border-top: 3px solid var(--ink); }
.section-status + .colophon, main:has(.section-status) + .colophon { border-top: 0; }
.colophon-inner {
  max-width: var(--measure); margin: 0 auto; padding: 1.75rem var(--gutter) 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  font: 0.95rem var(--sans);
}
.colophon-brand { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font: 1.1rem var(--display); }
.colophon-brand img { border-radius: 8px; border: 2px solid var(--ink); }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.colophon nav a { padding: 0.45rem 0; }
.colophon-fine { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--ink-2); }

@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { border-bottom: 1px dashed var(--ink-2); border-right: 1px dashed var(--ink-2); }
  .facts div:nth-child(4) { border-right: 0; }
  .columns { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: min(52rem, calc(100svh - 5rem)); }
  .hero h1 { font-size: clamp(4.5rem, 7.6vw, 7.75rem); }
  .facts { grid-template-columns: repeat(4, 1fr) 1.6fr; }
  .facts div { border-bottom: 0; padding: 1.3rem 1.1rem 1.15rem; }
  .facts div:nth-child(4) { border-right: 1px dashed var(--ink-2); }
  .facts .facts-wide { grid-column: auto; }
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .plate-sticky { position: sticky; top: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-route 1.8s cubic-bezier(0.45, 0, 0.2, 1) 0.25s forwards; }
  .route-butter { animation-delay: 0.6s; }
  @keyframes draw-route { to { stroke-dashoffset: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

@media (forced-colors: active) {
  .plate picture, .button, .choices { border-color: CanvasText; box-shadow: none; }
  .hero-routes { display: none; }
}

@media print {
  .masthead-nav, .hero-routes, .actions, .choices-actions { display: none; }
  .plate picture { box-shadow: none; transform: none; }
  .section-status { background: none; color: inherit; }
}
