:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --text: #2b2724;
  --muted: #6f665e;
  --accent: #a4532b;
  --border: #e3dcd2;
  --radius: 10px;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1917;
    --surface: #24211e;
    --text: #ece6df;
    --muted: #a99f95;
    --accent: #e08a5c;
    --border: #3a3531;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

main {
  flex: 1;
  padding: 40px 0 56px;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 0;
}

.notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.note h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.note p {
  margin: 0;
  color: var(--muted);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.error {
  text-align: center;
  padding-top: 32px;
}

.error-code {
  font-size: clamp(4rem, 20vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--accent);
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}
