@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
}

:root {
  --paper: #fbf8f3;
  --ink: #1b1f24;
  --muted: #3d4651;
  --harbor: #0b4f6c;
  --on-harbor: #ffffff;
  --ember: #8a3b12;
  --card: #ffffff;
  --line: rgba(27, 31, 36, 0.16);
  --focus: #0b4f6c;
  --font: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1114;
    --ink: #f4f1ea;
    --muted: #c9ced6;
    --harbor: #7fd3f0;
    --on-harbor: #0e1114;
    --ember: #ffb68a;
    --card: #1a1f25;
    --line: rgba(244, 241, 234, 0.22);
    --focus: #7fd3f0;
  }
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--harbor);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--harbor);
  color: var(--on-harbor);
  padding: 0.75rem 1rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(46rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand img {
  display: block;
  width: min(16rem, 70vw);
  height: auto;
}

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

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

main {
  padding-block: 2.5rem 3.5rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-mark {
  width: min(12rem, 50vw);
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.4rem;
}

p,
li {
  max-width: 65ch;
}

.lede,
.muted {
  color: var(--muted);
}

.features {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.features li,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.features h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  background: var(--harbor);
  color: var(--on-harbor);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.8rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: auto 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
