:root {
  color-scheme: light;
}

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

html {
  background: #fff;
  color: #000;
}

body {
  margin: 0 auto;
  max-width: 40rem;
  padding:
    calc(1.25rem + env(safe-area-inset-top))
    1rem
    calc(2.5rem + env(safe-area-inset-bottom));
  font: 16px/1.5 Georgia, "Times New Roman", Times, serif;
  overflow-wrap: anywhere;
}

header p {
  margin: 0 0 0.25rem;
}

nav a {
  display: inline-block;
  min-height: 44px;
  padding: 0.6rem 0.75rem 0.6rem 0;
  line-height: 1.4;
}

nav a[aria-current="page"] {
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

h1,
h2,
h3 {
  font-family: system-ui, sans-serif;
  line-height: 1.25;
  font-weight: 650;
}

h1 {
  font-size: 1.75rem;
  margin: 1.25rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.35rem;
}

p,
ul,
ol {
  margin: 0.6rem 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 2rem 0 1rem;
}

footer {
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

footer p {
  margin: 0.35rem 0;
}

address {
  font-style: normal;
}

details {
  border-top: 1px solid #ccc;
}

details:last-of-type {
  border-bottom: 1px solid #ccc;
}

summary {
  min-height: 44px;
  padding: 0.7rem 0;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

details p {
  margin: 0 0 0.85rem;
}

.meta {
  margin-top: 0;
}

@media (min-width: 768px) {
  body {
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
