:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: #f4f5ee;
  background: #151a17;
  --surface: #202821;
  --border: #3a473b;
  --muted: #bbc6b8;
  --lime: #d0ec8e;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--lime); text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.shell { width: min(100% - 36px, 1050px); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-200%); background: var(--surface); padding: .5rem 1rem; }
.skip:focus { transform: translateY(0); z-index: 10; }
.top { border-bottom: 1px solid var(--border); }
.top-inner, .foot-inner, .toolrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top-inner { min-height: 65px; }
.wordmark { color: #f4f5ee; font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.wordmark span, .eyebrow { color: var(--lime); }
nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding: clamp(1.8rem, 4vw, 3.7rem) 0 1.45rem; }
.eyebrow { margin: 0 0 .6rem; font-size: .83rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
h1 { margin: 0 0 .6rem; font-size: clamp(2.55rem, 7vw, 5.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .7rem; }
.lede { margin: .4rem 0 0; color: var(--muted); max-width: 64ch; font-size: clamp(1rem, 2.2vw, 1.17rem); }
.stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; min-height: 190px; background: #121612; border: 1px solid var(--border); border-radius: 16px; }
.cover, .loading { position: absolute; inset: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#121712de,#1217120d 75%); pointer-events: none; }
.cover-action { z-index: 1; position: absolute; inset: auto 16px clamp(17px, 4vw, 38px); display: grid; justify-items: center; gap: .6rem; font-size: .83rem; }
button { color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .54rem .88rem; cursor: pointer; }
button:hover { border-color: var(--lime); }
button.primary { color: #192014; background: var(--lime); border-color: var(--lime); padding: .74rem 1.18rem; font-weight: 800; }
.primary span { margin-inline-end: .35rem; }
.loading { display: none; place-content: center; justify-items: center; gap: .9rem; }
.stage[data-gf-state="loading"] .loading { display: grid; }
.loading span { width: 29px; height: 29px; border: 3px solid var(--border); border-top-color: var(--lime); border-radius: 50%; animation: spin .95s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .loading span { animation: none; } }
.toolrow { padding-top: .85rem; font-size: .9rem; }
.buttons { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
[data-gf-liked] { border-color: var(--lime); color: var(--lime); }
.controls, .comments { margin-block: 2rem; padding: clamp(1rem, 2.7vw, 1.65rem); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.keygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.keygrid > div { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: 8px; padding: .55rem; }
kbd { display: inline-grid; place-items: center; min-width: 2.1rem; padding: .1rem .45rem; border-radius: 5px; color: var(--lime); background: #131a14; border: 1px solid #50604d; white-space: nowrap; }
.controls p, .comments p, .prose p, .prose li { color: var(--muted); }
.controls p { margin-bottom: 0; }
.prose { max-width: 74ch; margin-block: 2.8rem; }
.prose h2 { margin-top: 1.7rem; }
.prose p, .prose li { margin-bottom: .75rem; }
.interior { min-height: 45vh; }
.interior h1 { font-size: clamp(2.1rem, 5.1vw, 3.75rem); }
.comments form { display: grid; max-width: 540px; gap: .4rem; justify-items: start; }
.comments input, .comments textarea { color: inherit; background: #151a17; border: 1px solid var(--border); border-radius: 6px; padding: .55rem; width: 100%; }
.comments label { margin-top: .45rem; }
.comment { border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
.comment time { color: var(--muted); padding-left: .5rem; }
.foot { border-top: 1px solid var(--border); padding-block: 1rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) {
  .keygrid { grid-template-columns: repeat(2, 1fr); }
  .top-inner nav { gap: .65rem; font-size: .8rem; }
  .foot-inner { justify-content: start; }
}
