:root {
  --ink: #102a35;
  --ink-soft: #405860;
  --paper: #f4f0e7;
  --panel: #fffdf8;
  --panel-alt: #e7efec;
  --line: #b8c5c2;
  --teal: #075f6c;
  --teal-dark: #03434c;
  --rust: #a63f2b;
  --gold: #f0b44d;
  --success: #1c5e45;
  --warning: #7d3e15;
  --shadow: 0 1.2rem 3rem rgba(16, 42, 53, 0.09);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 3%, rgba(7, 95, 108, 0.12), transparent 29rem),
    linear-gradient(180deg, #f9f6ef 0, var(--paper) 36rem);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

button, input, select { font: inherit; }
a { color: inherit; }
button, a, input, select { touch-action: manipulation; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: .4rem;
  background: var(--ink);
  color: white;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.loading-note { max-width: 42rem; margin: 8rem auto; padding: 1rem; }
.suite-home {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem);
}
.suite-home > h1, .suite-home header h1 {
  max-width: 17ch;
  margin: .45rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.suite-home > p, .suite-home header > p:last-child { max-width: 47rem; color: var(--ink-soft); font-size: 1.08rem; }
.suite-button { width: auto; margin-top: 1rem; text-decoration: none; }
.suite-directory { padding-top: clamp(3rem, 7vw, 6rem); }
.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.suite-grid article {
  min-height: 18rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-top: .35rem solid var(--teal);
  border-radius: .8rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.suite-grid article:nth-child(even) { border-top-color: var(--rust); }
.suite-grid span { color: var(--teal); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.suite-grid h2 { margin: .4rem 0 .75rem; font-size: 1.5rem; }
.suite-grid p { color: var(--ink-soft); }
.suite-grid a { display: inline-block; margin-top: .8rem; color: var(--rust); font-weight: 850; text-underline-offset: .22rem; }
.site-shell { min-height: 100vh; }
.lab-header {
  max-width: 82rem;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2.5rem;
}
.masthead {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--ink-soft); }
.lab-nav {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lab-nav a {
  padding: .55rem .7rem;
  border-radius: .4rem;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.lab-nav a:hover { background: rgba(7, 95, 108, .08); }
.lab-nav a[aria-current="page"] {
  border: 1px solid var(--teal);
  background: var(--panel-alt);
  color: var(--teal-dark);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 1rem;
}
.eyebrow, .step-label {
  margin: 0;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 16ch;
  margin: .5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6.5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero-question { max-width: 48rem; color: var(--ink-soft); font-size: 1.15rem; }
.session-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .8rem;
  overflow: hidden;
  background: rgba(255, 253, 248, .8);
}
.session-facts div { padding: .9rem; border-bottom: 1px solid var(--line); }
.session-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.session-facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.session-facts dt { color: var(--ink-soft); font-size: .76rem; font-weight: 700; }
.session-facts dd { margin: .15rem 0 0; font-weight: 800; }

.method-ribbon {
  background: var(--ink);
  color: white;
}
.method-ribbon ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  list-style: none;
}
.method-ribbon li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 .7rem;
  padding: 1rem;
  border-left: 1px solid rgba(255,255,255,.18);
  color: #d4e1df;
  font-size: .84rem;
}
.method-ribbon li:last-child { border-right: 1px solid rgba(255,255,255,.18); }
.method-ribbon li span {
  grid-row: 1 / 3;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.method-ribbon li strong { color: white; }

.activity, .feedback-panel, .reveal-panel, .transfer-panel, .check-handoff, .access-note, footer {
  max-width: 82rem;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}
.activity { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: 3rem; }
.section-intro { max-width: 52rem; }
.section-intro h2, .reveal-heading h2, .transfer-panel h2, .check-handoff h2 {
  margin: .35rem 0 .7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}
.section-intro > p:last-child, .reveal-heading p, .transfer-panel p, .check-handoff p { color: var(--ink-soft); }
.activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1.5rem;
}
.evidence-card, .commit-card {
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.evidence-card { padding: clamp(1rem, 3vw, 1.7rem); }
.commit-card {
  position: sticky;
  top: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border-top: .38rem solid var(--rust);
}
.card-heading { margin-bottom: 1rem; }
.card-heading h3 { margin: .2rem 0; font-size: 1.35rem; }
.model-note, .decision-callout {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  border-left: .35rem solid var(--teal);
  background: var(--panel-alt);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .65rem;
}
.table-wrap + .table-wrap { margin-top: 1rem; }
table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
caption {
  padding: .8rem;
  background: #eef2ef;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}
th, td {
  padding: .72rem .8rem;
  border-top: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}
th:first-child, td:first-child { text-align: left; }
thead th { background: #f8f5ee; color: var(--ink-soft); font-size: .78rem; }
tbody tr:nth-child(even) { background: rgba(231, 239, 236, .42); }
.compact-table table { min-width: 31rem; }

.commit-card fieldset {
  margin: 0 0 1rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.commit-card legend { padding: 0 .3rem; font-weight: 800; }
.commit-card label {
  display: grid;
  gap: .35rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 750;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.field-row label { margin: 0; }
input, select {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .65rem;
  border: 1px solid #71858b;
  border-radius: .4rem;
  background: white;
  color: var(--ink);
}
small {
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 500;
}
.commit-actions { padding-top: .3rem; }
.commit-actions p { margin: .7rem 0 0; color: var(--ink-soft); font-size: .79rem; }
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 2px solid transparent;
  border-radius: .45rem;
  cursor: pointer;
  font-weight: 850;
}
.button-primary { width: 100%; background: var(--rust); color: white; }
.button-primary:hover { background: #85301f; }
.button-secondary { border-color: var(--teal); background: transparent; color: var(--teal-dark); }
.button-secondary:hover { background: var(--panel-alt); }
.button-light { background: white; color: var(--ink); }

.feedback-panel, .reveal-panel { padding-top: 2rem; padding-bottom: 2rem; }
.feedback-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .55);
}
.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  padding: 0;
  list-style: none;
}
.diagnostic-list li {
  padding: 1rem;
  border: 2px solid currentColor;
  border-radius: .7rem;
  background: white;
}
.diagnostic-list strong, .diagnostic-list span { display: block; }
.diagnostic-list span { margin-top: .4rem; color: var(--ink-soft); }
.diagnostic-list .is-correct { color: var(--success); }
.diagnostic-list .needs-revisit { color: var(--warning); border-style: dashed; }
.reveal-panel { padding-top: 3rem; padding-bottom: 4rem; }
.reveal-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.reveal-heading > div { max-width: 55rem; }
.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: .8rem;
}
.result-metrics div {
  min-height: 7rem;
  padding: 1rem;
  border-radius: .7rem;
  background: var(--ink);
  color: white;
}
.result-metrics span, .result-metrics strong { display: block; }
.result-metrics span { color: #cfddda; font-size: .78rem; font-weight: 700; }
.result-metrics strong { margin-top: .4rem; font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.decision-callout { margin-top: 1rem; }
.decision-callout strong { font-size: 1.05rem; }
.decision-callout p { margin: .3rem 0 0; }

.transfer-panel {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
}
.transfer-panel ol { margin: 0; padding-left: 1.2rem; }
.transfer-panel li { margin-bottom: .8rem; }
.check-handoff {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: center;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
  background: var(--teal-dark);
  color: white;
}
.check-handoff .eyebrow { color: #8fd4d6; }
.check-handoff p { color: #d3e4e2; }
.check-panel {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  border: 2px solid white;
  border-radius: .6rem;
}
.check-panel h3 { margin-top: 0; font-size: 1.35rem; }
.access-note {
  display: flex;
  gap: .75rem 1.5rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.access-note strong { color: var(--ink); white-space: nowrap; }
footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: .86rem;
}
footer a { font-weight: 800; text-underline-offset: .2rem; }

@media (max-width: 900px) {
  .masthead { align-items: flex-start; flex-direction: column; }
  .lab-nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .method-ribbon ol { grid-template-columns: repeat(2, 1fr); }
  .method-ribbon li:nth-child(3) { border-top: 1px solid rgba(255,255,255,.18); }
  .method-ribbon li:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); }
  .activity-grid { grid-template-columns: 1fr; }
  .commit-card { position: static; }
  .diagnostic-list { grid-template-columns: 1fr; }
  .transfer-panel { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 620px) {
  .suite-grid { grid-template-columns: 1fr; }
  .lab-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hero { padding-top: 3rem; }
  .session-facts { grid-template-columns: 1fr; }
  .session-facts div, .session-facts div:nth-child(odd), .session-facts div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .session-facts div:last-child { border-bottom: 0; }
  .method-ribbon ol { grid-template-columns: 1fr; }
  .method-ribbon li { border-top: 1px solid rgba(255,255,255,.18); border-right: 1px solid rgba(255,255,255,.18); }
  .method-ribbon li:first-child { border-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .reveal-heading { align-items: stretch; flex-direction: column; }
  .result-metrics { grid-template-columns: 1fr; }
  .check-handoff { grid-template-columns: 1fr; }
  .check-panel { grid-column: auto; }
  .access-note, footer { align-items: flex-start; flex-direction: column; }
  .access-note strong { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (forced-colors: active) {
  .button, .diagnostic-list li, .lab-nav a[aria-current="page"] { border: 2px solid ButtonText; }
}
