:root {
  --ink: #173B3C;
  --deep: #062026;
  --sea: #225A61;
  --sand: #F0E3CF;
  --paper: #FBF4E8;
  --apricot: #F3AF64;
  --clay: #B05F39;
  --hairline: rgba(23, 59, 60, 0.16);
  --display-font: "Palatino Linotype", "Georgia", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --body-font: "Microsoft YaHei", "PingFang SC", "Segoe UI", "Noto Sans SC", sans-serif;
  --data-font: "Bahnschrift", "Avenir Next Condensed", "Arial Narrow", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a,
button {
  font: inherit;
}

::selection {
  background: rgba(243, 175, 100, 0.38);
  color: var(--deep);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 58%;
  animation: settle 1400ms ease-out both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 24, 29, 0.86) 0%, rgba(4, 24, 29, 0.42) 30%, rgba(4, 24, 29, 0.16) 58%, rgba(4, 24, 29, 0.72) 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1420px, calc(100% - 112px));
  margin: 0 auto;
  padding: 34px 0 22px;
  border-bottom: 1px solid rgba(251, 244, 232, 0.24);
  color: rgba(251, 244, 232, 0.76);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.voyage-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.voyage-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid var(--apricot);
  border-radius: 50%;
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: end;
  gap: 72px;
  width: min(1420px, calc(100% - 112px));
  margin: 0 auto;
  padding: 78px 0 68px;
}

.eyebrow {
  margin: 0;
  color: var(--apricot);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero .eyebrow {
  color: rgba(251, 244, 232, 0.66);
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0;
}

#hero-title {
  max-width: 860px;
  margin: 22px 0 0;
  color: #FBF3E2;
  font-size: 116px;
  line-height: 0.97;
  text-wrap: balance;
  animation: rise 900ms ease-out both;
}

#dayCount {
  font-variant-numeric: tabular-nums;
}

#hero-title small {
  margin-left: 12px;
  font-size: 30px;
  font-weight: 500;
}

.closing-line {
  display: block;
  margin-top: 8px;
  color: rgba(251, 243, 226, 0.8);
  font-size: 46px;
  line-height: 1.12;
}

.lede {
  max-width: 520px;
  margin: 30px 0 0;
  color: rgba(251, 244, 232, 0.72);
  font-size: 17px;
}

.lede strong {
  color: #FDF6E7;
  font-weight: 600;
}

.clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  max-width: 400px;
  margin-top: 42px;
  padding: 20px 22px;
  border: 1px solid rgba(251, 244, 232, 0.2);
  border-radius: 8px;
  background: rgba(5, 27, 32, 0.44);
  backdrop-filter: blur(10px);
}

.clock div {
  text-align: center;
}

.clock div + div {
  border-left: 1px solid rgba(251, 244, 232, 0.14);
}

.clock span {
  display: block;
  color: #FFF3DC;
  font-family: var(--data-font);
  font-size: 50px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock small {
  display: block;
  margin-top: 8px;
  color: rgba(251, 244, 232, 0.52);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.journey {
  width: 100%;
  padding-bottom: 8px;
}

.journey-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(251, 244, 232, 0.68);
  font-size: 15px;
  letter-spacing: 0.08em;
}

#progressText {
  color: #FFD599;
  font-family: var(--data-font);
  font-size: 30px;
  line-height: 1;
}

.journey-line {
  position: relative;
  height: 8px;
  margin: 26px 0 30px;
  border-radius: 999px;
  background: rgba(251, 244, 232, 0.2);
}

.journey-done {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress, 0) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(243, 175, 100, 0.72), #F8C583);
  transition: width 1s linear;
}

.journey-sun {
  position: absolute;
  top: 50%;
  left: calc(var(--progress, 0) * 1%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFEEC4;
  box-shadow: 0 0 0 8px rgba(255, 199, 126, 0.16), 0 0 34px rgba(255, 199, 126, 0.52);
  transform: translate(-50%, -50%);
  transition: left 1s linear;
}

.journey-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(251, 244, 232, 0.52);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
}

.journey-labels span:first-child,
.journey-labels span:last-child {
  text-align: left;
}

.journey-labels span:last-child {
  text-align: right;
}

.ledger {
  width: 100%;
  padding: 96px 0 70px;
  background: var(--sand);
}

.section-head,
.stats,
.wishes,
.footnote {
  width: min(1420px, calc(100% - 112px));
  margin-inline: auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.ledger .eyebrow {
  color: var(--clay);
}

.section-head h2 {
  max-width: 560px;
  margin-top: 12px;
  font-size: 52px;
}

.section-head::after {
  content: "2030 / 03 / 05";
  flex: 0 0 auto;
  color: rgba(23, 59, 60, 0.38);
  font-family: var(--data-font);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 56px;
}

.stats article {
  min-height: 252px;
  padding: 30px 28px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(31, 52, 50, 0.08);
}

.stat-value {
  display: block;
  color: var(--deep);
  font-family: var(--display-font);
  font-size: 54px;
  line-height: 1.06;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--clay);
  font-size: 16px;
  font-weight: 600;
}

.stats p {
  margin: 20px 0 0;
  color: rgba(23, 59, 60, 0.7);
  font-size: 14px;
}

.wishes {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 64px;
  margin-top: 84px;
}

.wish-letter {
  padding-left: 36px;
  border-left: 3px solid var(--apricot);
}

.wish-letter h3 {
  font-size: 36px;
}

.wish-letter p {
  max-width: 390px;
  margin: 20px 0 0;
  color: rgba(23, 59, 60, 0.72);
  font-size: 17px;
}

.checkpoints {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkpoints li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.checkpoints span {
  color: rgba(23, 59, 60, 0.52);
  font-size: 14px;
}

.checkpoints strong {
  font-size: 22px;
  line-height: 1.4;
}

.footnote {
  margin-top: 84px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: rgba(23, 59, 60, 0.46);
  font-size: 13px;
}

@keyframes settle {
  from {
    opacity: 0.35;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-image,
  #hero-title {
    animation: none;
  }

  .journey-done,
  .journey-sun {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .hero-body {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 52px;
    padding-top: 56px;
  }

  #hero-title {
    font-size: 92px;
  }

  .journey {
    max-width: 620px;
  }

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

  .stats article {
    min-height: 0;
  }

  .wishes {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero-body,
  .section-head,
  .stats,
  .wishes,
  .footnote {
    width: calc(100% - 44px);
  }

  .topbar {
    padding-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-body {
    padding-bottom: 52px;
  }

  #hero-title {
    font-size: 58px;
  }

  #hero-title small {
    margin-left: 8px;
    font-size: 20px;
  }

  .closing-line {
    font-size: 31px;
  }

  .lede {
    margin-top: 22px;
    font-size: 15px;
  }

  .clock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    padding: 16px;
  }

  .clock span {
    font-size: 32px;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    font-size: 36px;
  }

  .section-head::after {
    display: block;
    margin-top: 12px;
    font-size: 18px;
  }

  .ledger {
    padding-top: 68px;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .wishes {
    margin-top: 56px;
  }

  .wish-letter {
    padding-left: 22px;
  }

  .wish-letter h3 {
    font-size: 29px;
  }

  .checkpoints li {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 22px 0;
  }

  .checkpoints strong {
    font-size: 19px;
  }

  .footnote {
    margin-top: 56px;
  }
}
