/* Shared stylesheet for the static public pages in the new look. Dark only, matching the game. */
:root {
  color-scheme: dark;
  --bg: #09090b;
  --card: #0f0f12;
  --card-2: #141418;
  --border: #38342e;
  --fg: #e1dcd1;
  --muted: #9a937f;
  --gold: #cba24e;
  --gold-hi: #ecd694;
  --cell: rgba(255,255,255,.1);
  --display: 'Cinzel', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(circle at 50% 0, rgba(30,30,40,.5), rgba(9,9,11,1) 70%) fixed;
  color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55;
}
a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg { display: block; }
.wrap { max-width: 1000px; margin: 0 auto; padding-inline: 16px; padding-block: 0 56px; display: flex; flex-direction: column; gap: 28px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .14em; color: var(--gold-hi); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; min-width: 0; }
.nav a { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-block: 6px; }
.nav a[aria-current] { color: var(--gold); border-bottom: 2px solid var(--gold); }
.enter { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(203,162,78,.7); border-radius: 5px; padding: 10px 16px; }
.enter:hover { background: rgba(203,162,78,.1); text-decoration: none; }

.eyebrow { margin: 0 0 6px; font-family: var(--display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 5vw, 42px); line-height: 1.15; letter-spacing: .03em; color: var(--gold-hi); text-wrap: balance; }
.lede { max-width: 66ch; margin: 14px 0 0; font-size: 17px; }
.jumps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.jump { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; background: var(--card); border: 1px solid var(--border); border-bottom: 3px solid var(--c); border-radius: 5px; color: var(--fg); font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.jump:hover { background: var(--card-2); text-decoration: none; }

.sec, .class h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.glance { background: var(--card); border: 1px solid var(--border); border-radius: 5px; padding: 16px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
thead th { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
th:first-child { text-align: left; }
tbody th { font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
td { font-family: var(--mono); font-size: 14px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.foot { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.class { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: 5px; padding: 20px; scroll-margin-top: 12px; }
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.frame { display: grid; place-items: center; background: #050506; border: 2px solid var(--c); padding: 14px 0; box-shadow: 0 0 0 2px #050506, 0 0 0 3px var(--border); }
.grows { display: flex; flex-direction: column; gap: 6px; }
.grows-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grow { display: grid; grid-template-columns: 58px minmax(0, 1fr) 30px; align-items: center; gap: 6px; font-size: 13px; }
.grow-l { color: var(--muted); }
.grow-v { font-family: var(--mono); text-align: right; }
.seg { display: flex; gap: 2px; }
.seg i { flex: 1; height: 10px; border-radius: 1px; }

.main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.class-h h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .06em; color: var(--c); }
.tag { margin: 2px 0 0; color: var(--muted); font-style: italic; }
.how p { margin: 0 0 8px; max-width: 68ch; }
.how p:last-child { margin: 0; }
.aff { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.aff h4 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.type { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: #050506; border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); border-radius: 4px; }
.type.solo { padding: 4px; }
.type-name { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t); }
.type-mod { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.aff-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.tips { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.tip { padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.tip dt { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.tip dd { margin: 3px 0 0; font-size: 15px; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px 16px; border: 1px solid var(--border); border-radius: 5px; background: var(--card); }
.cta p { margin: 0; }
.enter.big { font-size: 15px; padding: 14px 26px; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; }
.sig { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 720px) {
  .class { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .side { flex-direction: row; align-items: center; }
  .frame { flex: 0 0 116px; padding: 8px 0; }
  .frame img { width: 80px; height: auto; }
  .grows { flex: 1; min-width: 0; }
  .tips { grid-template-columns: minmax(0, 1fr); }
  .jump { font-size: 10px; letter-spacing: .04em; }
  .enter:not(.big) { order: 2; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; gap: 4px 12px; }
  .nav a { font-size: 11px; letter-spacing: .08em; }
  .brand { order: 1; }
}

/* ---------- Blog ---------- */
:root { --inset: #050506; }
main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }


/* index cards */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 5px; color: var(--fg); }
.post:hover { background: var(--card-2); border-color: rgba(203,162,78,.5); text-decoration: none; }
.thumb { display: grid; place-items: center; align-self: start; aspect-ratio: 1; background: var(--inset); border: 2px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.post-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.date { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-title { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: .02em; color: var(--gold-hi); text-wrap: balance; }
.excerpt { color: var(--fg); }
.read { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* article */
.article { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin-inline: auto; width: 100%; min-width: 0; }
.back { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.article .eyebrow { margin: 0; }
.standfirst { margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); font-style: italic; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.7; }
.prose p { margin: 0; }
.prose h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .04em; color: var(--gold); text-wrap: balance; }
.prose strong { color: var(--gold-hi); font-weight: 600; }
.prose blockquote { margin: 4px 0; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold); font-family: var(--display); font-size: 17px; line-height: 1.45; letter-spacing: .02em; color: var(--gold-hi); }
.prose td, .prose tbody th { white-space: normal; text-align: left; font-family: var(--body); font-size: 15px; vertical-align: top; }
.prose thead th { text-align: left; }
.prose tbody th { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }
.prose table { min-width: 520px; }

/* figures: art from the game */
.fig { margin: 0; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 5px; display: flex; flex-direction: column; gap: 12px; }
.fig figcaption { font-size: 14px; color: var(--muted); }
.fig-tag { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(203,162,78,.45); border-radius: 3px; padding: 2px 6px; margin-right: 6px; white-space: nowrap; }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.fig-row.tight { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.mcard, .tcell, .ccell, .bcell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; background: var(--inset); border: 1px solid var(--border); border-radius: 4px; min-width: 0; text-align: center; }
.mcard { border-color: color-mix(in srgb, var(--t) 35%, transparent); }
.mcard .type-name { font-size: 12px; }
.tname, .bname { font-size: 12px; color: var(--muted); line-height: 1.3; }
.ccell { border-bottom: 3px solid var(--c); color: var(--fg); font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ccell:hover { background: var(--card-2); text-decoration: none; }

@media (max-width: 720px) {
  .post { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .post-title { font-size: 17px; }
  .prose { font-size: 16px; }
  .fig-row { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
}

/* Art is real image files on public pages so image search can index it. */
.px { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.type .px { width: 48px; }
.fig figcaption a, .prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mcard .px, .tcell .px, .ccell .px, .bcell .px { border-radius: 2px; }

/* Older post markup, kept as written */
.log-entries { display: flex; flex-direction: column; gap: 18px; }
.log-entry, .prose .entry { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.log-date, .entry-date, .section-label { margin: 0; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.log-title { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .03em; color: var(--gold-hi); }
.prose .entry h2 { margin: 0; }
.prose .fig { font-size: 16px; line-height: 1.55; }
.posts-more { flex-direction: column; align-items: center; gap: 6px; max-width: 60ch; }
.vote-badge { margin: 4px 0 0; }
.vote-badge img { display: block; }
