:root {
  color-scheme: dark;
  --night: #0b191b;
  --panel: #102326;
  --cream: #fbf5df;
  --amber: #ffd080;
  --mint: #a6dbca;
  --subtle: #bdd0c9;
  --sans: "Segoe UI", Roboto, Inter, sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  font: 100%/1.55 var(--sans);
  background: var(--night);
  color: var(--cream);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure, pre { margin: 0; }
body { min-width: 0; }
a { color: inherit; }
a:focus-visible { outline: .18rem solid #d59e40; outline-offset: .28rem; }
[hidden] { display: none !important; }
.shell { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; left: .5rem; top: -8rem; z-index: 10; background: var(--cream); color: var(--night); padding: .55rem 1rem; }
.skip:focus { top: .5rem; }
.topbar { background: #0b191bef; border-bottom: 1px solid #34413b; }
.topbar-inner { display: flex; align-items: center; min-height: 4.4rem; gap: clamp(1rem, 3.5vw, 3rem); }
.station-mark { display: inline-grid; flex: none; place-items: center; width: 2.65rem; height: 2.65rem; }
.station-mark > span {
  width: 2.05rem; height: 2.05rem; padding: .35rem; border: 1px solid #ac9362; border-radius: .43rem;
  background: #323126; display: flex; align-items: flex-end; justify-content: center; gap: 2px; transform: rotate(-7deg);
}
.station-mark i { display: block; width: .25rem; height: 72%; background: var(--amber); transform: skewY(-18deg); }
.station-mark i:nth-child(2) { height: 100%; }
.station-mark i:nth-child(3) { height: 53%; }
.sections, .language-switch { display: flex; align-items: center; }
.sections { gap: clamp(.85rem, 2.4vw, 2.2rem); font-size: .98rem; font-weight: 550; }
.sections a, .language-switch a { text-decoration: none; }
.sections a { padding-block: .48rem; color: #e0e7d9; }
.sections a:hover, .language-switch a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: .22em; }
.language-switch { margin-inline-start: auto; gap: .16rem; font-size: .9rem; }
.language-switch > * { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .36rem .67rem; border: 1px solid transparent; border-radius: .32rem; }
.language-switch a { color: #c5d2c7; }
.language-switch [aria-current] { color: var(--cream); border-color: #45574d; background: #1d2b27; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #071517; border-bottom: 1px solid #425046; }
.art, .art img, .art::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.art { z-index: -1; }
.art img { display: block; object-fit: cover; object-position: 58% 60%; }
.art::after {
  content: ""; background: linear-gradient(90deg, #071619dc, #071619ac 29%, #07161942 48%, transparent 64%),
    linear-gradient(0deg, #08171778, transparent 24%);
}
.hero-inner { min-height: clamp(34rem, 47vw, 44rem); display: flex; align-items: center; padding-block: clamp(2.7rem, 5.5vw, 5.4rem); }
.hero-copy { max-width: min(48%, 37rem); }
.genre { display: flex; align-items: center; gap: .75rem; color: var(--amber); font: 650 .88rem/1.4 var(--sans); letter-spacing: .125em; text-transform: uppercase; }
.genre::before { content: ""; width: 1.95rem; height: 2px; background: currentColor; }
h1 { margin: 1.15rem 0; color: #fff6d9; font-size: clamp(3.9rem, 7.5vw, 7.25rem); font-weight: 750; line-height: .94; letter-spacing: -.062em; }
h1 span { display: block; }
.lead { max-width: 29rem; color: #edf1e5; font-size: clamp(1.02rem, 1.37vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; margin-top: clamp(1.35rem, 2.2vw, 2.1rem); }
.start { display: inline-flex; justify-content: center; align-items: center; gap: .72rem; min-width: 9.5rem; min-height: 3.24rem; padding: .55rem 1.7rem; border-radius: .35rem; background: var(--amber); color: #1d241c; text-decoration: none; font-size: 1.05rem; font-weight: 720; }
.start:hover { background: #ffe1a3; }
.start i { width: 0; height: 0; border-block: .34rem solid transparent; border-inline-start: .51rem solid currentColor; }
.resume { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3rem; text-decoration: none; font-weight: 650; color: #f0f4e7; }
.resume > span { text-decoration: underline; text-decoration-color: #c1d3c08a; text-underline-offset: .21rem; }
.resume:hover > span { text-decoration-color: currentColor; }
.resume small { margin-top: .18rem; color: #ccdbd0; font-size: .81rem; font-weight: 400; }
.resume b { font-weight: inherit; }
.chapter { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.1rem; color: #dee6d8; font-size: .88rem; }
.chapter i { width: .22rem; height: .22rem; flex: none; background: #acb9a8; border-radius: 50%; }
.idea { background: var(--night); }
.idea-inner, .author-inner { display: grid; align-items: center; gap: clamp(2.4rem, 9vw, 9rem); }
.idea-inner { grid-template-columns: 1fr .92fr; padding-block: clamp(3.3rem, 6vw, 6.3rem); }
h2 { font-size: clamp(2.05rem, 3.3vw, 3.25rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.idea-copy p { max-width: 56ch; margin-top: 1rem; color: var(--subtle); font-size: 1.04rem; line-height: 1.62; }
.program { min-width: 0; overflow: hidden; border: 1px solid #405750; border-radius: .65rem; background: var(--panel); }
.program-head { display: flex; align-items: center; gap: .55rem; padding: .87rem 1.3rem; border-bottom: 1px solid #344b45; font-size: .91rem; color: #dae7dc; }
.terminal-glyph { font: 600 1.1rem/1 var(--mono); color: var(--mint); }
.code-language { margin-inline-start: auto; font: .85rem/1.2 var(--mono); color: #baccc1; }
.program pre { padding: 1.25rem 1.4rem .8rem; overflow-x: auto; font: 1.04rem/1.75 var(--mono); color: #e0e9da; }
.program code { font: inherit; }
.keyword { color: #d0b7f0; }
.function { color: #a8dece; }
.number { color: #ffd080; }
.program figcaption { margin: 0 1.4rem; padding: .8rem 0 1.15rem; border-top: 1px solid #30443f; color: #c0cec2; font-size: .92rem; }
.author { background: #eeeada; color: #192823; }
.author-inner { grid-template-columns: .62fr 1.24fr; align-items: start; padding-block: clamp(3rem, 6vw, 5.7rem); }
.author h2 { margin-top: .22rem; }
.letter { max-width: 38.5rem; border-inline-start: .17rem solid #ae8b46; padding-inline-start: clamp(1rem, 2.8vw, 2.4rem); }
.letter > p:first-child { font: 1.45rem/1.48 var(--sans); letter-spacing: -.02em; text-wrap: pretty; }
.signature { margin-top: 1rem; font-size: .94rem; font-weight: 600; color: #4c5c4f; }
.project-link { display: inline-block; margin-top: .45rem; padding-block: .55rem; color: #285c4f; font-weight: 650; text-underline-offset: .2em; }
.project-link:hover, .project-link:focus-visible { color: #123b31; text-decoration-thickness: 2px; }
.author-email { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: baseline; gap: .12rem .6rem; padding-block: .55rem; color: #415349; text-decoration: none; }
.author-email .address { color: #285c4f; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.author-email:hover .address, .author-email:focus-visible .address { color: #123b31; text-decoration-thickness: 2px; }
@media (min-width: 740px) { .shell { width: min(100% - 7rem, 76rem); } }
@media (max-width: 780px) and (min-width: 641px) {
  .hero-copy { max-width: 53%; }
  .hero-inner { min-height: 31rem; }
  .art img { object-position: 64% 60%; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: .8rem; min-height: 3.7rem; }
  .sections { gap: .85rem; font-size: .875rem; }
  .language-switch { font-size: .86rem; gap: 0; }
  .language-switch > * { padding: .31rem .42rem; }
  .station-mark { width: 1.95rem; }
  .station-mark > span { width: 1.76rem; height: 1.76rem; }
  .hero { --mobile-art-height: clamp(17rem, 73vw, 27rem); }
  .hero-inner { min-height: 0; padding-top: calc(var(--mobile-art-height) - 2rem); padding-bottom: 2rem; align-items: flex-end; }
  .art { height: var(--mobile-art-height); }
  .art img { object-position: 80% 62%; }
  .art::after { background: linear-gradient(0deg, #071517 1%, #07151754 26%, transparent 49%); }
  .hero-copy { max-width: 100%; }
  .genre { font-size: .76rem; }
  h1 { margin: .82rem 0 .9rem; font-size: clamp(3.7rem, 12.5vw, 5.6rem); }
  .lead { font-size: 1.04rem; }
  .actions { margin-top: 1.25rem; }
  .chapter { margin-top: .95rem; }
  .idea-inner, .author-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .letter > p:first-child { font-size: 1.25rem; }
}
@media (max-width: 374px) {
  .shell { width: calc(100% - 1.6rem); }
  .topbar-inner { gap: .55rem; }
  .sections { gap: .6rem; }
  .language-switch > * { padding-inline: .3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .start { transition: background .16s; }
}
