/* jarnovegting.com
   Plain CSS, no build step. System fonts only; nothing is fetched
   from third parties. Colours follow the visitor's light/dark setting. */

:root {
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #5c5955;
  --link: #1c1b19;
  --rule: #d9d5cc;
  --measure: 34rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --fg: #e8e4dc;
    --muted: #a39e94;
    --link: #e8e4dc;
    --rule: #3a3733;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 18vh 1.5rem 4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}

.lede {
  margin: 0;
  color: var(--muted);
}

footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

address {
  font-style: normal;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 40rem) {
  main {
    padding-top: 12vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
