:root {
  color-scheme: light;
  --ink: #1f2430;
  --muted: #5d6470;
  --paper: #fffdf8;
  --surface: #ffffff;
  --accent: #8a4b18;
  --accent-soft: #f5e8d7;
  --border: #e5ddd1;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

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

a:focus-visible {
  outline: 3px solid #d58a42;
  outline-offset: 3px;
  border-radius: 2px;
}

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

header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.95);
}

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.92rem;
}

main {
  padding: 3rem 0 4rem;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.45rem;
}

p,
li {
  max-width: 72ch;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
}

.meta,
.notice {
  color: var(--muted);
  font-size: 0.93rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--surface);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

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

.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

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

@media (max-width: 660px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
