:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --surface: #fff;
  --ink: #171d2e;
  --muted: #4e586d;
  --line: #cfd4db;
  --accent: #2541b4;
  --tint: #e8edff;
  --action: #2441bf;
  --action-hover: #1d3196;
  --action-text: #fff;
  --image-back: #d8def4;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

@supports (color: light-dark(white, black)) {
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { color-scheme: dark; }
  }
  :root[data-theme="dark"] { color-scheme: dark; }
  :root {
    --paper: light-dark(#f7f7f2, #121827);
    --surface: light-dark(#fff, #1a2234);
    --ink: light-dark(#171d2e, #f1f3fd);
    --muted: light-dark(#4e586d, #b9c3d9);
    --line: light-dark(#cfd4db, #414c65);
    --accent: light-dark(#2541b4, #b0beff);
    --tint: light-dark(#e8edff, #253452);
    --action: light-dark(#2441bf, #c0caff);
    --action-hover: light-dark(#1d3196, #dbe1ff);
    --action-text: light-dark(#fff, #182550);
    --image-back: light-dark(#d8def4, #455581);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body, h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
body { line-height: 1.6; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 3;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: var(--surface);
}

.wrap { width: min(74rem, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}
.brand { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.062em; text-decoration: none; }
.brand span, .section-label { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(.75rem, 2.3vw, 1.75rem); }
.nav-link { font-size: .9375rem; font-weight: 650; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }
.theme-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
.theme-control label {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2.625rem;
  border-radius: .4rem;
  color: var(--muted);
  cursor: pointer;
}
.theme-control label:hover { color: var(--accent); }
.theme-control label:has(:checked) { color: var(--accent); background: var(--tint); }
.theme-control label:has(:focus-visible) { z-index: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-control svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  border-radius: .55rem;
  padding: .65rem 1.2rem;
  background: var(--action);
  color: var(--action-text);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--action-hover); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 2.75rem; padding-inline: .85rem; font-size: .875rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.4rem, 7vw, 6.5rem);
  padding-block: clamp(3.5rem, 7.5vw, 7rem);
}
.section-label { font-size: .875rem; font-weight: 750; }
h1, h2 { font-weight: 700; line-height: 1.04; text-wrap: balance; }
h1 { margin: .75rem 0 1.35rem; font-size: clamp(2.85rem, 6.15vw, 5.95rem); letter-spacing: -.058em; }
h1 em {
  display: block;
  color: var(--accent);
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.07em;
}
.intro { max-width: 42ch; margin-bottom: 1.6rem; color: var(--muted); font-size: clamp(1.05rem, 1.65vw, 1.25rem); }
.hero-image {
  margin: 0 .9rem .9rem 0;
  aspect-ratio: 1.12;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--image-back);
  box-shadow: .9rem .9rem var(--image-back);
}
.hero-image img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 59%; }

.approach { border-top: 1px solid var(--line); padding-block: clamp(2.6rem, 6vw, 5rem); }
.section-intro, .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 6vw, 5rem);
}
h2 { margin-top: .5rem; font-size: clamp(2.15rem, 4.6vw, 4.15rem); letter-spacing: -.065em; }
.section-intro > p, .about p:not(.section-label), .community p:not(.section-label) {
  max-width: 49ch;
  color: var(--muted);
  font-size: 1.125rem;
}
.steps { list-style: none; margin-top: 2rem; padding: 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: minmax(7rem, .45fr) minmax(0, 1fr);
  gap: .5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.steps h3, .practice h3 { font-size: 1.15rem; line-height: 1.35; }
.steps p { max-width: 66ch; color: var(--muted); }
.practice {
  margin-top: 1.5rem;
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--tint);
}
.practice p { margin-top: .25rem; max-width: 70ch; }

.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-layout { align-items: center; padding-block: clamp(2.75rem, 6vw, 5rem); }
.about p:not(.section-label), .community p:not(.section-label) { margin-top: .85rem; }
.founders div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.founders div:last-child { border-bottom: 1px solid var(--line); }
.founders dt { font-weight: 750; }
.founders dd { color: var(--muted); }

.community { padding-block: clamp(2.75rem, 6vw, 5rem); }
.community-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-radius: .9rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  background: var(--tint);
}
.community .button { flex-shrink: 0; }
.site-footer { flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.footer-brand small { color: var(--muted); font-size: .875rem; }
.site-footer > a:last-child { font-size: .9375rem; }

@media (max-width: 47rem) {
  .hero, .section-intro, .about-layout { grid-template-columns: 1fr; }
  .hero { gap: 1.8rem; }
  .hero-image { aspect-ratio: 1.35; }
  .community-layout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 34rem) {
  .nav-link { display: none; }
  .header-inner, nav { gap: .55rem; }
  .steps li { grid-template-columns: 1fr; }
}
@media (max-width: 22rem) {
  .header-inner { flex-wrap: wrap; }
}
