/* Full Course website */
:root {
  --bg: #16100c;
  --bg2: #1d1510;
  --panel: #241a13;
  --panel2: #2e2219;
  --line: #48352a;
  --ink: #f4ead9;
  --dim: #c0aa93;
  --accent: #e8925a;
  --accent2: #ffc390;
  --ok: #7fd18b;
  --red: #ff7a6a;
  /* tier colours, as in the game's meal frames */
  --t0: #8a8a8a; --t1: #c8794a; --t2: #d6d6d6; --t3: #f2c94c; --t4: #3dd47a; --t5: #b57bea;
  --radius: 10px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf5ea; --bg2: #f3e9d6; --panel: #fffdf8; --panel2: #f4ecdc; --line: #dccab0;
    --ink: #2a1d14; --dim: #6b5847; --accent: #a8501f; --accent2: #7f3a12; --ok: #2f7d3b; --red: #b32d2d;
    --t0: #6f6f6f; --t1: #a85a2e; --t2: #7d7d7d; --t3: #a87b00; --t4: #1f8a4c; --t5: #7d47b8;
  }
}
:root[data-theme="light"] {
  --bg: #fbf5ea; --bg2: #f3e9d6; --panel: #fffdf8; --panel2: #f4ecdc; --line: #dccab0;
  --ink: #2a1d14; --dim: #6b5847; --accent: #a8501f; --accent2: #7f3a12; --ok: #2f7d3b; --red: #b32d2d;
  --t0: #6f6f6f; --t1: #a85a2e; --t2: #7d7d7d; --t3: #a87b00; --t4: #1f8a4c; --t5: #7d47b8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent2); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; overflow-wrap: anywhere; }
pre { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--accent); color: #000; padding: 6px 10px; z-index: 99; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--dim); text-decoration: none; padding: 6px 11px; border-radius: 7px; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--panel); }
.menu-btn { display: none; margin-left: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; flex-direction: column; }
  .nav.open { display: flex; }
}

/* hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,16,12,.2) 0%, rgba(22,16,12,.55) 55%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 90px 0 46px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.7); margin-bottom: .25em; display: flex; align-items: center; gap: 18px; }
.hero h1 img { width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(0 3px 10px rgba(0,0,0,.6)); }
.hero p.lead { font-size: 1.2rem; max-width: 40em; color: #fbf1e3; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.pagehead { padding: 54px 0 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.pagehead p { color: var(--dim); max-width: 44em; font-size: 1.1rem; margin: 0; }
.eyebrow { color: var(--accent); font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6em; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 9px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn.primary { background: linear-gradient(180deg, #f2a774, #d4763c); color: #2a1206; border-color: #f2a774; }
.btn.primary:hover { filter: brightness(1.08); color: #2a1206; }
.dlnote { margin: 16px 0 0; max-width: 40em; padding: 10px 14px; border-left: 4px solid var(--accent); background: rgba(22,16,12,.72); color: #fff; border-radius: 0 8px 8px 0; font-size: .95rem; }
main .narrow .dlnote, main .wrap .dlnote { background: var(--panel); color: var(--ink); }

/* sections and cards */
main section { padding: 10px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.feature .ico { width: 48px; height: 48px; image-rendering: pixelated; margin-bottom: 10px; }
.stat { text-align: center; }
.stat b { display: block; font: 700 2.2rem var(--serif); color: var(--accent); }
.stat span { color: var(--dim); font-size: .9rem; }
.callout { border-left: 4px solid var(--accent); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px; margin: 1.2em 0; }
.callout p:last-child { margin: 0; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--dim); margin: 0 4px 4px 0; }

.tw { overflow-x: auto; margin: 1em 0 1.6em; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel2); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td img.i { width: 24px; height: 24px; image-rendering: pixelated; display: inline-block; vertical-align: -6px; margin-right: 6px; }

/* tiers */
.stars { letter-spacing: .08em; white-space: nowrap; }
.tier0 { --t: var(--t0); } .tier1 { --t: var(--t1); } .tier2 { --t: var(--t2); } .tier3 { --t: var(--t3); } .tier4 { --t: var(--t4); } .tier5 { --t: var(--t5); }
.tname { color: var(--t); font-weight: 700; }

/* steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 1em 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 62px; }
ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 700 1rem var(--serif); }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.chip { background: var(--panel); color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 6px 15px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: #2a1206; background: var(--accent); border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.gallery a.shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.gallery a.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a.shot:hover img { transform: scale(1.04); }
.gallery a.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: .88rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.strip a.shot { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: block; }
.strip a.shot img { width: 100%; height: 100%; object-fit: cover; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8,5,3,.94); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 16px; }
.lb.open { display: flex; }
.lb img { max-height: calc(100vh - 110px); max-width: 100%; border-radius: 6px; box-shadow: 0 8px 50px #000; }
.lb .cap { color: #ddd; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb .x { top: 14px; right: 14px; } .lb .p { left: 14px; top: 50%; } .lb .n { right: 14px; top: 50%; }

/* a shot beside text */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 26px; align-items: center; margin: 26px 0; }
.split > img, .split > a > img { border-radius: var(--radius); border: 1px solid var(--line); }
.split.flip > :first-child { order: 2; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* dishes */
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 14px; }
.dish { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--t); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dish[hidden] { display: none; }
.dhead { display: flex; align-items: center; gap: 12px; }
.dhead > img { width: 48px; height: 48px; image-rendering: pixelated; flex: none; background: var(--panel2); border: 2px solid var(--t); border-radius: 6px; padding: 6px; box-sizing: content-box; }
.dhead h3 { margin: 0 0 2px; font-size: 1.12rem; }
.dhead .meta { font-size: .88rem; color: var(--dim); }
.fams { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .86rem; }
.fam { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.made { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; }
.made .st { color: var(--accent); font-weight: 600; margin-right: 4px; }
.made .arrow { color: var(--dim); }
.slot { width: 40px; height: 40px; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; display: inline-grid; place-items: center; position: relative; flex: none; }
.slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.slot .n { position: absolute; right: 1px; bottom: -2px; font: 700 .8rem var(--mono); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.slot[data-tip]:hover::after, .slot[data-tip]:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 10; white-space: nowrap; background: #100010; color: #fff; border: 2px solid #2d0a63; border-radius: 3px; padding: 3px 8px; font: 600 .82rem var(--sans); pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.made .also { flex-basis: 100%; color: var(--dim); font-size: .82rem; }
.dish .job { margin: 0; color: var(--dim); font-size: .9rem; font-style: italic; }
.cgrid { display: inline-grid; gap: 2px; background: #c6c6c6; padding: 4px; border-radius: 3px; border: 2px solid #555; }

/* toc layout for the guide */
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 80px; font-size: .92rem; padding-top: 24px; }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--dim); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--accent); border-left-color: var(--accent); }
.with-toc > * { min-width: 0; }
@media (max-width: 900px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; } .toc a { border: 1px solid var(--line); border-radius: 99px; } }

details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; padding: 13px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

footer { margin-top: 70px; border-top: 1px solid var(--line); background: var(--bg2); padding: 34px 0 44px; color: var(--dim); font-size: .92rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer a { color: var(--dim); } footer a:hover { color: var(--accent); }
footer ul { list-style: none; padding: 0; margin: 0; } footer li { margin: 3px 0; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .gallery a.shot img { transition: none; } }
