:root {
  --bg-top: #f7efe3;
  --bg-mid: #f2eee6;
  --bg-bottom: #fcfbf8;
  --ink: #241a12;
  --muted: #6f6257;
  --line: rgba(62, 44, 28, 0.14);
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --accent: #1f1b17;
  --accent-soft: #f3d7aa;
  --shadow: 0 20px 70px rgba(78, 56, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(242, 182, 109, 0.34), transparent 24rem),
    radial-gradient(circle at 14% 18%, rgba(243, 210, 162, 0.34), transparent 20rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(90, 67, 40, 0.08);
}

.brand,
.eyebrow,
.stat-label {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand {
  text-decoration: none;
  font-size: 0.82rem;
  color: #5a4b3e;
}

.topnav {
  display: flex;
  gap: 0.5rem;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  background: rgba(36, 26, 18, 0.06);
  color: var(--ink);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  gap: 1.5rem;
  flex: 1;
  padding: 2rem 0 1.75rem;
}

.hero-card,
.panel,
.policy-card,
.policy-hero,
.not-found {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  border-radius: 2rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(238, 195, 132, 0.55), transparent 16rem),
    linear-gradient(154deg, #f7d9a5 0%, #f7efe3 34%, #fcfbf8 100%);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(56px);
  pointer-events: none;
}

.hero-card::before {
  width: 10rem;
  height: 10rem;
  left: -2rem;
  top: 4rem;
  background: rgba(246, 197, 115, 0.34);
}

.hero-card::after {
  width: 12rem;
  height: 12rem;
  right: -3rem;
  top: -3rem;
  background: rgba(243, 161, 89, 0.26);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.stat-label {
  font-size: 0.7rem;
  color: #7c6b5d;
}

.eyebrow-dark {
  color: rgba(255, 255, 255, 0.54);
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
}

.hero-card h1,
.policy-hero h1,
.not-found h1 {
  max-width: 14ch;
  margin-top: 0.75rem;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.lede {
  max-width: 43rem;
  margin: 1.15rem 0 0;
  color: #5b4e44;
  font-size: 1.08rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  background: var(--accent);
  color: white;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(67, 48, 32, 0.18);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.stat-card,
.panel-light,
.policy-card {
  background: var(--paper);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.6rem;
}

.stat-card h2 {
  margin-top: 0.55rem;
  font-size: 1.4rem;
  line-height: 1.05;
}

.stat-card p:last-child {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  border-radius: 1.8rem;
  padding: 1.5rem;
}

.panel-light {
  border: 1px solid var(--line);
}

.panel-dark {
  background: #1f1915;
  color: #f7f0e7;
}

.panel-dark p {
  color: rgba(247, 240, 231, 0.76);
}

.panel h2 {
  margin-top: 0.8rem;
  font-size: 2rem;
}

.plain-list {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 1rem;
  border-top: 1px solid rgba(67, 48, 32, 0.12);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a,
.policy-section a {
  text-underline-offset: 0.22rem;
}

.policy-layout {
  flex: 1;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 2rem 0 1.75rem;
}

.policy-hero {
  padding: 1.8rem 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.policy-card {
  margin-top: 1rem;
  padding: 1.8rem 2rem;
  border-radius: 1.8rem;
  border: 1px solid var(--line);
}

.policy-section + .policy-section {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(67, 48, 32, 0.12);
}

.policy-section h2 {
  font-size: 1.55rem;
}

.policy-section p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.guide-card {
  margin-top: 1rem;
}

.key-value-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.kv-row {
  display: grid;
  gap: 0.35rem;
}

.kv-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c6b5d;
}

.kv-value,
.command-block {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(67, 48, 32, 0.14);
  background: rgba(248, 244, 238, 0.95);
  color: #2e231b;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.kv-value {
  padding: 0.85rem 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command-block {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  line-height: 1.7;
}

.command-block code {
  white-space: pre-wrap;
}

.helper-text {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.not-found {
  width: min(720px, 100%);
  margin: auto;
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

@media (max-width: 900px) {
  .home-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .policy-card,
  .policy-hero,
  .not-found {
    padding: 1.4rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 1rem, 1120px);
    padding: 0.5rem 0;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1;
    text-align: center;
  }

  .hero-card h1,
  .policy-hero h1,
  .not-found h1 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .lede {
    font-size: 1rem;
    line-height: 1.7;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.55rem;
  }
}
