:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #242424;
  --muted: #616161;
  --line: #e8e5e1;
  --accent: #a44413;
  --accent-hover: #80320d;
  --button-text: #ffffff;
  --soft: #fbf5ef;
  --hero-bg: linear-gradient(115deg, #f6f3ee, #fbf5ef 60%, #efd8c4);
  --hero-ring: #a4441310;
  --banner-bg: linear-gradient(115deg, #9d4318, #ce7138);
  --ok: #0e7a3d; --okbg: #e3f4ea; --bad: #b3261e; --badbg: #fbe6e4;
  --warn: #8a5a00; --warnbg: #fdf1d6; --neutral: #44505f; --neutralbg: #e9edf2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #181715;
    --card: #22211e;
    --text: #f0ece7;
    --muted: #b9b2a9;
    --line: #403b35;
    --accent: #f3ac7e;
    --accent-hover: #ffc79f;
    --button-text: #24170e;
    --soft: #30251d;
    --hero-bg: linear-gradient(115deg, #25221e, #30251d 60%, #473020);
    --hero-ring: #f3ac7e12;
    --banner-bg: linear-gradient(115deg, #713416, #97491f);
    --ok: #7bd9a0; --okbg: #17382a; --bad: #ff9d96; --badbg: #4a1f1c;
    --warn: #f2c66d; --warnbg: #453410; --neutral: #c3ccd8; --neutralbg: #2b3441;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181715;
  --card: #22211e;
  --text: #f0ece7;
  --muted: #b9b2a9;
  --line: #403b35;
  --accent: #f3ac7e;
  --accent-hover: #ffc79f;
  --button-text: #24170e;
  --soft: #30251d;
  --hero-bg: linear-gradient(115deg, #25221e, #30251d 60%, #473020);
  --hero-ring: #f3ac7e12;
  --banner-bg: linear-gradient(115deg, #713416, #97491f);
  --ok: #7bd9a0; --okbg: #17382a; --bad: #ff9d96; --badbg: #4a1f1c;
  --warn: #f2c66d; --warnbg: #453410; --neutral: #c3ccd8; --neutralbg: #2b3441;
}
.site-header .theme-toggle {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.site-header .theme-toggle:hover { border-color: var(--accent); }
.theme-toggle[hidden] { display: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
input, progress { accent-color: var(--accent); }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 1;
  padding: 8px 16px;
  background: var(--card);
}
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { color: var(--text); text-decoration: none; font-size: 22px; font-weight: 700; }
.brand span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .04em; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.site-header nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--hero-bg);
}
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -95px;
  border: 48px solid var(--hero-ring);
  border-radius: 50%;
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 { margin: 0 0 16px; font-size: clamp(36px, 6vw, 56px); line-height: 1.15; letter-spacing: -.04em; }
.hero p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
.hero .byline { display: block; margin-top: 24px; color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner p { margin: 0; }
@media (max-width: 800px) {
  .hero { padding: 40px 32px; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .header-inner { padding-block: 18px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-header nav { gap: 24px; }
  .hero { padding: 32px 24px; }
  .hero p:not(.eyebrow) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
