/* styles.css */
:root{
  --sage: #93a9ab;
  --lav:  #b9abca;
  --ink:  #222;
  --paper: #e8f0f0;
  --maxw: 1100px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  color: var(--ink);
  background: #dfeaea;
  font-family: "EB Garamond", Georgia, serif;
}

a{ color: inherit; }
img{ max-width: 100%; height: auto; display:block; }

.framed-photo img {
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
}

.container{
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.reception-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.reception-left {
  flex: 2;
  min-width: 0;
}
.reception-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
@media (max-width: 980px) {
  .reception-grid {
    flex-direction: column;
    gap: 24px;
  }
  .reception-right {
    align-items: center;
    margin-top: 24px;
  }
}

.info-block {
  text-align: center;
}

.page{
  position: relative;
  min-height: 100vh;
  padding: 64px 0;
}

/* Typography */
.type{
  font-family: "Special Elite", ui-monospace, "Courier New", monospace;
  letter-spacing: 1px;
}
h1,h2,h3{ margin: 0 0 18px; }
h1{ font-size: clamp(42px, 5vw, 78px); line-height: 1.05; }
h2{ font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
h3{ font-size: clamp(22px, 3vw, 36px); }

.lead{
  font-size: 22px;
  line-height: 1.4;
}

/* Two-column grid that collapses on mobile */
.grid-2{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Scrappy “paper” header strip */
.paper-top{
  position:absolute;
  left:-2%;
  top:-20px;
  width:104%;
  height: 220px;
  background-size: cover;
  background-position: center top;
  opacity: 0.95;
  pointer-events:none;
}

/* A tinted panel area like your pages */
.panel{
  background: var(--paper);
  border-radius: 4px;
  padding: 40px 44px;
}

/* Polaroid style */
.polaroid-stack{
  position: relative;
  width: min(440px, 92%);
  margin-left: 20px;
}
.polaroid{
  background: #f7f7f7;
  padding: 16px 16px 50px;
  box-shadow: 0 18px 35px rgba(0,0,0,.18);
  transform: rotate(-5deg);
  border-radius: 2px;
}
.polaroid.under{
  position:absolute;
  inset: 10px auto auto 12px;
  width: 100%;
  transform: rotate(-10deg);
  opacity: .9;
  filter: blur(0.1px);
  z-index: -1;
}

/* Decorative clip (overlay image positioned on top of polaroid) */
.clip{
  position:absolute;
  top:-44px;
  right: 10px;
  width: 86px;
  transform: rotate(8deg);
}

/* Sticker-like decoration */
.sticker{
  position:absolute;
  width: 120px;
  pointer-events:none;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.18));
}

/* Button like RSVP */
.btn{
  display:inline-block;
  background: #1f1f1f;
  color: #fff;
  padding: 22px 44px;
  font-size: 1.35em;
  text-decoration:none;
  border-radius: 2px;
  font-family: "Special Elite", ui-monospace, monospace;
  letter-spacing: 1px;
}
.btn:hover{ transform: translateY(-1px); }

/* Small nav (optional, but useful) */
.nav{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: center;
  font-family: "Special Elite", ui-monospace, monospace;
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 24px;
  background: transparent;
  /* let parent .sticky-nav show the image */
}
.nav a{ text-decoration:none; border-bottom: 1px solid transparent; }
.nav a:hover{ border-bottom-color: currentColor; }

/* “Centered note” layout for text-heavy pages */
.center-note{
  text-align:center;
  max-width: 720px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.45;
}

/* Simple timeline list for Program page */
.timeline{
  list-style:none;
  padding:0;
  margin:0;
  font-family: "Special Elite", ui-monospace, monospace;
  font-size: 20px;
  line-height: 1.9;
}
.timeline li{
  display:flex;
  gap: 24px;
  justify-content:flex-start;
}
.timeline time{ width: 90px; display:inline-block; }

/* Footer-ish spacing */
.spacer{ height: 18px; }

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: url('./assets/banner2.png') center/cover no-repeat;
  /* fallback color if image fails */
  background-color: #dfeaea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  font-size: 22px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 700px) {

  .photobooth {
    display: none !important;
  }
  .reception-grid, .reception-left, .reception-wrap {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .reception-title {
    text-align: center !important;
  }
  .program-title {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  ls {
    text-align: left !important;
    padding-left: 16px !important;
  }
  .program-body {
    width: 100vw !important;
    margin-left: 50%;
    transform: translateX(-50%);
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    text-align: center;
  }
  .sticker-djmitsy {
    display: none !important;
  }
}

.program-section-mobile-sticker {
  display: none;
}
@media (max-width: 700px) {
  .sticker-djmitsy {
    display: none !important;
  }
  .program-section-mobile-sticker {
    display: block !important;
    width: 100%;
    max-width: 220px;
    margin: 22px auto 0 auto;
    text-align: center;
  }
}

/* Schedule list two-column layout */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}
.schedule-list li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
  margin-bottom: 8px;
}
.schedule-time {
  min-width: 70px;
  font-weight: bold;
  text-align: right;
  font-family: "Special Elite", ui-monospace, monospace;
}
.schedule-event {
  flex: 1;
  text-align: left;
}
@media (max-width: 700px) {
  .schedule-list li {
    gap: 10px;
    font-size: 18px;
  }
  .schedule-time {
    min-width: 54px;
    font-size: 18px;
  }
}

/* Add scroll-margin-top to all main sections to prevent navbar overlap */
#rsvp, #reception, #accommodation, #program, #gifts, #contact {
  scroll-margin-top: 80px;
}

@media (max-width: 700px) {
  #rsvp, #reception, #accommodation, #program, #gifts, #contact {
    scroll-margin-top: 100px;
  }
}

.program-body {
  position: relative;
  background: #93a9ab;
  padding: 0 120px;
}
.center-stage {
  position: relative;
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

@media (max-width: 700px) {
  .center-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .program-header {
    display: block;
    flex-direction: column;
    align-items: center;
    order: 2;
    padding-top: 18px !important;
  }
  .sticker-right {
    width: 280px !important;
    max-width: 90vw !important;
    margin: 0 auto 24px auto !important;
    display: block !important;
    position: static !important;
    order: -1;
  }
  .sticker-left {
    width: 180px !important;
    max-width: 60vw !important;
    margin: 18px auto 0 !important;
    display: block !important;
    position: static !important;
    order: 3;
  }
  .program-section-mobile-sticker {
    display: block;
    width: 280px;
    max-width: 90vw;
    margin: 0 auto 24px auto;
  }
  .sticker-right:not(.program-section-mobile-sticker) {
    display: none !important;
  }
  .program-header img[src*="banner2.png"] {
    display: none !important;
  }
}
@media (min-width: 701px) {
  .program-section-mobile-sticker {
    display: none !important;
  }
}

.map-wrap.desktop-map {
  display: flex;
}
.map-wrap.mobile-map {
  display: none;
}
@media (max-width: 980px) {
  .map-wrap.desktop-map {
    display: none !important;
  }
  .map-wrap.mobile-map {
    display: flex !important;
    width: 100%;
    margin-bottom: 6px;
  }
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0;
}
.program-left, .program-right {
  padding: 0;
  margin: 0;
}
@media (max-width: 860px) {
  .program-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 0;
  }
  .program-left, .program-right {
    padding: 0;
    margin: 0;
  }
}
