:root {
  color-scheme: light;
  --paper: #f8f3ec;
  --paper-bright: #fffaf4;
  --ink: #294563;
  --ink-soft: #597089;
  --line: #506b86;
  --comma: #6c63c2;
  --dot: #c57260;
  --blue-bubble: #d9e4ee;
  --lavender-bubble: #e1def0;
  --sage-bubble: #dce9e3;
  --rose-bubble: #eadfdd;
  --content: 1080px;
}

@font-face {
  font-family: "ElseToo Serif";
  src: url("/assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "ElseToo Sans";
  src: url("/assets/fonts/BarlowSemiCondensed-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "ElseToo Sans";
  src: url("/assets/fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "ElseToo Sans", "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(104, 102, 216, 0.07), transparent 24rem),
    radial-gradient(circle at 91% 79%, rgba(220, 128, 108, 0.08), transparent 25rem),
    var(--paper);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(104, 102, 216, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-header,
.site-footer,
.page,
.hero {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(80, 107, 134, 0.58);
}

.wordmark {
  color: var(--ink);
  font-family: "ElseToo Serif", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .comma,
.signature .comma {
  color: var(--comma);
}

.wordmark .dot,
.signature .dot {
  color: var(--dot);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--comma);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  padding-block: 86px 108px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--comma);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "ElseToo Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.07;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.1rem);
  letter-spacing: -0.025em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 31rem;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.small-note {
  font-size: 0.88rem !important;
}

.dayframe {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 35px 35px 8px 8px;
  background: rgba(255, 250, 244, 0.4);
  box-shadow: 0 26px 70px rgba(41, 69, 99, 0.08);
}

.dayframe-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 25px;
  border-bottom: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.dayframe-top strong {
  color: var(--comma);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 15px;
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
  line-height: 1.12;
  box-shadow: inset 0 -8px 15px rgba(41, 69, 99, 0.025);
}

.bubble span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}

.bubble-one {
  width: 150px;
  height: 150px;
  left: 7%;
  bottom: 26px;
  background: var(--blue-bubble);
}

.bubble-two {
  width: 188px;
  height: 188px;
  left: 35%;
  bottom: 8px;
  background: var(--sage-bubble);
}

.bubble-three {
  width: 137px;
  height: 137px;
  right: 6%;
  bottom: 28px;
  background: var(--lavender-bubble);
}

.bubble-four {
  width: 108px;
  height: 108px;
  right: 20%;
  bottom: 190px;
  background: var(--rose-bubble);
  font-size: 0.9rem;
}

.bubble-five {
  width: 94px;
  height: 94px;
  left: 20%;
  bottom: 175px;
  background: var(--lavender-bubble);
  font-size: 0.86rem;
}

.page {
  max-width: 820px;
  padding-block: 76px 110px;
}

.page-header {
  margin-bottom: 52px;
}

.page h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.lede {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.policy-meta {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.content-section {
  padding-block: 34px;
  border-top: 1px solid rgba(80, 107, 134, 0.38);
}

.content-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.content-section h3 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.content-section p,
.content-section ul,
.content-section ol {
  margin-top: 0;
  margin-bottom: 16px;
}

.content-section li + li {
  margin-top: 8px;
}

.callout {
  margin: 28px 0;
  padding: 23px 25px;
  border: 1px solid rgba(80, 107, 134, 0.55);
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.55);
}

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

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-block: 28px 8px;
}

.support-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(80, 107, 134, 0.5);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.48);
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.button-link {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 18px;
  border: 1px solid var(--comma);
  border-radius: 999px;
  color: var(--comma);
  text-decoration: none;
}

.button-link:hover {
  background: var(--comma);
  color: var(--paper-bright);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding-block: 30px 38px;
  border-top: 1px solid rgba(80, 107, 134, 0.58);
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--ink-soft);
}

@media (max-width: 850px) {
  .site-header {
    align-items: flex-start;
    padding-block: 24px;
  }

  .site-nav {
    max-width: 270px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 70px 90px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .dayframe {
    width: min(100%, 560px);
    min-height: 500px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  .site-header {
    display: block;
  }

  .site-nav {
    max-width: none;
    justify-content: flex-start;
    margin-top: 22px;
  }

  .hero,
  .page {
    padding-block: 54px 78px;
  }

  .dayframe {
    min-height: 455px;
  }

  .bubble-one {
    width: 120px;
    height: 120px;
    left: 2%;
    bottom: 22px;
  }

  .bubble-two {
    width: 142px;
    height: 142px;
    left: 33%;
    bottom: 8px;
  }

  .bubble-three {
    width: 108px;
    height: 108px;
    right: 2%;
    bottom: 28px;
  }

  .bubble-four {
    width: 88px;
    height: 88px;
    right: 12%;
    bottom: 166px;
    font-size: 0.78rem;
  }

  .bubble-five {
    width: 82px;
    height: 82px;
    left: 15%;
    bottom: 158px;
    font-size: 0.75rem;
  }

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

  .site-footer {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 14px;
  }
}

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