:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --text: #f7ead6;
  --muted: #d8c5a8;
  --panel: rgb(44 31 23 / 84%);
  --panel-strong: rgb(32 22 17 / 95%);
  --border: rgb(255 233 197 / 18%);
  --accent: #f0b45e;
  --accent-strong: #ffd28a;
  --accent-ink: #2b1b0e;
  --serif:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --content: 46rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #160e09;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgb(240 180 94 / 14%), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgb(180 85 63 / 12%), transparent 32rem),
    linear-gradient(180deg, #1a120d 0%, #24160f 48%, #160e09 100%);
  color: var(--text);
  line-height: 1.65;
}

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

a:hover {
  color: #ffe4b0;
}

:focus-visible {
  outline: 2px solid #ffe4b0;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgb(26 18 13 / 78%);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgb(232 196 122 / 14%);
  color: var(--accent-strong);
}

.site-brand__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(255 210 138 / 50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd28a, #f0b45e);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-cta:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}

.page {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
}

.page__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page .lede {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.page h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}

.page h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.08rem;
}

.page p {
  margin: 0 0 1rem;
}

.page ul,
.page ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.page li {
  margin: 0.35rem 0;
}

.page li::marker {
  color: var(--accent);
}

.page table {
  width: 100%;
  margin: 1rem 0 1.4rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.page th,
.page td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.page th {
  color: var(--accent-strong);
  font-weight: 600;
}

.page blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgb(255 255 255 / 3%);
  color: var(--muted);
}

.page .callout {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 4%);
}

.page .callout strong {
  color: var(--accent-strong);
}

.page .updated {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.page .page__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.faq {
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.faq details {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 3%);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq summary::marker {
  color: var(--accent);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.site-footer {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1rem;
}

.site-footer__nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent-strong);
}

.site-footer p {
  max-width: 62rem;
  margin: 0.4rem 0;
}

.not-found {
  display: grid;
  place-content: center;
  min-height: 70dvh;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.not-found p {
  color: var(--muted);
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 0.4rem 0.9rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 1.4rem);
  }

  .site-header__inner {
    width: calc(100% - 1.4rem);
  }

  .site-cta {
    display: none;
  }

  .page table {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
