.page-home {
  overflow-x: clip;
  background: var(--abyss);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-top {
  padding-block: 1rem 0.35rem;
}

.page-home .home-hero {
  padding-block: 0.5rem clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(15, 107, 116, 0.38), transparent 55%),
    linear-gradient(180deg, var(--abyss), var(--abyss));
}

.page-home .home-hero__grid {
  display: grid;
  gap: 1rem;
}

.page-home .home-hero__main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: clamp(1.4rem, 5vw, 3.6rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(11, 75, 87, 0.92), rgba(7, 54, 66, 0.96) 55%, var(--abyss));
  color: var(--foam);
}

.page-home .home-hero__main > :not(.home-hero__bg) {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.26;
  pointer-events: none;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .home-hero__main h1 {
  max-width: 12ch;
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 8.5vw, 5.1rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.08em;
  color: var(--foam);
}

.page-home .home-hero__main .lead {
  max-width: 58ch;
  color: var(--mist);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.page-home .home-hero__actions {
  margin-top: 1.25rem;
}

.page-home .home-directory {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-directory .toc__title {
  width: 100%;
  margin: 0 0 0.15rem;
  color: var(--seafoam);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.page-home .home-directory .toc-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--foam);
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.page-home .home-directory .toc-link:hover,
.page-home .home-directory .toc-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--lemon);
  background: rgba(216, 243, 74, 0.12);
}

.page-home .home-directory .toc-link.is-active {
  border-color: var(--lemon);
  background: var(--lemon);
  color: var(--ink);
}

.page-home .home-hero__rail {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-home .home-meter {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-meter__version {
  margin: 0.2rem 0 0;
  color: var(--lemon);
  font-size: clamp(3.2rem, 10vw, 4.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.page-home .home-meter__label {
  margin: 0.2rem 0 0.8rem;
  color: var(--seafoam);
  font-size: 0.85rem;
}

.page-home .home-meter__states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
  color: var(--foam);
  font-size: 0.82rem;
}

.page-home .home-meter__states li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-home .home-meter__pop {
  color: var(--seafoam);
  font-size: 0.85rem;
  line-height: 1.65;
}

.page-home .home-meter__media {
  margin: 0.9rem 0 0;
}

.page-home .home-meter__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.page-home .home-rail-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  color: var(--seafoam);
  font-size: 0.8rem;
}

.page-home .home-wave {
  line-height: 0;
  background: var(--abyss);
}

.page-home .home-wave svg {
  display: block;
  width: 100%;
  height: clamp(34px, 5vw, 64px);
}

.page-home .home-wave path {
  fill: var(--foam);
}

.page-home .home-section {
  position: relative;
  padding-block: var(--pad-section);
}

.page-home .home-section__head {
  max-width: 68ch;
  margin-bottom: clamp(1.4rem, 4vw, 2.4rem);
}

.page-home .home-section__head h2 {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
}

.page-home .home-section__head .lead {
  margin: 0;
}

.page-home .home-section--today {
  background: var(--foam);
  color: var(--ink);
}

.page-home .home-section--today .lead {
  color: var(--trench);
}

.page-home .home-today-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .home-today-media {
  align-self: start;
  margin: 0;
}

.page-home .home-today-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.page-home .home-query-list {
  display: grid;
  gap: 1rem;
}

.page-home .home-query-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 248px;
  padding: 1.2rem;
  border-left: 6px solid var(--pool);
  border-radius: var(--radius-md);
  background: var(--mist);
  color: var(--ink);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.page-home .home-query-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(4, 34, 42, 0.12);
}

.page-home .home-query-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .home-query-card__time {
  color: var(--trench);
  font-size: 0.74rem;
  white-space: nowrap;
}

.page-home .home-query-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.page-home .home-query-card p {
  flex: 1;
  margin: 0;
  color: var(--trench);
  font-size: 0.94rem;
  line-height: 1.75;
}

.page-home .home-query-card__link {
  margin-top: 0.25rem;
  color: var(--pool);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.page-home .home-query-card__link:hover,
.page-home .home-query-card__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.page-home .home-section--versions {
  background:
    linear-gradient(180deg, var(--trench), var(--abyss));
  color: var(--foam);
}

.page-home .home-section--versions .lead {
  color: var(--seafoam);
}

.page-home .home-versions-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.35rem;
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: 4.7rem;
  top: 1.65rem;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}

.page-home .home-timeline__item:last-child::before {
  display: none;
}

.page-home .home-timeline__marker {
  align-self: start;
  padding-top: 0.15rem;
  color: var(--lemon);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.page-home .home-timeline__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.page-home .home-timeline__body p {
  margin: 0;
  color: var(--seafoam);
  font-size: 0.94rem;
  line-height: 1.75;
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-content: start;
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(11, 75, 87, 0.7);
  color: var(--seafoam);
  font-size: 0.82rem;
}

.page-home .home-stat__num {
  color: var(--lemon);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.page-home .home-update-note {
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--seafoam);
  font-size: 0.9rem;
  line-height: 1.75;
}

.page-home .home-section--support {
  overflow: hidden;
  background: var(--abyss);
  color: var(--foam);
}

.page-home .home-support__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.page-home .home-support__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-support__content {
  position: relative;
  z-index: 1;
}

.page-home .home-section--support .lead {
  color: var(--seafoam);
}

.page-home .home-contact-list {
  display: grid;
  gap: 0.8rem;
}

.page-home .home-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(245, 251, 250, 0.06);
}

.page-home .home-contact-label {
  color: var(--seafoam);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.page-home .home-contact-value {
  color: var(--foam);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.page-home .home-support__actions {
  margin-top: 1.25rem;
}

.page-home .home-section--more {
  background: var(--mist);
  color: var(--ink);
}

.page-home .home-section--more .lead {
  color: var(--trench);
}

.page-home .home-more-grid {
  display: grid;
  gap: 1rem;
}

.page-home .home-more-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 196px;
  padding: 1.25rem;
  border: 1px solid rgba(6, 32, 38, 0.12);
  border-radius: var(--radius-lg);
  background: var(--foam);
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.page-home .home-more-card:hover,
.page-home .home-more-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--pool);
  box-shadow: 0 18px 36px rgba(4, 34, 42, 0.1);
}

.page-home .home-more-card__index {
  color: var(--pool);
  font-size: 0.78rem;
}

.page-home .home-more-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.page-home .home-more-card p {
  flex: 1;
  margin: 0;
  color: var(--trench);
  font-size: 0.93rem;
  line-height: 1.75;
}

.page-home .home-more-card__arrow {
  align-self: flex-end;
  color: var(--coral);
  font-size: 1.35rem;
  line-height: 1;
}

@media (min-width: 760px) {
  .page-home .home-query-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .home-today-grid {
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2.25fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: 68fr 32fr;
    align-items: stretch;
  }

  .page-home .home-hero__rail {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }

  .page-home .home-query-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-versions-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
    align-items: start;
  }

  .page-home .home-contact-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-home .home-meter:hover .home-meter__pop,
  .page-home .home-meter:focus-within .home-meter__pop {
    color: var(--foam);
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero__main {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-query-card,
  .page-home .home-more-card,
  .page-home .home-directory .toc-link {
    transition: none;
  }

  .page-home .home-query-card:hover,
  .page-home .home-more-card:hover,
  .page-home .home-directory .toc-link:hover {
    transform: none;
  }
}
