/* Video Game Registry: one dark theme for every visitor. Light ink on deep navy, with orange label tape */
:root {
  --paper: #0F1631;
  --sheet: #161F40;
  --ink: #E4E8F4;
  --ink-soft: #A3ADC8;
  --cobalt: #FF9A5C;
  --rule: #2C3760;
  --tape: #FF7A30;
  --tape-ink: #10173A;
  --focus: #FF7A30;
  --foot: #0A1026;
  --foot-ink: #D5DAEA;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tape); color: var(--tape-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 42rem; margin-left: auto; margin-right: auto; padding: 0 16px; }
.wrap-wide { max-width: 1040px; margin-left: auto; margin-right: auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* masthead */
.masthead { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.1rem; padding-bottom: 1rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wm-a { font-family: var(--head); font-stretch: 75%; font-weight: 500; font-size: .95rem; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: .2rem; }
.wm-b { font-family: var(--head); font-stretch: 125%; font-weight: 900; font-size: 1.9rem; letter-spacing: -.01em;
  background: linear-gradient(transparent 58%, var(--tape) 58%, var(--tape) 92%, transparent 92%); padding: 0 .12em; margin-left: -.12em; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--head); font-weight: 600; font-size: .98rem; }
.nav a { text-decoration: none; padding: .3rem 0; display: inline-block; }
.nav a:hover { text-decoration: underline; }

/* platform labels: the one loud element, label-maker tape */
.plat {
  display: inline-block; font-family: var(--head); font-weight: 700; font-stretch: 85%; font-size: .78rem; line-height: 1;
  background: var(--tape); color: var(--tape-ink); text-decoration: none; padding: .32em .55em .3em; margin-left: .5rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 50%, 100% 100%, 0 100%, 4px 50%);
}
.plat:hover { color: var(--tape-ink); text-decoration: underline; }

.lead-tags { font-family: var(--head); font-size: .9rem; color: var(--ink-soft); margin: 0 0 .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 0; }
.lead-tags time { font-variant-numeric: tabular-nums; }

/* home: lead story */
.list-title { font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 2rem; margin: 2rem 0 0; }
.lead { display: grid; gap: 1.25rem; padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--rule); }
.lead h2 { font-family: var(--head); font-stretch: 106%; font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .9rem; text-wrap: balance; }
.lead h2 a { text-decoration: none; }
.lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.dek { font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
@media (min-width: 960px) {
  .lead { grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: center; }
}

/* home: ledger of the latest stories */
.ledger { padding: 2rem 0 3rem; }
.ledger-title { font-family: var(--head); font-stretch: 75%; font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 4.2rem 1fr; gap: .3rem 1rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.row time { font-family: var(--head); font-stretch: 75%; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft); padding-top: .2rem; }
.row h3 { font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0 0 .3rem; text-wrap: balance; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.row p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; max-width: 62ch; }
.row-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-family: var(--head); font-size: .85rem; color: var(--ink-soft); }
.row-meta .plat { margin-left: 0; }
@media (min-width: 860px) {
  .row { grid-template-columns: 5rem 1fr 13rem; }
  .row-meta { grid-column: 3; justify-content: flex-end; align-content: flex-start; text-align: right; padding-top: .25rem; }
  .row-meta .src { flex-basis: 100%; }
}

/* article */
.story { padding: 2.5rem 0 1rem; }
.byline { font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--ink-soft); margin: -.25rem 0 1rem; }
.lead-tags .by { margin-left: .6rem; }
.story-head h1 { font-family: var(--head); font-stretch: 104%; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 1rem; text-wrap: balance; }
.story-head .dek { font-size: 1.3rem; margin-bottom: 2rem; }
.story-head .plat:first-of-type { margin-left: .75rem; }
.story-img { margin-top: 0; margin-bottom: 2.25rem; }
.story-img img { width: 100%; background: var(--rule); }
.story-img figcaption { font-family: var(--head); font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; }
.story-body { line-height: 1.7; }
.story-body p { margin: 0 0 1.25rem; }
.story-body h2 { font-family: var(--head); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 2.25rem 0 .75rem; }
.story-body ul { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.story-body li { margin: 0 0 .35rem; }
.story-body li::marker { color: var(--cobalt); }
.story-body a { color: var(--cobalt); }
.sources { margin: 2.5rem 0 1rem; padding: 1.25rem 1.25rem .5rem; background: var(--sheet); border-left: 4px solid var(--tape); font-family: var(--head); font-size: .95rem; line-height: 1.45; }
.sources h2 { font-size: 1rem; margin: 0 0 .6rem; }
.sources ul { padding-left: 1.1rem; }
.sources li { margin-bottom: .6rem; }
.more { padding-bottom: 3rem; }
.more h2 { font-family: var(--head); font-stretch: 75%; font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 1.5rem; margin: 1.5rem 0 .5rem; }
.more ul { list-style: none; padding: 0; margin: 0; }
.more li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); font-family: var(--head); font-weight: 600; line-height: 1.3; }
.more li a { text-decoration: none; }
.more li a:hover { text-decoration: underline; }
.more time { flex: none; font-weight: 500; font-stretch: 75%; color: var(--ink-soft); }

.empty { padding: 4rem 16px; }
.empty h1 { font-family: var(--head); font-weight: 800; }

/* footer */
.foot { background: var(--foot); color: var(--foot-ink); margin-top: 1rem; border-top: 1px solid var(--rule); }
.foot a { color: var(--foot-ink); }
.foot a:hover { color: var(--tape); }
.foot-row { display: grid; gap: 1.25rem; padding-top: 2rem; padding-bottom: 2rem; font-family: var(--head); font-size: .92rem; }
.foot-brand { margin: 0; font-weight: 800; font-stretch: 115%; font-size: 1.1rem; line-height: 1.3; }
.foot-brand span { font-weight: 400; font-stretch: 100%; font-size: .92rem; opacity: .8; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-legal { margin: 0; opacity: .7; font-size: .82rem; max-width: 60ch; }
@media (min-width: 860px) { .foot-row { grid-template-columns: 1fr auto; } .foot-legal { grid-column: 1 / -1; } }

/* ads stay empty until switched on */
.ad { min-height: 0; }

/* review page and drafts (preview build only) */
.draft-banner { background: var(--tape); color: var(--tape-ink); font-family: var(--head); font-weight: 700; text-align: center; padding: .35rem; font-size: .9rem; }
.review { padding: 2rem 16px 3rem; }
.review h1 { font-family: var(--head); font-weight: 800; }
.rv { background: var(--sheet); padding: 1.25rem; margin: 1.5rem 0; border-left: 4px solid var(--tape); }
.rv h2 { font-family: var(--head); font-size: 1.25rem; line-height: 1.25; margin: .2rem 0; }
.rv h3 { font-family: var(--head); font-size: .95rem; margin: 1rem 0 .3rem; }
.rv h3 span { font-weight: 400; color: var(--ink-soft); }
.rv pre { white-space: pre-wrap; font-family: var(--text); font-size: 1rem; background: var(--paper); padding: .75rem; margin: 0; }
.rv-status, .rv-file { font-family: var(--head); font-size: .85rem; color: var(--ink-soft); margin: 0; }
.rv-status { font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
