:root {
  --color-bg: #fff7dd;
  --color-text: #21313a;
  --color-accent: #ff7a1a;
  --color-accent-strong: #c94c00;
  --color-surface: #ffeeb6;
  --color-muted: #66717a;
  --color-border: #f0ca68;
  --color-on-accent: #23130a;
  --color-error: #b00020;
  --color-surface-raised: #fffdf4;
  --shadow-card: 0.35rem 0.35rem 0 #ffcf52;
  --font-heading: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-base: 1.08rem;
  --spacing-section: 4.75rem;
  --border-radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at top left, rgba(255, 207, 82, 0.42), transparent 24rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.62;
}

h1, h2, h3 {
  color: #172b3a;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin-bottom: 1.2rem; }
a {
  color: var(--color-accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}
a:hover { color: #8a3100; }

.site-header {
  background: var(--color-surface);
  border-bottom: 4px solid var(--color-accent);
  box-shadow: 0 6px 0 rgba(255, 207, 82, 0.45);
  padding: 1.2rem 2rem;
}
.site-nav { display: flex; align-items: center; gap: 2rem; max-width: 72rem; margin: 0 auto; }
.site-name {
  border: 0;
  color: #172b3a;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links { display: flex; list-style: none; gap: 1.25rem; }
.nav-links a {
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid transparent;
  border-radius: 999px;
  color: #21313a;
  font-size: 0.95rem;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
}
.nav-links a:hover { border-color: var(--color-accent); color: var(--color-accent-strong); }

.theme-selector { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; color: var(--color-muted); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.theme-selector select { padding: 0.35rem 1.75rem 0.35rem 0.5rem; color: var(--color-text); background: var(--color-surface-raised); border: 2px solid var(--color-border); border-radius: var(--border-radius); font: inherit; }
.theme-selector select:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.site-main { max-width: 72rem; margin: 0 auto; padding: var(--spacing-section) 2rem; }
.site-footer {
  background: #172b3a;
  color: #ffeeb6;
  font-size: 0.95rem;
  padding: 2.4rem 2rem;
  text-align: center;
}
.site-footer a { color: #ffcf52; }

.site-main > .c-component + .c-component { margin-block-start: var(--spacing-section); }

@media (max-width: 48rem) {
  .site-header { padding: 1rem; }
  .site-nav { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .nav-links { width: 100%; max-width: 100%; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .theme-selector { margin-left: 0; }
  .site-main { padding: 3.2rem 1rem; }
}
