/* Colour tokens: test/site.test.mjs holds every text colour here to WCAG AA
   (4.5:1) against --bg, in both schemes. Keep them as six-digit hex so it can. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #1c1b19;
  --muted: #57534d;
  --link: #1f5a43;
  --rule: #dedad1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131513;
    --text: #ecebe6;
    --muted: #b3b0a8;
    --link: #8fd0b0;
    --rule: #34372f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.125rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  margin: 3rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0 0 0.75rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1875rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.contact dt {
  color: var(--muted);
}

.contact dd {
  margin: 0;
}

@media (max-width: 30rem) {
  main {
    padding-top: 3rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact dd {
    margin-bottom: 0.75rem;
  }
}
