:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e4e4e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #f2f2f0;
    --muted: #9a9a96;
    --rule: #2a2a28;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main,
footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 6rem;
}

header h1 {
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.entity {
  color: var(--muted);
  margin-top: 0.75rem;
}

.tagline {
  font-size: 1.375rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 24rem;
  margin-top: 3rem;
}

section {
  margin-top: 3.5rem;
}

h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

section p + p {
  margin-top: 0.75rem;
}

dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

dt,
dd {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

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

address {
  font-style: normal;
}

footer {
  padding-bottom: 4rem;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

  dl {
    grid-template-columns: 1fr;
  }

  dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  dd {
    padding-top: 0.125rem;
  }
}

.subpage header h1 {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
}

.subpage section {
  margin-top: 2.5rem;
  scroll-margin-top: 2rem;
}

.subpage section p a,
.subpage h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

details {
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}

details:first-child {
  border-top: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
}

details p {
  padding-bottom: 1rem;
}

details a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
