:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f6f6f5;
  --foreground: #1c1c1c;
  --muted: #5b6270;
  --border: #e4e4e2;
  --accent: #b5624f;
  --accent-soft: #f7ebe7;
  --button: #1c1c1c;
  --button-foreground: #ffffff;
  --focus: #b5624f;
  --radius: 12px;
  --content-width: 72rem;
  --prose-width: 46rem;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141414;
    --surface: #1d1d1d;
    --foreground: #f2f2f2;
    --muted: #a3a8b3;
    --border: #2e2e2e;
    --accent: #e09a8a;
    --accent-soft: #2a1f1c;
    --button: #f2f2f2;
    --button-foreground: #141414;
    --focus: #e09a8a;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--button);
  color: var(--button-foreground);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 8.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:not(.button):hover {
  color: var(--foreground);
}

.site-nav .nav-secondary {
  display: none;
}

@media (min-width: 640px) {
  .site-nav .nav-secondary {
    display: inline;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  opacity: 0.88;
}

.button-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 40rem;
  margin: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

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

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

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  max-width: 40rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

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

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
}

.cta {
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.cta p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.prose {
  max-width: var(--prose-width);
  padding: 3rem 0 4rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.prose .meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 1rem;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
}

.prose p,
.prose li {
  overflow-wrap: anywhere;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
}

.toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 14rem;
  column-gap: 2rem;
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
}

.not-found {
  padding: 6rem 0;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.not-found p {
  margin: 0 0 2rem;
  color: var(--muted);
}

.not-found .actions {
  justify-content: center;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--foreground);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
