:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #ffffff;
  --text: #202124;
  --muted: #60656f;
  --border: #dedede;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --control-background: #f3f5f5;
  --shadow: 0 18px 45px rgba(32, 33, 36, 0.08);
}

[data-theme="dark"] {
  --background: #111315;
  --surface: #191c1f;
  --text: #f5f7f8;
  --muted: #b3bac2;
  --border: #30353a;
  --accent: #2dd4bf;
  --accent-dark: #5eead4;
  --control-background: #20252a;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--control-background);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.theme-toggle:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  align-content: center;
  min-height: 56vh;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

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

.content-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.subsection-heading {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.content-section > p {
  max-width: 720px;
  color: var(--muted);
}

.content-section > .about-copy {
  max-width: none;
}

.link-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .site-nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}
