:root {
  color-scheme: light;
  --night: #102a2e;
  --chalk: #f4f1e8;
  --paper: #fffdf8;
  --coral: #e25f45;
  --blue: #2f66b3;
  --slate: #58666a;
  --line: #d6dcd8;
  --success: #28756b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--chalk);
  color: var(--night);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--night);
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.site-header {
  background: var(--night);
  color: var(--chalk);
}

.header-inner,
.page,
.footer-inner {
  margin: 0 auto;
  max-width: 72rem;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 5.25rem;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 720;
  gap: 0.75rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  height: 2.4rem;
  width: 2.4rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--chalk);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.page {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.32fr);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(3rem, 8vw, 7rem);
}

.page-main {
  min-width: 0;
}

.eyebrow {
  align-items: center;
  color: var(--slate);
  display: flex;
  font-size: 0.78rem;
  font-weight: 760;
  gap: 0.65rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--coral);
  border-radius: 50%;
  content: "";
  height: 0.65rem;
  width: 0.65rem;
}

h1,
h2,
h3 {
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 760;
  margin: 0;
  max-width: 12ch;
}

.lede {
  color: var(--slate);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  margin: 1.5rem 0 0;
  max-width: 46rem;
}

.content {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.content section {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 1rem;
}

.content h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  margin: 0 0 1rem;
}

.content h3 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.5rem;
}

.content p,
.content li {
  max-width: 48rem;
}

.content ul {
  padding-left: 1.2rem;
}

.content li + li {
  margin-top: 0.45rem;
}

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 0.3rem solid var(--success);
  border-radius: 0.35rem;
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
}

.sidebar {
  align-self: start;
  background: var(--night);
  border-radius: 0.65rem;
  color: var(--chalk);
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.sidebar::before {
  background: var(--coral);
  border-radius: 0.18rem;
  content: "";
  display: block;
  height: 0.75rem;
  margin-bottom: 2rem;
  width: 0.75rem;
}

.sidebar h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}

.sidebar p {
  color: #cfd9d6;
  font-size: 0.94rem;
}

.sidebar a {
  color: var(--chalk);
}

.button {
  background: var(--chalk);
  border-radius: 0.35rem;
  color: var(--night) !important;
  display: inline-block;
  font-weight: 760;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.meta {
  color: var(--slate);
  font-size: 0.88rem;
  margin-top: 1.25rem;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.footer-inner p,
.footer-inner nav {
  font-size: 0.86rem;
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 48rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1.25rem;
    padding-top: 1.25rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

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