:root {
  color-scheme: light;
  --ink: #17313b;
  --paper: #fffaf1;
  --white: #ffffff;
  --sky: #6ec6d9;
  --leaf: #4f9d63;
  --sun: #f4c84c;
  --coral: #f27762;
  --berry: #a34b7d;
  --blue: #225d87;
  --mud: #776047;
  --line: #17313b;
  --accent: var(--coral);
  --accent-dark: #be4f3f;
  --shadow: 0 18px 45px rgba(23, 49, 59, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf7 0%, #f4fbfa 38%, #fff8f3 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body[data-mood="muddy"] {
  --accent: #f27762;
  --accent-dark: #be4f3f;
}

body[data-mood="quiet"] {
  --accent: #6ec6d9;
  --accent-dark: #225d87;
}

body[data-mood="brave"] {
  --accent: #f4c84c;
  --accent-dark: #8e6814;
}

body[data-mood="wobbly"] {
  --accent: #a34b7d;
  --accent-dark: #6a2f57;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--ink);
  background: var(--sun);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  transform: translateY(-160%);
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100% - var(--max)) / 2));
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: max-content;
  font-weight: 900;
  text-decoration: none;
}

.brand-glyph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 16px);
  grid-template-rows: repeat(2, 16px);
  width: 40px;
  height: 40px;
  padding: 4px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  transform: rotate(-4deg);
}

.brand-glyph span {
  border-radius: 3px;
}

.brand-glyph span:nth-child(1) {
  background: var(--sun);
}

.brand-glyph span:nth-child(2) {
  background: var(--sky);
}

.brand-glyph span:nth-child(3) {
  grid-column: span 2;
  background: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: var(--sun);
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 86svh;
  padding: 7.5rem max(1.1rem, calc((100% - var(--max)) / 2)) 4rem;
  overflow: hidden;
  border-bottom: 3px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 39, 45, 0.9) 0%, rgba(12, 39, 45, 0.67) 40%, rgba(12, 39, 45, 0.18) 75%, rgba(12, 39, 45, 0.05) 100%),
    linear-gradient(0deg, rgba(12, 39, 45, 0.55) 0%, transparent 34%);
}

.hero-copy {
  max-width: 780px;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-kicker,
.program-tag,
.detail-label,
.forecast-label {
  margin: 0 0 0.75rem;
  font-size: 0.77rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 6px;
  text-shadow: none;
  transform: rotate(-1.5deg);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-size: 5.6rem;
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  font-size: 3.1rem;
  font-weight: 950;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 950;
  text-decoration: none;
  text-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
  outline: none;
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-quiet {
  color: var(--ink);
  background: var(--white);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.65rem;
}

.proof-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--ink);
  border-radius: 6px;
  text-shadow: none;
}

.proof-strip strong {
  font-size: 1.2rem;
  line-height: 1;
}

.ticker {
  overflow: hidden;
  padding: 0.75rem 0;
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--line);
}

.ticker-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: drift 34s linear infinite;
}

.ticker span {
  min-width: max-content;
  padding: 0.25rem 0.8rem;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--white);
  border-radius: 6px;
  font-weight: 900;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.1rem;
}

.intro-grid,
.mood-lab,
.visit {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.section-kicker {
  color: var(--accent-dark);
}

.intro-copy {
  display: grid;
  gap: 1rem;
  padding-top: 0.3rem;
  font-size: 1.1rem;
}

.intro-copy p,
.section-heading p,
.mood-copy p,
.visit-copy p {
  margin: 1rem 0 0;
  max-width: 66ch;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.day-section {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  background: #e9f8fb;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.day-section > .section-heading,
.day-map {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.1rem;
  padding-left: 1.1rem;
}

.day-map {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
}

.station-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  min-height: 360px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3)),
    repeating-linear-gradient(45deg, rgba(23, 49, 59, 0.08) 0 2px, transparent 2px 16px);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.station-path::before {
  content: "";
  position: absolute;
  inset: 13% 8%;
  border: 3px dashed rgba(23, 49, 59, 0.36);
  border-radius: 50%;
  transform: rotate(-5deg);
  pointer-events: none;
}

.station {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 124px;
  padding: 0.75rem;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(23, 49, 59, 0.18);
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.station:nth-child(2),
.station:nth-child(5) {
  transform: translateY(1.2rem) rotate(1deg);
}

.station:nth-child(3),
.station:nth-child(4) {
  transform: translateY(-0.8rem) rotate(-1deg);
}

.station:hover,
.station:focus-visible,
.station.is-active {
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--line);
  outline: none;
}

.station-time,
.station-name {
  display: block;
}

.station-time {
  font-size: 0.82rem;
  font-weight: 900;
}

.station-name {
  margin-top: 0.25rem;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.05;
}

.station-detail {
  display: grid;
  align-content: start;
  min-height: 360px;
  padding: 1.4rem;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.station-detail h3 {
  font-size: 2.1rem;
}

.station-detail p:not(.detail-label) {
  margin: 1rem 0 0;
}

.detail-list,
.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.detail-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--accent);
  border: 2px solid var(--line);
  border-radius: 50%;
}

.mood-lab {
  align-items: center;
}

.mood-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #f2f7e8;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.mood-button {
  min-height: 46px;
  padding: 0.55rem 0.4rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 6px;
  font-weight: 950;
}

.mood-button:hover,
.mood-button:focus-visible,
.mood-button.is-active {
  background: var(--accent);
  outline: none;
}

.forecast-card {
  min-height: 205px;
  padding: 1.15rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
}

.forecast-card h3 {
  font-size: 2rem;
}

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

.comfort-meter {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  font-weight: 800;
}

.comfort-meter input {
  width: 100%;
  accent-color: var(--accent);
}

.comfort-meter output {
  display: block;
  min-height: 3.4rem;
  padding: 0.8rem;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  font-weight: 800;
}

.facts {
  padding-top: 2rem;
}

.fact-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fact-grid article,
.program-card,
.aid-note,
.visit-form {
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(23, 49, 59, 0.15);
}

.fact-grid article {
  min-height: 245px;
  padding: 1rem;
}

.fact-number {
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  min-height: 68px;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: var(--sun);
  border: 3px solid var(--line);
  border-radius: 8px;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.fact-grid p {
  margin-bottom: 0;
}

.truths {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  background: var(--ink);
  color: var(--white);
}

.truths-board {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem;
}

.truths .section-kicker {
  color: var(--sun);
}

.truth-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.truth-list article {
  min-height: 202px;
  padding: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--white);
  border-radius: 8px;
}

.truth-list p {
  margin-bottom: 0;
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 380px;
  padding: 1.1rem;
}

.feature-card {
  background: #fef0d2;
}

.program-card p {
  margin: 0;
}

.program-card dl {
  display: grid;
  gap: 0.6rem;
  margin: auto 0 0;
}

.program-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 2px solid rgba(23, 49, 59, 0.2);
}

.program-card dt {
  font-weight: 950;
}

.program-card dd {
  margin: 0;
  text-align: right;
}

.tuition {
  max-width: none;
  background: #f7eef6;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.tuition > .section-heading,
.tuition-wrap {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.1rem;
  padding-left: 1.1rem;
}

.tuition-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 1rem;
  align-items: start;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

caption {
  padding: 0.8rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 950;
  text-align: left;
}

th,
td {
  padding: 1rem;
  border-top: 2px solid rgba(23, 49, 59, 0.18);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--sun);
}

tbody th {
  width: 26%;
}

.aid-note {
  padding: 1.1rem;
}

.aid-note h3 {
  font-size: 1.7rem;
}

.visit {
  align-items: start;
}

.visit-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #e9f8fb;
}

.visit-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 900;
}

.visit-form input,
.visit-form select,
.visit-form textarea {
  width: 100%;
  padding: 0.8rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.visit-form textarea {
  resize: vertical;
}

.visit-form .button {
  width: 100%;
}

.form-note {
  min-height: 3rem;
  margin: 0;
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(1rem, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
  border-top: 3px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

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

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

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .intro-grid,
  .mood-lab,
  .visit,
  .day-map,
  .truths-board,
  .tuition-wrap {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .program-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 84svh;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(12, 39, 45, 0.86) 0%, rgba(12, 39, 45, 0.58) 58%, rgba(12, 39, 45, 0.34) 100%);
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .station-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .station {
    min-height: 104px;
  }

  .station:nth-child(n) {
    transform: none;
  }

  .station-detail,
  .forecast-card {
    min-height: auto;
  }

  .segmented,
  .fact-grid,
  .truth-list {
    grid-template-columns: 1fr;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody tr {
    border-top: 3px solid var(--line);
  }

  tbody th {
    width: 100%;
    background: var(--sun);
  }

  td::before {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 950;
  }

  td:nth-child(2)::before {
    content: "Monthly";
  }

  td:nth-child(3)::before {
    content: "Includes";
  }
}

@media (max-width: 430px) {
  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions .button {
    width: 100%;
  }

  .proof-strip span {
    width: 100%;
  }

  h1 {
    font-size: 2.7rem;
  }
}
