/* ============================================================
   Anastasia & Spyros — August 7, 2027 · Heraklion, Crete
   Design tokens transplanted 1:1 from website.pen
   ============================================================ */

:root {
  --bg: #F1EDE7;
  --surface: #FBF8F3;
  --card: #F7F4EE;
  --white: #FFFFFF;
  --ink: #2E2A26;
  --ink-soft: #3A342D;
  --muted: #8A8072;
  --muted-2: #A39A8B;
  --muted-3: #B8AE9F;
  --border: #E7E1D6;
  --olive: #57503F;
  --gold: #E7DCC8;
  --cream-85: rgba(251, 248, 243, .85);
  --cream-18: rgba(251, 248, 243, .18);
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.section { width: 100%; }

/* Full width at every viewport — same rule as the invitation page.
   Design width is 1200px, so 1vw ≈ 12px of the original design. */
.wrap {
  padding: max(24px, 5.333vw);
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: max(12px, 1vw);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted-2);
}
.display { font-family: var(--font-display); font-weight: 400; }
.italic { font-style: italic; }

.h-block { display: flex; flex-direction: column; gap: 12px; }
.h-block h2 {
  font-family: var(--font-display);
  font-size: max(22px, 2.8333vw);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.h-block h2 em { font-style: italic; color: var(--olive); }
.h-block .section-copy {
  color: var(--olive);
  font-size: max(14px, 1.1667vw);
  line-height: 1.7;
  max-width: max(400px, 46.667vw);
}
.h-block.centered { align-items: center; text-align: center; }
.h-block.centered .section-copy { text-align: center; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO (both pages)
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  min-height: max(560px, 40vw);
  padding: max(28px, 5.333vw);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(30, 27, 22, .38), rgba(30, 27, 22, .58));
}
.hero.plain::before { display: none; }
.hero > * { position: relative; }
.hero .eyebrow { color: var(--gold); letter-spacing: max(4px, 0.6667vw); font-size: max(12px, 1.1667vw); }
.hero .names {
  font-family: var(--font-display);
  font-size: max(42px, 8vw);
  line-height: 1.05;
  color: var(--white);
  font-weight: 400;
}
.hero .title-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: max(46px, 8vw);
  line-height: 1.05;
  color: var(--olive);
  font-weight: 400;
}
.hero.plain { background: var(--bg); }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; }
.hero .date-line {
  font-size: max(13px, 2.5vw);
  letter-spacing: max(3px, 0.75vw);
  color: var(--cream-85);
  text-transform: uppercase;
  font-weight: 500;
}
.hero .subline {
  max-width: max(420px, 43.333vw);
  font-size: max(14px, 1.25vw);
  line-height: 1.7;
  color: var(--muted);
}
.scroll-cue {
  width: 48px; height: 48px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(251, 248, 243, .1);
  border: 1px solid rgba(251, 248, 243, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ============================================================
   PAGE: index — story timeline
   ============================================================ */
.story { padding: max(44px, 8vw) max(20px, 6.6667vw) max(32px, 2.6667vw); }
.story-intro { text-align: center; padding-bottom: 48px; display: flex; flex-direction: column; gap: 10px; }
.story-intro .kicker { font-size: max(11px, 0.9167vw); letter-spacing: 3px; color: var(--muted-2); font-weight: 600; }
.story-intro .whisper { font-family: var(--font-display); font-style: italic; font-size: max(18px, 1.5vw); color: var(--muted); }

.year { display: flex; flex-direction: column; gap: 36px; margin-bottom: 8px; }
.year-num {
  display: block;
  font-family: var(--font-display);
  font-size: max(36px, 6vw);
  color: var(--muted-3);
  transform: rotate(-4deg);
  text-align: center;
  padding: 22px 0 18px;
  line-height: 1;
}
.photos { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.photo-card { display: flex; flex-direction: column; gap: 10px; }
.photo-slot {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-3);
}
.photo-card .caption {
  font-size: max(11px, 0.9167vw);
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.photo-card.drop { margin-top: 64px; }
.photo-card.drop-sm { margin-top: 40px; }

.flow { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 10px; }
.flow .whisper { font-family: var(--font-display); font-style: italic; font-size: max(17px, 1.4167vw); color: var(--muted-2); }

/* ---------- save the date + countdown ---------- */
.std { text-align: center; padding: 16px max(20px, 6.6667vw) max(36px, 3vw); display: flex; flex-direction: column; gap: 14px; }
.std .label { font-size: max(13px, 1.0833vw); letter-spacing: 3px; color: var(--muted-2); font-weight: 600; }
.std h2 { font-family: var(--font-display); font-size: max(22px, 3.6667vw); font-weight: 400; line-height: 1.25; color: var(--ink); }
.std h2 em { color: var(--olive); }
.count-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: max(20px, 3.8333vw);
  color: var(--ink);
  margin-top: 12px;
}
.count-units { display: flex; justify-content: center; gap: max(20px, 3.3333vw); margin-top: 12px; }
.unit { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.unit .val { font-size: max(20px, 1.6667vw); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.unit .lab { font-size: max(7px, 0.5833vw); letter-spacing: 2px; color: var(--muted-2); }

/* ---------- welcome ---------- */
.split { display: flex; gap: max(32px, 4vw); align-items: center; }
.split .visual { flex: 0 0 auto; }
.split .visual img {
  border-radius: 8px;
  object-fit: cover;
  width: max(280px, 36.6667vw);
  height: auto;
  aspect-ratio: 440 / 340;
}
.split .text { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.split .text h3 {
  font-family: var(--font-display);
  font-size: max(22px, 2.8333vw);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.split .text h3 em { font-style: italic; color: var(--olive); }
.split .text .copy { color: var(--olive); font-size: max(14px, 1.1667vw); line-height: 1.7; white-space: pre-line; }
.split .text .signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: max(16px, 2vw);
  color: var(--ink);
  text-align: center;
  margin-top: 8px;
}

/* ---------- the day ---------- */
.day-cards { display: flex; gap: 20px; align-items: stretch; }
.event-card {
  flex: 1;
  border-radius: 10px;
  padding: max(24px, 3vw) max(20px, 2.6667vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.event-card.dark { background: var(--ink); color: var(--surface); text-align: center; align-items: center; }
.event-card.dark .event { font-size: max(15px, 1.25vw); color: var(--muted-3); }
.event-card.dark .time { font-family: var(--font-display); font-size: max(36px, 5.3333vw); line-height: 1.1; color: var(--surface); }
.event-card.dark .place { font-size: max(12px, 1vw); color: var(--muted-3); letter-spacing: .5px; }
.event-card.light { background: var(--card); gap: 18px; }
.event-card.light h3 { font-family: var(--font-display); font-size: max(19px, 2.1667vw); font-weight: 400; color: var(--ink); }
.night-row { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: max(14px, 1.1667vw); }
.night-row .ic { color: var(--olive); }

/* ---------- venue ---------- */
.venue-address { color: var(--olive); font-size: max(14px, 1.1667vw); line-height: 1.6; white-space: pre-line; }
.btn-row { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 8px 20px;
  border-radius: 6px;
  font-size: max(13px, 1.0833vw); font-weight: 600; letter-spacing: .5px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }

/* ---------- gallery ---------- */
.gallery-grid { display: flex; flex-direction: column; gap: 16px; }
.gallery-row { display: flex; gap: 16px; }
.gallery-row .ph { flex: 1; border-radius: 8px; background-size: cover; background-position: center; height: max(140px, 15vw); }
.gallery-row.r1 .ph { height: max(140px, 16.6667vw); }
.gallery-row.r2 .ph { height: max(140px, 16.6667vw); }

/* ---------- accommodation ---------- */
.stay-options { display: flex; gap: 16px; margin-top: 36px; }
.stay-card {
  flex: 1;
  background: var(--card);
  border-radius: 14px;
  padding: max(22px, 2.1667vw) max(20px, 2vw);
  display: flex; flex-direction: column; gap: 6px;
}
.stay-card .tag { font-size: max(9px, 0.75vw); letter-spacing: 2px; color: var(--muted-2); font-weight: 600; }
.stay-card .name { font-family: var(--font-display); font-size: max(20px, 1.6667vw); color: var(--ink); }
.stay-card .note { font-size: max(12px, 1vw); color: var(--olive); line-height: 1.6; }
.footnote {
  font-size: max(13px, 1.0833vw); font-style: italic; color: var(--muted-2);
  margin-top: 20px; text-align: center;
}

/* ---------- info rows (transport / driving) ---------- */
.info-rows { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 14px; }
.info-row .ic { color: var(--olive); flex: 0 0 auto; margin-top: 3px; }
.info-row .rt { font-family: var(--font-display); font-size: max(19px, 1.5833vw); color: var(--ink); }
.info-row .rd { font-size: max(13px, 1.0833vw); color: var(--olive); line-height: 1.6; }
.drive-times {
  font-size: max(10px, 0.8333vw); letter-spacing: 2px; color: var(--muted-2);
  margin-top: 14px; font-weight: 600;
}

/* ============================================================
   PAGE: guide — cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.g-card {
  background: var(--card);
  border-radius: 12px;
  padding: max(20px, 1.8333vw) max(18px, 1.6667vw);
  display: flex; flex-direction: column; gap: 6px;
}
.g-card .ph {
  height: max(110px, 12.5vw);
  border-radius: 8px;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
}
.g-card .meta { font-size: max(9px, 0.75vw); letter-spacing: 2px; color: var(--muted-2); font-weight: 600; }
.g-card .title { font-family: var(--font-display); font-size: max(20px, 1.6667vw); color: var(--ink); line-height: 1.2; }
.g-card .index { font-family: var(--font-display); font-size: max(26px, 2.1667vw); color: var(--gold); line-height: 1; }
.g-card .note { font-size: max(12px, 1vw); color: var(--olive); line-height: 1.65; flex: 1; }
.g-card .contact {
  display: flex; align-items: center; gap: 16px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: max(11px, 0.9167vw); color: var(--muted);
}
.g-card .contact a { display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.g-card .contact a:hover { color: var(--olive); }

/* polaroids */
.polaroid {
  background: var(--white);
  padding: 12px 12px 14px;
  box-shadow: 0 12px 28px rgba(46, 42, 38, .16);
  display: flex; flex-direction: column; gap: 8px;
}
.polaroid .ph { height: max(120px, 14.1667vw); background-size: cover; background-position: center; }
.polaroid .cap { font-size: max(10px, 0.8333vw); letter-spacing: 1.5px; color: var(--muted); text-align: center; font-weight: 600; }
.polaroid.p1 { transform: rotate(-6deg); }
.polaroid.p2 { transform: rotate(5deg); }
.polaroid.p3 { transform: rotate(-3deg); }

/* hero polaroids: always a tidy centered row under the title —
   the old absolute collage only worked with a fixed-height hero */
.hero-polaroids { display: flex; justify-content: center; flex-wrap: wrap; gap: max(14px, 1.5vw); margin-top: max(16px, 1.6667vw); }
.hero-polaroids .polaroid { width: max(150px, 14.1667vw); }
.hero-polaroids .polaroid .ph { height: max(80px, 9.5833vw); }
.hero-polaroids .p1 { transform: rotate(-4deg); }
.hero-polaroids .p2 { transform: rotate(3deg); }
.hero-polaroids .p3 { transform: rotate(-2deg); }

.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; max-width: max(600px, 70vw); margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER (both pages)
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--surface);
  padding: max(28px, 2.5vw) max(20px, 5.333vw) max(30px, 2.5vw);
}
.footer .inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: max(20px, 2.8333vw); /* same fluid value as index's text-[34px] override */
  color: var(--gold);
}
.monogram {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: max(17px, 1.4167vw);
  color: var(--gold);
}
.contacts { display: flex; align-items: center; gap: 24px; }
@media (min-width: 640px) {
  .contacts { gap: 56px; }
}
.contact-col { display: flex; flex-direction: column; gap: 6px; }
.contact-col .cname {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: max(13px, 1.0833vw);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-col a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: max(14px, 1.1667vw);
  color: var(--cream-85);
  transition: color .15s;
}
.contact-col a:hover { color: var(--white); text-decoration: underline; }
/* same divider behavior as index: horizontal on small screens, vertical from 640px */
.v-div { width: 56px; height: 1px; background: rgba(251, 248, 243, .18); }
@media (min-width: 640px) {
  .v-div { width: 1px; height: 52px; }
}
.crosslink { font-size: max(12px, 1vw); color: var(--muted-3); transition: color .15s; }
.crosslink:hover { color: var(--gold); }
.crosslink { display: inline-flex; align-items: center; gap: 6px; }

/* big pill CTA — mirrors the invitation page's "Explore the Crete Guide" button */
.cta-row { display: flex; justify-content: center; padding: 8px max(24px, 5.333vw) max(48px, 4vw); }
.big-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 36px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.big-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(46, 42, 38, .25); }
.big-btn svg { width: 18px; height: 18px; }

/* guide footer map line (footer is shared with index) */

/* ============================================================
   RESPONSIVE — layout stacking only.
   Type, spacing and media heights are fluid everywhere
   (max(design px, vw) with readable floors), so the
   breakpoints below only decide how things stack.
   ============================================================ */
@media (max-width: 1280px) {
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .photos { flex-direction: column; align-items: center; gap: 28px; }
  .photo-card.drop, .photo-card.drop-sm { margin-top: 0; }

  .split { flex-direction: column; }
  .split .visual { width: 100%; }
  .split .visual img { width: 100%; height: auto; }

  .day-cards { flex-direction: column; }
  .event-card { padding: 28px 20px; }

  .stay-options { flex-direction: column; }
  .cards, .cards.cols-2, .cards.cols-4 { grid-template-columns: 1fr; gap: 16px; }
  .tips { grid-template-columns: 1fr; }

  .gallery-row { flex-wrap: wrap; }
  .gallery-row .ph { flex: 1 1 45%; }

  .contacts { gap: 24px; }
}
