:root {
  --bg: #14171c;
  --bg-paper: #1b1f25;
  --bg-sidebar: #232830;
  --bg-stripe: #1e2329;
  --ink: #e8e6df;
  --ink-soft: #c2bfb5;
  --ink-mute: #8a877e;
  --rule: #2e3440;
  --rule-strong: #44505d;
  --link: #7fb3ff;
  --link-visited: #b59cff;
  --serif: "Source Serif 4", "Source Serif Pro", "Charter", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Source Code Pro", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:visited { color: var(--link-visited); }
a:hover { background: rgba(127, 179, 255, 0.1); }

p { margin: 0.6rem 0 1rem; }

.site-header {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { background: transparent; }
.brand-mark { display: none; }
.primary-nav { display: flex; gap: 1.5rem; font-family: var(--sans); font-size: 0.92rem; }
.primary-nav a { color: var(--ink); text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; background: transparent; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 1.6rem 0 0.6rem;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.05rem; margin-top: 0.75rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem; }
h2 { font-size: 1.45rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.2rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

.content { padding: 1.5rem 1.5rem 4rem; }

.muted { color: var(--ink-mute); }
.dim { color: var(--ink-mute); font-size: 0.92em; }

code, pre, .mono {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}

.hatnote {
  font-style: italic;
  color: var(--ink-mute);
  border-left: 3px solid var(--rule-strong);
  padding: 0.2rem 0.85rem;
  margin: 0.85rem 0;
  font-size: 0.95rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.85rem 0 1.4rem;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  font-size: 0.95rem;
}
th, td {
  padding: 0.45rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
th {
  background: var(--bg-sidebar);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-strong);
}
tbody tr:nth-child(even) { background: var(--bg-stripe); }
tbody tr:last-child td { border-bottom: none; }

.track-num { font-family: var(--mono); color: var(--ink-mute); font-size: 0.85rem; white-space: nowrap; }
.track-title { font-weight: 700; }
.track-artist { color: var(--ink-soft); }
.duration { font-family: var(--mono); font-size: 0.88rem; color: var(--ink-mute); white-space: nowrap; }

audio {
  height: 32px;
  width: 100%;
  max-width: 280px;
}

.entry-table { width: 100%; }
.entry-table .title-cell {
  font-size: 1.05rem;
  font-weight: 700;
}
.entry-table .title-cell .desc {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-top: 0.15rem;
}

.game-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  margin: 0.5rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.game-header img {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg-paper);
  display: block;
}
.game-header dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 1rem;
  margin: 0.6rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.game-header dl dt { color: var(--ink-mute); }
.game-header dl dd { margin: 0; }

.infobox {
  float: right;
  width: 21rem;
  margin: 0 0 1.25rem 1.5rem;
  background: var(--bg-paper);
  border: 1px solid var(--rule-strong);
  font-size: 0.92rem;
}
.infobox-title {
  background: var(--bg-sidebar);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule-strong);
}
.infobox-image {
  padding: 0.5rem;
  text-align: center;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--rule);
}
.infobox-image img { max-width: 100%; height: auto; border: 1px solid var(--rule); }
.infobox-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  border-bottom: 1px solid var(--rule);
}
.infobox-row:last-child { border-bottom: none; }
.infobox-label {
  background: var(--bg-stripe);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  color: var(--ink-soft);
}
.infobox-value { padding: 0.4rem 0.55rem; }

.tune-in {
  background: var(--bg-paper);
  border: 1px solid var(--rule-strong);
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.tune-in .label {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
}
.tune-in audio { flex: 1; min-width: 250px; max-width: none; }

button.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}
button.play-btn:hover { background: var(--ink-soft); }
.play-btn .play-tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-paper);
  padding: 1.25rem 0;
  font-family: var(--sans);
  font-size: 0.83rem;
  color: var(--ink-mute);
  margin-top: 3rem;
}
.site-footer p { margin: 0.2rem 0; }

.section-intro { font-size: 1.05rem; max-width: 60ch; }

.note-bar {
  background: rgba(255, 200, 90, 0.08);
  border: 1px solid rgba(255, 200, 90, 0.3);
  border-left: 4px solid rgba(255, 200, 90, 0.8);
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  margin: 1rem 0;
}

@media (max-width: 720px) {
  .infobox { float: none; width: 100%; margin: 0 0 1rem; }
  .game-header { grid-template-columns: 120px 1fr; gap: 1rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
