:root {
  --bedrock: #20261f; --bedrock-soft: #3e493d; --moss: #5f7f43; --moss-dark: #39542f; --grass: #8aaa5c; --lava: #d87631; --sand: #e8e1c8; --paper: #f3f0e3; --white: #fffdf5; --line: rgba(32, 38, 31, .22); --shadow: 12px 12px 0 rgba(32, 38, 31, .14); --display: Rockwell, "Roboto Slab", Georgia, serif; --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace; --page: min(1180px, calc(100vw - 48px));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--bedrock); background: var(--paper); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .13; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(var(--line) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent 62%); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--moss-dark); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--lava); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--bedrock); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: var(--page); min-height: 88px; margin: 0 auto; display: flex; align-items: center; gap: 32px; border-bottom: 2px solid var(--bedrock); }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; font: 800 17px/1 var(--utility); letter-spacing: -.04em; text-decoration: none; }
.wordmark em { color: var(--moss); font-style: normal; }
.wordmark-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--sand); background: var(--bedrock); border-bottom: 6px solid var(--moss); box-shadow: 4px 4px 0 var(--lava); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { position: relative; font-size: 14px; font-weight: 750; text-decoration: none; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -10px; left: 0; height: 3px; background: var(--lava); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: 0; }
.language-toggle, .nav-toggle { border: 2px solid var(--bedrock); color: var(--bedrock); background: var(--sand); cursor: pointer; font: 800 12px/1 var(--utility); letter-spacing: .08em; }
.language-toggle { min-width: 44px; padding: 9px 10px; }
.nav-toggle { display: none; padding: 10px 12px; }
.hero { width: var(--page); margin: 0 auto; padding: 72px 0 80px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.hero-copy { max-width: 520px; }
.eyebrow, .story-meta, .media-format { margin: 0 0 18px; color: var(--moss-dark); font: 800 12px/1.4 var(--utility); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; }
h1 { margin-bottom: 26px; font-size: clamp(52px, 7.2vw, 100px); letter-spacing: -.055em; }
h2 { font-size: clamp(34px, 4.5vw, 62px); letter-spacing: -.04em; }
h3 { font-size: 25px; letter-spacing: -.025em; }
.hero-intro, .page-intro > p:last-child { color: var(--bedrock-soft); font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; padding: 13px 18px; border: 2px solid var(--bedrock); color: var(--white); background: var(--moss-dark); box-shadow: 5px 5px 0 var(--bedrock); font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--white); background: var(--moss); }
.text-link { font-weight: 800; color: var(--moss-dark); }
.voxel-frame { margin: 0; padding: 12px; border: 2px solid var(--bedrock); background: var(--sand); box-shadow: var(--shadow); }
.voxel-frame img { width: 100%; min-height: 390px; object-fit: cover; }
.voxel-frame figcaption { display: flex; justify-content: space-between; padding-top: 10px; font: 700 11px/1.2 var(--utility); text-transform: uppercase; }
.status-ribbon { width: 100%; padding: 24px max(24px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; color: var(--sand); background: var(--bedrock); }
.status-ribbon div { padding: 8px 28px; border-left: 1px solid rgba(255,255,255,.17); }
.status-ribbon div:first-child { border-left: 0; padding-left: 0; }
.status-ribbon strong, .status-ribbon small { display: block; }
.status-ribbon strong { font: 800 17px/1.3 var(--utility); text-transform: uppercase; }
.status-ribbon small { color: #b9c5b0; }
.status-light, .status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #90d060; box-shadow: 0 0 0 4px rgba(144,208,96,.15); }
.home-channel, .world-grid, .community-page, .about-page, .journal-page, .credits-page, .error-page { width: var(--page); margin: 0 auto; }
.home-channel, .world-grid { padding: 92px 0; }
.home-channel { border-bottom: 2px solid var(--bedrock); }
.section-heading { max-width: 800px; margin-bottom: 42px; }
.section-heading.compact { max-width: 650px; }
.player-section { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr); border: 2px solid var(--bedrock); background: var(--bedrock); box-shadow: var(--shadow); }
.player-frame { min-width: 0; background: #0c0f0c; }
.player-frame video { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.programme-copy { padding: 36px; color: var(--sand); background: var(--bedrock); }
.programme-copy h3 { font-size: 38px; }
.programme-copy .eyebrow, .programme-copy .media-format { color: var(--grass); }
.programme-status { margin-bottom: 26px; color: #b9c5b0; font: 700 12px/1 var(--utility); text-transform: uppercase; }
.programme-discuss { color: var(--grass); font-weight: 800; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.story-card { overflow: hidden; border: 2px solid var(--bedrock); background: var(--sand); box-shadow: 7px 7px 0 rgba(32,38,31,.14); }
.story-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr .55fr; }
.story-card img { width: 100%; height: 290px; object-fit: cover; }
.story-card-wide img { height: 100%; min-height: 390px; }
.story-body { padding: 30px; }
.rules-card { background: var(--moss-dark); color: var(--white); }
.rules-card .story-meta, .rules-card .text-link { color: var(--grass); }
.rules-card li { margin-bottom: 12px; }
.page-intro { max-width: 850px; padding: 74px 0 48px; }
.page-intro h1 { font-size: clamp(48px, 7vw, 88px); }
.community-brief, .about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; padding-bottom: 84px; }
.community-brief img, .about-grid img { width: 100%; max-height: 520px; object-fit: cover; border: 2px solid var(--bedrock); box-shadow: var(--shadow); }
.topic-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }
.topic-list span { padding: 7px 10px; border: 1px solid var(--bedrock); font: 700 12px/1 var(--utility); }
.account-panel { margin: 0 0 80px; padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; color: var(--sand); background: var(--bedrock); }
.auth-card, .publish-panel { padding: 28px; color: var(--bedrock); background: var(--paper); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.auth-tabs button, .text-button { padding: 8px 12px; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: var(--white); background: var(--moss-dark); }
form label { display: block; margin-bottom: 18px; font-weight: 750; }
input, textarea, select { width: 100%; margin-top: 7px; padding: 11px 12px; border: 2px solid var(--bedrock); border-radius: 0; color: var(--bedrock); background: var(--white); }
.form-status, .auth-hint { min-height: 1.5em; color: var(--lava); }
.publish-panel { margin-bottom: 80px; border: 2px solid var(--bedrock); }
.community-feed, .community-principles { padding: 0 0 84px; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.community-post { padding: 26px; border: 2px solid var(--bedrock); background: var(--sand); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle-grid article { padding: 24px; border-top: 6px solid var(--moss); background: var(--sand); }
.principle-grid article > span { font: 800 12px var(--utility); color: var(--lava); }
.journal-list { padding-bottom: 90px; }
.journal-entry { display: grid; grid-template-columns: 180px 1fr; gap: 42px; padding: 40px 0; border-top: 2px solid var(--bedrock); }
.journal-entry time { font: 700 12px var(--utility); color: var(--moss-dark); }
.about-grid .prose, .credits-list { font-size: 18px; }
.prose h2 { margin-top: 36px; font-size: 32px; }
.credits-list { padding-bottom: 90px; }
.credits-list article { padding: 28px 0; border-top: 2px solid var(--bedrock); }
.error-page { min-height: 68vh; display: grid; align-content: center; }
.site-footer { width: var(--page); margin: 0 auto; padding: 34px 0 46px; display: flex; justify-content: space-between; gap: 30px; border-top: 2px solid var(--bedrock); }
.site-footer p { margin: 5px 0 0; color: var(--bedrock-soft); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; font: 700 12px/1.5 var(--utility); }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 16px; padding: 18px 0; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-block; }
  .site-nav { order: 4; width: 100%; display: none; margin: 0; padding: 16px 0 4px; border-top: 1px solid var(--line); }
  .site-nav.is-open { display: flex; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; }
  .status-ribbon { grid-template-columns: repeat(2, 1fr); }
  .player-section, .story-card-wide, .community-brief, .about-grid, .account-panel { grid-template-columns: 1fr; }
  .player-frame video { min-height: 0; }
}
@media (max-width: 620px) {
  :root { --page: calc(100vw - 28px); }
  .wordmark { font-size: 14px; }
  .hero { padding-top: 48px; }
  h1 { font-size: 52px; }
  .hero-actions, .site-footer { align-items: flex-start; flex-direction: column; }
  .status-ribbon, .story-grid, .post-list, .principle-grid { grid-template-columns: 1fr; }
  .status-ribbon div { padding-left: 0; border-left: 0; }
  .programme-copy, .account-panel { padding: 26px; }
  .journal-entry { grid-template-columns: 1fr; gap: 8px; }
  .footer-meta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
