:root {
  color-scheme: light;
  --ink: #102f35;
  --muted: #3f5e63;
  --background: #eaf5f5;
  --surface: #ffffff;
  --border: #8ab8b5;
  --primary: #3f98a1;
  --primary-dark: #23636a;
  --accent: #2ac19d;
  --focus: #102f35;
}

* { box-sizing: border-box; }

html {
  font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--background);
}

body { margin: 0; }
a { color: var(--primary-dark); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header {
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.site-header__inner { padding: 1.25rem 0; }
.brand { color: #06262a; font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; }
.nav a { color: #06262a; font-weight: 700; }
.page { padding: 3rem 0 4rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { margin-top: 2.25rem; font-size: 1.35rem; }
h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.lead { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }

.panel {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
}

.button {
  display: inline-block;
  min-height: 48px;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: var(--primary-dark);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: #194f55; }
.updated { color: var(--muted); font-size: 0.9rem; }
.site-footer { color: var(--muted); background: #d8efed; border-top: 1px solid var(--border); }
.site-footer__inner { padding: 1.5rem 0; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f4f7f2;
    --muted: #c0ccbf;
    --background: #111814;
    --surface: #1d2a24;
    --border: #3a5146;
    --primary: #23342c;
    --primary-dark: #7bc99a;
    --accent: #f0a24a;
    --focus: #f4f7f2;
  }

  .brand, .nav a { color: var(--ink); }
  .button { color: #102016; background: #7bc99a; }
  .button:hover { background: #62ae81; }
  .site-footer { background: #18231e; }
}
