@font-face {
  font-family: "Dosis";
  src: url("/fonts/Dosis-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Dosis";
  src: url("/fonts/Dosis-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/FredokaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #13213f;
  --paper: #fff7e8;
  --coral: #ff5b57;
  --cyan: #3bbedf;
  --yellow: #ffd13f;
  --mint: #45d39a;
  --line: rgba(19, 33, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  color: var(--ink);
  font-family: "Dosis", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.page-header {
  align-items: stretch;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
}

.page-brand {
  align-items: stretch;
  display: inline-flex;
  text-decoration: none;
}

.page-brand-number {
  align-items: center;
  background: var(--coral);
  color: white;
  display: flex;
  font-family: "Fredoka", sans-serif;
  font-size: 30px;
  justify-content: center;
  min-width: 82px;
}

.page-brand-name {
  align-items: center;
  display: flex;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.13em;
  padding: 0 25px;
}

.page-nav {
  align-items: center;
  display: flex;
  gap: 32px;
  padding: 0 34px;
}

.page-nav a {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-nav a:hover,
.page-nav a.active {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.page-title {
  margin: 0 auto;
  max-width: 980px;
  padding: 70px 24px 0;
}

.page-title h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.page-title .updated {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 14px 0 0;
  text-transform: uppercase;
}

.card {
  background: #fffdf7;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  color: var(--ink);
  margin: 42px auto 80px;
  max-width: 980px;
  padding: 52px clamp(25px, 6vw, 72px) 65px;
}

.card h2 {
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2em 0 0.5em;
  text-transform: uppercase;
}

.card h2:first-child {
  margin-top: 0;
}

.card h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  margin: 1.6em 0 0.4em;
}

.card p,
.card li {
  color: var(--ink);
  font-size: 17px;
}

.card a {
  color: #0b7190;
  font-weight: 800;
}

.card ul {
  padding-left: 1.3em;
}

.card li {
  margin: 0.4em 0;
}

.lead {
  font-size: 19px !important;
}

.callout,
.toc {
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  margin: 28px 0;
  padding: 20px 24px;
}

.callout {
  background: var(--yellow);
}

.toc {
  background: rgba(59, 190, 223, 0.14);
}

.toc strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.btn {
  background: var(--coral);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink) !important;
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 13px 24px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    box-shadow 120ms ease,
    transform 120ms ease;
}

.btn:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(4px, 4px);
}

.page-footer {
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 36px 24px;
  text-align: center;
}

.page-footer a {
  color: white;
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.page-footer .links {
  margin-bottom: 10px;
}

.page-footer .links a {
  margin: 0 10px;
}

@media (max-width: 720px) {
  .page-header {
    display: block;
  }

  .page-brand {
    height: 64px;
  }

  .page-brand-number {
    font-size: 22px;
    min-width: 64px;
  }

  .page-brand-name {
    font-size: 18px;
    padding: 0 16px;
  }

  .page-nav {
    border-top: 2px solid var(--ink);
    gap: 18px;
    overflow-x: auto;
    padding: 16px;
  }

  .page-title {
    padding-top: 50px;
  }

  .card {
    margin: 30px 14px 60px;
    padding: 36px 24px 45px;
  }

  .page-footer .links a {
    display: inline-block;
    margin: 4px 7px;
  }
}

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