:root {
  --paper: #f6f2ea;
  --soft: #fffaf2;
  --ink: #1d2420;
  --muted: #68736d;
  --line: #d8cfc1;
  --black: #111513;
  --done: #347a56;
  --pending: #ad7a25;
  --blocked: #b04f43;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; }

.topbar {
  min-height: 70px;
  padding: 0 clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246,242,234,.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--black);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: italic 20px Georgia, serif;
}

.brand strong,
.brand small,
.date,
.eyebrow,
.focus-grid span,
.stage-heading small,
.task-status,
.totals span,
.mini-counts {
  text-transform: uppercase;
  letter-spacing: .075em;
}

.brand strong { display: block; font-size: 12px; }
.brand small, .date { color: var(--muted); font-size: 11px; }

main {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.focus {
  padding: clamp(28px, 5vw, 54px) 0 32px;
  border-bottom: 2px solid var(--black);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pending);
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

h1 {
  max-width: 880px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .94;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-grid > div {
  background: var(--soft);
  padding: 18px;
}

.focus-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.focus-grid strong {
  display: block;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.1;
}

.focus-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.roadmap {
  padding: 24px 0 30px;
}

.roadmap ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--soft);
}

.roadmap li {
  border-right: 1px solid var(--line);
}

.roadmap li:last-child { border-right: 0; }

.roadmap a {
  min-height: 102px;
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 var(--pending);
}

.roadmap .current a {
  background: var(--black);
  color: var(--soft);
  box-shadow: none;
}

.roadmap .blocked a { box-shadow: inset 0 -4px 0 var(--blocked); }
.roadmap span { color: var(--muted); font-size: 13px; }
.roadmap .current span { color: #d8d1c4; }
.roadmap strong { font-size: 12px; line-height: 1.15; }

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 8px 0 18px;
}

.section-title h2 {
  max-width: 650px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  border: 1px solid var(--line);
  background: var(--soft);
}

.totals span {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.totals span:nth-child(even) { border-right: 0; }
.totals span:nth-last-child(-n+2) { border-bottom: 0; }
.totals strong { color: var(--ink); font-size: 18px; letter-spacing: 0; }

.stage {
  scroll-margin-top: 92px;
  border-top: 1px solid var(--line);
}

.stage:last-child { border-bottom: 1px solid var(--line); }

.stage summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(145px, 220px) 104px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}

.stage summary::-webkit-details-marker { display: none; }

.stage summary::after {
  content: "+";
  justify-self: end;
  font-size: 22px;
}

.stage[open] summary::after { content: "-"; }

.number {
  width: 38px;
  height: 38px;
  border: 1px solid var(--black);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.stage.current .number {
  background: var(--black);
  color: var(--soft);
}

.stage.blocked .number {
  border-color: var(--blocked);
  color: var(--blocked);
}

.stage-heading small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}

.stage-heading strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.035em;
}

.stage-heading em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.owner {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.mini-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
}

.mini-counts b {
  padding: 8px 0;
  text-align: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.mini-counts b:last-child { border-right: 0; color: var(--blocked); }
.mini-counts b:first-child { color: var(--done); }

.task-list {
  margin: 0 0 22px 64px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.task {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.task:last-child { border-bottom: 0; }

.task-status {
  font-size: 11px;
  font-weight: 900;
  color: var(--pending);
}

.task.done .task-status { color: var(--done); }
.task.blocked .task-status { color: var(--blocked); }

.task h3 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0;
  font-size: 17px;
  line-height: 1.25;
}

.task p {
  margin: 5px 0 0;
  color: var(--muted);
}

.task p strong { color: var(--ink); }

@media (max-width: 940px) {
  .focus-grid,
  .section-title {
    grid-template-columns: 1fr;
  }

  .roadmap ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .roadmap li:nth-child(5) { border-right: 0; }
  .roadmap li:nth-child(-n+5) { border-bottom: 1px solid var(--line); }

  .stage summary {
    grid-template-columns: 44px minmax(0, 1fr) 72px;
  }

  .owner {
    grid-column: 2;
    text-align: left;
  }

  .mini-counts {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .task-list {
    margin-left: 60px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .date,
  .brand small {
    display: none;
  }

  main {
    width: min(100% - 28px, 1160px);
    padding-top: 30px;
  }

  h1 { font-size: clamp(40px, 13vw, 58px); }

  .focus-grid > div { padding: 15px; }

  .roadmap ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap li,
  .roadmap li:nth-child(5) {
    border-right: 1px solid var(--line);
  }

  .roadmap li:nth-child(even) { border-right: 0; }
  .roadmap li:not(:last-child) { border-bottom: 1px solid var(--line); }
  .roadmap a { min-height: 88px; }

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

  .stage summary {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .number {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .owner,
  .mini-counts {
    grid-column: 2;
    grid-row: auto;
  }

  .stage summary::after {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 18px;
  }

  .task-list {
    margin-left: 0;
  }

  .task {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px;
  }
}
