@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DM-Sans.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 1000;
}
:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --surface: #fff;
  --text: #39313b;
  --muted: #66615e;
  --accent: #36573c;
  --border: #84907d;
  font-family: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
header,
main,
footer {
  width: min(800px, calc(100% - 40px));
  margin-inline: auto;
}
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: max(20px, env(safe-area-inset-top)) 20px;
  border-bottom: 1px solid var(--border);
}
main {
  padding-block: 32px;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 32px 0 12px;
}
p {
  margin: 12px 0;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
header a,
footer a,
li a,
aside a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
aside {
  padding: 18px;
  margin-block: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
aside p {
  margin-bottom: 0;
}
section {
  scroll-margin-top: 20px;
}
.button {
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.updated,
footer {
  color: var(--muted);
  font-size: 1rem;
}
footer {
  border-top: 1px solid var(--border);
  padding-block: 20px max(30px, env(safe-area-inset-bottom));
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  padding: 12px;
  background: var(--surface);
  z-index: 1;
}
.skip-link:focus {
  top: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1b1f;
    --surface: #29242d;
    --text: #eee8ef;
    --muted: #bdb3bf;
    --accent: #d0e4c3;
    --border: #92869b;
  }
}
