:root {
  color-scheme: light;
  --ink: #18221d;
  --muted: #5f6e65;
  --paper: #f4f1e9;
  --card: #fcfaf4;
  --line: #d7d6c9;
  --accent: #345e48;
  --accent-dark: #244234;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

body { margin: 0; }
a { color: var(--accent-dark); }

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.hero {
  padding: 110px 0 90px;
  max-width: 780px;
}

.eyebrow,
.date,
.number {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
}

.lede {
  max-width: 650px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.25rem;
}

.button {
  display: inline-block;
  padding: 12px 19px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.button:hover { background: var(--accent-dark); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 100px;
  border: 1px solid var(--line);
  background: var(--line);
}

.grid article {
  min-height: 260px;
  padding: 34px;
  background: var(--card);
}

.grid article p:last-child,
.note-list article p:last-child,
.page > p { color: var(--muted); }

.page {
  min-height: 66vh;
  max-width: 760px;
  padding-block: 90px;
}

.page h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.page > p { font-size: 1.12rem; }
.note-list { margin-top: 56px; }

.note-list article {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.error-page { min-height: 70vh; }

footer {
  padding-block: 26px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero { padding-block: 72px 60px; }
  .grid { grid-template-columns: 1fr; }
  .grid article { min-height: auto; }
}
