@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --ink: #15223a;
  --ink-soft: #536078;
  --paper: #fffaf0;
  --paper-deep: #f4ecdc;
  --red: #35a853;
  --red-dark: #187536;
  --gold: #f4b83f;
  --mint: #8bc6a7;
  --line: #d9d0c0;
  --white: #fffefa;
  --shadow: 8px 8px 0 var(--ink);
  --display: 'Space Grotesk', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--body); }
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand-icon { width: 36px; height: 36px; flex: none; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 100; }

.site-header { height: 64px; padding: 0 clamp(20px, 4vw, 60px); display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); background: rgba(255,250,240,.96); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: .06em; }
.brand small { color: var(--red); font: 700 10px/1 var(--mono); letter-spacing: .17em; margin: 4px 0 0 -5px; align-self: flex-start; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--red); }

.hero { min-height: 430px; color: var(--paper); background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; overflow: hidden; }
.hero-grid { width: min(1100px, calc(100% - 48px)); min-height: 430px; margin: auto; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 35px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font: 500 12px/1 var(--mono); letter-spacing: .14em; }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: currentColor; }
.eyebrow.light { color: var(--gold); }
.hero h1 { max-width: 720px; margin: 16px 0 14px; font: 700 clamp(48px, 6vw, 72px)/.92 var(--display); letter-spacing: -.06em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { max-width: 550px; margin: 0; color: #cfd5df; font-size: clamp(15px, 1.7vw, 18px); }
.hero-button { display: inline-flex; align-items: center; gap: 32px; margin-top: 18px; padding: 12px 15px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); text-decoration: none; font: 700 13px/1 var(--body); transition: transform .15s, box-shadow .15s; }
.hero-button:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--red); }
.hero-button.dark { color: var(--paper); background: var(--ink); box-shadow: 5px 5px 0 var(--red); }
.hero-art { height: 350px; position: relative; }
.pixel-heart { position: absolute; width: 230px; height: 215px; top: 54px; left: 48%; transform: translateX(-50%) rotate(3deg); filter: drop-shadow(12px 12px 0 rgba(0,0,0,.28)); display: grid; grid-template-columns: repeat(5,1fr); grid-template-rows: repeat(5,1fr); }
.pixel-heart i { background: var(--red); }
.pixel-heart i:nth-child(1) { grid-area: 1/1/2/3; }.pixel-heart i:nth-child(2) { grid-area: 1/4/2/6; }.pixel-heart i:nth-child(3) { grid-area: 2/1/3/6; }.pixel-heart i:nth-child(4) { grid-area: 3/1/4/6; }.pixel-heart i:nth-child(5) { grid-area: 4/2/5/5; }.pixel-heart i:nth-child(6) { grid-area: 5/3/6/4; }
.pixel-heart i:nth-child(n+7) { display: none; }
.pixel-heart::after { content: ''; position: absolute; width: 42px; height: 42px; background: #76d68f; top: 50px; left: 48px; }
.pixel-sandwich { position: absolute; right: 0; bottom: 18px; width: 130px; transform: rotate(-8deg); filter: drop-shadow(8px 8px 0 rgba(0,0,0,.25)); }
.pixel-sandwich b { display: block; height: 26px; border: 4px solid var(--ink); }.pixel-sandwich b:first-child,.pixel-sandwich b:last-child { height: 38px; background: #e8a344; }.pixel-sandwich b:nth-child(2) { background: var(--mint); }.pixel-sandwich b:nth-child(3) { background: var(--red); }
.spark { position: absolute; color: var(--gold); font-size: 42px; }.spark-one { left: 8%; top: 20px; }.spark-two { right: 5%; top: 105px; font-size: 26px; }

.guide-index { width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: 55px 0 70px; }
.index-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.index-heading h2 { margin: 7px 0 0; font: 700 clamp(32px, 4vw, 44px)/1 var(--display); letter-spacing: -.045em; }
.guide-controls { max-width: 650px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: stretch; gap: 8px; }
.search-box { width: min(300px,100%); height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 15px; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.guide-controls .search-box { flex: 1; min-width: 0; }
.search-box svg { width: 21px; }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.select-box { display: flex; height: 50px; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.select-box select { min-width: 105px; padding: 0 27px 0 10px; color: var(--ink); background: transparent; border: 0; outline: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.sort-box select { min-width: 130px; }
.index-note { margin: -8px 0 24px; color: var(--ink-soft); font-size: 13px; }.index-note span { margin-right: 7px; color: var(--red); font: 700 18px var(--mono); }
.guide-grid { display: grid; gap: 24px; }
.guide-card { min-height: 145px; display: grid; grid-template-columns: 55px minmax(0,1fr) minmax(260px,340px); align-items: center; gap: 22px; padding: 24px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-left: 8px solid var(--red); box-shadow: 6px 6px 0 var(--ink); }
.guide-card.is-filtered-out { display: none !important; }
.guide-card.all-unreleased,.unreleased-guide { display: none; }
.show-hidden-guides .guide-card.all-unreleased { display: grid; }
.show-hidden-guides .unreleased-guide { display: flex; }
.card-number { align-self: start; color: var(--line); font: 700 34px/1 var(--display); }
.card-labels,.article-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.card-kicker { display: inline-block; padding: 4px 7px; color: var(--paper); background: var(--red); font: 500 10px/1 var(--mono); letter-spacing: .12em; }.card-kicker.type-map { color: var(--ink); background: var(--gold); }.card-kicker.type-guide { background: var(--ink-soft); }
.origin-tag { display: inline-block; padding: 4px 7px; border: 1px solid currentColor; font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.origin-imported { color: var(--ink-soft); background: #f0ebe1; }.origin-guide { color: var(--red-dark); background: #e3f4e7; }
.unreleased-tag { color: #8b4a00; background: #fff0d1; }
.card-copy h3 { margin: 6px 0 5px; font: 700 clamp(23px, 3vw, 30px)/1.1 var(--display); letter-spacing: -.025em; }
.card-copy p { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.card-actions { display: grid; gap: 8px; }.guide-action { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }.guide-action:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--red); }.guide-action span { display: grid; }.guide-action b { font-size: 13px; }.guide-action small { color: var(--ink-soft); font: 10px var(--mono); text-transform: uppercase; }.guide-action i { color: var(--red); font: 700 20px var(--display); font-style: normal; }.guide-action.action-primary { color: var(--paper); background: var(--ink); }.guide-action.action-primary small { color: #bac2d0; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--ink-soft); font: 500 12px/1 var(--mono); text-transform: uppercase; }
.card-meta span + span::before, .article-meta > span + span::before { content: '◆'; color: var(--gold); margin-right: 18px; font-size: 8px; }
.card-arrow { justify-self: end; font: 700 34px/1 var(--display); transition: .16s; }.empty-state { padding: 50px; text-align: center; border: 2px dashed var(--line); }

.guide-layout { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 860px); justify-content: center; gap: clamp(40px, 5vw, 75px); padding: 38px 35px 75px; }
.guide-sidebar { position: sticky; top: 30px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; scrollbar-width: thin; padding-right: 18px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--red); text-decoration: none; font-weight: 700; }
.toc p { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .14em; }.toc a { display: block; padding: 7px 0 7px 15px; color: var(--ink-soft); border-left: 2px solid var(--line); text-decoration: none; font-size: 13px; line-height: 1.25; }.toc a:hover,.toc a.active { color: var(--red); border-color: var(--red); }.toc .toc-l3 { padding-left: 28px; font-size: 12px; }.toc .toc-l4 { padding-left: 41px; font-size: 11px; }
.article-header { padding: 12px 0 32px; border-bottom: 2px solid var(--ink); }.article-header h1 { max-width: 850px; margin: 12px 0 12px; font: 700 clamp(40px, 5vw, 58px)/1 var(--display); letter-spacing: -.05em; }.article-header > p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 16px; }.mobile-toc-button { display: none; }
.prose { padding-top: 24px; font-size: 15px; }.prose > p,.prose > ul,.prose > ol,.prose > blockquote { max-width: 740px; }.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6 { font-family: var(--display); line-height: 1.12; letter-spacing: -.03em; scroll-margin-top: 30px; }.prose h1,.prose h2 { margin: 42px 0 15px; font-size: 31px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }.prose h3 { margin: 28px 0 10px; font-size: 23px; }.prose h4 { margin: 24px 0 9px; font-size: 18px; }.heading-anchor { opacity: 0; margin-left: 9px; color: var(--red); text-decoration: none; font: 500 .7em var(--mono); }.prose :is(h1,h2,h3,h4):hover .heading-anchor { opacity: 1; }
.prose p { margin: 0 0 18px; }.prose strong { font-weight: 800; }.prose a { color: var(--red-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }.prose ul,.prose ol { padding-left: 26px; margin: 0 0 24px; }.prose li { padding-left: 5px; margin: 6px 0; }.prose li::marker { color: var(--red); font-weight: 800; }.prose code { padding: 2px 6px; color: #a8212a; background: #f7e3dc; border: 1px solid #e7c8be; font: 13px/1.4 var(--mono); word-break: break-word; }
.prose li > :is(ul,ol) { margin: 6px 0 10px; padding-left: 21px; border-left: 2px solid var(--line); }
.prose li.has-children > .list-label { font-weight: 700; }
.prose > :is(ul,ol) > li.has-children { margin: 12px 0; padding: 9px 11px; background: var(--white); border-left: 4px solid var(--red); }
.prose img { display: block; max-width: min(100%, 760px); height: auto; margin: 20px 0; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.prose pre { position: relative; margin: 25px 0; padding: 24px; overflow-x: auto; color: #f3f5f8; background: var(--ink); border-left: 5px solid var(--red); }.prose pre code { padding: 0; color: inherit; background: none; border: 0; word-break: normal; }.copy-code { position: absolute; top: 8px; right: 8px; padding: 4px 8px; color: #fff; background: #ffffff16; border: 1px solid #ffffff40; cursor: pointer; font: 11px var(--mono); }
.callout { max-width: 760px; margin: 18px 0; padding: 14px 16px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; background: #e8f4ee; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }.callout-mark { width: 25px; height: 25px; display: grid; place-items: center; color: var(--paper); background: var(--ink); font: 700 14px var(--mono); }.callout-title { display: block; margin: 1px 0 3px; }.callout p:last-child { margin-bottom: 0; }.callout-warning { background: #fff0d1; border-left: 7px solid var(--gold); }.callout-important { background: #e3f4e7; border-left: 7px solid var(--red); }
.recipe-card { max-width: 760px; margin: 20px 0 28px; overflow: hidden; background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.recipe-card > header { padding: 13px 16px 11px; color: var(--paper); background: var(--ink); }
.recipe-card > header span { color: var(--mint); font: 500 9px/1 var(--mono); letter-spacing: .15em; }
.recipe-card > header h4 { margin: 4px 0 0; font: 700 18px/1.15 var(--display); letter-spacing: -.02em; }
.recipe-layout { display: grid; grid-template-columns: 210px 28px minmax(130px,1fr); align-items: center; gap: 13px; padding: 16px; background: var(--paper-deep); }
.recipe-grid { width: 210px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 7px; background: #c6bda9; border: 2px solid var(--ink); }
.recipe-slot { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; padding: 4px; overflow: hidden; text-align: center; color: var(--ink); background: var(--white); border: 2px solid #817967; box-shadow: inset 2px 2px 0 #eee5d4, inset -2px -2px 0 #b4aa98; }
.recipe-slot b { max-width: 100%; font: 700 9px/1.15 var(--body); overflow-wrap: anywhere; }
.recipe-slot.is-empty { background: #b8ae9b; box-shadow: inset 2px 2px 0 #9f9584, inset -2px -2px 0 #d6cdbb; }
.recipe-shapeless { width: 210px; min-height: 150px; display: grid; place-content: center; justify-items: center; padding: 16px; background: var(--white); border: 2px dashed var(--ink); text-align: center; }
.recipe-shapeless span { color: var(--red); font: 700 42px/1 var(--display); }.recipe-shapeless b { margin-top: 5px; font: 700 15px var(--display); }.recipe-shapeless small { color: var(--ink-soft); font-size: 10px; }
.recipe-arrow { color: var(--red); font: 700 28px/1 var(--display); text-align: center; }
.recipe-result { min-height: 92px; display: grid; place-content: center; padding: 13px; text-align: center; background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--red); }
.recipe-result small { color: var(--ink-soft); font: 500 9px var(--mono); letter-spacing: .12em; }.recipe-result strong { margin-top: 4px; font: 700 13px/1.25 var(--display); }
.recipe-ingredients { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; padding: 11px 16px 14px; border-top: 1px solid var(--line); }
.recipe-ingredients > b { padding-top: 3px; font: 700 11px var(--mono); text-transform: uppercase; }.recipe-ingredients ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }.recipe-ingredients li { margin: 0; padding: 3px 7px; background: #e8f4ee; border: 1px solid #b9d7c4; font-size: 10px; line-height: 1.35; }
.table-filter { width: min(420px,100%); margin: 24px 0 10px; padding: 10px 13px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); outline: 0; }.table-filter:focus { box-shadow: 3px 3px 0 var(--red); }.table-scroll { width: 100%; margin: 24px 0 34px; overflow-x: auto; border: 2px solid var(--ink); background: var(--white); }.table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.45; }.table-scroll th { position: sticky; top: 0; padding: 12px; text-align: left; color: var(--paper); background: var(--ink); font: 500 11px/1.3 var(--mono); letter-spacing: .04em; }.table-scroll td { min-width: 150px; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }.table-scroll tr:nth-child(even) td { background: #faf4e8; }.table-scroll code { white-space: nowrap; }
.inline-toc { display: none; }.prose blockquote { margin: 24px 0; padding: 12px 20px; border-left: 5px solid var(--gold); background: var(--white); }.prose hr { margin: 60px 0; border: 0; border-top: 2px solid var(--ink); }

.site-footer { min-height: 105px; padding: 24px clamp(20px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; color: var(--paper); background: var(--ink); }.site-footer > div { display: flex; align-items: center; gap: 15px; }.site-footer p { margin: 0; line-height: 1.35; }.site-footer span { color: #aeb7c7; font-size: 13px; }.site-footer a { color: var(--gold); font-size: 14px; text-decoration: none; }
.not-found { min-height: calc(100vh - 226px); display: grid; place-content: center; justify-items: start; padding: 40px; }.not-found h1 { margin: 15px 0 0; font: 700 clamp(45px,7vw,80px)/1 var(--display); letter-spacing: -.05em; }.not-found p { color: var(--ink-soft); font-size: 18px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 55px 0; }.hero-art { display: none; }.hero,.hero-grid { min-height: 400px; }
  .guide-card { grid-template-columns: 45px 1fr; }.card-actions { grid-column: 2; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-layout { display: block; padding: 40px 22px 90px; }.guide-sidebar { display: none; position: fixed; inset: 76px 0 0; max-height: none; z-index: 15; padding: 28px; background: var(--paper); }.guide-sidebar.is-open { display: block; }.guide-sidebar .back-link { display: none; }.guide-sidebar .toc { max-width: 500px; margin: auto; }
  .mobile-toc-button { display: inline-block; padding: 0; color: var(--red); background: transparent; border: 0; font: 700 12px var(--mono); text-transform: uppercase; cursor: pointer; }.article-header { padding-top: 10px; }
  .inline-toc { display: block; margin: 30px 0; padding: 22px; background: var(--white); border: 2px solid var(--ink); }.inline-toc .toc a { padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 16px; }.brand-icon { width: 30px; height: 30px; }.brand { font-size: 16px; }.brand small { display: none; }.site-header nav { gap: 16px; font-size: 12px; }.site-header nav a:first-child { display: none; }
  .hero-grid { width: min(100% - 32px, 1240px); min-height: 360px; padding: 42px 0; }.hero { min-height: 360px; }.hero h1 { font-size: clamp(46px,14vw,62px); }.hero p { font-size: 15px; }
  .guide-index { padding: 42px 0 55px; }.index-heading { align-items: stretch; flex-direction: column; }.guide-controls { width: 100%; max-width: none; justify-content: stretch; }.guide-controls .search-box { flex-basis: 100%; width: 100%; }.select-box { flex: 1; }.select-box select { width: 100%; min-width: 100px; }.guide-card { grid-template-columns: 1fr; min-height: 0; gap: 14px; padding: 20px 17px; }.card-number { display: none; }.card-copy { grid-column: 1; }.card-copy p { font-size: 13px; }.card-actions { grid-column: 1; grid-template-columns: 1fr; }
  .article-header h1 { font-size: 47px; }.article-header > p { font-size: 16px; }.article-meta { gap: 10px; }.article-meta > span + span::before { margin-right: 10px; }.prose h1,.prose h2 { font-size: 31px; }.prose h3 { font-size: 23px; }.prose { font-size: 15px; }.callout { grid-template-columns: 28px 1fr; padding: 15px; }.table-scroll { width: calc(100vw - 44px); }
  .recipe-layout { grid-template-columns: 1fr; justify-items: center; }.recipe-grid,.recipe-shapeless { width: min(250px,100%); }.recipe-arrow { transform: rotate(90deg); }.recipe-result { width: min(250px,100%); }.recipe-ingredients { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 25px; }.site-footer > a { margin-left: 50px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }
@media print { .site-header,.site-footer,.guide-sidebar,.mobile-toc-button,.reading-progress,.copy-code,.table-filter { display: none !important; }.guide-layout { display: block; padding: 0; }.prose { font-size: 11pt; }.table-scroll { overflow: visible; border: 1px solid #000; }.article-header h1 { font-size: 34pt; } }
