:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #22201c;
  --muted: #6b665c;
  --line: #ddd8cc;
  --accent: #7a5c2e;
  --accent-ink: #fffdf8;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171613;
    --surface: #201e1a;
    --ink: #ece7dc;
    --muted: #a49d90;
    --line: #35322c;
    --accent: #c9a468;
    --accent-ink: #171613;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.site-header,
main,
.site-footer {
  width: min(46rem, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.95rem;
}

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

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

main {
  padding: 2.5rem 0 3rem;
}

h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.07);
}

.list h2 {
  margin-top: 3rem;
}

.card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p:last-child {
  margin-bottom: 0;
}

.note {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.note:last-of-type {
  border-bottom: 0;
}

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

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

.site-footer p {
  margin: 0 0 0.35rem;
}

@media (max-width: 32rem) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding-top: 1.25rem;
  }
}
