@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg: #080a0f;
  --raised: #121620;
  --secondary: #1a202c;
  --ink: #f3f1e8;
  --muted: #b6bdc9;
  --line: #3b4557;
  --identity: #c9ff38;
  --game-accent: #ef4e36;
  --max: 76rem;
  --angle: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 88% 2%, color-mix(in srgb, var(--game-accent) 16%, transparent), transparent 28rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 100% 5rem, auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.3px);
  background-size: 10px 10px;
  mask-image: linear-gradient(90deg, #000, transparent 18%, transparent 82%, #000);
}

a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 20; background: var(--identity); color: #080a0f; padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--identity); outline-offset: 4px; }

.site-mast { border-top: .35rem solid var(--identity); border-bottom: 1px solid var(--line); background: rgba(8,10,15,.9); backdrop-filter: blur(14px); }
.mast-inner, main, .site-footer { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.mast-inner { min-height: 6.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: flex; align-items: baseline; text-decoration: none; text-transform: uppercase; line-height: .75; transform: skew(-4deg); }
.wordmark-jeff { font: 900 clamp(2.65rem, 6vw, 4.25rem)/.75 "Barlow Condensed", sans-serif; letter-spacing: -.06em; }
.wordmark-plays { margin-left: .18em; color: var(--identity); font: 800 clamp(1.65rem, 3.6vw, 2.75rem)/.8 "Barlow Condensed", sans-serif; letter-spacing: .02em; }
.issue-stamp { display: grid; gap: .2rem; justify-items: end; font: 500 .68rem/1.3 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.issue-stamp span:last-child { color: var(--identity); }

main { padding: 2rem 0 4rem; }
.loading, .error-card { margin: 4rem auto; padding: 2rem; background: var(--raised); border: 1px solid var(--line); text-align: center; }
.fallback-status { margin: 0 0 .75rem; padding: .65rem .85rem; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font: 500 .68rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(21rem, 5fr); min-height: 42rem; background: var(--raised); border: 1px solid var(--line); clip-path: var(--angle); box-shadow: 0 2rem 5rem rgba(0,0,0,.34); }
.feature-art { position: relative; min-height: 42rem; overflow: hidden; border-right: 1px solid var(--line); }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,10,15,.74)); pointer-events: none; }
.feature-art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 180ms ease; }
.feature:hover .feature-art img { transform: scale(1.012); }
.cover-kicker, .cover-line { position: absolute; z-index: 2; left: 1.35rem; text-transform: uppercase; }
.cover-kicker { top: 1.25rem; padding: .38rem .65rem; background: var(--identity); color: #080a0f; font: 800 .8rem/1 "Barlow Condensed", sans-serif; letter-spacing: .13em; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.cover-line { bottom: 1.2rem; right: 1.25rem; padding-top: .6rem; border-top: 1px solid rgba(243,241,232,.45); font: 500 .68rem/1.3 "IBM Plex Mono", monospace; letter-spacing: .12em; color: var(--ink); }
.feature-copy { display: flex; flex-direction: column; padding: clamp(1.5rem, 3.5vw, 3rem); background: linear-gradient(155deg, rgba(255,255,255,.035), transparent 45%), var(--raised); }
.eyebrow, .section-heading > span, .dispatch-label { margin: 0; color: var(--identity); font: 600 .7rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.feature-copy h1 { margin: .8rem 0 .6rem; font: 900 clamp(4rem, 7.4vw, 7.1rem)/.78 "Barlow Condensed", sans-serif; letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; }
.dek { margin: .6rem 0 2rem; font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 34rem; }
.position-card { margin-top: auto; padding: 1rem 0 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.position-card > span, .progress-head span:first-child { display: block; color: var(--game-accent); font: 600 .67rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.position-card strong { display: block; margin-top: .4rem; font: 800 1.55rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.position-card p { margin: .25rem 0 0; color: var(--muted); }
.progress-card { margin-top: 1.35rem; }
.progress-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.progress-head strong { display: block; margin-top: .35rem; font: 800 1.35rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.confidence { flex: none; padding: .35rem .5rem; border: 1px solid var(--line); color: var(--muted); font: 500 .6rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.progress-track { height: .75rem; margin-top: .85rem; background: var(--secondary); border: 1px solid var(--line); overflow: hidden; transform: skew(-12deg); }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--game-accent), var(--identity)); transform-origin: left; animation: fill 400ms ease-out both; }
.progress-card > p { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; }

.page-section { margin-top: 2rem; border: 1px solid var(--line); background: rgba(18,22,32,.82); }
.section-heading { display: grid; grid-template-columns: 9rem 1fr auto; align-items: end; gap: 1.5rem; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font: 900 clamp(2rem, 4vw, 3.2rem)/.85 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: -.025em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: .88rem; }
.section-heading.compact { grid-template-columns: 9rem 1fr; }
.milestone-list { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.milestone { position: relative; min-height: 12.5rem; display: grid; grid-template-columns: 2.15rem 1fr; gap: .75rem; padding: 1.35rem 1rem; border-right: 1px solid var(--line); }
.milestone:last-child { border-right: 0; }
.milestone::after { content: ""; position: absolute; left: 2rem; right: -1px; top: 2.35rem; height: 1px; background: var(--line); z-index: 0; }
.milestone-pin { position: relative; z-index: 1; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; background: var(--secondary); border: 1px solid var(--line); font: 700 .85rem/1 "IBM Plex Mono", monospace; }
.milestone.is-cleared .milestone-pin { background: var(--identity); border-color: var(--identity); color: #080a0f; }
.milestone.is-current { background: color-mix(in srgb, var(--game-accent) 12%, transparent); }
.milestone.is-current .milestone-pin { background: var(--game-accent); border-color: var(--game-accent); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--game-accent) 20%, transparent); }
.milestone-state { color: var(--muted); font: 600 .58rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.milestone.is-current .milestone-state { color: var(--game-accent); }
.milestone h3 { margin: .45rem 0 .35rem; font: 800 1.2rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.milestone p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }

.dispatch-grid { display: grid; grid-template-columns: 1fr 1fr; border: 0; background: none; gap: 1rem; }
.dispatch { min-height: 15rem; padding: 1.75rem; background: var(--raised); border: 1px solid var(--line); clip-path: var(--angle); }
.dispatch.next { background: linear-gradient(135deg, color-mix(in srgb, var(--game-accent) 18%, var(--raised)), var(--raised)); }
.dispatch h2 { max-width: 34rem; margin: 1.4rem 0 2.5rem; font: 800 clamp(1.8rem, 3.8vw, 3.1rem)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; text-wrap: balance; }
.dispatch p { margin: auto 0 0; color: var(--muted); font-size: .85rem; }

.deep-notes details { border-bottom: 1px solid var(--line); }
.deep-notes details:last-child { border-bottom: 0; }
.deep-notes summary { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; cursor: pointer; font: 800 1.2rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.deep-notes summary:hover { background: var(--secondary); }
.deep-notes summary small { color: var(--muted); font: 500 .65rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; }
.field-note-list, .run-log { margin: 0; padding: .25rem 1.5rem 1.5rem 3rem; }
.field-note-list li { padding: .4rem 0; }
.run-log { list-style: none; padding-left: 1.5rem; }
.log-entry { padding: 1rem 0; border-top: 1px solid var(--line); }
.log-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: var(--identity); font: 500 .67rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.log-meta span { color: var(--muted); }
.log-entry p { margin: .5rem 0 0; }
.log-entry .log-detail { color: var(--muted); font-size: .88rem; }
.back-issues ul { list-style: none; margin: 0; padding: 1rem 1.5rem; }
.back-issues li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.back-issues li span:last-child { color: var(--muted); font: .65rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.last-updated { margin: 1.5rem 0 0; color: var(--muted); text-align: right; font: 500 .62rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0; }
.footer-meta { font-family: "IBM Plex Mono", monospace; }

@keyframes fill { from { transform: skew(12deg) scaleX(0); } to { transform: skew(12deg) scaleX(1); } }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: min(76vw, 36rem); border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-copy { min-height: 36rem; }
  .milestone-list { grid-template-columns: 1fr; padding: 1rem 1.25rem; }
  .milestone { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 0; }
  .milestone:last-child { border-bottom: 0; }
  .milestone::after { left: 1.05rem; right: auto; top: 3rem; bottom: -1rem; width: 1px; height: auto; }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: .55rem; }
  .section-heading.compact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mast-inner, main, .site-footer { width: min(100% - 1.25rem, var(--max)); }
  .mast-inner { min-height: 5.25rem; gap: 1rem; }
  .issue-stamp span:first-child { display: none; }
  main { padding-top: .65rem; }
  .feature { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
  .feature-art { min-height: 96vw; max-height: 34rem; }
  .feature-copy { min-height: auto; padding: 1.35rem 1rem 1.5rem; }
  .feature-copy h1 { font-size: clamp(3.6rem, 20vw, 5.4rem); }
  .dek { margin-bottom: 1.45rem; }
  .progress-head { align-items: start; }
  .confidence { margin-top: .15rem; }
  .section-heading { padding: 1.1rem; }
  .dispatch-grid { grid-template-columns: 1fr; }
  .dispatch { min-height: 13rem; padding: 1.35rem 1.1rem; }
  .dispatch h2 { margin-top: 1rem; }
  .deep-notes summary { min-height: 4.75rem; padding: 1rem; }
  .deep-notes summary small { text-align: right; }
  .field-note-list, .run-log { padding-right: 1rem; }
  .site-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
