@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --paper: #f3efe6;
  --paper-deep: #e8e1d4;
  --ink: #171815;
  --muted: #686961;
  --line: #c9c1b3;
  --signal: #f04b2f;
  --acid: #dfff55;
  --night: #1d211d;
  --white: #fffdf8;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(23, 24, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 21, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
  transition: width 80ms linear;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.masthead nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.masthead nav a {
  padding: 24px 0 22px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  border-color: var(--signal);
}

.issue-stamp {
  justify-self: end;
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.edition,
.snapshot,
.record-section,
.horizon-section {
  width: var(--page);
  margin-inline: auto;
}

.edition {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: end;
  min-height: 640px;
  padding: 96px 0 64px;
}

.edition-number {
  align-self: start;
  color: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: clamp(70px, 9vw, 132px);
  line-height: 0.8;
  writing-mode: vertical-rl;
}

.eyebrow,
.section-label,
.update-kicker,
.roadmap-number {
  margin: 0 0 18px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 8.2vw, 118px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.89;
}

.standfirst {
  max-width: 660px;
  margin: 40px 0 0;
  color: #3c3e39;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
}

.status-note {
  display: flex;
  gap: 14px;
  align-self: end;
  padding: 20px 0 4px;
  border-top: 1px solid var(--ink);
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(240, 75, 47, 0.15);
}

.status-note strong {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.snapshot {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 56px;
  padding: 64px 0 84px;
  border-top: 1px solid var(--ink);
}

.snapshot h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(35px, 4.4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.snapshot-grid article {
  min-height: 190px;
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--line);
}

.snapshot-grid article:not(:first-child) {
  padding-left: 24px;
}

.snapshot-grid article:last-child {
  border-right: 0;
}

.snapshot-value {
  display: block;
  margin-bottom: 34px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.snapshot-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.record-section {
  padding: 96px 0 120px;
  border-top: 8px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 210px 1fr 330px;
  gap: 36px;
  align-items: end;
  margin-bottom: 60px;
}

.section-heading .section-label {
  align-self: start;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin: 0 0 24px 246px;
  overflow-x: auto;
}

.filter {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1 "Manrope", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.update-list {
  border-top: 1px solid var(--ink);
}

.update {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 90px;
  gap: 36px;
  min-height: 310px;
  padding: 40px 0 46px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 180ms ease, transform 180ms ease;
}

.update[hidden] {
  display: none;
}

.update-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.update-meta span {
  color: var(--muted);
}

.update-body {
  max-width: 730px;
}

.update-kicker {
  color: var(--signal);
}

.update h3 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.update-body > p:not(.update-kicker) {
  max-width: 680px;
  margin: 0;
  color: #42443f;
  font-size: 18px;
}

.outcomes {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.outcomes li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}

.outcomes li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.update-index {
  justify-self: end;
  color: var(--line);
  font-family: "DM Mono", monospace;
  font-size: 64px;
  letter-spacing: -0.1em;
  line-height: 1;
}

.roadmap-section {
  padding: 112px max(24px, calc((100vw - 1180px) / 2)) 130px;
  background: var(--night);
  color: var(--white);
}

.section-heading.inverse > p:last-child {
  color: #aeb2a8;
}

.roadmap-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  padding: 38px 0 42px;
  border-top: 1px solid #51564f;
}

.roadmap-marker span {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #70766c;
  border-radius: 999px;
  color: #b5b9af;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.roadmap-item.is-done .roadmap-marker span {
  border-color: #70766c;
  background: #30352f;
  color: #d4d8ce;
}

.roadmap-item.is-now .roadmap-marker span {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.roadmap-number {
  color: #777c73;
}

.roadmap-item h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 45px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.roadmap-item p:last-child {
  max-width: 690px;
  margin: 0;
  color: #aeb2a8;
  font-size: 16px;
}

.roadmap-item.is-now h3 {
  color: var(--acid);
}

.horizon-section {
  padding: 120px 0;
}

.horizon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.horizon-grid article {
  min-height: 280px;
  padding: 30px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.horizon-grid span {
  color: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.horizon-grid h3 {
  margin: 54px 0 18px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.horizon-grid p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.boundary-note {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  margin-top: 72px;
  padding: 28px 0;
  border-top: 4px solid var(--signal);
  border-bottom: 1px solid var(--ink);
}

.boundary-note > p:last-child {
  max-width: 790px;
  margin: 0;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.boundary-note strong {
  color: var(--signal);
  font-weight: 600;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px max(24px, calc((100vw - 1180px) / 2));
  background: var(--signal);
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer a {
  justify-self: end;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 32px, 720px);
  }

  .masthead {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .masthead nav {
    display: none;
  }

  .edition {
    grid-template-columns: 70px 1fr;
    gap: 24px;
    min-height: auto;
    padding: 72px 0 56px;
  }

  .edition-number {
    font-size: 62px;
  }

  .status-note {
    grid-column: 2;
  }

  .snapshot,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid article,
  .snapshot-grid article:not(:first-child) {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .snapshot-value {
    margin-bottom: 8px;
  }

  .filter-bar {
    margin-left: 0;
  }

  .update {
    grid-template-columns: 145px 1fr;
    gap: 24px;
  }

  .update-index {
    display: none;
  }

  .roadmap-item,
  .boundary-note {
    grid-template-columns: 145px 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .brand > span:last-child,
  .issue-stamp {
    font-size: 10px;
  }

  .edition {
    display: block;
    padding-top: 52px;
  }

  .edition-number {
    margin-bottom: 28px;
    font-size: 48px;
    writing-mode: initial;
  }

  .edition h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .status-note {
    margin-top: 48px;
  }

  .record-section,
  .horizon-section {
    padding-block: 74px;
  }

  .update {
    display: block;
    min-height: 0;
    padding-block: 30px 38px;
  }

  .update-meta {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 34px;
  }

  .update h3 {
    font-size: 34px;
  }

  .roadmap-section {
    padding-block: 74px;
  }

  .roadmap-item,
  .boundary-note {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .horizon-grid {
    grid-template-columns: 1fr;
  }

  .horizon-grid article {
    min-height: 240px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
