/* ==========================================================
   Cody & Teasha wedding site: styles
   Change colors, fonts and spacing in the :root block first.
   ========================================================== */
:root {
  /* palette */
  --paper:    #F7F3EC;  /* off-white page background */
  --sand:     #E4CBA9;  /* palette: Sand */
  --sand-lt:  #EFE3CF;  /* lighter tint of Sand for photo spaces */
  --sky:      #7FC7CC;  /* palette: Sky Blue (unused by default) */
  --deep:     #092F33;  /* palette: Deep Sea, main text and lines */
  --moss:     #4B5B34;  /* palette: Moss Green, small labels */
  --sun:      #E8891A;  /* palette: Sunshine (approximate, set your exact hex) */
  --brown:    #35241F;  /* palette: Brown (approximate, set your exact hex) */

  /* fonts */
  --display: 'Averia Libre', cursive;
  --body:    'Jost', sans-serif;

  /* layout */
  --max: 1200px;
  --pad: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }

/* ---------- type ---------- */
.label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.label.moss { color: var(--moss); }
.label.sun  { color: var(--sun); }

.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.h2.sm { font-size: 40px; }
.h2.lg { font-size: 72px; line-height: 1; }

.h3 {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- layout helpers ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 80px var(--pad); }
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  /*align-items: center;*/
}
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack.sm { gap: 20px; }

/* ---------- photo + block print spaces ----------
   To use a real image, replace the whole .ph div with:
   <img class="photo" src="images/your-file.jpg" alt="...">
   For block prints keep the frame:
   <div class="print-frame"><img src="images/print.jpg" alt="..."></div>   */
.ph {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--moss); background: var(--sand-lt); border: 1px dashed var(--moss);
}
.ph.print { background: var(--paper); border: 1px solid var(--deep); color: var(--deep); }
.photo { width: 100%; object-fit: cover; }
.print-frame { border: 1px solid var(--deep); background: var(--paper); padding: 10px; }
.print-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- nav ---------- */
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 28px var(--pad);
}
.monogram { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .18em; }
.nav { display: flex; gap: 32px; flex-wrap: wrap; }
.nav a {
  font-size: 11px; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; padding: 12px 2px;
}
.nav a:hover { color: var(--sun); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--deep); }

/* ---------- hero ---------- */
.hero {
  padding: 96px var(--pad) 72px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
}
.hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 7vw, 104px);
  line-height: 1.1; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 .amp { color: var(--sun); }
.hero .rule { width: 48px; height: 1px; background: var(--deep); }
.hero .meta { font-size: 13px; }

.hero-photo { padding: 0 24px; }
.hero-photo img { aspect-ratio: 2 / 1; min-height: 280px; object-position: 50% 52%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; align-self: flex-start;
  font-weight: 500; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  padding: 16px 36px; border: 0; cursor: pointer; font-family: var(--body);
}
.btn.dark { background: var(--deep); color: var(--paper); }
.btn.sun  { background: var(--sun); color: var(--brown); }
.link-line { align-self: flex-start; border-bottom: 1px solid var(--deep); padding-bottom: 4px; }

/* ---------- welcome / story ---------- */
.welcome-text { }
.welcome-print { aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: end; }
.story-photo { aspect-ratio: 4 / 5; }

/* ---------- block print gallery ---------- */
.prints { background: var(--sand-lt); padding: 96px var(--pad); }
.prints-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.prints-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.prints-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.prints-grid > * { aspect-ratio: 3 / 4; }

/* ---------- schedule ---------- */
.schedule-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.time-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--deep);
}
.time-row:last-child { border-bottom: 1px solid var(--deep); }
.time-row h3 {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: .16em; text-transform: uppercase;
}
.time-row p { margin-top: 6px; font-size: 15px; opacity: .85; }

/* ---------- venue ---------- */
.venue { padding: 40px 24px 120px; }
.venue-photo { aspect-ratio: 16 / 8; min-height: 260px; margin-bottom: 56px; }
.venue-row { max-width: var(--max); margin: 0 auto; padding: 0 40px; align-items: start; }

/* ---------- stay ---------- */
.stay { border-top: 1px solid var(--deep); border-bottom: 1px solid var(--deep); }
.stay .section { padding-top: 96px; padding-bottom: 96px; gap: 64px; }

/* ---------- rsvp ---------- */
.rsvp {
  padding: 120px var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.rsvp-print { width: 160px; height: 160px; }
.rsvp p.lead { max-width: 460px; }
.form { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 420px; text-align: left; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form input, .form select {
  background: transparent; border: 0; border-bottom: 1px solid var(--deep);
  padding: 12px 0; font-family: var(--body); font-size: 16px; color: var(--deep);
  border-radius: 0;
}
.form .btn { align-self: stretch; margin-top: 8px; }

/* ---------- footer ---------- */
.footer {
  padding: 40px var(--pad); border-top: 1px solid var(--deep);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer .monogram { font-size: 20px; }

/* ---------- mobile menu button (hidden on larger screens) ---------- */
.menu-btn {
  display: none; background: none; border: 1px solid var(--deep); color: var(--deep);
  padding: 10px 16px; cursor: pointer;
  font-family: var(--body); font-weight: 500; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase;
}

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  :root { --pad: 24px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; margin-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-top: 1px solid var(--deep); font-size: 12px; }
  .nav a[aria-current="page"] { border-bottom: 0; color: var(--sun); }
  .section { padding: 80px var(--pad); }
  .h2 { font-size: 32px; }
  .h2.lg { font-size: 52px; }
  .time-row { grid-template-columns: 1fr; gap: 6px; }
  .venue-row { padding: 0 var(--pad); }
}

/* ---------- page header (inner pages) ---------- */
.page-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }

/* ---------- things to do ---------- */
.act-intro { max-width: 620px; }
.act-group { margin-top: 72px; }
.act-group > .label { display: block; margin-bottom: 20px; }
.act-row {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 24px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--deep);
}
.act-row:last-child { border-bottom: 1px solid var(--deep); }
.act-row h3 {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}
.act-row p { font-size: 15px; opacity: .88; }
.act-row .label { white-space: nowrap; border-bottom: 1px solid var(--deep); padding-bottom: 2px; }
.act-note { margin-top: 56px; font-size: 14px; opacity: .8; }
@media (max-width: 700px) {
  .act-row { grid-template-columns: 1fr; gap: 8px; }
  .act-row .label { justify-self: start; }
}


/* ---------- story gallery ---------- */
.gallery { padding: 0 var(--pad) 120px; }
.gallery-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px; grid-auto-flow: dense; gap: 16px;
}
.g-tile { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.g-tile.wide { grid-column: span 2; }
.g-tile.tall { grid-row: span 2; }
@media (max-width: 700px) {
  .gallery { padding-bottom: 80px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
}

/* ---------- password gate (see gate.js) ---------- */
html.locked { overflow: hidden; }
html.locked body { visibility: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 1000; visibility: visible;
  background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-card { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 340px; text-align: center; }
.gate-card .monogram { font-size: 28px; margin-bottom: 8px; }
.gate-card input {
  width: 100%; text-align: center; background: transparent; border: 0; border-bottom: 1px solid var(--deep);
  border-radius: 0; padding: 12px 0; font-family: var(--body); font-size: 18px; letter-spacing: .2em; color: var(--deep);
}
.gate-card .btn { align-self: stretch; margin-top: 8px; }
.gate-error { margin: 0; min-height: 1.6em; font-size: 14px; color: var(--brown); }
