@font-face {
  font-family: "Academy Cut"; src: url("/assets/academy-display.woff") format("woff");
  font-style: normal; font-weight: 700 900; font-display: swap;
}
:root {
  color-scheme: dark; --ink: #f3f2f1; --muted: #c4c3c3; --line: #49494b;
  --paper: #0d0d0f; --panel: #1d1d20; --cream: #252527; --orange: #ff701c; --burnt: #ffa45f;
  --display: "Academy Cut", "Arial Black", system-ui, sans-serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: var(--display); --mono: ui-monospace, "SFMono-Regular", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
main:focus { outline: none; }
h1,h2,h3,p,ul,ol { margin: 0; }
h1,h2,h3 { font-family: var(--display); font-weight: 750; line-height: 1.13; }
a { color: inherit; text-underline-offset: .19em; }
button,input,select,textarea { font: inherit; color: inherit; }
button,summary { cursor: pointer; }
button,input,select,textarea { border-radius: .3rem; }
:focus-visible { outline: 3px solid #ff9850; outline-offset: 3px; }
::selection { color: #15100b; background: #ff9c55; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: .7rem; left: .7rem; transform: translateY(-180%); border-radius: .28rem; background: var(--ink); color: #101012; padding: .55rem .9rem; }
.skip-link:focus { transform: none; }
.container { width: min(94%, 93rem); margin-inline: auto; }
.ui-icon { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.17em; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner,.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .9rem; }
.header-inner { min-height: 3.35rem; padding-block: .5rem; }
.brand,.header-nav a { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark,.brand-icon { display: block; width: 1.95rem; height: 1.95rem; flex: none; }
.brand-name { font-size: 1.2rem; letter-spacing: -.04em; line-height: 1.15; }
.brand-name b { font-weight: 780; }
.header-nav a { gap: .65rem; font-weight: 600; font-size: .95rem; }
.header-nav a:hover,.back-link:hover,.footer-inner a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); align-items: center; column-gap: 3vw; padding: 1.85rem .22rem 1.35rem; }
.hero-copy { min-width: 0; }
.hero h1,.story-intro h1,.guide-heading :is(h1,h2) {
  font-family: var(--display); font-weight: 750; line-height: .96; letter-spacing: -.025em;
  /* Ink dots belong to the letterforms. Clear solid text survives forced colours. */
  background-color: #eeedef;
  background-image: radial-gradient(ellipse at center, #69696d 0 .43px, transparent .76px);
  background-size: 2.35px 2.15px;
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.hero h1 { font-size: clamp(2.6rem,4.5vw,4.25rem); }
.hero-break { display: block; }
.hero-copy > p { max-width: 38rem; color: #d3d2d3; margin-top: .5rem; font-size: 1.03rem; line-height: 1.42; }
.hero-art { display: grid; place-items: center; min-width: 0; }
.file-illustration { width: min(100%, 25.7rem); display: block; height: auto; }
.search-form { width: min(100%,33.2rem); min-height: 2.75rem; margin-top: 1.1rem; display: flex; align-items: center; gap: .78rem; padding: 0 1.05rem; background: #232325; border: 1px solid #98989b; border-radius: .38rem; }
.search-form:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.search-form .ui-icon { width: 1.25rem; height: 1.25rem; color: #d8d8d8; }
.search-form input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; font-size: 1rem; padding: .52rem 0; }
.search-form input:focus-visible { outline: 0; }
.search-form input::placeholder { opacity: 1; color: #d4d3d5; }
.sample-notice { display: flex; align-items: center; gap: .72rem; background: #222225; border: 1px solid #646466; border-radius: .4rem; color: #e2e2e2; padding: .42rem 1rem; font-size: .88rem; line-height: 1.45; }
.sample-notice .ui-icon { color: #fb9637; }
.sourced-link { margin-left: auto; color: #ffae72; font-weight: 650; }
.catalog-layout { display: grid; grid-template-columns: clamp(11.4rem,17.4vw,15.7rem) minmax(0,1fr); gap: clamp(1.2rem,2.05vw,2.5rem); margin-block: 1.55rem 4rem; align-items: start; }
.category-rail,.catalog-results { min-width: 0; }
.category-rail h2 { margin: .6rem .4rem .88rem; color: #cecdce; font: 680 .76rem/1.15 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.category-list { display: grid; gap: .08rem; }
.category-link { display: flex; align-items: center; gap: .68rem; min-height: 2.16rem; border: 1px solid transparent; border-radius: .32rem; padding: .36rem .55rem; font-size: .88rem; line-height: 1.35; text-decoration: none; color: #e4e3e5; }
.category-link:hover { background: #242426; }
.category-link[aria-current="page"],.category-link[aria-current="true"] { background: #40230f; border-color: #945020; color: #fff5ea; font-weight: 650; }
.category-link[aria-current] :is(.ui-icon,.category-count) { color: #ffa151; }
.category-name { flex: 1; min-width: 0; }
.category-count { color: #bfbec0; font-size: .8rem; }
.category-select,.no-script-categories { display: none; }
html:not(.js) :is(.search-form,.copy-button,.category-select) { display: none; }
.results-header { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; margin: 0 0 .85rem; }
.results-header h2 { font-size: clamp(1.6rem,2.22vw,2.2rem); letter-spacing: -.02em; }
.results-count { flex: none; color: #c6c5c7; font-size: .88rem; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.project-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #1e1e20; border: 1px solid #656568; border-radius: .47rem; text-decoration: none; }
.project-card:hover { border-color: #c1c1c2; background: #232325; }
.card-art { display: grid; place-items: center; overflow: hidden; background: #222224; aspect-ratio: 320 / 151; border-bottom: 1px solid #525254; }
.output-illustration { display: block; width: 100%; height: 100%; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: start; min-width: 0; padding: .66rem 1.15rem 0; }
.card-category,.detail-category,.guide-project { color: #e3e2e2; font: 650 .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.card-title { margin-top: .44rem; font: 750 clamp(1.17rem,1.65vw,1.55rem)/1.13 var(--display); letter-spacing: -.015em; }
.card-outcome { font-family: "Arial Narrow", var(--sans); font-size: 1.06rem; line-height: 1.25; color: #d2d1d3; margin: .44rem 0 .85rem; }
.card-detail { display: flex; align-items: start; gap: .45rem; width: 100%; margin-top: auto; padding: .58rem 0 .72rem; color: #d8d7d8; font-size: .85rem; line-height: 1.4; border-top: 1px solid #48484b; }
.card-detail .ui-icon { margin-top: .1rem; }
.empty-state { border: 1px dashed #67676b; border-radius: .35rem; padding: 1.5rem; background: #1a1a1d; }
.empty-state h3 { font-size: 1.4rem; }
.empty-state p { margin-block: .5rem; color: var(--muted); }
.empty-state a,.clear-filters { color: var(--burnt); }
.clear-filters { display: inline-block; margin-top: .8rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.1rem; font-size: .88rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: #f1f1f1; font-size: .88rem; font-weight: 560; text-decoration: none; }
.back-link .ui-icon { width: .95rem; height: .95rem; }
.project-story { width: min(100%, 64rem); margin: 1.1rem auto 3rem; }
.project-story > .sample-notice { margin-top: 1rem; font-style: italic; border-color: #444448; }
.project-story > .sample-notice .ui-icon { color: #c5c5c9; }
.story-intro { padding: 1.17rem 0 1.18rem; border-bottom: 1px solid var(--line); }
.detail-category { display: flex; gap: .45rem; align-items: center; font-size: .76rem; color: #c4c3c5; }
.story-intro h1 { font-size: clamp(2.5rem,4.1vw,3.95rem); margin-top: .78rem; line-height: 1.12; }
.project-outcome { color: #d3d3d4; margin-top: .29rem; font-size: 1.07rem; line-height: 1.5; }
.project-layout { display: grid; grid-template-columns: minmax(0,2.22fr) minmax(0,1fr); grid-template-areas:"sample aside" "requirements aside"; align-items: start; column-gap: clamp(1.4rem,4vw,3.3rem); margin-top: 1.55rem; }
.project-sample,.setup-card { background: var(--panel); border: 1px solid #555558; border-radius: .34rem; }
.project-sample { grid-area: sample; min-width: 0; padding: .94rem 1.02rem 1.08rem; }
.project-layout h2 { margin-bottom: .68rem; font: 750 1.48rem/1.25 var(--display); letter-spacing: -.01em; }
.project-sample .example-table { table-layout: fixed; }
.example-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #4e4e52; border-top: 0; border-radius: 0 0 .25rem .25rem; overflow: hidden; background: #242427; color: #efeff0; }
.example-table caption { padding: .55rem .77rem; text-align: left; background: #29292c; color: #ededee; border: 1px solid #4e4e52; border-radius: .27rem .27rem 0 0; font-weight: 550; }
.example-table th,.example-table td { padding: .39rem .78rem; text-align: left; vertical-align: top; line-height: 1.4; border-bottom: 1px solid #4c4c4e; }
.example-table th { background: #303033; font-weight: 640; font-size: .89rem; }
.example-table tr:last-child td { border-bottom: 0; }
.example-table td { font-size: 1rem; }
.example-table:has(th:nth-child(3):last-child) :is(th,td):first-child { width: 46%; }
.setup-aside { grid-area: aside; min-width: 0; }
.setup-card { padding: 1.15rem; }
.setup-card > .ui-icon { width: 1.55rem; height: 1.55rem; color: #ccc; }
.setup-card h2 { margin: .48rem 0 .55rem; }
.setup-card p { color: #d0cfd2; }
.setup-card .primary-button { margin-top: .9rem; }
.source-summary { margin-top: 1.03rem; }
.source-summary p + p,.source-summary h3,.source-summary ul { margin-top: .55rem; }
.source-summary h3 { margin-bottom: .3rem; font-size: 1rem; }
.source-summary :is(p,li),.project-section :is(p,li) { color: #dad9dc; }
.project-requirements { grid-area: requirements; }
.project-section { padding: 1.15rem 0 1.25rem; border-bottom: 1px solid #3d3d40; }
.project-section h2 { margin-bottom: .4rem; }
.project-section ul,.source-summary ul,.guide-section ul,.guide-section ol { padding-left: 1.15rem; }
.project-section p + p,.project-section p + ul,.guide-section p + p { margin-top: .55rem; }
.primary-button,.secondary-button,.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .57rem 1.12rem; min-height: 2.55rem; border: 1px solid transparent; border-radius: .34rem; text-decoration: none; font: 650 1rem/1.3 var(--sans); }
.primary-button { background: #fa771e; color: #261104; border-color: #ef852c; }
.primary-button:hover { background: #ff974e; }
.secondary-button,.icon-button { background: #252527; color: var(--ink); border-color: #7a7a80; }
.secondary-button:hover,.icon-button:hover { background: #39393c; }
body:has(.guide-panel[open]) { overflow: hidden; }
.guide-panel { color: var(--ink); background: var(--panel); }
.guide-content textarea { display: block; min-width: 0; width: 100%; margin-top: .35rem; padding: .7rem; resize: vertical; border: 1px solid #717176; background: #18181b; font: .9rem/1.5 var(--mono); overflow-wrap: anywhere; }
.copy-note,.guide-version { font-size: .88rem; color: var(--muted); }
.field-label,.copy-fallback label { display: block; margin-block: .8rem; }
.copy-status:not(:empty) { color: #fcb980; padding: .5rem 0; }
.standalone-guide,.reading-page { width: min(100%,48rem); margin: 1.6rem auto 4rem; }
.reading-page h1 { font-size: clamp(2.5rem,4.2vw,3.9rem); margin-block: 1rem; }
.reading-lead { font-size: 1.1rem; color: var(--muted); }
.reading-page section,.guide-section { padding-block: 1.18rem; border-bottom: 1px solid var(--line); }
.reading-page section h2,.guide-section :is(h2,h3) { font-size: 1.35rem; margin-bottom: .6rem; }
.guide-section video { display: block; width: 100%; }
.reading-page .primary-button { margin-top: 1rem; }
@media (min-width: 86rem) { .hero { padding-block: 2.1rem 1.6rem; } }
@media (max-width: 65rem) { .card-body { padding-inline: .8rem; } .catalog-layout { grid-template-columns: 11.4rem minmax(0,1fr); gap: 1.1rem; } }
@media (max-width: 58rem) { .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero h1 { font-size: 2.85rem; } }
@media (max-width: 47rem) {
  .catalog-layout { display: block; }
  .category-rail { display: none; }
  .category-select { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
  .category-select select { flex: 1; min-width: 0; width: 100%; padding: .6rem 2rem .6rem .72rem; appearance: none; border: 1px solid #77777b; background: #242426 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23eee' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .7rem center/.7rem; }
  html:not(.js) .no-script-categories { display: block; margin-bottom: 1rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .project-layout { grid-template-columns: minmax(0,1fr); grid-template-areas:"sample" "aside" "requirements"; gap: 1rem; }
  .project-story { margin-top: 1rem; }
  .source-summary { margin-bottom: .2rem; }
}
@media (max-width: 35rem) {
  .container { width: calc(100% - 2rem); }
  .brand,.header-nav a { gap: .3rem; }
  .brand-name { font-size: 1rem; }
  .brand-icon,.brand-mark { width: 1.68rem; height: 1.68rem; }
  .header-nav a { font-size: .8rem; }
  .hero { padding: 1.45rem 0 1rem; }
  .hero h1 { font-size: clamp(2.2rem,8.5vw,3rem); }
  .hero-copy > p { margin-top: .65rem; font-size: 1rem; }
  .hero-break { display: inline; }
  .sample-notice { align-items: flex-start; flex-wrap: wrap; gap: .35rem .45rem; padding-inline: .6rem; }
  .sample-notice span { flex: 1 1 75%; }
  .sourced-link { margin-left: 1.6rem; }
  .catalog-layout { margin-top: 1.15rem; }
  .results-header h2 { font-size: 1.55rem; }
  .card-grid { grid-template-columns: minmax(0,1fr); }
  .card-body { padding-inline: 1rem; }
  .card-title { font-size: 1.38rem; }
  .story-intro h1 { font-size: 2.3rem; }
  .project-sample { padding: .75rem; }
  .project-layout { margin-top: 1.05rem; }
  .example-table :is(th,td,caption) { padding: .4rem .35rem; }
  .category-link { min-height: 2.6rem; }
}
@media (forced-colors: active) { .hero h1,.story-intro h1,.guide-heading :is(h1,h2) { background: none; color: CanvasText; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
