@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2");
}

:root {
  --cream: #fbf6ef;
  --surface: #fffcf8;
  --sand: #f4e9dc;
  --line: #eee2d4;
  --charcoal: #2a211d;
  --soft: #4b3e37;
  --ember: #b8432c;
  --coral: #e8745a;
  --horizon: #262c34;
  --blush: #f6d9cf;
  --warning: #f8e4e2;
  --shadow: 0 8px 24px rgba(130, 70, 35, 0.09);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--charcoal);
  background:
    radial-gradient(1100px 420px at 50% -80px, #fde4cf 0%, transparent 70%),
    var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--surface);
  color: var(--charcoal);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 2;
}

.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 26px 0 18px;
  border-bottom: 2px solid var(--horizon);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--horizon);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.brand img {
  height: 46px;
  width: auto;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-header nav a[aria-current="page"],
.site-footer nav a[aria-current="page"] {
  color: var(--ember);
}

main { padding: 42px 0 64px; }

.hero h1,
.panel h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.kicker {
  margin: 0 0 10px;
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 0.92rem;
}

.panel {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 36px 28px;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.prose h2 { margin: 2rem 0 0.7rem; font-size: 1.7rem; }
.prose h3 { margin: 1.4rem 0 0.5rem; font-size: 1.3rem; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--ember); font-weight: 600; }

.prose ol,
.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--ember); font-weight: 700; }

.banner,
.quote {
  margin: 0 0 1.3rem;
  padding: 14px 16px;
}

.banner {
  background: var(--blush);
  border-radius: 16px;
  font-weight: 500;
}

.quote {
  border-left: 3px solid var(--coral);
  color: var(--soft);
}

.warning {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--warning);
}

.help-search { margin: 0 0 8px; }

.help-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.help-search input {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.help-empty {
  margin: 12px 0 0;
  color: var(--soft);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 18px 18px 16px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.card strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.card span {
  color: var(--soft);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 48px;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--soft);
}

@media (max-width: 680px) {
  .wrap { width: min(760px, calc(100% - 28px)); }
  .site-header { align-items: flex-start; padding-top: 18px; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 24px 18px 18px; border-radius: 22px; }
  .hero h1, .panel h1 { font-size: 2.35rem; }
}

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

@media print {
  body { background: white; }
  .skip, .site-header nav, .help-search, .cards { display: none; }
  .panel { box-shadow: none; padding: 0; }
  a { color: inherit; }
}
