:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --text: #25272b;
  --muted: #5b6068;
  --accent: #2f6f6a;
  --accent-text: #ffffff;
  --border: #e4dfd6;
  --focus: #b4581f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191b;
    --surface: #202326;
    --text: #ecebe7;
    --muted: #a9adb3;
    --accent: #7cc4bc;
    --accent-text: #10201e;
    --border: #33373b;
    --focus: #f0a468;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main {
  flex: 1;
  padding: 3rem 0 4rem;
}

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.tagline { font-size: 1.3rem; color: var(--muted); margin-bottom: 1.75rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
}

.note { color: var(--muted); font-size: 0.95rem; }

.todo {
  border: 2px dashed var(--focus);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

img { max-width: 100%; height: auto; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
footer.site a { color: var(--muted); }

@media (min-width: 40rem) {
  h1 { font-size: 2.6rem; }
}

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