/* Shared styles for the hidden wedding pages (/flower-girls, /bearer-girls, /registry). */

@font-face {
  font-family: "Stone Board";
  src: url("fonts/StoneBoard.otf") format("opentype");
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'National Park', system-ui, sans-serif;
  color: #373333;
  background: #fffef6;
  overflow-x: hidden;
}
::selection { background: #D4C166; color: #33502B; }
[hidden] { display: none !important; }

/* ── HEADER ── (layout lives in nav.css) */
.site-header {
  background: #33502B;
}

/* ── PASSWORD GATE ── */
.gate {
  min-height: calc(100vh - 98px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.gate-card {
  width: min(440px, 100%);
}
.eyebrow {
  font-weight: 500;
  letter-spacing: 0.3em;
  font-size: 12px;
  text-transform: uppercase;
  color: #5B7553;
  margin-bottom: 14px;
}
.gate h1 {
  font-family: 'Stone Board', serif;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1;
  margin: 0 0 16px;
  color: #33502B;
}
.gate p {
  font-size: 16px;
  line-height: 1.7;
  color: #5B7553;
  margin: 0 0 28px;
}
.gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gate-form input {
  flex: 1 1 200px;
  font: inherit;
  font-size: 16px;
  padding: 13px 20px;
  border: 1px solid rgba(51,80,43,0.3);
  border-radius: 999px;
  background: #fffef6;
  color: #33502B;
}
.gate-form input:focus {
  outline: 2px solid #D4C166;
  outline-offset: 1px;
}
.gate-form button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: #33502B;
  color: #FCEBD0;
  cursor: pointer;
}
.gate-form button:hover { background: #5B7553; }
.gate-error {
  min-height: 24px;
  margin-top: 14px;
  font-size: 14px;
  color: #9a3b2e;
}

/* ── PAGE CONTENT ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 110px;
}
.page-header {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.page-header h1 {
  font-family: 'Stone Board', serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  margin: 0 0 22px;
  color: #33502B;
}
.page-header p {
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
  color: #373333;
}

/* ── DRESS CARDS ── */
.dress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 4vw, 40px);
  max-width: 760px;
  margin: 0 auto;
}
/* an odd last card sits centered on its own row */
.dress-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - clamp(16px, 4vw, 40px) / 2);
}
.dress-card {
  display: flex;
  flex-direction: column;
  background: #fffef6;
  border: 1px solid rgba(51,80,43,0.18);
  border-radius: 4px;
  padding: 12px 12px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 36px -24px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dress-card:hover,
.dress-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px -24px rgba(0,0,0,0.45);
}
.dress-card:focus-visible {
  outline: 2px solid #D4C166;
  outline-offset: 3px;
}
.dress-card img {
  display: block;
  width: 100%;
  aspect-ratio: 240 / 332;
  object-fit: cover;
  border-radius: 2px;
}
.dress-name {
  font-family: 'Stone Board', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: #33502B;
  margin: 20px 0 8px;
  text-align: center;
}
.dress-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5B7553;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  background: #33502B;
  color: #FCEBD0;
  padding: 72px 24px 60px;
  text-align: center;
}
.footer-date {
  font-family: 'Stone Board', serif;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.95;
}
.footer-home {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #D4C166;
  text-decoration: none;
}

/* ── REGISTRY EMBED ── */
.page-wide { max-width: 1280px; }
.registry-open {
  display: inline-block;
  margin-top: 26px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #33502B;
  color: #FCEBD0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.registry-open:hover { background: #5B7553; }
.registry-frame {
  border: 1px solid rgba(51,80,43,0.18);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 36px -24px rgba(0,0,0,0.35);
  background: #fff;
}
.registry-frame iframe {
  display: block;
  width: 100%;
  height: max(80vh, 640px);
  border: 0;
}
