:root {
  --bg: #fbf1ea;
  --bg-rose: #f3ddd6;
  --bg-sand: #efd9c3;
  --paper: rgba(255, 249, 244, 0.76);
  --paper-strong: rgba(255, 250, 246, 0.9);
  --ink: #2f1c18;
  --muted: rgba(47, 28, 24, 0.68);
  --line: rgba(105, 65, 47, 0.12);
  --line-strong: rgba(105, 65, 47, 0.24);
  --accent: #bf5a49;
  --accent-strong: #a64038;
  --accent-soft: rgba(191, 90, 73, 0.12);
  --gold: #dfa54d;
  --rose: #d97d84;
  --shadow: 0 32px 90px rgba(108, 61, 44, 0.12);
  --shadow-soft: 0 18px 42px rgba(108, 61, 44, 0.1);
  --radius: 30px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 231, 206, 0.9), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(217, 125, 132, 0.22), transparent 22%),
    radial-gradient(circle at 65% 74%, rgba(223, 165, 77, 0.18), transparent 25%),
    linear-gradient(180deg, #fff7f1 0%, #f7ebe1 33%, #f2e2d5 67%, #ecd9c9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header,
.days-section,
.timeline-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0 0;
}

.brand-lockup {
  display: grid;
  gap: 0.18rem;
}

.brand-overline,
.section-overline,
.meter-label,
.day-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.brand-domain {
  font-size: 0.92rem;
  color: var(--muted);
}

.preview-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.58rem 0.94rem;
  font-size: 0.88rem;
  background: rgba(255, 249, 244, 0.72);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  min-height: calc(100svh - 2rem);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 2rem;
  align-items: end;
  padding: 4.8rem max(1rem, calc((100vw - var(--max-width)) / 2)) 3.4rem;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 40rem;
  padding-bottom: 1rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 7ch;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(5rem, 11vw, 10.8rem);
  line-height: 0.92;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 31rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-note {
  width: min(100%, 29rem);
  margin-top: 1.6rem;
  padding: 1.2rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.72), rgba(255, 250, 246, 0.46));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-note-meta {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.hero-note-dedication {
  margin-bottom: 0.7rem;
}

.hero-note-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
  font-weight: 600;
}

.hero-note-body {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-note-signoff {
  margin-top: 0.95rem;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  right: max(2vw, 1rem);
  top: 1rem;
  width: min(56vw, 45rem);
  height: auto;
  overflow: visible;
}

.art-halo {
  fill: rgba(255, 239, 214, 0.74);
  transform-origin: 580px 220px;
  animation: halo-breathe 8.5s ease-in-out infinite;
}

.art-sun {
  transform-origin: 580px 220px;
  animation: halo-breathe 7.2s ease-in-out infinite;
}

.art-ring {
  fill: none;
  stroke: rgba(120, 72, 53, 0.16);
  stroke-width: 1.2;
}

.art-ring-one {
  stroke-dasharray: 10 16;
}

.art-ring-two {
  stroke-dasharray: 2 14;
}

.art-route {
  fill: none;
  stroke: rgba(191, 90, 73, 0.56);
  stroke-linecap: round;
  stroke-width: 3;
  stroke-dasharray: 8 14;
  animation: route-dash 18s linear infinite;
}

.postcard-card {
  transform-origin: 422px 374px;
  animation: postcard-float 7.6s ease-in-out infinite;
}

.postcard-edge,
.colosseum-outline,
.colosseum-inner,
.colosseum-level,
.colosseum-arches,
.colosseum-cut,
.card-lines,
.stamp-ring {
  fill: none;
  stroke: rgba(121, 70, 56, 0.7);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.colosseum-inner,
.colosseum-level,
.colosseum-cut {
  stroke-width: 2.6;
}

.colosseum-arches {
  stroke-width: 2.8;
}

.schematic-guide {
  fill: none;
  stroke: rgba(191, 90, 73, 0.34);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: route-dash 14s linear infinite;
}

.schematic-node {
  fill: rgba(191, 90, 73, 0.94);
  transform-origin: center;
  animation: pulse-soft 4.6s ease-in-out infinite;
}

.schematic-node-small {
  animation-duration: 5.8s;
}

.stamp-heart,
.mini-heart path,
.spark path {
  fill: rgba(191, 90, 73, 0.92);
}

.stamp-heart {
  transform-origin: 532px 309px;
  animation: pulse-soft 4.8s ease-in-out infinite;
}

.mini-heart,
.spark {
  opacity: 0.84;
}

.mini-heart-one {
  transform-origin: 214px 268px;
  animation: charm-float 7s ease-in-out infinite;
}

.mini-heart-two {
  transform-origin: 640px 404px;
  animation: charm-float 6.4s ease-in-out infinite reverse;
}

.spark-one {
  transform: translate(666px, 190px);
  animation: twinkle 4.8s ease-in-out infinite;
}

.spark-two {
  transform: translate(250px, 188px);
  animation: twinkle 5.4s ease-in-out infinite 1.6s;
}

.hero-meter {
  position: relative;
  z-index: 4;
  align-self: start;
  justify-self: end;
  width: min(100%, 27rem);
  margin-top: 6rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.8), rgba(255, 250, 246, 0.54));
  border: 1px solid rgba(105, 65, 47, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-meter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(223, 165, 77, 0.82), rgba(191, 90, 73, 0.78));
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.countdown-cell {
  padding: 0.98rem 0.86rem;
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.62);
  border: 1px solid rgba(105, 65, 47, 0.08);
}

.countdown-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 0.9;
}

.countdown-unit {
  display: block;
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meter-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

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

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

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
}

.days-list {
  display: grid;
  gap: 1rem;
}

.day-band {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(150px, 210px) minmax(0, 1fr);
  gap: 1.25rem;
  min-height: 11rem;
  padding: 1.25rem 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.7), rgba(255, 250, 246, 0.38));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.day-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(223, 165, 77, 0.11), transparent 32%, rgba(191, 90, 73, 0.08)),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.36), transparent 24%);
  pointer-events: none;
}

.day-band.state-today {
  border-color: rgba(191, 90, 73, 0.28);
  box-shadow: 0 24px 60px rgba(191, 90, 73, 0.16);
}

.day-band.state-past {
  opacity: 0.78;
}

.day-tag {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: start;
  justify-self: center;
  width: 82px;
  min-height: 96px;
  padding: 0.95rem 0.7rem 0.8rem;
  border-radius: 22px 22px 28px 28px;
  background:
    linear-gradient(180deg, rgba(255, 241, 236, 0.96), rgba(242, 207, 198, 0.98));
  color: var(--accent-strong);
  border: 1px solid rgba(191, 90, 73, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 26px rgba(149, 67, 56, 0.12);
  transform: translateY(-0.18rem) rotate(-3deg);
}

.day-tag::before,
.day-tag::after {
  content: "";
  position: absolute;
}

.day-tag::before {
  top: 11px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 248, 244, 0.96);
  border: 1px solid rgba(176, 110, 83, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(117, 76, 56, 0.08);
  transform: translateX(-50%);
}

.day-tag::after {
  inset: 6px;
  border-radius: 18px 18px 24px 24px;
  border: 1px dashed rgba(191, 90, 73, 0.16);
  opacity: 0.58;
}

.day-tag-label {
  position: relative;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(166, 64, 56, 0.7);
}

.day-tag-value {
  position: relative;
  margin-top: 0.22rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
}

.day-meta,
.day-atmosphere {
  position: relative;
  z-index: 1;
}

.day-meta {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.day-date {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.95rem, 3.2vw, 2.95rem);
  line-height: 0.95;
}

.day-atmosphere {
  display: grid;
  gap: 0.45rem;
  align-content: center;
}

.day-eyebrow {
  color: var(--accent);
}

.day-teaser {
  font-size: 1.02rem;
  line-height: 1.58;
  max-width: 42rem;
}

.day-vibe {
  color: var(--muted);
  line-height: 1.58;
  max-width: 38rem;
}

.day-status {
  width: fit-content;
  margin-top: 0.65rem;
  display: inline-flex;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 64, 56, 0.08);
  background: rgba(255, 250, 246, 0.72);
  color: rgba(98, 61, 45, 0.8);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

.day-band.state-today .day-status {
  background: rgba(223, 165, 77, 0.14);
  color: rgba(143, 88, 26, 0.95);
  border-color: rgba(223, 165, 77, 0.18);
}

.day-band.state-past .day-status {
  background: rgba(105, 65, 47, 0.06);
  color: rgba(84, 56, 45, 0.72);
  border-color: rgba(105, 65, 47, 0.08);
}

.day-band.state-future .day-status {
  background: rgba(191, 90, 73, 0.07);
  color: rgba(153, 76, 66, 0.82);
}

.day-band.state-future .day-vibe {
  color: rgba(166, 64, 56, 0.76);
}

.day-band.locked .day-atmosphere,
.day-band.locked .day-meta {
  filter: blur(8px);
  opacity: 0.46;
}

.day-band.locked .day-tag {
  opacity: 0.72;
}

.veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(252, 244, 236, 0.3), rgba(252, 244, 236, 0.78)),
    radial-gradient(circle at 50% 50%, rgba(255, 253, 249, 0.8), rgba(255, 253, 249, 0.36));
  backdrop-filter: blur(7px);
}

.veil-note {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  max-width: 18rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.6;
}

.veil-note svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 14px rgba(149, 67, 56, 0.18));
  animation: pulse-soft 5s ease-in-out infinite;
}

.veil-note p {
  margin: 0;
}

.timeline-panel {
  position: relative;
  min-height: 17rem;
  padding: 1.55rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.82), rgba(255, 250, 246, 0.56));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timeline-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(223, 165, 77, 0.82), rgba(217, 125, 132, 0.78), rgba(191, 90, 73, 0.82));
}

.timeline-empty {
  display: grid;
  gap: 0.65rem;
  align-content: center;
  min-height: 14rem;
}

.timeline-empty h3,
.timeline-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.95rem, 3.3vw, 2.9rem);
  font-weight: 600;
  line-height: 1.03;
}

.timeline-empty p,
.timeline-intro {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.72;
}

.timeline-stack {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.45rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.timeline-time {
  color: var(--accent-strong);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-copy {
  display: grid;
  gap: 0.2rem;
}

.timeline-copy strong {
  font-size: 1.04rem;
}

.timeline-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-item.is-now .timeline-copy strong::after {
  content: "  • now";
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes halo-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes postcard-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1.4deg);
  }
}

@keyframes route-dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes charm-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 4.4rem;
    padding-bottom: 2rem;
  }

  .hero-art {
    right: -4rem;
    top: 2.4rem;
    width: min(95vw, 43rem);
  }

  .hero-meter {
    justify-self: start;
    margin-top: 1rem;
    width: min(100%, 36rem);
  }

}

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

  .hero-title {
    max-width: 8ch;
  }

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

  .day-band {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-height: 0;
  }

  .day-tag {
    width: 78px;
    min-height: 90px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .art-halo,
  .art-sun,
  .postcard-card,
  .art-route,
  .stamp-heart,
  .mini-heart-one,
  .mini-heart-two,
  .spark-one,
  .spark-two,
  .veil-note svg {
    animation: none;
  }
}
