:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --line: #d6d3d1;
  --accent: #1e4d3a;
  --on-accent: #ffffff;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --surface: #292524;
    --text: #fafaf9;
    --muted: #d6d3d1;
    --line: #44403c;
    --accent: #86efac;
    --on-accent: #052e16;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

/* Header */

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

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.mark {
  flex: none;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.top-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Icons */

.icon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}

.hero-text {
  flex: 999 1 28rem;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 36em;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.75rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--on-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Example update card */

.example {
  flex: 1 1 21rem;
  min-width: 0;
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pill {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-text {
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.progress span {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.progress .done {
  background: var(--accent);
}

.card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.fake-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.fake-button.primary {
  border-color: var(--accent);
  color: var(--accent);
}

.example figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections */

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

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}

.intro {
  max-width: 42em;
  margin-bottom: 2.25rem;
  color: var(--muted);
}

.section h2.solo {
  margin-bottom: 2rem;
}

.panel {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.panel h3 {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
}

.panel p {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

.aside {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The six-step loop */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-head h3 {
  margin: 0;
  font-size: 1.1875rem;
}

.num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

.steps p {
  color: var(--muted);
}

/* Status ladder */

.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.25rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ladder li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ladder li.last {
  border: 2px solid var(--accent);
  padding: calc(1.125rem - 1px);
}

.rung-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.bar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.w1 { width: 20%; }
.w2 { width: 40%; }
.w3 { width: 60%; }
.w4 { width: 80%; }
.w5 { width: 100%; }

.rung-name {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27.5rem), 1fr));
  gap: 0 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.principles .icon {
  flex: none;
  margin-top: 3px;
}

.principles h3 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
}

.principles p {
  color: var(--muted);
}

/* Footer */

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

.foot p {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 40rem) {
  .hero {
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .section h2 {
    font-size: 1.625rem;
  }

  .lead {
    font-size: 1.0625rem;
  }
}
