@font-face {
  font-family: "Journey Levels";
  src: url("fonts/JourneyLevels-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Journey Levels";
  src: url("fonts/JourneyLevels-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("fonts/GlacialIndifference-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-003F, U+0041-FFFF;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("fonts/GlacialIndifference-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-003F, U+0041-FFFF;
}

:root {
  --lavender: #cdacdd;
  --night: #152b30;
  --iris: #54d5e2;
  --white: #ffffff;

  --rule: #cdacdd;

  --heading: "Journey Levels", "Marker Felt", "Chalkboard SE", system-ui, sans-serif;
  --body: "Glacial Indifference", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --measure: 36rem;
  --gutter: clamp(16px, 4vw, 48px);
  --band-pad: clamp(2.5rem, 6vw, 4.5rem);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--night);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

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

a {
  color: var(--night);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--night);
  font-family: var(--body);
  z-index: 10;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); }

strong { font-weight: 700; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.masthead {
  background: var(--lavender) url("img/lavender-texture.jpg") center / cover no-repeat;
  color: var(--night);
}

.masthead__mark {
  display: inline-block;
  line-height: 0;
}
.masthead__mark img { width: min(100%, 260px); }

.base {
  flex-shrink: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.9375rem;
}
.base a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.base a:hover { border-bottom-color: var(--lavender); }
.base :focus-visible { outline-color: var(--lavender); }

.base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}
.base__inner p { margin: 0; }
.base__inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-left: auto;
}
.base__legal { flex: 1 1 100%; }

.band { padding-block: var(--band-pad); }

.legal-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.legal-head .masthead__mark { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.legal-head h1 { margin: 0; }
.legal-head__date { margin: 0.75rem 0 0; }

.legal { max-width: 42rem; overflow-wrap: break-word; }
.legal > :first-child { margin-top: 0; }
.legal h2 {
  margin: 2.75rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
  scroll-margin-top: 1.5rem;
}
.legal > h2:first-child { padding-top: 0; border-top: 0; }
.legal h3 {
  margin: 1.75rem 0 0;
  scroll-margin-top: 1.5rem;
}
.legal p { margin: 1rem 0 0; }
.legal ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.legal li { margin-top: 0.5rem; padding-left: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
