:root {
  --ink-900: #0f172a;
  --ink-700: #1f2937;
  --ink-500: #475569;
  --ink-300: #cbd5e1;
  --accent: #0e6e6b;
  --accent-dark: #0a4f4d;
  --accent-soft: #e6f1f0;
  --warn: #a16207;
  --warn-soft: #fef3c7;
  --rose: #be123c;
  --rose-soft: #fff1f2;
  --bg-soft: #f8fafc;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "kern";
  line-height: 1.5;
}

a {
  color: inherit;
}

:target {
  scroll-margin-top: 5rem;
}

.skip-link {
  position: fixed;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: 0.375rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
}

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

.wrap {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--ink-300) 65%, transparent);
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-500);
  font-size: 0.875rem;
}

nav a {
  text-decoration: none;
}

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

.hero {
  border-bottom: 1px solid color-mix(in srgb, var(--ink-300) 65%, transparent);
}

.hero .wrap {
  padding-block: clamp(3rem, 8vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
  gap: 2rem;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--ink-300);
  border-radius: 0.5rem;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.12);
}

.eyebrow,
.stat-label,
.time {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 0.5rem;
  max-width: 15ch;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
}

.lede {
  margin-top: 1.25rem;
  max-width: 68ch;
  color: var(--ink-500);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.primary {
  background: var(--accent);
  color: #ffffff;
}

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

.secondary {
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

.secondary:hover {
  background: var(--accent-soft);
}

.snapshot {
  margin-top: 1.5rem;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.section {
  padding-block: clamp(3rem, 7vw, 4rem);
}

.section-note,
.prose {
  margin-top: 1rem;
  max-width: 70ch;
  color: var(--ink-500);
}

.prose {
  display: grid;
  gap: 1rem;
  color: var(--ink-700);
}

.decision-grid,
.strategy-grid,
.pitfall-list,
.advising,
.stat-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.decision-grid,
.strategy-grid,
.advising {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pitfall-list,
.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision,
.strategy-grid article,
.pitfall-list article,
.advising > div,
.stat-grid > div,
.timeline article {
  border: 1px solid var(--ink-300);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.25rem;
}

.decision ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-700);
  font-size: 0.875rem;
}

.decision li + li {
  margin-top: 0.5rem;
}

.good {
  border-color: #86efac;
  background: #f0fdf4;
}

.caution {
  border-color: #fecdd3;
  background: var(--rose-soft);
}

.caution h3 {
  color: #881337;
}

.band {
  border-block: 1px solid color-mix(in srgb, var(--ink-300) 65%, transparent);
  background: var(--bg-soft);
}

.band.soft {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 60%, #ffffff);
}

.checker {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border: 1px solid var(--ink-300);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1.25rem;
}

.checker label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--ink-700);
  font-size: 0.925rem;
}

.checker input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.checker-result {
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  padding: 1rem;
}

.checker-result.warn {
  background: var(--warn-soft);
}

.checker-result.weak {
  background: var(--rose-soft);
}

.result-label {
  font-weight: 700;
}

.result-copy {
  margin-top: 0.25rem;
  color: var(--ink-700);
  font-size: 0.875rem;
}

.stat-value {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-copy,
.strategy-grid p,
.pitfall-list p,
.advising p,
.timeline p:not(.time) {
  margin-top: 0.5rem;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.time {
  color: var(--warn);
}

.sources ul {
  display: grid;
  gap: 0.75rem;
  max-width: 70ch;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.sources li {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-300) 65%, transparent);
  padding-bottom: 0.75rem;
}

.sources a {
  color: var(--accent-dark);
  font-weight: 700;
}

.sources span,
.caveat {
  color: var(--ink-500);
  font-size: 0.875rem;
}

.caveat {
  margin-top: 1.25rem;
  max-width: 70ch;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid color-mix(in srgb, var(--ink-300) 65%, transparent);
}

.site-footer .wrap {
  padding-block: 2rem;
  color: var(--ink-500);
  font-size: 0.875rem;
}

@media (max-width: 800px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 0.75rem;
  }

  .decision-grid,
  .strategy-grid,
  .pitfall-list,
  .advising,
  .stat-grid,
  .timeline,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
