:root {
  color-scheme: light dark;
  --bg: #fbf8f4;
  --surface: #f2ebe3;
  --text: #1f1a17;
  --muted: #5a4f47;
  --link: #8a4316;
  --border: #ddd0c2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1512;
    --surface: #262019;
    --text: #f2ebe4;
    --muted: #c4b7aa;
    --link: #f0b083;
    --border: #3d332b;
  }
}

* { box-sizing: border-box; }

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 1.25rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; }

header.site { border-bottom: 1px solid var(--border); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { width: 2.5rem; height: auto; }
nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }

nav a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

main { flex: 1; width: 100%; padding-block: 2rem 3rem; }

.button {
  display: inline-block; margin-top: 1.25rem; padding: 0.6rem 1.4rem; border-radius: 0.4rem;
  background: var(--link); color: var(--bg); font-weight: 600; text-decoration: none;
}
.button:hover { text-decoration: underline; }

.hero { text-align: center; padding-block: 1.5rem 1rem; }
.hero img { width: 10rem; height: auto; }
.hero h1 { font-size: 2.4rem; margin: 0.75rem 0 0.25rem; }
.tagline { font-size: 1.25rem; color: var(--muted); margin: 0; }

h1, h2, h3 { line-height: 1.25; }
h2 { margin-top: 2.5rem; }

.note { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.25rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.25rem 1.25rem 0.5rem; }
.card h2 { margin-top: 1rem; font-size: 1.3rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
.badge {
  display: inline-block; vertical-align: middle; font-size: 0.8rem; font-weight: 600;
  border: 1px solid currentColor; border-radius: 1rem; padding: 0 0.6rem; color: var(--muted);
}

code { font-size: 0.95em; overflow-wrap: anywhere; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { padding-block: 1.25rem; }
footer.site p { margin: 0.25rem 0; }
