@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800;1,800&family=DM+Sans:wght@400;500;650;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root { color-scheme: dark; --ink: #f1eee8; --mute: #b5b1bb; --line: #414047; --accent: #ff895f; --paper: #161519; --sans: 'DM Sans', Arial, sans-serif; --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif; --mono: 'IBM Plex Mono', monospace; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, .field:focus-visible { outline: 3px solid #d5ff8c; outline-offset: 3px; }
.portfolio, body.article { max-width: 98rem; margin: auto; padding-inline: clamp(1.1rem, 5vw, 5.5rem); }
.mast, .article header, .article footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.wordmark, .signature { text-decoration: none; font: italic 800 2.6rem/.9 var(--display); letter-spacing: -.06em; }
.wordmark span, .topic, .entry small { color: var(--accent); }
nav { display: flex; gap: clamp(.9rem, 3vw, 2.5rem); }
nav a, footer a { text-decoration: none; font-size: .95rem; }
nav a:hover, footer a:hover, nav [aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }
.cover { display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); align-items: center; gap: clamp(1.5rem,4vw,5rem); padding: clamp(3rem,6vw,6rem) 0; }
.byline h1, .article h1 { margin: 0; font: 800 clamp(5rem,10.2vw,10rem)/.81 var(--display); letter-spacing: -.045em; }
.byline h1 em { color: var(--accent); }
.byline p, .intro { max-width: 33ch; margin: 2rem 0 0; color: var(--mute); font-size: clamp(1.05rem,1.55vw,1.35rem); }
.game { min-width: 0; border: 1px solid #58535f; background: #201e25; }
.game-bar, .game-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; }
.game-bar, .topic, .entry small { font: 500 .875rem/1.3 var(--mono); letter-spacing: .055em; }
.game-bar { background: #24202b; border-bottom: 1px solid var(--line); }
.game-bar span:last-child, small, .foot, .entry-detail { color: var(--mute); }
.field { width: 100%; position: relative; aspect-ratio: 1.68; }
.field.playing { touch-action: none; cursor: crosshair; }
.landscape { width: 100%; height: 100%; display: block; }
.game-controls { border-top: 1px solid var(--line); }
.game-controls small { display: block; font: .875rem/1.4 var(--sans); }
.game-controls button { flex: none; color: #161519; background: #d5ff8c; font: bold .95rem var(--sans); border: 0; padding: .7rem 1rem; cursor: pointer; }
.game-controls button:hover { background: #eeffd4; }
.index { border-top: 1px solid var(--line); }
.index h2, .article h2 { font: 700 clamp(2.5rem,5vw,4.4rem)/1 var(--display); letter-spacing: -.025em; margin: 2rem 0 1.2rem; }
.entry { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem,3vw,3rem); align-items: center; border-top: 1px solid var(--line); padding: 1rem 0; text-decoration: none; }
.entry img { object-fit: cover; width: clamp(4.5rem,9vw,8rem); height: 4.5rem; filter: grayscale(1); }
.entry:hover img, .entry:focus-visible img { filter: none; }
.entry h3 { margin: .1em 0 0; font: 700 clamp(1.65rem,3vw,3rem)/1 var(--display); }
.entry:hover h3, .entry:focus-visible h3 { color: var(--accent); }
.entry-detail { font-size: .95rem; }
.foot, .article footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 3rem; padding-block: 1.5rem; }
.lead { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 2rem; margin: clamp(3rem,6vw,6rem) 0; }
.lead img { width: 100%; max-height: 25rem; aspect-ratio: 1.4; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.topic { text-transform: uppercase; margin-bottom: 1.5rem; }
.article h1 { font-size: clamp(4rem,8vw,8rem); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); border-top: 1px solid var(--line); }
.article h2 { font-size: clamp(2rem,3.5vw,3rem); }
.notes p { color: var(--mute); max-width: 55ch; font-size: 1.1rem; line-height: 1.65; }
@media (max-width: 48rem) {
  .cover, .lead, .notes { grid-template-columns: 1fr; }
  .byline h1 { font-size: clamp(5.2rem,16vw,8rem); }
  .byline h1 br { display: none; }
  .byline h1 em { display: block; }
  .byline p { margin-top: 1.3rem; max-width: 42ch; }
  .entry { grid-template-columns: auto 1fr; }
  .entry-detail { display: none; }
  .notes { gap: 0; }
  .article header { flex-wrap: wrap; }
  .lead img { max-height: 18rem; }
}
@media (max-width: 24rem) { .game-controls { padding: .65rem; } .game-controls small { max-width: 18ch; } }
