:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --ink: #24231f;
  --muted: #706d65;
  --line: #dcd5c7;
  --accent: #386b56;
  --accent-soft: #dce8e0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

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

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

.brand {
  flex: none;
  color: var(--accent);
  font: 700 20px/1.2 system-ui, sans-serif;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 11px 22px;
}

nav a {
  color: var(--muted);
  font: 14px/1 system-ui, sans-serif;
  text-decoration: none;
}

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

.hero { padding: 96px 0 72px; max-width: 760px; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.lead { max-width: 670px; color: var(--muted); font-size: 21px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.section-head h2 { margin-bottom: 0; }

.text-link {
  color: var(--accent);
  font: 600 14px/1.4 system-ui, sans-serif;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.notes,
.article-list { display: grid; gap: 18px; }

article {
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgb(69 59 43 / 5%);
}

article h2 a { text-decoration: none; }
article h2 a:hover { color: var(--accent); }
time { color: var(--muted); font: 13px/1 system-ui, sans-serif; }
h2 { margin: 10px 0 8px; font-size: 27px; line-height: 1.2; }
article p { margin: 0; }
article p + p { margin-top: 13px; }

.about { max-width: 680px; }
.home-about { padding: 82px 0; }
.about h2 { margin-bottom: 14px; }
.about p { margin: 0 0 20px; }

.page { padding: 76px 0 90px; }
.narrow-page { max-width: 730px; }
.page-head { max-width: 780px; margin-bottom: 54px; }
.page-head h1 { margin-bottom: 22px; }
.page-head .lead { margin-bottom: 0; }
.long-note { scroll-margin-top: 24px; }

.idea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.number {
  display: block;
  color: var(--accent);
  font: 700 13px/1 system-ui, sans-serif;
}

.callout {
  margin-top: 34px;
  padding: 28px 32px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

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

.archive-list { display: grid; gap: 45px; }
.archive-month h2 { margin: 0 0 13px; }
.archive-month a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.archive-month a:hover span { color: var(--accent); }
.archive-month time { padding-top: 7px; }

.prose { max-width: 680px; }
.prose p { margin: 0 0 22px; }
.prose h2 { margin-top: 48px; }
.prose li { margin: 7px 0; }

.not-found {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  padding: 70px 0;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font: 700 15px/1 system-ui, sans-serif;
  letter-spacing: .2em;
}

.not-found h1 { margin-bottom: 8px; }

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 17px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font: 600 14px/1 system-ui, sans-serif;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 13px/1.4 system-ui, sans-serif;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero { padding: 64px 0 50px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .idea-grid { grid-template-columns: 1fr; }
  article { padding: 24px; }
  footer { flex-direction: column; }
}
