/* ============ Tokens ============ */
:root {
  --olive: #555634;
  --cream: #f4f5ef;
  --brown: #5b483a;
  --ink: #646464;
  --map-gray: #cccccc;
  --sage: #8f8f7f;
  --font-display: "Didot", "Playfair Display", serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --card-shadow: 0 6px 5px rgba(0, 0, 0, 0.15), 0 2px 1.5px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--olive);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: min(883px, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Figma crop shows the photo's vertical band from 38% to 85% of its height */
  object-fit: cover;
  object-position: 50% 70%;
  filter: grayscale(1);
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 80px);
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* ============ Journey (fixed 1512x2662 canvas, scaled to fit) ============ */
.journey {
  background: var(--cream);
  overflow: hidden;
}

.journey-canvas {
  position: relative;
  width: 1512px;
  height: 2662px;
  transform-origin: top left;
}

.journey-header {
  position: absolute;
  top: 44px;
  left: 0;
  width: 1512px;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.journey-intro {
  font-size: 24px;
  color: #000;
}

/* Route */
.route-box {
  position: absolute;
  left: 543.7px;
  top: 133.9px;
  width: 744.7px;
  height: 2135px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.route-rotor {
  flex: none;
  width: 2096.6px;
  height: 228.7px;
  transform: rotate(74.95deg) skewX(13.81deg);
}

.route-rotor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-start-dot {
  position: absolute;
  left: 553px;
  top: 222px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brown);
}

.route-tag {
  position: absolute;
  left: 990px;
  top: 1248px;
  background: var(--brown);
  opacity: 0;
  color: #fff;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.route-tag.visible { opacity: 0.8; }

/* Polaroid cards */
.polaroid-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid {
  flex: none;
  width: 300px;
  height: 280px;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.15)) drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.3));
  transform: rotate(var(--tilt, 0deg));
}

.polaroid-photo {
  position: relative;
  flex: 1 0 0;
  min-height: 1px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.polaroid-photo img {
  position: absolute;
  max-width: none;
}

.polaroid figcaption {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.polaroid-caption { font-size: 18px; }
.polaroid-date { font-size: 14px; }

/* Destination */
.japan-map {
  position: absolute;
  left: 671px;
  top: 1944px;
  width: 1000px;
  height: 817.19px;
}

.map-label {
  position: absolute;
  left: 177px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 160px;
  color: var(--map-gray);
  white-space: nowrap;
}

.map-label-niigata { top: 2084px; }
.map-label-japan { top: 2322px; }

.map-label-jp {
  position: absolute;
  left: 996px;
  top: 2175px;
  font-size: 60px;
  font-weight: 500;
  color: var(--sage);
  white-space: nowrap;
}

.map-pin {
  position: absolute;
  left: 1170px;
  top: 2214px;
  width: 35px;
  height: 50px;
}

/* ============ Venue ============ */
.venue {
  background: #fff;
  padding: 60px;
}

.venue-inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  justify-content: center;
  padding: 200px 0;
}

.venue-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 80px);
  letter-spacing: 4px;
  color: var(--olive);
  text-align: center;
  white-space: nowrap;
}

.venue-place {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  color: var(--olive);
}

.venue-name {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 1.8px;
}

.venue-address {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 1.2px;
}

/* ============ Schedule ============ */
.schedule {
  background: var(--cream);
  min-height: 780px;
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.schedule-body {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.schedule-day {
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
}

.schedule-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 29px;
  color: var(--ink);
  font-size: 24px;
}

.schedule-items li {
  display: flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
}

.schedule-time { min-width: 60px; }

/* ============ Dress Code ============ */
.dress-code {
  background: #fff;
  min-height: 780px;
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.dress-body {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 500;
}

.dress-columns {
  display: flex;
  flex-direction: row;
  gap: 46px;
  align-items: flex-start;
  justify-content: center;
}

.dress-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  font-size: 24px;
}

.dress-heading { font-size: 36px; }

.dress-note {
  font-size: 24px;
  text-align: center;
}

/* ============ Countdown ============ */
.countdown {
  background: var(--cream);
  min-height: 883px;
  padding: 60px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  overflow: hidden;
}

.countdown-bigdate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9.5vw, 180px);
  letter-spacing: 0.05em;
  color: var(--olive);
  line-height: normal;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  gap: 55px;
  padding: 45px 33px;
}

.countdown-heading {
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(602px, 100%);
  height: 100px;
  padding: 0 16px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-weight: 500;
}

.countdown-value {
  font-size: 48px;
  text-align: center;
}

.countdown-label { font-size: 20px; }

.countdown-sep {
  font-size: 60px;
  font-weight: 500;
  color: var(--olive);
  opacity: 0.5;
  align-self: flex-start;
}


@media (max-width: 700px) {
  .section-title { font-size: 36px; }
  .venue { padding: 40px 24px; }
  .venue-inner { padding: 120px 0; }
  .venue-date { white-space: normal; }
  .schedule, .dress-code, .countdown { padding: 40px 24px; }
  .countdown-block { padding: 45px 0; }
  .countdown-heading { font-size: 28px; }
  .countdown-value { font-size: 36px; }
  .countdown-label { font-size: 14px; }
  .countdown-sep { font-size: 44px; }
}
