/* The Brief: a broadsheet frame with modern reading type.
   Serif display faces are self-hosted, OFL (see OFL-*.txt); body text uses the system sans. */

@font-face {
  font-family: 'Maguntia';
  src: url(/static/unifrakturmaguntia-latin-400-normal.woff2) format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair';
  src: url(/static/playfair-display-latin-900-normal.woff2) format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair';
  src: url(/static/playfair-display-latin-ext-900-normal.woff2) format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --desk: #E4DED0;
  --paper: #FAF7F0;
  --ink: #1B1A17;
  --ink-soft: #3A3833;
  --ink-faint: #6A665C;
  --rule: #1B1A17;
  --rule-light: #DDD6C6;
  --tint: #F1ECE0;
  --accent: #A8432A;
  --visited: #6A665C;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: 'Playfair', Georgia, 'Times New Roman', serif;
  --blackletter: 'Maguntia', 'Old English Text MT', serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #0F0E0C;
    --paper: #1A1916;
    --ink: #EEEAE0;
    --ink-soft: #D0CBBE;
    --ink-faint: #9C978A;
    --rule: #EEEAE0;
    --rule-light: #34322C;
    --tint: #23211D;
    --accent: #E58A6B;
    --visited: #9C978A;
  }
}
:root[data-theme="dark"] {
  --desk: #0F0E0C;
  --paper: #1A1916;
  --ink: #EEEAE0;
  --ink-soft: #D0CBBE;
  --ink-faint: #9C978A;
  --rule: #EEEAE0;
  --rule-light: #34322C;
  --tint: #23211D;
  --accent: #E58A6B;
  --visited: #9C978A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sheet {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 32px 28px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 32px rgba(0,0,0,.08);
}

/* ---------- top strip: edition navigation ---------- */

.strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 13px;
  font-weight: 500;
}
.strip-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-faint);
  text-decoration: none;
}
.strip-link:hover { color: var(--ink); }
.strip-link[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }

/* ---------- masthead ---------- */

.masthead { padding-top: 10px; }

.nameplate-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nameplate {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0 10px;
}

.ear {
  justify-self: start;
  max-width: 210px;
  border: 1px solid var(--rule-light);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.ear span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.ear-right { justify-self: end; }

.folio {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
  padding: 6px 0;
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.folio-side { color: var(--ink-faint); font-weight: 500; }
.folio-date { text-align: center; }
.folio-right { text-align: right; }

/* ---------- banner headline, epigraph, contents ---------- */

.banner {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
  max-width: 24ch;
  margin: 18px auto 0;
}
.banner-small { font-size: clamp(28px, 4vw, 42px); }

.epigraph {
  max-width: 70ch;
  margin: 8px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
}
.epigraph span { white-space: nowrap; }
.epigraph a { text-decoration-color: var(--rule-light); text-underline-offset: 2px; }

/* a one-line index, set like the folio rather than as buttons */
.contents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  margin: 14px 0 0;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 600;
}
.contents a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.contents a + a { border-left: 1px solid var(--rule-light); }
.contents a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contents span {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

/* ---------- page structure ----------
   Front: editorial in the main area, the games news-in-brief column as a rail beside it.
   Inside: the remaining sections flow through three columns.
   Items never split across columns, so each reads top to bottom. */

.front {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 0 26px;
  margin-top: 18px;
}
.front > :only-child { grid-column: 1 / -1; }
.front-rail {
  border-left: 1px solid var(--rule-light);
  padding-left: 26px;
}

.flow { column-gap: 26px; column-rule: 1px solid var(--rule-light); }
.flow-editorial { column-count: 2; }
.flow-rail { column-count: 1; }
.flow-inside {
  column-count: 3;
  margin-top: 22px;
  padding-top: 4px;
  border-top: 3px double var(--rule);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2px;
  padding: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  scroll-margin-top: 12px;
  break-after: avoid;
}
.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1 1 0;
  height: 4px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* inside the flow, later headings start a new block mid-column */
.flow-inside .section-heading:not(:first-child) { margin-top: 10px; }

.story, .brief {
  break-inside: avoid;
  padding: 12px 0;
  border-top: 1px solid var(--rule-light);
}
.section-heading + .story, .section-heading + .brief,
.flow > .story:first-child, .flow > .brief:first-child { border-top: none; }

/* ---------- full stories (gaming editorial); the first is the lead, across both columns ---------- */

.story-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 5px;
  text-wrap: balance;
}
.story-head a, .brief-title a { text-decoration: none; }
.story-head a:hover, .brief-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-head a:visited, .brief-title a:visited { color: var(--visited); }

.flow-editorial .story:first-child {
  column-span: all;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.flow-editorial .story:first-child + .story { border-top: none; }
.flow-editorial .story:first-child .story-head { font-size: 32px; line-height: 1.08; }
.story-body .counterpoint, .story-body .previously { break-inside: avoid; }
.flow-editorial .story:first-child .story-body { column-count: 2; column-gap: 26px; column-rule: 1px solid var(--rule-light); }
.flow-editorial .story:first-child .story-text:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.2em;
  line-height: 0.85;
  padding: 0.05em 0.08em 0 0;
  color: var(--ink);
}

.meta {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 7px;
}

.story-text {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.read-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.read-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- short items ---------- */

.brief { padding: 9px 0; }
.brief .meta { margin-bottom: 3px; font-size: 11px; }

.brief-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 3px;
}

.brief-text {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-soft);
}

.counterpoint {
  margin: 2px 0 8px;
  padding: 8px 11px;
  background: var(--tint);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.brief .counterpoint { margin: 7px 0 0; }
.counterpoint b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* continuing storylines */
.thread-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.meta .thread-tag { display: inline; margin: 0 4px 0 0; }

.previously {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-faint);
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 2px solid var(--rule-light);
}
.brief .previously { margin: 7px 0 0; }

.calm-line { text-align: center; margin: 40px 0; }

/* ---------- archive ---------- */

.archive-list {
  list-style: none;
  max-width: 820px;
  margin: 28px auto 8px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.archive-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-light);
}
.archive-list a {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.archive-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.leader { flex: 1 1 24px; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-5px); }
.archive-date {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-faint);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 3px double var(--rule);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- narrower pages ---------- */

@media (max-width: 1100px) {
  .front { grid-template-columns: 1fr; }
  .front-rail { border-left: none; padding-left: 0; margin-top: 18px; border-top: 3px double var(--rule); padding-top: 4px; }
  .flow-rail { column-count: 3; }
}

@media (max-width: 860px) {
  .flow-rail, .flow-inside { column-count: 2; }
}

@media (max-width: 760px) {
  .sheet { margin: 0; padding: 0 16px 24px; box-shadow: none; }
  .ear { display: none; }
  .nameplate-row { grid-template-columns: 1fr; justify-items: center; }
  .folio { grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: 10.5px; }
  .folio-date { grid-column: 1 / -1; grid-row: 1; }
  /* sections as a single swipeable row */
  .contents {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 14px -16px 0;
    padding: 4px 6px;
    scrollbar-width: none;
  }
  .contents::-webkit-scrollbar { display: none; }
  .flow-editorial, .flow-rail, .flow-inside,
  .flow-editorial .story:first-child .story-body { column-count: 1; }
  .flow-editorial .story:first-child .story-head { font-size: 27px; }
  .story-text { font-size: 16.5px; }
  .brief-text { font-size: 16px; }
  .brief-title { font-size: 16.5px; }
  .archive-list li { flex-wrap: wrap; gap: 4px; }
  .leader { display: none; }
  .archive-date { flex-basis: 100%; }
}
