:root {
  color-scheme: light;
  --font-sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --paper: #f4ead6;
  --paper-strong: #fffaf1;
  --paper-muted: #e7dbc5;
  --surface: #fffaf2;
  --surface-strong: #fffdf8;
  --surface-elevated: #fffefb;
  --surface-card-neutral: #f7efe2;
  --surface-card-warm: #ebd59f;
  --surface-card-mint: #cfe1d4;
  --surface-card-sage: #d7dece;
  --surface-border: #9d9183;
  --surface-card-border: #877d71;
  --surface-border-strong: #6d776f;
  --surface-etched: #b8ac9d;
  --surface-highlight: rgba(255, 255, 255, 0.84);
  --ink: #16241f;
  --ink-soft: #33453d;
  --ink-muted: #66746d;
  --accent: #225f50;
  --accent-strong: #163d33;
  --accent-soft: rgba(212, 233, 224, 0.82);
  --signal: #b7791f;
  --signal-soft: rgba(221, 188, 126, 0.28);
  --danger: #9c4c36;
  --line: #b8ab9c;
  --shadow-lg:
    0 28px 74px -40px rgba(18, 28, 24, 0.34),
    0 18px 34px -22px rgba(18, 28, 24, 0.16);
  --shadow-md:
    0 20px 42px -28px rgba(18, 28, 24, 0.24),
    0 12px 20px -16px rgba(18, 28, 24, 0.14);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --space-2xs: 0.35rem;
  --space-xs: 0.6rem;
  --space-sm: 0.9rem;
  --space-md: 1.2rem;
  --space-lg: 1.7rem;
  --space-xl: 2.4rem;
  --space-2xl: 3.2rem;
}

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

html {
  min-block-size: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(34, 95, 80, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(183, 121, 31, 0.11), transparent 20%),
    linear-gradient(180deg, #fcf6ea 0%, var(--paper) 100%);
  scroll-behavior: smooth;
}

body {
  min-block-size: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-synthesis: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 18%),
    repeating-linear-gradient(
      90deg,
      rgba(22, 36, 31, 0.016) 0 1px,
      transparent 1px 44px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(22, 36, 31, 0.014) 0 1px,
      transparent 1px 44px
    );
}

a {
  color: inherit;
}

img {
  display: block;
  max-inline-size: 100%;
}

button, input, textarea, select {
  font: inherit;
}

@supports (font-size-adjust: from-font) {
  body {
    font-size-adjust: from-font;
  }

  .brand-name, .brand-tag, .hero-copy h1, .page-title, .summary-card h2 {
    font-size-adjust: from-font;
  }

  .eyebrow, .kicker, .summary-label, .signal-card strong, .status-list dt, .fact-matrix dt, .pill {
    font-size-adjust: cap-height from-font;
  }
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
  transition: inset-block-start 160ms ease;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.site-shell {
  position: relative;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  inline-size: 20rem;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.site-shell::before {
  inset-block-start: -6rem;
  inset-inline-end: -6rem;
  background: radial-gradient(circle, rgba(34, 95, 80, 0.08), transparent 68%);
}

.site-shell::after {
  inset-block-end: -8rem;
  inset-inline-start: -6rem;
  background: radial-gradient(circle, rgba(183, 121, 31, 0.08), transparent 68%);
}

.site-header-wrap,
.page-wrap,
.site-footer-wrap {
  inline-size: min(100% - 1.5rem, 78rem);
  margin-inline: auto;
}

.site-header-wrap {
  padding-block-start: 1rem;
}

.site-header,
.site-footer,
.sheet {
  background:
    linear-gradient(180deg, #fffdf8, #faf1e3),
    linear-gradient(135deg, rgba(255, 244, 223, 0.18), rgba(237, 247, 242, 0.1));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
}

.status-card,
.signal-card,
.summary-card,
.support-card,
.section-panel {
  background:
    linear-gradient(180deg, #fffdfa, #f8f0e4),
    linear-gradient(135deg, rgba(255, 244, 223, 0.16), rgba(237, 247, 242, 0.1));
  box-shadow:
    inset 0 1px 0 var(--surface-highlight),
    0 20px 30px -30px rgba(18, 28, 24, 0.2),
    0 10px 18px -18px rgba(18, 28, 24, 0.08);
}

.site-header,
.site-footer {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-lg);
}

.site-header::before,
.site-footer::before,
.sheet::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 4px;
  background: linear-gradient(90deg, var(--signal), var(--accent));
}

@media (prefers-contrast: more) {
  body {
    background: linear-gradient(180deg, #fbf6ea 0%, #f0e4cd 100%);
  }

  .site-header,
  .site-footer,
  .sheet,
  .status-card,
  .signal-card,
  .summary-card,
  .support-card,
  .section-panel {
    background: var(--surface-elevated);
    border: 1px solid var(--surface-border-strong);
    box-shadow: none;
  }
}

@media (forced-colors: active) {
  html,
  body {
    background: Canvas;
  }

  .site-header,
  .site-footer,
  .sheet,
  .status-card,
  .signal-card,
  .summary-card,
  .support-card,
  .section-panel,
  .hero-fact,
  .store-card,
  .store-qr-wrap,
  .store-qr-placeholder,
  .policy-link-card,
  .legal-hero,
  .legal-hero-aside,
  .callout,
  .note-box,
  .support-list-note,
  .fact-matrix > div {
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .site-header::before,
  .site-footer::before,
  .sheet::before,
  .policy-link-card::after,
  .legal-hero::before {
    background: CanvasText;
  }

  .button,
  .button-secondary,
  .button-tertiary,
  .site-nav a {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}
