:root {
  color-scheme: light;
  --paper: #f8f4eb;
  --ink: #252119;
  --muted: #60584c;
  --line: #d7cebe;
  --orange: #f58551;
  --rust: #9c3d20;
  --cream: #fff5d9;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(1192px, calc(100% - 64px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.eyebrow, .meta, .number, .label { font: 700 .72rem/1.35 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow::before { content: ''; width: 7px; height: 7px; background: currentColor; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--cream); transform: translateY(-180%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { border-bottom: 1px solid var(--ink); }
.topbar-inner { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-size: 1.46rem; font-weight: 900; letter-spacing: -.075em; white-space: nowrap; }
.brand img { width: 33px; height: 33px; }
.brand b { color: var(--rust); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.85rem, 3vw, 2.45rem); }
.nav a { font: 700 .75rem/1.25 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--rust); text-decoration: underline; text-underline-offset: .35rem; }
.edition { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); padding: .42rem .65rem; color: var(--muted); white-space: nowrap; }
.edition::before { content: ''; background: #53744d; width: 7px; height: 7px; }
.hero { background: var(--orange); border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: 410px; padding-block: 48px; }
.hero h1, .intro h1, .story h1 { font-weight: 900; letter-spacing: -.08em; line-height: .96; overflow-wrap: anywhere; }
.hero-inner > div:first-child { container-type: inline-size; }
.hero h1 { font-size: min(14.4cqw, 5.75rem); letter-spacing: -.069em; margin-block: .2em .24em; }
.hero h1 span { color: #612611; }
.hero p { max-width: 34ch; font-size: clamp(1.05rem, 2vw, 1.26rem); line-height: 1.42; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: var(--ink); color: var(--cream); border: 1px solid var(--ink); padding: .69rem .9rem; font: 700 .76rem/1.32 var(--mono); }
.button:hover { background: var(--cream); color: var(--ink); }
.button-alt { background: transparent; color: var(--ink); }
.button-alt:hover { background: var(--ink); color: var(--cream); }
.terminal { position: relative; border: 2px solid var(--ink); box-shadow: 8px 8px 0 #a44629; background: #2b261e; color: var(--cream); }
.terminal-bar, .terminal-status { display: flex; align-items: center; gap: .48rem; padding: .72rem .9rem; color: #ead9b9; font: .69rem/1.35 var(--mono); }
.terminal-bar { border-bottom: 1px solid #6b5340; }
.terminal-bar i { width: 7px; height: 7px; background: #ea8759; }
.terminal-bar i:nth-child(2) { background: #eabe68; }
.terminal-bar i:nth-child(3) { background: #a7b384; }
.terminal-bar span { margin-left: auto; }
.terminal-scene { min-height: 188px; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; background: repeating-linear-gradient(0deg, transparent 0 15px, #44392a 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, #44392a 15px 16px), #2b261e; }
.terminal-scene img { width: min(47%, 163px); filter: drop-shadow(0 7px 0 #17140f) drop-shadow(0 -3px 0 #e88e5d); }
.terminal-scene::before, .terminal-scene::after { content: ''; width: 5px; height: 5px; position: absolute; background: #ffc372; box-shadow: 5px 0 #ffc372, -5px 0 #ffc372, 0 5px #ffc372, 0 -5px #ffc372, 18px 24px #d48356, -19px -34px #d48356; top: 41%; left: 22%; }
.terminal-scene::after { top: 29%; left: 78%; }
.terminal-status { border-top: 1px solid #6b5340; justify-content: space-between; }
.terminal-status strong { color: #ffc372; font-weight: normal; }
.intro { border-bottom: 1px solid var(--line); padding-block: 3.4rem; }
.intro h1, .story h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); margin-block: .55rem .85rem; }
.intro p { max-width: 58ch; color: var(--muted); font-size: 1.11rem; }
.feed { padding-block: 2.65rem 4.65rem; scroll-margin-top: 1.5rem; }
.section-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.15rem; }
.section-head h2, .panel h2 { font-size: 1.85rem; line-height: 1.05; letter-spacing: -.057em; }
.section-head .number { margin-left: auto; color: var(--muted); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .48rem; margin-bottom: 1.85rem; }
.filter { padding: .35rem .62rem; border: 1px solid var(--line); font: 700 .75rem/1.4 var(--mono); }
.filter:hover { border-color: var(--ink); }
.filter[aria-current] { color: var(--cream); background: var(--ink); border-color: var(--ink); }
.feed-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); align-items: start; gap: clamp(1.7rem, 4vw, 3.7rem); }
.entries { border-top: 1px solid var(--ink); }
.entry { padding: 1.25rem 0 1.35rem; border-bottom: 1px solid var(--line); }

.entry h3 { margin-block: .42rem .32rem; font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.13; letter-spacing: -.042em; overflow-wrap: anywhere; }
.entry h3 a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; }
.entry h3 a:hover, .mini-link:hover, .site-footer a:hover, .source-grid a:hover, .story a:not(.button):hover { color: var(--rust); }
.entry h3 a:hover span:first-child, .mini-link:hover span:nth-child(2), .source-grid a:hover { text-decoration: underline; text-underline-offset: .16em; }
.entry p { max-width: 65ch; color: var(--muted); }
.entry p, .mini-link, .source-grid { overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: .42rem .65rem; align-items: center; color: var(--muted); }
.tag { display: inline-flex; gap: .4rem; align-items: center; color: var(--rust); }
.tag::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.tag.model { color: #416043; }
.arrow { color: var(--rust); font: 700 1rem/1.4 var(--mono); }
.side { display: grid; gap: 1.1rem; }
.panel { padding: 1.08rem; background: #f0eade; border: 1px solid var(--line); }
.panel-accent { background: #fbe0c8; border-color: #e1b695; }
.panel h2 { margin: .38rem 0 .75rem; font-size: 1.44rem; }
.panel p { color: var(--muted); font-size: .92rem; }
.mini-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.mini-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .18rem .6rem; padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 760; line-height: 1.2; }
.mini-link .meta { grid-column: 1 / -1; }
.panel-cta { display: inline-block; margin-top: .55rem; color: var(--rust); font: 700 .75rem/1.5 var(--mono); }
.panel-cta:hover { text-decoration: underline; }
.empty { padding-block: 2rem; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: .48rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.story { max-width: 820px; padding-block: clamp(2.5rem, 7vw, 5.5rem); min-height: 54vh; }
.back { display: inline-block; margin-bottom: 1.35rem; color: var(--rust); font: 700 .78rem/1.4 var(--mono); }
.story h1 { font-size: clamp(2.45rem, 6vw, 4.65rem); }
.story-lead { color: var(--muted); font-size: clamp(1.12rem, 2.5vw, 1.42rem); line-height: 1.45; }
.story-body { margin-top: 1.75rem; font-size: 1.085rem; overflow-wrap: anywhere; }
.story-body p + p { margin-top: 1em; }
.story-source { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.25rem; }
.story-source p { color: var(--muted); margin-top: .55rem; font-size: .9rem; }
.story-source p a { text-decoration: underline; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .78rem; padding-bottom: 1.75rem; }
.source-grid h3 { margin: .36rem 0; font-size: 1.08rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; padding-block: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.footer-links a { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 860px) {
  .edition { display: none; }
  .wrap { width: calc(100% - 44px); }
  .hero-inner { gap: 1.8rem; min-height: 365px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { min-height: 61px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 26px; height: 26px; }
  .nav { gap: .75rem; justify-content: flex-end; }
  .nav a { font-size: .65rem; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 1.6rem; padding-block: 2.1rem 2.55rem; }

  .terminal { margin-right: 8px; max-width: 440px; }
  .terminal-scene { min-height: 130px; }
  .terminal-scene img { width: 105px; }
  .feed { padding-block: 1.85rem 3rem; }
  .feed-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.6rem; }
  .section-head .number { display: none; }
}
