@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@200;300;400;500&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;0,6..96,900;1,6..96,400&family=Great+Vibes&family=Caveat:wght@400;500&family=Courier+Prime:ital@0;1&display=swap');

:root {
  --blue: #2b35af;
  --blue-dark: #1e2680;
  --blue-mid: #3540c0;
  --burgundy: #2b35af;
  --blue-grey: #7A9EA8;
  --red: #f0d44a;
  --pink: #d4607a;
  --cream: #f7f8fc;
  --cream-light: #f7f8fc;
  --gold: #7A9EA8;
  --white: #ffffff;
  --muted: rgba(43,53,175,0.45);
  --border: rgba(43,53,175,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--blue);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

body.entrance-open {
  overflow: hidden;
}


/* HERO NAV */
.hero-nav {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 10;
  display: flex;
  gap: 28px;
}

.hero-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}

.hero-nav a:hover { opacity: 0.6; }

a:focus-visible,
button:focus-visible,
input[type="text"]:focus-visible,
input[type="password"]:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* ENTRANCE */
#entrance {
  position: fixed;
  inset: 0;
  background: var(--blue);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  transition: opacity 0.8s ease;
}

#entrance::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

#entrance.fade-out {
  opacity: 0;
  pointer-events: none;
}

.entrance-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eye-chart {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.eye-line {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  line-height: 0.95;
  display: block;
}

.eye-line.l1 { font-size: clamp(52px, 11vw, 140px); }
.eye-line.l2 { font-size: clamp(52px, 11vw, 140px); opacity: 0.85; }
.eye-line.l3 { font-size: clamp(52px, 11vw, 140px); }
.eye-names-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.eye-are {
  font-family: 'Caveat', cursive;
  font-size: clamp(36px, 7vw, 88px);
  color: #f0d44a;
  font-weight: 500;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-3deg);
  line-height: 1;
  z-index: 2;
  white-space: nowrap;
}
.eye-bottom-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
}
.eye-line.l4 { font-size: clamp(20px, 4vw, 52px); opacity: 0.9; }
.eye-date-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}
.eye-line.l5 { font-size: clamp(9px, 1.5vw, 18px); opacity: 0.45; letter-spacing: 1px; }

.entrance-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.entrance-bottom-right {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.poem {
  max-width: 360px;
  margin-left: auto;
  margin-right: 48px;
}

.poem-line {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  color: #f0d44a;
  line-height: 1.7;
  display: block;
  text-align: left;
  letter-spacing: 0.3px;
}


@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInFull { to { opacity: 1; } }
@keyframes fadeInHalf { to { opacity: 1; } }

.enter-link {
  background: none;
  border: none;
  color: white;
  font-size: 52px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: all 0.3s;
  line-height: 1;
  align-self: flex-end;
}
.enter-link:hover { transform: translateX(12px); opacity: 0.7; }

/* MAIN SITE */
#main-site { 
  opacity: 0;
  min-height: 100vh;
  pointer-events: none;
}
#main-site.visible { 
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease;
}

/* NAV */
nav {
  display: none;
}

.nav-brand { display: none; }

.nav-links { display: flex; gap: 0; list-style: none; }

.nav-links li::after {
  content: ',';
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: white;
  margin-right: 6px;
}

.nav-links li:last-child::after { content: ''; margin-right: 0; }

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
  margin-right: 2px;
}
.nav-links a:hover { opacity: 0.6; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 22px;
  cursor: pointer;
}

/* HERO */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: none;
}

.hero::before {
  display: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 48px;
  width: 100%;
}

.hero-names {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  font-style: normal;
  color: var(--white);
  line-height: 0.95;
  display: block;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* DISCO THREE BALL */
#disco-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 280px;
  z-index: 6;
  pointer-events: none;
}
#disco-container canvas { display: block; }

/* DISCO REFLECTIONS */
#reflections-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* SECTIONS */
.section { padding: 90px 48px; }
.section-inner { max-width: 780px; margin: 0 auto; }
.section.light { background: var(--cream); color: var(--burgundy); }
.section.dark { background: var(--burgundy); color: var(--cream); }

.section-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 6vw, 58px);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
}

.section.light .section-title { color: var(--blue); }
.section.dark .section-title { color: var(--white); }
.section[style*="fdf8e8"] .section-title { color: var(--burgundy); }
.section[style*="fdf8e8"] .section-eyebrow { color: var(--gold); }

.divider { width: 40px; height: 1px; background: var(--yellow); margin-bottom: 36px; }




/* STAR DROPDOWN */
.star-dropdown {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(43,53,175,0.15);
  background: transparent;
  padding: 8px 0;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--burgundy);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.star-dropdown:focus { border-bottom-color: var(--blue); }



/* DRAWING */
.drawing-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  pointer-events: none;
}

.drawing-img {
  width: 220px;
  opacity: 0.95;
  mix-blend-mode: screen;
}

/* TIMELINE */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }

.timeline-item {
  display: grid;
  grid-template-columns: 20px 2px 1fr;
  gap: 0 16px;
  align-items: flex-start;
  min-height: 60px;
}

.timeline-icon {
  font-size: 18px;
  padding-top: 4px;
  text-align: center;
  color: var(--blue-grey);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

.timeline-line {
  width: 2px;
  background: var(--blue-grey);
  margin: 6px auto 0;
  flex: 1;
  min-height: 60px;
}

.timeline-item.last .timeline-line { display: none; }

.timeline-content { padding-bottom: 20px; }

.timeline-time {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 3px;
}

.timeline-heading {
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--burgundy);
  margin-bottom: 3px;
}

.timeline-desc {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: #888;
  font-style: normal;
  letter-spacing: 0.5px;
}

/* GIFTS */
.gift-card { background: white; border: 1px solid rgba(43,53,175,0.1); padding: 40px; margin-bottom: 20px; transform: rotate(-0.3deg); box-shadow: 3px 3px 0 var(--pink); }
.gift-card p { font-family: 'Courier Prime', monospace; font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.gift-btn { display: inline-block; padding: 14px 32px; background: var(--blue); color: white; text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; transition: background 0.2s; }
.gift-btn:hover { background: var(--blue-mid); }
.gift-note { font-family: 'Courier Prime', monospace; font-size: 12px; color: #aaa; margin-top: 12px; font-style: italic; }
.gift-soon { font-family: 'Courier Prime', monospace; font-size: 12px; color: #aaa; font-style: italic; margin-top: 0; }

/* GIFT PICKER */
.giftpicker { background: white; border: 1px solid rgba(43,53,175,0.1); padding: 40px; margin-bottom: 20px; box-shadow: 3px 3px 0 var(--blue); }
.giftpicker-title { font-family: 'Bodoni Moda', serif; font-size: 30px; font-weight: 400; color: var(--blue); line-height: 1.2; margin-bottom: 12px; }
.giftpicker-eyebrow { display: block; font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.giftpicker-intro { font-family: 'Courier Prime', monospace; font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 28px; }

/* Postcards */
.gift-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }

.postcard { perspective: 1400px; }
.postcard-inner {
  position: relative; min-height: 250px; height: 100%;
  transform-style: preserve-3d; transition: transform 0.62s cubic-bezier(0.4, 0.15, 0.2, 1);
}
.postcard.flipped .postcard-inner { transform: rotateY(180deg); }

.postcard-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 20px; background: white; border: 1px solid var(--border);
  box-shadow: 2px 2px 0 rgba(43,53,175,0.07);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.postcard.selected .postcard-face { border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue); }

/* Front: stamp, title, where it goes wrong, and the prompt to turn it over. */
.pc-front { font: inherit; color: inherit; cursor: pointer; }
.pc-front:hover { box-shadow: 3px 3px 0 rgba(43,53,175,0.16); }
.pc-stamp {
  align-self: flex-end; width: 46px; height: 52px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1;
  border: 1px dashed rgba(43,53,175,0.35); background: var(--cream); transform: rotate(3deg);
}
.pc-title { font-family: 'Bodoni Moda', serif; font-size: 20px; line-height: 1.25; color: var(--blue); }
.pc-location {
  font-family: 'Courier Prime', monospace; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--pink); margin-top: 9px;
}
.pc-rule { width: 100%; border-top: 1px dashed var(--border); margin: auto 0 12px; }
.pc-cta { font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.pc-front:hover .pc-cta { color: var(--blue); }

/* Back: the message side, handwritten. */
.pc-back { transform: rotateY(180deg); background: var(--cream); justify-content: space-between; }
.pc-postmark {
  align-self: flex-end; width: 38px; height: 38px; border-radius: 50%; border: 1px dashed rgba(43,53,175,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 17px; opacity: 0.75; transform: rotate(-8deg);
}
.pc-blurb { font-family: 'Caveat', cursive; font-size: 23px; line-height: 1.4; color: var(--blue); margin: 10px 0; }
.pc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%; }
.pc-pick {
  padding: 11px 22px; background: var(--blue); color: white; border: 1px solid var(--blue);
  font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pc-pick:hover { background: var(--blue-mid); }
.postcard.selected .pc-pick { background: none; color: var(--blue); cursor: default; }
.pc-return {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Courier Prime', monospace; font-size: 11px; font-style: italic; color: var(--muted);
}
.pc-return:hover { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .postcard-inner { transition: none; }
}

/* Checkout */
.gift-checkout { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.gift-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.gift-step-num {
  flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
  font-family: 'Courier Prime', monospace; font-size: 11px; color: var(--muted); transition: all 0.25s ease;
}
.gift-step.done .gift-step-num { background: var(--blue); border-color: var(--blue); color: white; }
.gift-step-body { flex: 1; min-width: 0; }
.gift-step-label { display: block; font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.gift-step-value { font-family: 'Bodoni Moda', serif; font-size: 19px; color: var(--blue); line-height: 1.35; }
.gift-step-value.empty { font-family: 'Courier Prime', monospace; font-size: 13px; font-style: italic; color: #aaa; }

#gift-name {
  width: 100%; padding: 12px 0; background: none; border: none; border-bottom: 1px solid var(--border);
  font-family: 'Bodoni Moda', serif; font-size: 19px; color: var(--blue); outline: none; transition: border-color 0.2s;
}
#gift-name::placeholder { font-family: 'Courier Prime', monospace; font-size: 13px; font-style: italic; color: #ccc; }
#gift-name:focus { border-bottom-color: var(--blue); }

.gift-pay { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.gift-pay-btn {
  flex: 1 1 160px; padding: 16px 24px; border: 1px solid var(--blue); background: var(--blue); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.gift-pay-btn.secondary { background: none; color: var(--blue); }
.gift-pay-btn:hover:not(:disabled) { background: var(--blue-mid); color: white; }
.gift-pay-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.gift-pay-hint { font-family: 'Courier Prime', monospace; font-size: 12px; color: #aaa; font-style: italic; margin-top: 16px; line-height: 1.7; }
.gift-pay-hint.done { color: var(--blue); font-style: normal; }

@media (max-width: 768px) {
  .giftpicker { padding: 28px 20px; }
  .giftpicker-title { font-size: 25px; }
  .gift-cards { grid-template-columns: 1fr; gap: 14px; }
  .postcard-inner { min-height: 232px; }
  .pc-title { font-size: 19px; }
  .gift-pay-btn { flex: 1 1 100%; }
}

/* INFO */
.info-card { background: white; border: 1px solid rgba(43,53,175,0.1); padding: 32px; margin-bottom: 16px; }
.info-card:nth-child(odd) { transform: rotate(-0.2deg); }
.info-card:nth-child(even) { transform: rotate(0.2deg); }
.info-card-title { font-family: 'DM Sans', sans-serif; font-size: 26px; font-style: normal;
  font-weight: 700;
  letter-spacing: -0.5px; color: var(--pink); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(43,53,175,0.1); }
.info-card p { font-family: 'Courier Prime', monospace; font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 6px; }
.info-card strong { color: var(--blue); font-weight: 500; }
.schedule-row { display: flex; gap: 20px; margin-bottom: 10px; }
.schedule-time { font-size: 10px; letter-spacing: 2px; color: var(--blue); min-width: 50px; margin-top: 3px; text-transform: uppercase; }
.schedule-event { font-size: 14px; color: #555; }

/* FOOTER */
footer { background: var(--blue); padding: 48px;  }
.footer-names { font-family: 'DM Sans', sans-serif; font-size: 24px; font-style: normal;
  font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-date { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--blue); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: var(--cream);  justify-content: center; gap: 32px; z-index: 99; }
  .nav-links.open li::after { display: none; }
  .nav-links.open a { font-size: 20px; letter-spacing: 2px; color: var(--blue); }
  .hero-text { padding: 32px 24px; }
  .hero-scroll { right: 24px; }
  .section { padding: 60px 24px; }
  footer { padding: 40px 24px; }
}

.alt-timeline { position: relative; padding: 12px 0 8px; margin-top: 8px; }
.alt-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(43,53,175,0.15); transform: translateX(-50%); }
.alt-item { display: flex; align-items: flex-start; margin-bottom: 28px; position: relative; width: 100%; }
.alt-item.left { padding-right: calc(50% + 28px); justify-content: flex-end; text-align: right; }
.alt-item.right { padding-left: calc(50% + 28px); justify-content: flex-start; text-align: left; }
.alt-dot { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--blue); border: 2px solid white; box-shadow: 0 0 0 1px var(--blue); z-index: 2; }
.alt-time { font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-grey); margin-bottom: 3px; }
.alt-heading { font-family: 'DM Sans', sans-serif; font-size: 18px; font-style: normal;
  font-weight: 700; color: var(--pink); margin-bottom: 2px; }
.alt-desc { font-family: 'Courier Prime', monospace; font-size: 11px; color: #999; }
.alt-note { font-family: 'Courier Prime', monospace; font-size: 11px; color: #bbb; text-align: center; margin-top: 8px; font-style: italic; }
@media (max-width: 768px) {
  .alt-timeline::before { left: 12px; transform: none; }
  .alt-dot { left: 12px; transform: none; }
  .alt-item.left, .alt-item.right {
    padding-left: 36px;
    padding-right: 0;
    text-align: left;
    justify-content: flex-start;
  }
}
