:root {
  --bone: #f2efe8; /* sampled from logo-light.jpg so the logo sits seamlessly */
  --ink: #000;
  --muted: #5e5b53;
  --marigold: #d9921e;
  --bg: var(--bone);
  --fg: var(--ink);
  --fg-2: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--bone);
    --fg-2: #a9a59a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  max-width: 40rem;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 6rem) 1.25rem 2rem;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* The logo is the one loud element. Its background matches --bg exactly. */
.wordmark {
  margin: 0 0 clamp(2rem, 6vh, 4rem);
  line-height: 0;
}
.wordmark img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin-left: -0.45rem; /* the crop keeps a little padding; pull it to the text edge */
}
.wordmark.small img { width: 9rem; margin-left: -0.15rem; }
.wordmark a { display: inline-block; }

.lede {
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  margin: 0 0 1.25rem;
  max-width: 32ch;
}

p { margin: 0 0 1rem; max-width: 62ch; }
.quiet { color: var(--fg-2); }

.actions {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 4px; }
a:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

.actions a { font-weight: 600; font-size: 1.125rem; }

.feed { margin-top: 3.5rem; }
.feed h2 { margin-top: 0; }
.grid {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.grid a { display: block; line-height: 0; }
.grid a:focus-visible { outline-offset: -3px; border-radius: 0; }
.grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.feed-more { margin-top: 0.75rem; font-size: 0.9375rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.5rem; font-weight: 700; }
h2 { font-size: 1.125rem; margin: 2rem 0 0.5rem; font-weight: 700; }

footer {
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--fg-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
