:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #44403c;
  --line: #d6d3d1;
  --paper: #faf7f2;
  --card: #ffffff;
  --link: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
}

a {
  color: var(--link);
}

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

.wrap {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
}

header,
footer {
  border-color: var(--line);
  border-style: solid;
  background: var(--card);
}

header {
  border-width: 0 0 1px;
  padding: 1.1rem 0;
}

footer {
  margin-top: auto;
  border-width: 1px 0 0;
  padding: 1.25rem 0 1.6rem;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-kicker {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
}

nav {
  margin-top: 0.85rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

main {
  padding: 2rem 0 2.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  line-height: 1.25;
}

h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.15rem;
}

p,
li {
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.sample {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

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

address {
  font-style: normal;
}

footer p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  main {
    padding-top: 1.5rem;
  }

  h1 {
    font-size: 1.55rem;
  }
}
