@font-face {
  font-family: "Iosevka Aile";
  src: url("/assets/fonts/aile-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Aile";
  src: url("/assets/fonts/aile-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Logo";
  src: url("/assets/fonts/iosevka-logo.woff2") format("woff2");
  font-weight: 700;
  font-display: block;
}

:root {
  --font-logo: "Iosevka Logo", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-body: "Iosevka Aile", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;
  --text: #1c2733;
  --muted: #4a5868;
  --rule: #d8dee5;
  --accent: #0d4f8b;
  --accent-text: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191e;
    --text: #e6eaef;
    --muted: #a9b4c0;
    --rule: #2f3740;
    --accent: #7fb6ec;
    --accent-text: #0f1a26;
    color-scheme: dark;
  }
}

*,
*::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-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text);
  text-decoration: none;
}

.mark {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: static;
  display: inline-block;
  margin-top: 0.75rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-child {
  border-bottom: 0;
}

h1 {
  font-size: clamp(1.875rem, 5vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

dl {
  margin: 0;
}

dt {
  font-weight: 700;
  margin-top: 1.25rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

ol {
  margin: 0;
  padding-left: 1.25rem;
}

ol li + li {
  margin-top: 0.75rem;
}

address {
  font-style: normal;
  font-size: 1.125rem;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.button:hover {
  text-decoration: underline;
}

footer {
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  max-width: none;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
