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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #17121F;
  color: #EEE9F2;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.68;
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
}

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

a {
  color: #5AD1A8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #EEE9F2;
}

h1,
h2,
h3,
.headline,
.nav-brand,
.nav-sheet a,
.pill-link,
.kicker,
.nav-toggle,
.foot-mega h2 {
  font-family: "Public Sans", system-ui, sans-serif;
  letter-spacing: -0.015em;
}

h1,
.headline {
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  margin: 0 0 18px;
}

h2 {
  font-weight: 700;
  line-height: 1.16;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0 0 16px;
}

h3 {
  font-weight: 600;
  line-height: 1.2;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* Bands */
.band {
  background: #17121F;
  padding-block: 72px;
}

.band--raise,
.band:nth-of-type(even) {
  background: #241A31;
}

.band--raise {
  background: #241A31;
}

.band--edge {
  background: #241A31;
  border-top: 3px solid #5AD1A8;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1200px) {
  .shell {
    padding-inline: 32px;
  }
}

@media (min-width: 900px) {
  .band {
    padding-block: 112px;
  }
}

.split-2-3 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 899px) {
  .split-2-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5AD1A8;
  margin: 0 0 12px;
}

.subhead {
  font-size: 1.08em;
  color: #EEE9F2;
  max-width: 46ch;
}

.prose {
  max-width: 68ch;
}

.prose a {
  color: #5AD1A8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #EEE9F2;
}

.pill-link,
.pill-link--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.pill-link {
  background: #5AD1A8;
  color: #17121F;
}

.pill-link:hover {
  background: #8CE3C5;
  color: #17121F;
}

.pill-link--ghost {
  background: transparent;
  border-color: rgba(238, 233, 242, 0.45);
  color: #EEE9F2;
}

.pill-link--ghost:hover {
  background: #EEE9F2;
  color: #17121F;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.frame {
  border-radius: 4px;
  border: 1px solid rgba(238, 233, 242, 0.12);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.frame img {
  width: 100%;
  height: auto;
}

.note-card {
  background: #17121F;
  border: 1px solid rgba(238, 233, 242, 0.12);
  border-radius: 4px;
  padding: 22px 22px 20px;
}

.note-card + .note-card {
  margin-top: 14px;
}

.note-grid .note-card + .note-card {
  margin-top: 14px;
}

.entry-row {
  padding-block: 28px;
  border-top: 1px solid rgba(238, 233, 242, 0.12);
}

.entry-row:last-child {
  border-bottom: 1px solid rgba(238, 233, 242, 0.12);
}

.entry-date {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.qa-block {
  padding: 22px 0;
  border-top: 1px solid rgba(238, 233, 242, 0.12);
}

.qa-block:last-child {
  border-bottom: 1px solid rgba(238, 233, 242, 0.12);
}

.qa-block__q {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.marker-list {
  list-style: none;
}

.marker-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

.marker-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: #5AD1A8;
}

.toc-list a {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.toc-list a:hover {
  color: #EEE9F2;
}

.teach-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .teach-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
  }
}

/* Nav sheet */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: rgba(23, 18, 31, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(238, 233, 242, 0.12);
}

.nav-bar .shell {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #EEE9F2;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.nav-brand:hover {
  color: #5AD1A8;
}

.nav-brand svg {
  display: block;
  flex: 0 0 auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #EEE9F2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: #EEE9F2;
}

.nav-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #241A31;
  min-height: 100dvh;
  padding: 28px 0 48px;
  overflow: auto;
}

.nav-sheet.is-open {
  display: grid;
  align-content: start;
}

.nav-sheet__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.nav-sheet__close {
  background: transparent;
  border: 0;
  color: #EEE9F2;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.nav-sheet__main {
  list-style: none;
  margin: 0 0 36px;
}

.nav-sheet__main a {
  display: block;
  color: #EEE9F2;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.16;
  padding: 6px 0;
}

.nav-sheet__main a:hover {
  color: #5AD1A8;
}

.nav-sheet__side {
  list-style: none;
  margin: 0 0 28px;
}

.nav-sheet__side a {
  display: inline-block;
  color: #928AA0;
  text-decoration: none;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 0;
}

.nav-sheet__side a:hover {
  color: #EEE9F2;
}

.nav-sheet__reach {
  color: #928AA0;
  font-size: 0.95rem;
}

.nav-sheet__reach a {
  color: #5AD1A8;
}

body.nav-lock {
  overflow: hidden;
}

/* Footer */
.foot-mega {
  background: #241A31;
  padding-block: 64px 36px;
  border-top: 1px solid rgba(238, 233, 242, 0.12);
}

.foot-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.foot-col h2 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5AD1A8;
  margin-bottom: 14px;
}

.foot-col ul {
  list-style: none;
}

.foot-col a {
  display: inline-block;
  color: #EEE9F2;
  text-decoration: none;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 4px 0;
}

.foot-col a:hover {
  color: #5AD1A8;
}

.foot-base {
  background: #17121F;
  padding-block: 36px 48px;
  color: #928AA0;
  font-size: 0.95rem;
}

.foot-base p {
  margin-bottom: 0.85em;
  max-width: 72ch;
}

.foot-base a {
  color: #5AD1A8;
}

.foot-base a:hover {
  color: #EEE9F2;
}

@media (max-width: 899px) {
  .foot-mega-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .foot-mega-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: #241A31;
  border: 1px solid rgba(238, 233, 242, 0.12);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  margin: 0;
  max-width: 62ch;
  color: #EEE9F2;
}

.cookie-bar__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Forms */
.form-row {
  margin-bottom: 18px;
}

.form-field {
  display: block;
  width: 100%;
  background: #17121F;
  color: #EEE9F2;
  border: 1px solid rgba(238, 233, 242, 0.22);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1rem;
}

.form-field:focus {
  outline: 2px solid #5AD1A8;
  outline-offset: 2px;
}

label {
  display: block;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: #928AA0;
  font-size: 0.9rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.alert-good,
.alert-bad {
  padding: 16px 18px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.alert-good {
  background: rgba(90, 209, 168, 0.16);
  border: 1px solid #5AD1A8;
  color: #EEE9F2;
}

.alert-bad {
  background: rgba(238, 233, 242, 0.06);
  border: 1px solid #E4A3A3;
  color: #EEE9F2;
}

.muted {
  color: #928AA0;
}

.rule {
  height: 1px;
  background: rgba(238, 233, 242, 0.12);
  border: 0;
  margin: 0;
}

.map-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(238, 233, 242, 0.12);
}

.update-block {
  padding: 20px 0;
  border-top: 1px solid rgba(238, 233, 242, 0.12);
}

.update-block:last-child {
  border-bottom: 1px solid rgba(238, 233, 242, 0.12);
}

/* Motion */
.lift-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .lift-in {
  opacity: 0;
  transform: translateY(14px);
}

html.js .lift-in.is-settled {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
