:root {
  color-scheme: light;
  --canvas: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #edf3ef;
  --text: #17211b;
  --muted: #57635d;
  --green: #176b4b;
  --green-dark: #0f5339;
  --green-soft: #e8f2ec;
  --line: #d8e1db;
  --line-strong: #b9c8be;
  --danger: #a23b30;
  --danger-soft: #f8e9e6;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(23, 107, 75, 0.28);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--surface);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.site-header {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.14rem;
  align-items: end;
}

.brand-mark span {
  display: block;
  border-radius: 0.08rem 0.08rem 0 0;
  background: var(--green);
}

.brand-mark span:first-child {
  height: 52%;
  opacity: 0.52;
}

.brand-mark span:nth-child(2) {
  height: 100%;
}

.brand-mark span:last-child {
  height: 72%;
  opacity: 0.76;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

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

nav .nav-action {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  align-content: center;
  background: var(--surface);
  color: var(--text);
}

.hero {
  display: grid;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8.75rem) 0 clamp(6rem, 12vw, 10rem);
  grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.96fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.eyebrow,
.section-label,
.check-label {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.25rem, 6.3vw, 6.2rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.lede {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: #35433b;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.plain-language {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.actions {
  display: flex;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 670;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button-primary {
  background: var(--green);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: #7b9183;
  background: var(--surface);
}

.check-run {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 1.2rem 3rem rgba(23, 33, 27, 0.08);
}

.check-heading,
.dependency-change,
.check-results > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.check-heading {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.check-label {
  margin: 0;
  font-size: 0.64rem;
}

.check-title {
  margin: 0.12rem 0 0;
  font-size: 0.92rem;
  font-weight: 680;
}

.check-state {
  padding: 0.25rem 0.58rem;
  border: 1px solid #e2b7af;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
}

.dependency-change {
  padding: 1.25rem;
  background: var(--surface-soft);
  font-size: 0.84rem;
}

.dependency-change span {
  color: var(--muted);
}

.dependency-change strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.79rem;
}

.check-results {
  margin: 0;
  padding: 0 1.25rem;
}

.check-results > div {
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.check-results dt {
  color: var(--muted);
}

.check-results dd {
  margin: 0;
  font-weight: 650;
}

.result-pass {
  color: var(--green);
}

.result-fail {
  color: var(--danger);
}

.check-run figcaption {
  padding: 1.15rem 1.25rem 1.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.problem,
.workflow,
.evidence,
.ready {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 9rem) 0;
}

.problem {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.problem > div {
  max-width: 46rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.65rem);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.problem p:last-child,
.section-intro + p,
.evidence-copy p,
.closing > p:not(.section-label) {
  color: var(--muted);
}

.problem p:last-child {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: 1.04rem;
}

.workflow {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(17rem, 0.43fr) minmax(0, 0.57fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.section-intro {
  max-width: 38rem;
}

.section-intro h2 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
}

.workflow-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-list li {
  display: grid;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
}

.workflow-list li > span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.018em;
}

.workflow-list p {
  max-width: 32rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.evidence {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.48fr) minmax(22rem, 0.52fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.evidence-copy h2 {
  font-size: clamp(2.35rem, 4.3vw, 4.15rem);
}

.evidence-copy p {
  max-width: 35rem;
  margin: 1.4rem 0 0;
}

.comparison {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  background: var(--surface);
  grid-template-columns: 1fr 1fr;
}

.comparison-heading {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
}

.comparison-heading span,
.comparison-heading strong {
  display: block;
}

.comparison-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.comparison-heading strong {
  color: var(--green);
  font-size: 0.92rem;
}

.comparison-row {
  display: grid;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
  grid-template-columns: minmax(9rem, 1.35fr) 0.65fr 0.65fr;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.comparison-row span {
  color: var(--muted);
}

.comparison-row strong {
  font-weight: 650;
}

.comparison-row .bad,
.comparison-after strong {
  color: var(--danger);
}

.comparison-after {
  border-left: 1px solid var(--line);
  background: var(--danger-soft);
}

.ready {
  border-top: 1px solid var(--line);
}

.ready-body {
  display: grid;
  margin-top: 3.75rem;
  grid-template-columns: minmax(0, 0.42fr) minmax(22rem, 0.58fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.ready-body > p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.ready-body dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ready-body dl div {
  display: grid;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(7rem, 0.36fr) minmax(0, 0.64fr);
  gap: 1rem;
}

.ready-body dt {
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 700;
}

.ready-body dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.scope-note {
  max-width: 48rem;
  margin: 2.2rem 0 0;
  color: #65736b;
  font-size: 0.78rem;
}

.closing {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto 5rem;
  padding: clamp(3rem, 7vw, 5.5rem);
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface);
}

.closing h2 {
  max-width: 19ch;
}

.closing > p:not(.section-label) {
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.closing .button {
  margin-top: 2rem;
}

footer {
  display: grid;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero,
  .workflow,
  .evidence,
  .ready-body {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .check-run {
    max-width: 42rem;
  }

  .workflow,
  .evidence {
    gap: 3.5rem;
  }
}

@media (max-width: 680px) {
  nav a:not(.nav-action) {
    display: none;
  }

  .site-header {
    min-height: 4.5rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .problem {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-row {
    padding: 0.8rem;
    grid-template-columns: minmax(8rem, 1.25fr) 0.65fr 0.65fr;
  }

  .ready-body dl div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

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

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