:root {
  --ink: #0b2935;
  --ink-soft: #39535b;
  --ocean: #07384b;
  --ocean-deep: #042734;
  --sea-glass: #85aeb2;
  --foam: #f4f0e7;
  --paper: #ece6d9;
  --white: #fffdf8;
  --sun: #e7b936;
  --coral: #c75436;
  --line: rgba(11, 41, 53, 0.18);
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --content: 1080px;
  --reading: 760px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--foam);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.035;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--ink);
  background: rgba(231, 185, 54, 0.72);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 68px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(244, 240, 231, 0.9);
  border-color: rgba(11, 41, 53, 0.12);
  box-shadow: 0 12px 40px rgba(4, 39, 52, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  font: italic 600 21px/1 var(--serif);
  color: var(--ink);
  background: var(--sun);
  border-radius: 50% 48% 52% 46%;
  transform: rotate(-5deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.12em;
}

.brand-copy strong {
  font-size: 12px;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.68;
}

.primary-nav {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
}

.primary-nav a {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  padding: 8px;
  color: inherit;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(650px, 74svh);
  overflow: hidden;
  color: var(--white);
  background-color: var(--ocean-deep);
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: center 48%;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 30, 43, 0.84) 0%, rgba(3, 30, 43, 0.2) 62%, rgba(3, 30, 43, 0.06)),
    linear-gradient(0deg, rgba(3, 30, 43, 0.68) 0%, transparent 38%);
}

.hero-wash {
  position: absolute;
  top: -15%;
  right: -7%;
  z-index: 1;
  width: min(50vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1380px, 100%);
  min-height: min(650px, 74svh);
  padding: 104px clamp(24px, 7vw, 112px) 72px;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-eyebrow span {
  display: inline-block;
  margin: 0 10px;
  color: var(--sun);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font: 500 clamp(68px, 8.5vw, 132px)/0.78 var(--serif);
  letter-spacing: -0.075em;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
}

.hero h1 span {
  display: block;
  margin: 0 0 17px 0.1em;
  font-family: var(--sans);
  font-size: 0.14em;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 690px;
  margin: 19px 0 0;
  font: italic 400 clamp(20px, 2vw, 29px)/1.25 var(--serif);
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.hero-status {
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.76;
}

.hero-caption {
  position: absolute;
  right: clamp(24px, 4vw, 68px);
  bottom: 22px;
  left: clamp(24px, 4vw, 68px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 9px;
  letter-spacing: 0.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.scroll-cue {
  position: absolute;
  right: clamp(24px, 4vw, 68px);
  bottom: 58px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.scroll-cue span {
  width: 7px;
  height: 7px;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  transform: translateY(-2px) rotate(45deg);
}

.paper-section {
  position: relative;
  display: block;
  padding: clamp(38px, 4.2vw, 58px) max(6vw, calc((100vw - var(--content)) / 2));
  background-color: var(--paper);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 28%), linear-gradient(112deg, transparent 0 70%, rgba(11,41,53,.035) 70% 71%, transparent 71%);
}

.intro-heading h2,
.section-lead h2,
.song-section h2,
.about-section h2 {
  margin: 0;
  font: 500 clamp(46px, 5.8vw, 78px)/0.95 var(--serif);
  letter-spacing: -0.055em;
}

.intro-heading {
  max-width: 1080px;
  margin: 0 auto 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.intro-heading .section-kicker {
  margin: 0;
  color: var(--coral);
}

.intro-quote {
  max-width: 1080px;
  margin: 0 auto;
  font: italic 400 clamp(18px, 1.65vw, 23px)/1.52 var(--serif);
}

.intro-quote::first-line {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 0.34em;
  text-underline-offset: -0.12em;
  text-decoration-skip-ink: none;
}

.journal-section {
  position: relative;
  padding: clamp(58px, 6vw, 86px) max(5vw, calc((100vw - var(--content)) / 2));
  background: var(--foam);
}

.section-lead {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.72fr);
  gap: 30px;
  align-items: end;
  max-width: var(--content);
  margin: 0 auto;
}

.section-lead > p {
  max-width: 520px;
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.journey-pulse {
  max-width: var(--content);
  margin: 36px auto 62px;
  padding: clamp(23px, 3vw, 34px);
  color: var(--white);
  background: var(--ocean);
  box-shadow: 18px 18px 0 var(--sun);
}

.journey-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.journey-route i {
  position: relative;
  display: block;
  height: 1px;
  background: rgba(255,255,255,.35);
}

.journey-route i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--sun);
  border-radius: 50%;
}

.journey-route b {
  position: absolute;
  top: -4px;
  left: 44%;
  width: 15px;
  height: 9px;
  background: var(--coral);
  clip-path: polygon(0 100%, 18% 35%, 100% 35%, 80% 100%);
}

.journey-invitation {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: end;
  margin-top: 22px;
}

.journey-invitation h3 {
  margin: 0;
  font: 500 clamp(27px, 3.25vw, 43px)/1.12 var(--serif);
  letter-spacing: -.035em;
}

.journey-invitation p {
  margin: 0;
  font: 400 15px/1.62 var(--serif);
  color: rgba(255,255,255,.72);
}

.journey-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.journey-facts span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 18px;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  border-right: 1px solid rgba(255,255,255,.18);
}

.journey-facts span:first-child { padding-left: 0; }
.journey-facts span:last-child { border-right: 0; }

.journey-facts strong {
  font: 500 27px/1 var(--serif);
  letter-spacing: 0;
  color: var(--white);
}

.journal-flow {
  max-width: var(--content);
  margin: 0 auto;
}

.day-section {
  position: relative;
  margin: 0 0 78px;
}

.day-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 30px;
}

.day-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.day-marker::after {
  position: absolute;
  top: 22px;
  bottom: -100px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--sea-glass), transparent);
}

.day-marker span {
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 6px;
  background: var(--sun);
  border: 4px solid var(--foam);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ocean);
}

.day-date {
  display: flex;
  flex-wrap: wrap;
  gap: .34em;
  align-items: baseline;
  margin: 0;
  font: 700 clamp(24px, 2.7vw, 36px)/1.12 var(--sans);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.day-date span {
  color: var(--coral);
}

.day-date b {
  font-weight: 400;
  color: var(--sun);
}

.day-date time {
  color: var(--ink);
}

.day-heading blockquote {
  position: relative;
  max-width: 770px;
  margin: 20px 0 0;
  padding-left: 24px;
  font: italic 400 clamp(19px, 2vw, 25px)/1.48 var(--serif);
  color: var(--ink-soft);
  border-left: 5px solid var(--sun);
}

.day-posts {
  max-width: 930px;
  margin: 30px 0 0 78px;
}

.post-card {
  margin: 0;
  padding: 0;
}

.post-card + .post-card {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.post-copy {
  max-width: var(--reading);
  margin: 0 auto 24px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.78;
}

.post-copy p {
  margin: 0 0 1.25em;
}

.post-copy.amy-voice {
  position: relative;
  padding: 24px 28px 18px;
  background: rgba(231, 185, 54, .13);
  border-left: 4px solid var(--sun);
}

.amy-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--coral);
}

.media-layout,
.media-carousel {
  margin-top: 22px;
}

.post-card.media-only > .media-layout,
.post-card.media-only > .media-carousel {
  margin-top: 0;
}

.media-item {
  min-width: 0;
  margin: 0;
}

.media-item > figcaption {
  padding: 8px 3px 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.photo-item {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  place-items: center;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.photo-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 780px);
  object-fit: contain;
  transition: filter 250ms ease;
}

.photo-item:hover img {
  filter: saturate(1.06) contrast(1.02);
}

.photo-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(4, 39, 52, 0.7);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(8px);
}

.photo-item:hover .photo-zoom,
.photo-item:focus-visible .photo-zoom {
  opacity: 1;
}

.media-video {
  color: var(--white);
  background: var(--ocean-deep);
}

.video-item {
  position: relative;
  display: grid;
  width: 100%;
  padding: 0;
  overflow: hidden;
  place-items: center;
  color: inherit;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.video-item video,
.video-item .video-open-label {
  pointer-events: none;
}

.media-video video {
  display: block;
  width: 100%;
  max-height: min(78vh, 780px);
  background: #031b24;
  object-fit: contain;
}

.video-open-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--white);
  background: rgba(4, 39, 52, .72);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(8px);
}

.video-item:hover .video-open-label,
.video-item:focus-visible .video-open-label {
  opacity: 1;
}

.media-video > figcaption {
  padding: 8px 11px;
  color: rgba(255,255,255,.68);
}

.media-single {
  display: grid;
  place-items: center;
}

.media-single .media-item {
  width: 100%;
}

.media-single .media-photo {
  display: grid;
  place-items: center;
}

.media-single .media-photo .photo-item {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.media-pair .photo-item,
.media-pair .media-video video {
  width: 100%;
  height: clamp(330px, 39vw, 560px);
  max-height: 66vh;
  object-fit: contain;
}

.media-carousel {
  width: min(100%, 840px);
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
  background: transparent;
}

.carousel-stage {
  position: relative;
  display: grid;
  min-height: clamp(400px, 54vw, 660px);
  overflow: hidden;
  place-items: center;
  background: transparent;
}

.media-slide {
  width: 100%;
  height: 100%;
}

.media-slide[hidden] {
  display: none;
}

.media-slide .media-item,
.media-slide .photo-item,
.media-slide .media-photo,
.media-slide .media-video {
  width: 100%;
  height: 100%;
}

.media-slide .photo-item img,
.media-slide .media-video video {
  width: 100%;
  height: clamp(400px, 54vw, 660px);
  max-height: 72vh;
  object-fit: contain;
}

.media-slide .media-item > figcaption {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 70px;
  height: 104px;
  place-items: center;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  background: rgba(4, 39, 52, .56);
  border: 1px solid rgba(255,255,255,.28);
  opacity: .76;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.carousel-arrow span,
.viewer-arrow span {
  display: block;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.carousel-prev span,
.viewer-prev span {
  border-right: 21px solid currentColor;
}

.carousel-next span,
.viewer-next span {
  border-left: 21px solid currentColor;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(4, 39, 52, .82);
  opacity: 1;
}

.carousel-prev {
  left: 12px;
  border-radius: 0 48px 48px 0;
}

.carousel-next {
  right: 12px;
  border-radius: 48px 0 0 48px;
}

.carousel-counter {
  position: absolute;
  top: 16px;
  z-index: 3;
  margin: 0;
  color: var(--white);
  background: rgba(4, 39, 52, .72);
  backdrop-filter: blur(8px);
}

.carousel-counter {
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.carousel-counter strong {
  font: 500 27px/1 var(--serif);
  color: var(--sun);
}

.letters-section {
  padding: clamp(82px, 9vw, 132px) max(5vw, calc((100vw - var(--content)) / 2));
  color: var(--foam);
  background: var(--ocean-deep);
}

.light-lead > p {
  color: rgba(244, 240, 231, 0.68);
}

.letters-list {
  max-width: var(--content);
  margin: 62px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.letter-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.letter-card summary {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  cursor: pointer;
  list-style: none;
}

.letter-card summary::-webkit-details-marker {
  display: none;
}

.letter-number {
  font: italic 400 28px/1 var(--serif);
  color: var(--sun);
}

.letter-title {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
}

.letter-toggle {
  justify-self: end;
  font-size: 25px;
  font-weight: 200;
  transition: transform 200ms ease;
}

.letter-card[open] .letter-toggle {
  transform: rotate(45deg);
}

.letter-body {
  max-width: 780px;
  padding: 14px 0 52px 88px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: rgba(244, 240, 231, 0.84);
}

.letter-body p {
  margin: 0 0 1.25em;
}

.letter-body strong {
  color: var(--white);
}

.song-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.65fr) minmax(500px, 1.35fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  padding: clamp(82px, 9vw, 128px) max(6vw, calc((100vw - var(--content)) / 2));
  background: var(--sun);
}

.song-section h3 {
  margin: 30px 0 5px;
  font: italic 400 clamp(30px, 4vw, 50px)/1 var(--serif);
}

.song-copy > p:not(.section-kicker):not(.song-credit) {
  max-width: 360px;
}

.song-credit {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.song-player {
  position: relative;
  padding: 18px;
  background: var(--ocean-deep);
  box-shadow: 26px 28px 0 rgba(255, 255, 255, 0.36);
}

.song-player video {
  width: 100%;
  max-height: 560px;
  background: black;
}

.song-wave {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 48px;
  padding: 0 12px;
}

.song-wave i {
  width: 2px;
  height: calc(8px + (var(--i) % 7) * 4px);
  background: var(--sun);
  opacity: calc(.32 + (var(--i) % 5) * .12);
}

.about-section {
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(88px, 10vw, 145px) max(6vw, calc((100vw - var(--content)) / 2));
  overflow: hidden;
  background: var(--white);
}

.about-index {
  align-self: center;
  font: 600 clamp(90px, 16vw, 220px)/0.8 var(--sans);
  letter-spacing: -0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 41, 53, 0.15);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.about-copy {
  max-width: 700px;
}

.about-lead {
  margin: 48px 0 26px;
  font: italic 400 clamp(25px, 3vw, 38px)/1.45 var(--serif);
}

.closing-section {
  position: relative;
  padding: clamp(105px, 12vw, 175px) max(6vw, calc((100vw - 900px) / 2));
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: linear-gradient(#164c5d 0%, #092f3d 54%, #041d28 100%);
}

.closing-horizon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(231,185,54,.75) 0 1.5%, rgba(231,185,54,.2) 1.7%, transparent 18%);
}

.closing-horizon::before,
.closing-horizon::after,
.closing-horizon span {
  position: absolute;
  right: -15%;
  left: -15%;
  height: 13%;
  content: "";
  border-top: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}

.closing-horizon::before { top: 49%; transform: rotate(-1.5deg); }
.closing-horizon::after { top: 53%; transform: rotate(1deg); }
.closing-horizon span { top: 57%; transform: rotate(-.5deg); }

.closing-section > *:not(.closing-horizon) {
  position: relative;
  z-index: 1;
}

.closing-section h2 {
  max-width: 920px;
  margin: 30px auto 60px;
  font: 500 clamp(42px, 6.8vw, 88px)/1.15 var(--serif);
  letter-spacing: -0.045em;
}

.closing-section blockquote {
  max-width: 720px;
  margin: 0 auto;
  font: 400 clamp(19px, 2.2vw, 26px)/1.65 var(--serif);
  color: rgba(255, 255, 255, 0.78);
}

.closing-section blockquote p {
  margin: 0 0 1.25em;
}

.closing-credit {
  margin-top: 35px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sun);
}

.back-to-top {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 58px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.back-to-top span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 50%;
}

.timeline-dock {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 90;
  transform: translateY(-50%);
}

.timeline-top {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 46px;
  color: var(--ink);
  text-decoration: none;
  background: var(--sun);
  border-bottom: 1px solid rgba(4,39,52,.25);
  box-shadow: 0 10px 28px rgba(4,39,52,.16);
}

.timeline-top span {
  font-size: 17px;
  line-height: 1;
}

.timeline-top small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.timeline-trigger {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 88px;
  padding: 8px 5px;
  color: var(--white);
  cursor: pointer;
  background: rgba(4, 39, 52, 0.94);
  border: 0;
  box-shadow: 0 15px 35px rgba(4, 39, 52, 0.2);
}

.timeline-trigger-icon {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}

.timeline-trigger-icon i {
  display: block;
  width: 2px;
  background: var(--sun);
}

.timeline-trigger-icon i:nth-child(1) { height: 7px; }
.timeline-trigger-icon i:nth-child(2) { height: 15px; }
.timeline-trigger-icon i:nth-child(3) { height: 10px; }

.timeline-trigger-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
}

.timeline-trigger-copy strong {
  font-size: 11px;
  letter-spacing: .12em;
}

.timeline-current {
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.7);
}

.timeline-panel {
  position: absolute;
  top: 50%;
  left: 76px;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 95px));
  max-height: min(78vh, 740px);
  overflow: hidden;
  visibility: hidden;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 35px 100px rgba(4, 39, 52, 0.25);
  opacity: 0;
  transform: translate(-16px, -50%);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  backdrop-filter: blur(18px);
}

.timeline-dock.is-open .timeline-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(0, -50%);
}

.timeline-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.timeline-panel-head div {
  display: flex;
  flex-direction: column;
}

.timeline-panel-head small {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--coral);
}

.timeline-panel-head strong {
  font: 500 25px/1.2 var(--serif);
}

.timeline-panel-head button {
  padding: 4px 8px;
  font-size: 25px;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.timeline-scroll {
  padding: 12px 0 25px;
  overflow: auto;
  overscroll-behavior: contain;
}

.timeline-month {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 22px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.96);
}

.timeline-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 11px 22px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 150ms ease, border 150ms ease;
}

.timeline-link:hover,
.timeline-link.is-active {
  background: rgba(133, 174, 178, 0.13);
  border-left-color: var(--sun);
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
}

.timeline-highlight {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 26px 32px 22px;
  color: var(--white);
  background: rgba(2, 22, 30, .97);
  border: 0;
}

.media-viewer::backdrop {
  background: rgba(2, 22, 30, 0.9);
}

.media-viewer[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.viewer-stage {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
}

.viewer-stage img,
.viewer-stage video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: calc(100vh - 94px);
  object-fit: contain;
}

.viewer-stage [hidden] {
  display: none !important;
}

.viewer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 34px;
  padding: 0 clamp(8px, 8vw, 130px);
}

.viewer-meta p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.viewer-counter {
  display: flex;
  gap: 7px;
  align-items: baseline;
  white-space: nowrap;
}

.viewer-counter strong {
  font: 500 25px/1 var(--serif);
  color: var(--sun);
}

.viewer-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1;
  width: 45px;
  height: 45px;
  font-size: 30px;
  color: var(--white);
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
}

.viewer-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 72px;
  height: 108px;
  place-items: center;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  background: rgba(4, 39, 52, .66);
  border: 1px solid rgba(255,255,255,.28);
  opacity: .78;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease;
  backdrop-filter: blur(8px);
}

.viewer-arrow:hover,
.viewer-arrow:focus-visible {
  background: rgba(4, 39, 52, .92);
  opacity: 1;
}

.viewer-prev {
  left: 10px;
  border-radius: 0 54px 54px 0;
}

.viewer-next {
  right: 10px;
  border-radius: 54px 0 0 54px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px clamp(22px, 4vw, 68px);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.55);
  background: #031720;
}

/* V0.6 — media-bound counters, voyage days, and a functional log compass */
.day-date strong {
  display: inline-grid;
  min-width: 3.4em;
  place-items: center;
  padding: .34em .55em .3em;
  font: 800 .58em/1 var(--sans);
  letter-spacing: .12em;
  color: var(--ocean-deep);
  background: var(--sun);
}

.day-voyage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  font: 700 10px/1.45 var(--sans);
  letter-spacing: .09em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.day-voyage-meta span {
  position: relative;
}

.day-voyage-meta span + span::before {
  position: absolute;
  left: -11px;
  color: var(--sun);
  content: "·";
}

.media-slide {
  display: grid;
  min-height: clamp(380px, 52vw, 650px);
  place-items: center;
}

.media-slide .media-item,
.media-slide .media-photo,
.media-slide .media-video,
.media-slide .photo-item,
.media-slide .video-item {
  width: fit-content;
  max-width: 100%;
  height: fit-content;
  max-height: 72vh;
}

.media-slide .photo-item img,
.media-slide .media-video video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 650px);
}

.media-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 14px;
  font: 700 13px/1 var(--sans);
  color: rgba(255,255,255,.76);
  background: rgba(4, 39, 52, .78);
  pointer-events: none;
  backdrop-filter: blur(9px);
}

.media-counter strong {
  font: 500 28px/1 var(--serif);
  color: var(--sun);
}

.timeline-dock {
  left: 22px;
}

.timeline-top {
  width: 142px;
  min-height: 66px;
}

.timeline-top span {
  font-size: 30px;
}

.timeline-top small {
  font-size: 10px;
}

.timeline-trigger {
  position: relative;
  gap: 8px;
  width: 142px;
  min-height: 202px;
  padding: 18px 10px 15px;
}

.timeline-trigger-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  color: rgba(255,255,255,.76);
}

.timeline-day-window {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  width: 100%;
  align-items: baseline;
  margin-top: 7px;
}

.timeline-day-window i {
  font: normal 700 12px/1 var(--sans);
  color: rgba(255,255,255,.48);
}

.timeline-day-window strong {
  font: 500 29px/1 var(--serif);
  color: var(--sun);
}

.timeline-pointer {
  position: relative;
  display: block;
  width: calc(100% - 14px);
  height: 1px;
  margin: 3px auto 1px;
  background: rgba(255,255,255,.32);
}

.timeline-pointer::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--sun);
  border: 3px solid var(--ocean-deep);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px var(--sun);
}

.timeline-current {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
}

.timeline-progress {
  display: -webkit-box;
  max-width: 118px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255,255,255,.65);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-progress[hidden] {
  display: none;
}

.timeline-panel {
  left: 158px;
  width: min(460px, calc(100vw - 205px));
  max-height: min(82vh, 780px);
}

.timeline-panel-head {
  padding: 23px 26px 20px;
}

.timeline-panel-head div {
  gap: 3px;
}

.timeline-panel-head p {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--ink-soft);
}

.timeline-link {
  grid-template-columns: 56px 62px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 55px;
  padding: 10px 26px;
}

.timeline-sequence {
  font: 700 15px/1 var(--sans);
  color: var(--coral);
}

.timeline-date {
  font-size: 12px;
}

.timeline-detail {
  overflow: hidden;
  font: 400 12px/1.4 var(--serif);
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-link.is-active .timeline-sequence {
  color: var(--ocean-deep);
}

.viewer-status {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 9px 13px;
  font: 700 11px/1 var(--sans);
  letter-spacing: .08em;
  color: var(--white);
  background: rgba(4,39,52,.82);
  pointer-events: none;
}

.viewer-status[hidden] {
  display: none;
}

/* V0.7 — a quiet, continuously moving vertical date ruler */
.timeline-top {
  min-height: 72px;
}

.timeline-top span {
  font-size: 43px;
  font-weight: 300;
  line-height: .85;
  transform: scaleX(.82);
}

.timeline-date-rail {
  position: relative;
  display: grid;
  width: 142px;
  min-height: 344px;
  grid-template-rows: repeat(7, minmax(40px, 1fr));
  align-items: stretch;
  padding: 15px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 32%, transparent 68%, rgba(255,255,255,.035)),
    rgba(4, 39, 52, .96);
  box-shadow: 0 18px 44px rgba(4, 39, 52, .22);
}

.timeline-date-rail::before {
  position: absolute;
  top: 50%;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: rgba(231,185,54,.52);
}

.dock-date {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0 7px;
  font: 700 11px/1 var(--sans);
  letter-spacing: .04em;
  color: rgba(255,255,255,.46);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 160ms ease, font-size 160ms ease, opacity 160ms ease;
}

.dock-date:hover,
.dock-date:focus-visible {
  color: var(--white);
}

.dock-date-current {
  min-height: 58px;
  padding: 0 9px;
  font: 500 25px/1 var(--serif);
  color: var(--sun);
  background: var(--ocean-deep);
}

.dock-date-current::before {
  position: absolute;
  left: 10px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ocean-deep), 0 0 0 5px var(--sun);
}

.dock-date[hidden] {
  display: grid;
  visibility: hidden;
}

.day-date {
  gap: .5em;
}

.day-date time {
  letter-spacing: .055em;
}

@media (max-width: 900px) {
  .paper-section {
    grid-template-columns: 70px 1fr;
  }

  .intro-quote {
    grid-column: 2;
    margin-top: 30px;
  }

  .journey-invitation {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .song-section {
    grid-template-columns: 1fr;
  }

  .song-copy {
    max-width: 600px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    visibility: hidden;
    color: var(--ink);
    background: rgba(244, 240, 231, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .site-header.nav-open .primary-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 15px 22px;
    border-top: 1px solid var(--line);
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    background-position: 58% center;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(3, 30, 43, 0.86) 0%, rgba(3, 30, 43, 0.25) 80%);
  }

  .hero-content {
    justify-content: flex-end;
    padding: 96px 22px 74px;
  }

  .hero h1 {
    font-size: clamp(62px, 21vw, 92px);
  }

  .hero h1 span {
    margin-left: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-caption span:last-child,
  .scroll-cue {
    display: none;
  }

  .paper-section,
  .journal-section,
  .letters-section,
  .song-section,
  .about-section,
  .closing-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .intro-heading {
    margin-bottom: 14px;
  }

  .section-lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .journey-pulse {
    margin: 30px auto 56px;
    padding: 22px 20px;
    box-shadow: 10px 10px 0 var(--sun);
  }

  .journey-route {
    gap: 10px;
  }

  .journey-invitation {
    margin-top: 22px;
  }

  .journey-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
  }

  .journey-facts span:nth-child(2) {
    border-right: 0;
  }

  .journey-facts span:nth-child(3),
  .journey-facts span:nth-child(4) {
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.15);
  }

  .day-header {
    grid-template-columns: 24px 1fr;
    gap: 14px;
  }

  .day-posts {
    margin: 28px 0 0 0;
  }

  .day-heading blockquote {
    padding-left: 16px;
  }

  .post-card {
    padding: 0;
  }

  .post-copy {
    font-size: 17px;
  }

  .post-copy.amy-voice {
    padding: 19px 18px 12px;
  }

  .media-pair {
    grid-template-columns: 1fr;
  }

  .media-pair .photo-item,
  .media-pair .media-video video {
    height: auto;
    max-height: 70vh;
  }

  .photo-item img {
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    background: transparent;
  }

  .carousel-stage,
  .media-slide .photo-item img,
  .media-slide .media-video video {
    min-height: 0;
    height: min(62vh, 540px);
  }

  .carousel-arrow {
    width: 56px;
    height: 82px;
  }

  .carousel-prev {
    left: 6px;
  }

  .carousel-next {
    right: 6px;
  }

  .carousel-counter {
    top: 8px;
  }

  .carousel-counter {
    right: 8px;
    padding: 8px 11px;
  }

  .carousel-counter strong {
    font-size: 24px;
  }

  .letter-card summary {
    grid-template-columns: 45px 1fr 30px;
    min-height: 88px;
  }

  .letter-body {
    padding: 12px 0 52px;
    font-size: 17px;
  }

  .song-player {
    padding: 10px;
    box-shadow: 12px 14px 0 rgba(255,255,255,.36);
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-index {
    display: none;
  }

  .closing-section h2 {
    margin-bottom: 55px;
  }

  .timeline-dock {
    top: auto;
    bottom: 18px;
    left: 16px;
    display: flex;
    gap: 6px;
    align-items: stretch;
    transform: none;
  }

  .timeline-top {
    width: 54px;
    min-height: 58px;
    border-radius: 0;
  }

  .timeline-top span {
    font-size: 34px;
  }

  .timeline-date-rail {
    width: min(318px, calc(100vw - 92px));
    min-height: 58px;
    grid-template-rows: 58px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0 7px;
  }

  .timeline-date-rail::before {
    top: 50%;
    right: 7px;
    left: 7px;
  }

  .dock-date {
    padding: 0 2px;
    font-size: 0;
    letter-spacing: 0;
  }

  .dock-date::after {
    content: attr(data-dock-compact);
    font: 700 9px/1 var(--sans);
  }

  .dock-date-current {
    min-height: 58px;
  }

  .dock-date-current::after {
    font: 500 15px/1 var(--serif);
    color: var(--sun);
  }

  .dock-date-current::before {
    top: 7px;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
  }

  .timeline-panel {
    top: auto;
    bottom: 68px;
    left: 0;
    width: min(430px, calc(100vw - 32px));
    max-height: 68vh;
    transform: translateY(12px);
  }

  .timeline-dock.is-open .timeline-panel {
    transform: translateY(0);
  }

  .media-viewer {
    padding: 54px 8px 16px;
  }

  .viewer-arrow {
    width: 58px;
    height: 86px;
  }

  .viewer-prev {
    left: 2px;
  }

  .viewer-next {
    right: 2px;
  }

  .viewer-meta {
    padding: 0 8px;
  }

  .media-slide {
    min-height: min(62vh, 540px);
  }

  .media-counter {
    top: 8px;
    right: 8px;
    padding: 8px 11px;
  }

  .media-counter strong {
    font-size: 24px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
