:root {
  --paper: #f7f4ec;
  --ink: #1b1a17;
  --muted: #6b665c;
  --rule: #e6e0d2;
  --accent: #f2c94c;
  --accent-ink: #1b1a17;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; text-underline-offset: 3px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
}

.brand .mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--accent);
  font: 600 18px/1 "Newsreader", Georgia, serif;
}

nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding: 48px 0 72px; }

h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 24px; margin: 40px 0 8px; }

.eyebrow {
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6a2f;
  margin: 0 0 14px;
}

.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; }

.hl { background: linear-gradient(transparent 62%, var(--accent) 62%); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 0 #c9a12e;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fffdf7;
  padding: 20px 22px;
  margin: 24px 0;
}

ul { padding-left: 22px; }
li { margin: 4px 0; }

.meta { color: var(--muted); font-size: 14px; }

footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer a { margin-right: 16px; }

/* Landing: hero centred in the viewport, footer pinned to the bottom. */
.home .wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.home .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 40px 0 56px; }
.home .hero h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.home .hero .lead { max-width: 58ch; margin: 0 auto 14px; }
.home footer { text-align: center; }
.home footer a { margin: 0 8px; }

@media (max-width: 480px) {
  nav a { margin-left: 14px; }
  main { padding-top: 24px; }
}
