:root {
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --ink: #172019;
  --muted: #5f685f;
  --line: #d7d7ca;
  --line-strong: #b8bcae;
  --pine: #174f3c;
  --pine-soft: #dce9df;
  --clay: #a8482e;
  --clay-soft: #f2dfd7;
  --gold: #8b6517;
  --gold-soft: #f5e9c8;
  --gray-soft: #e9e9e2;
  --shadow: 0 1px 0 rgb(23 32 25 / 8%), 0 8px 28px rgb(23 32 25 / 5%);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid #267ea3;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 480px;
  display: grid;
  align-content: center;
  max-width: 1050px;
  padding: 92px 0 84px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 34px;
  color: #445047;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-status > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 253 248 / 55%);
  color: #4d584f;
  font-size: 0.82rem;
  font-weight: 680;
}

.status-dot,
.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-dot--active,
.legend-dot--verified {
  background: var(--pine);
}

.status-dot--pending,
.legend-dot--provisional {
  background: var(--gold);
}

.legend-dot--missing {
  background: var(--clay);
}

.legend-dot--not-run {
  border: 1px solid #868c83;
  background: transparent;
}

.progress-section,
.catalog-section,
.method-section {
  border-top: 1px solid var(--line-strong);
}

.progress-section {
  padding: 76px 0 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-note {
  max-width: 440px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.progress-card {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress-card--complete {
  border-color: #9fb4a5;
}

.progress-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.progress-card h3 {
  max-width: 190px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.count {
  white-space: nowrap;
  color: var(--pine);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 750;
}

.progress-card p {
  margin: auto 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.progress-track {
  height: 7px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-soft);
}

.track-verified {
  background: var(--pine);
}

.track-provisional {
  background: var(--gold);
}

.catalog-section {
  padding: 76px 0 92px;
}

.catalog-heading {
  margin-bottom: 28px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.search-field {
  width: min(420px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.search-field input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
}

.search-field input::placeholder {
  color: #858c84;
}

.catalog-count {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.table-frame {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  table-layout: fixed;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th,
td {
  padding: 15px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

thead th {
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 2;
  color: #4a544c;
  background: #efede5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.task-column {
  width: 150px;
}

.description-column {
  width: 205px;
}

.spec-column {
  width: 122px;
}

tbody tr:nth-child(even) {
  background: #fbfaf5;
}

.task-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.3;
}

.compare-action {
  width: 100%;
  min-height: 29px;
  margin-top: 14px;
  padding: 4px 6px;
  border: 1px solid var(--pine);
  border-radius: 5px;
  color: var(--pine);
  background: transparent;
  font-size: 0.61rem;
  font-weight: 780;
  line-height: 1.25;
  cursor: pointer;
}

.compare-action:hover:not(:disabled) {
  color: #fff;
  background: var(--pine);
}

.compare-action:disabled {
  border-color: #d5d6d0;
  color: #999f98;
  background: #f3f2ed;
  cursor: not-allowed;
}

.task-index {
  display: block;
  margin-bottom: 6px;
  color: #7a827a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 650;
}

.task-description {
  color: #586159;
  font-size: 0.77rem;
  line-height: 1.45;
}

.spec-link {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: var(--pine);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration-thickness: 1px;
}

.spec-link span {
  color: #727a72;
  font-size: 0.65rem;
  font-weight: 580;
  text-decoration: none;
}

.result-card {
  min-height: 125px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.result-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.model-family {
  color: #364039;
  font-size: 0.7rem;
  font-weight: 770;
  line-height: 1.35;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge--verified {
  color: var(--pine);
  background: var(--pine-soft);
}

.status-badge--provisional {
  color: var(--gold);
  background: var(--gold-soft);
}

.status-badge--missing {
  color: var(--clay);
  background: var(--clay-soft);
}

.status-badge--not-run {
  color: #697168;
  background: var(--gray-soft);
}

.result-note {
  min-height: 30px;
  margin: 0;
  color: #737b74;
  font-size: 0.65rem;
  line-height: 1.35;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}

.action {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border: 1px solid #bbc0b8;
  border-radius: 5px;
  color: #39443b;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.action:hover:not(:disabled) {
  border-color: var(--pine);
  color: var(--pine);
  background: var(--pine-soft);
}

.action--launch {
  grid-column: 1 / -1;
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.action--launch:hover:not(:disabled) {
  color: #fff;
  background: var(--pine);
}

.action:disabled {
  border-color: #d5d6d0;
  color: #9a9f99;
  background: #f3f2ed;
  cursor: not-allowed;
}

.runtime-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 42px;
  padding: 68px 0;
  border-top: 1px solid var(--line-strong);
}

.runtime-panel[hidden] {
  display: none;
}

.runtime-panel h2 {
  margin-bottom: 16px;
}

.runtime-status {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.runtime-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.runtime-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.runtime-card-label,
.runtime-expiry {
  color: var(--muted);
  font-size: 0.72rem;
}

.runtime-card-label {
  margin-bottom: 8px;
  font-weight: 780;
  text-transform: uppercase;
}

.runtime-card h3 {
  margin-bottom: 8px;
}

.runtime-expiry {
  margin-bottom: 20px;
}

.runtime-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.runtime-open,
.runtime-stop {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 760;
  text-decoration: none;
}

.runtime-open {
  color: #fff;
  background: var(--ink);
}

.runtime-stop {
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.loading-row td,
.empty-row td {
  padding: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.method-section {
  max-width: 900px;
  padding: 84px 0 100px;
}

.method-section h2 {
  margin-bottom: 20px;
}

.method-section > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #4c574f;
  font-size: 1.1rem;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin-bottom: 0;
}

footer a {
  font-weight: 750;
}

.noscript-note {
  padding: 14px;
  color: var(--clay);
}

@media (max-width: 1050px) {
  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-frame {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .runtime-panel {
    grid-template-columns: 1fr;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  tbody tr:nth-child(even) {
    background: var(--surface);
  }

  th,
  td {
    padding: 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  tbody th[scope="row"] {
    grid-column: 1 / -1;
    background: #efede5;
  }

  tbody td:nth-of-type(1),
  tbody td:nth-of-type(2) {
    grid-column: span 1;
  }

  tbody td:nth-of-type(n + 3) {
    position: relative;
    padding-top: 38px;
  }

  tbody td:nth-of-type(n + 3)::before {
    position: absolute;
    top: 12px;
    left: 13px;
    color: #6b736b;
    font-size: 0.64rem;
    font-weight: 820;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  tbody td:nth-of-type(3)::before { content: "Sol"; }
  tbody td:nth-of-type(4)::before { content: "Grok"; }
  tbody td:nth-of-type(5)::before { content: "Fable + Opus"; }
  tbody td:nth-of-type(6)::before { content: "RepoPrompt CE Default"; }

  tbody td:last-child {
    border-bottom: 0;
  }

  .result-card {
    min-height: 142px;
  }

  .loading-row,
  .empty-row {
    display: block;
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .runtime-results {
    grid-template-columns: 1fr;
  }
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1480px);
  }

  .site-header {
    min-height: 66px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 0;
    padding: 74px 0 68px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-status {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-status > span {
    width: fit-content;
  }

  .progress-section,
  .catalog-section {
    padding: 60px 0 72px;
  }

  .section-heading,
  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .progress-grid,
  tbody {
    grid-template-columns: 1fr;
  }

  .progress-card {
    min-height: 150px;
  }

  .legend {
    justify-content: flex-start;
  }

  .search-field {
    width: 100%;
  }

  .catalog-count {
    margin-bottom: 0;
  }

  tbody tr {
    grid-template-columns: 1fr;
  }

  tbody td:nth-of-type(1),
  tbody td:nth-of-type(2),
  tbody td:nth-of-type(n + 3) {
    grid-column: 1 / -1;
  }

  .result-card {
    min-height: 124px;
  }

  .method-section {
    padding: 70px 0 80px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

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

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