@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --accent: #e0a52c; --accent-ink: #1a1408;
  --ink: #eef1ec; --muted: #9aa0a6; --dim: #6b7278;
  --bg: #121417; --bg-raised: #1a1d21; --bg-card: #1e2226;
  --line: #2a2e33;
  --font-head: 'Space Grotesk', -apple-system, Segoe UI, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
img { display: block; max-width: 100%; }

/* ---- status strip ---- */
.status-strip { background: #0b0c0e; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--dim); }
.status-strip .wrap { display: flex; align-items: center; gap: 18px; padding: 7px 24px; overflow-x: auto; white-space: nowrap; }
.status-date { color: var(--muted); }
.status-updated { color: var(--accent); }
.status-updated span { font-weight: 600; }
.status-search { margin-left: auto; flex-shrink: 0; color: var(--dim); }
.status-search:hover { color: var(--accent); }

/* ---- header ---- */
.site-header { background: var(--bg); padding: 22px 0; }
.header-inner { display: flex; }
.logo-group { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 56px; width: auto; max-width: 420px; object-fit: contain; }
.logo-box { width: 52px; height: 52px; flex-shrink: 0; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; font-family: var(--font-mono); border-radius: 4px; }
.site-name { font-family: var(--font-head); font-weight: 800; font-size: 25px; letter-spacing: -.01em; }
.site-tagline { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); letter-spacing: .03em; margin-top: 2px; }

.board-nav { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board-nav-inner { display: flex; gap: 2px; overflow-x: auto; }
.gate-link { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.gate-num { color: var(--dim); font-size: 11px; }
.gate-link:hover { color: var(--ink); }
.gate-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.gate-link.active .gate-num { color: var(--accent); }

/* ---- layout ---- */
.layout { max-width: 1240px; margin: 0 auto; padding: 32px 24px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; padding: 24px 18px 40px; } }
.main-col { min-width: 0; }

section.board-section { margin-bottom: 4px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.see-all { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); flex-shrink: 0; white-space: nowrap; }

/* ---- hero ---- */
.board-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; margin-bottom: 40px; }
@media (max-width: 700px) { .board-hero { grid-template-columns: 1fr; } }
.board-feature { display: block; background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.board-feature .placeholder-img { width: 100%; height: 320px; object-fit: cover; }
.board-feature-body { padding: 22px 24px 26px; }
.board-feature-body h1 { font-size: 30px; line-height: 1.18; margin: 10px 0 10px; }
.board-feature-body p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
@media (max-width: 520px) { .board-feature-body h1 { font-size: 24px; } .board-feature .placeholder-img { height: 220px; } }

.board-next { display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.board-next-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 14px 16px 10px; }
.board-row-mini { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--line); min-width: 0; }
.board-row-mini .col-time { font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex-shrink: 0; }
.board-row-mini .col-story { font-size: 13.5px; font-weight: 600; line-height: 1.4; min-width: 0; }
.board-row-mini:hover .col-story { color: var(--accent); }

/* ---- row tags / chips ---- */
.row-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 3px; margin: 0 0 8px; }
.featured-chip { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 2px 7px; border-radius: 3px; margin: 0 0 8px 6px; }
.featured-chip.small { border: none; padding: 0; margin: 0 6px 0 0; color: var(--accent); }
.meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }

/* ---- board table (section layout 1) ---- */
.board-table { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 40px; }
.board-table-head { display: grid; grid-template-columns: 90px 1fr 140px; gap: 14px; padding: 10px 16px; background: var(--bg-raised); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.board-row { display: grid; grid-template-columns: 90px 1fr 140px; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); min-width: 0; }
.board-row:hover { background: var(--bg-raised); }
.board-row .col-time { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.board-row .col-story { font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.board-row .col-section { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 560px) {
  .board-table-head { display: none; }
  .board-row { grid-template-columns: 1fr; row-gap: 6px; }
  .board-row .col-section, .board-row .col-time { text-align: left; }
}

/* ---- gate grid (section layout 2) + post-grid (category/tag/search/related) ---- */
.gate-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 700px) { .gate-grid, .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gate-grid, .post-grid { grid-template-columns: 1fr; } }
.gate-card { display: block; background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.gate-card-media { position: relative; }
.placeholder-img { background: repeating-linear-gradient(45deg, #23272c, #23272c 10px, #1c2024 10px, #1c2024 20px); display: flex; align-items: center; justify-content: center; color: #5a6067; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-mono); }
.gate-card .placeholder-img { width: 100%; height: 150px; object-fit: cover; }
.gate-card .featured-chip { position: absolute; top: 10px; right: 10px; background: var(--bg); margin: 0; }
.gate-card h3 { font-size: 15.5px; line-height: 1.35; padding: 0 14px; margin: 4px 0 10px; }
.gate-card .row-tag { margin: 12px 14px 8px; }
.gate-card .meta { display: block; padding: 0 14px 14px; }
.gate-card:hover h3 { color: var(--accent); }

/* ---- manifest list (section layout 3) ---- */
.manifest-list { list-style: none; counter-reset: manifest; margin: 0 0 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.manifest-list li { counter-increment: manifest; border-top: 1px solid var(--line); }
.manifest-list li:first-child { border-top: none; }
.manifest-list li a { display: flex; align-items: baseline; gap: 14px; padding: 13px 16px; min-width: 0; }
.manifest-list li a::before { content: counter(manifest, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex-shrink: 0; }
.manifest-title { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.manifest-meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); flex-shrink: 0; }
.manifest-list li:hover .manifest-title { color: var(--accent); }

/* ---- arrivals (most-read) ---- */
.arrivals-list { list-style: none; counter-reset: arrival; margin: 0 0 40px; padding: 0; }
.arrivals-list li { counter-increment: arrival; display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.arrivals-list li:first-child { border-top: none; }
.arrivals-list li::before { content: counter(arrival, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex-shrink: 0; }
.arrivals-list li a { font-size: 14.5px; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.arrivals-list li a:hover { color: var(--accent); }
.arrivals-list .manifest-meta { display: block; font-size: 10.5px; margin-top: 2px; }
.sidebar .arrivals-list { margin-bottom: 0; }

/* ---- ticket-stub CTA ---- */
.ticket-stub { display: grid; grid-template-columns: 1.4fr 34px 1fr; align-items: center; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 40px; overflow: hidden; }
@media (max-width: 640px) { .ticket-stub { grid-template-columns: 1fr; } .stub-tear { display: none; } }
.stub-main { padding: 26px 28px; }
.stub-eyebrow { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.stub-main h2 { font-size: 21px; margin: 0 0 8px; }
.stub-main p { color: var(--muted); font-size: 14px; margin: 0; }
.stub-tear { position: relative; align-self: stretch; border-left: 2px dashed var(--line); }
.stub-tear::before, .stub-tear::after { content: ""; position: absolute; left: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.stub-tear::before { top: -11px; }
.stub-tear::after { bottom: -11px; }
.stub-form { padding: 26px 28px; }
.cta-form { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; }
.cta-form input { flex: 1 1 140px; min-width: 0; max-width: 230px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); font-size: 13.5px; font-family: var(--font-body); }
.cta-form button { padding: 11px 18px; border: none; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }

/* ---- sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.widget h3 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 14px; }
.clock-widget { text-align: center; background: #0b0c0e; }
.clock-readout { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.clock-date { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.newsletter-widget form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-widget input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); font-size: 13px; }
.newsletter-widget button { padding: 10px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 5px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.routes-list { display: flex; flex-direction: column; gap: 2px; }
.routes-list a { font-family: var(--font-mono); font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.routes-list a:first-child { border-top: none; }
.routes-list a:hover { color: var(--accent); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-row a { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.ad-widget { text-align: center; color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 34px 20px; }

/* ---- single post ---- */
.single-post { max-width: 760px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }
.category-title { font-size: 28px; margin-bottom: 6px; }
.category-desc { color: var(--muted); margin: 0 0 24px; }
.single-post-header { margin-bottom: 20px; }
.status-chips { margin-bottom: 10px; }
.single-post-header h1 { font-size: 32px; line-height: 1.2; margin: 0 0 10px; }
@media (max-width: 560px) { .single-post-header h1 { font-size: 25px; } }
.single-post-headline { width: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 26px; }
.single-post-content { font-size: 17px; line-height: 1.8; color: #dfe2e4; }
.single-post-content p { margin: 0 0 20px; }
.single-post-content h2 { font-size: 22px; margin: 30px 0 14px; color: var(--ink); }
.single-post-content blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; font-size: 18px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag-pill-link { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.tag-pill-link:hover { border-color: var(--accent); color: var(--accent); }
.related-posts { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.related-posts h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }

/* ---- search / empty ---- */
.search-form { display: flex; gap: 10px; margin-bottom: 20px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-raised); color: var(--ink); font-size: 14px; }
.search-form button { padding: 12px 20px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 5px; font-weight: 700; cursor: pointer; }
.muted { color: var(--muted); font-size: 13.5px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; margin-top: 30px; font-family: var(--font-mono); font-size: 13px; }
.pagination a { color: var(--accent); }

/* ---- footer ---- */
.site-footer { background: #0b0c0e; border-top: 1px solid var(--line); padding: 48px 24px 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: 1240px; margin: 0 auto; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 12px; }
.footer-grid p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-bottom { max-width: 1240px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); display: flex; gap: 4px; flex-wrap: wrap; }
