/* ===== Theme tokens — the admin "Look & feel" editor will edit these ===== */
:root {
  --bg: #a9bf3d;
  --bg-dark: #8ea32f;
  --text: #ffffff;
  --card: #f7f5ee;
  --card-text: #2a2a22;
  --accent: #111111;
  --on-accent: #ffffff;
  --font-script: "Mrs Saint Delafield", "Pinyon Script", cursive;
  --font-serif: "Libre Caslon Condensed", "Cormorant Garamond", Georgia, serif;
  --font-hand: "Homemade Apple", "Mrs Saint Delafield", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* slide-in photos start off-screen; never let that create sideways scrolling */
body {
  margin: 0; color: var(--text); font-family: var(--font-serif);
  background-color: var(--bg); font-size: 17px; line-height: 1.5;
  /* paper/linen texture over a gentle fade from --bg to --bg-dark (texture toggles with .no-texture on <body>) */
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
}
body.no-texture { background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%); }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #111; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 22px; }
.caps { text-transform: uppercase; letter-spacing: .08em; }
.script { font-family: var(--font-script); font-weight: 400; line-height: .9; }
h1, h2, h3 { font-weight: 400; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 15px; }
section { padding: 64px 0; text-align: center; }
section h2 { margin-bottom: 18px; }
section h2 .script { display: block; font-size: 72px; }
section h2 .caps { font-size: 26px; display: block; margin-top: -8px; }

/* buttons */
.btn {
  display: inline-block; border: 1px solid currentColor; padding: 16px 28px; background: transparent;
  color: inherit; text-transform: uppercase; letter-spacing: .1em; font: inherit; text-decoration: none;
  cursor: pointer; font-size: 16px;
}
.btn.block { display: block; width: 100%; }
.btn.pill {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent); border-radius: 999px; padding: 18px; width: 100%;
}
.btn.pill:hover { filter: brightness(1.15); }

/* ===== Intro overlay ===== */
#intro {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 24px; background-color: var(--bg);
  background-image: inherit; transition: opacity .8s ease, transform .8s ease;
}
#intro.open { opacity: 0; transform: scale(1.06); pointer-events: none; }
#intro .script { font-size: 88px; margin: -6px 0 10px; }
.frame {
  width: 168px; height: 360px; padding: 12px; margin: 14px 0 22px; border-radius: 4px;
  background: linear-gradient(135deg, #f1f1f1, #555 40%, #ddd 60%, #333);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.4);
}
.frame .inner { height: 100%; background: #8a8a8a; padding: 12px 14px; box-shadow: inset 0 6px 14px rgba(0,0,0,.6); overflow: hidden; }
.strip { background: #fff; padding: 8px 8px 22px; display: grid; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.4); animation: slide 3s ease-out both; }
.strip img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.1); }
@keyframes slide { from { transform: translateY(40%); } to { transform: translateY(0); } }
.skip { position: absolute; top: 14px; right: 18px; font-size: 14px; opacity: .85; text-transform: uppercase; letter-spacing: .1em; background: none; border: 0; color: inherit; cursor: pointer; }

/* ===== Hero / save the date ===== */
.hero { padding-top: 56px; }
.hero .invite { font-size: 18px; }
.hero .script.big { font-size: 96px; margin: 4px 0 10px; }
.polaroid {
  background: #fff; padding: 12px 12px 44px; box-shadow: 0 14px 30px rgba(0,0,0,.3);
  transform: rotate(-3deg); margin: 28px auto 0; max-width: 440px; position: relative;
}
.polaroid img { width: 100%; display: block; aspect-ratio: 4/3.3; object-fit: cover; }
.polaroid .overlay { position: absolute; left: 0; right: 0; top: 34%; text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); font-size: 64px; transform: rotate(-8deg); }
.bw img { filter: grayscale(1) contrast(1.1); }
.postcard {
  background: var(--card); color: var(--card-text); margin: -34px auto 0; max-width: 420px; padding: 26px 22px 24px;
  border: 8px solid var(--card); outline: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -14px; box-shadow: 0 12px 24px rgba(0,0,0,.25);
  position: relative; z-index: 2; transform: rotate(1.5deg);
}
.postcard .date { font-size: 38px; text-transform: uppercase; letter-spacing: .04em; }
.postcard .venue { text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.postcard .note { font-family: var(--font-hand); font-size: 17px; line-height: 1.9; margin-top: 18px; color: #4a4a40; text-align: left; }
.mini-strip { position: absolute; left: -22px; bottom: -78px; width: 84px; z-index: -1; transform: rotate(-10deg); background: #fff; padding: 6px; display: grid; gap: 5px; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.mini-strip img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }

/* ===== Countdown ===== */
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 18px 0 30px; }
.countdown .unit { min-width: 66px; }
.countdown .num { font-size: 58px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.countdown .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.countdown .sep { font-size: 44px; line-height: 1.1; }

/* ===== Cards for details ===== */
.card { background: var(--card); color: var(--card-text); padding: 26px 22px; text-align: left; box-shadow: 0 10px 22px rgba(0,0,0,.2); margin: 14px 0; }
.card h3 { text-transform: uppercase; letter-spacing: .1em; font-size: 20px; margin-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--card-text) 22%, transparent); padding-bottom: 8px; }
.card a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dotted color-mix(in srgb, var(--card-text) 30%, transparent); }
.timeline b { font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
details { background: var(--card); color: var(--card-text); text-align: left; margin: 8px 0; padding: 14px 18px; }
details summary { cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
details p { margin: 10px 0 2px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery .polaroid { margin: 0; padding: 8px 8px 26px; }
.gallery .polaroid:nth-child(even) { transform: rotate(2.5deg); }

/* ===== Footer ===== */
footer.questions { color: #fff; position: relative; padding: 90px 0 70px; text-align: center; background: linear-gradient(rgba(30,30,20,.55), rgba(30,30,20,.7)), url("photo-3.svg") center/cover; filter: none; }
footer.questions .script { font-size: 64px; }
footer.questions .sig { font-family: var(--font-script); font-size: 40px; margin-top: 14px; }

/* ===== Forms ===== */
.form { background: var(--card); color: var(--card-text); padding: 26px 20px; text-align: left; box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.form label.q, .form .q { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 20px 0 6px; }
.form input[type=text], .form input[type=email], .form textarea, .form select {
  width: 100%; padding: 14px; border: 1px solid color-mix(in srgb, var(--card-text) 30%, transparent); background: #fff; font: inherit; color: var(--card-text);
}
.opt { display: flex; gap: 12px; align-items: center; padding: 14px; background: color-mix(in srgb, var(--card-text) 9%, var(--card)); margin: 6px 0; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.fine { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; text-align: center; color: #777; margin-top: 10px; }
.toast { background: var(--card); color: var(--card-text); padding: 22px; margin-top: 16px; text-align: center; }

/* ===== Mock banner ===== */
.mockbar { position: sticky; top: 0; z-index: 60; background: #111; color: #fff; font: 13px/1.4 system-ui, sans-serif; padding: 8px 14px; text-align: center; }
.mockbar a { color: #c6e04a; margin: 0 6px; }

/* ===== Motion: subtle, professional. Everything below is disabled for prefers-reduced-motion. ===== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Buttons: white fill sweeps in from the left, tiny lift */
.btn:not(.pill) {
  background-image: linear-gradient(var(--text), var(--text)); background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size .5s var(--ease), color .35s, translate .35s var(--ease);
}
.btn:not(.pill):hover, .btn:not(.pill):focus-visible { background-size: 100% 100%; color: var(--bg); translate: 0 -2px; }
.btn.pill { transition: background .25s, translate .35s var(--ease), box-shadow .35s; }
.btn.pill:hover { translate: 0 -2px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }

/* Photos: settle straight and lift slightly on hover */
.polaroid, .postcard { transition: transform .5s var(--ease), box-shadow .5s; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 20px 38px rgba(0,0,0,.35); }
.gallery .polaroid:hover { transform: rotate(0deg) scale(1.04); }
.card { transition: translate .4s var(--ease), box-shadow .4s; }
.card:hover { translate: 0 -3px; box-shadow: 0 16px 28px rgba(0,0,0,.24); }

/* Intro: staggered entrance */
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
#intro > * { animation: rise 1s var(--ease) both; }
#intro > :nth-child(2) { animation-delay: .1s; } #intro > :nth-child(3) { animation-delay: .25s; }
#intro > :nth-child(4) { animation-delay: .45s; } #intro > :nth-child(5) { animation-delay: 1.1s; }
#intro > :nth-child(6) { animation-delay: 1.25s; } #intro > :nth-child(7) { animation-delay: 1.4s; }
#intro > :nth-child(8) { animation-delay: 1.6s; }
#intro.open .frame { transform: translateY(-14px) scale(1.04); transition: transform .8s var(--ease); }

/* Scroll reveals (classes added by app.js; content stays visible without JS) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal.side-l { translate: -34px 0; } .js .reveal.side-r { translate: 34px 0; }
.js .reveal.side-l.in, .js .reveal.side-r.in { translate: 0 0; }
/* Script headings "write" themselves left to right */
.js .wipe { clip-path: inset(-25% 100% -25% -10%); transition: clip-path 1.7s var(--ease) var(--d, 0s); }
.js .wipe.in { clip-path: inset(-25% -10% -25% -10%); }
/* "Save the Date" over the hero photo fades in a beat after the photo */
.polaroid .overlay { animation: rise 1.2s var(--ease) 1s both; }

/* Countdown digits glide in when they change */
@keyframes tick { from { opacity: .25; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
.countdown .num { display: inline-block; }
.countdown .num.tick { animation: tick .45s var(--ease); }
.countdown .sep { animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* FAQ: content eases in when opened */
details[open] > p { animation: rise .5s var(--ease); }
details { transition: background .3s; } details:hover { background: color-mix(in srgb, var(--card) 70%, #fff); }
details summary { list-style-position: inside; }

/* Mini photo strip drifts in */
@keyframes drift { from { opacity: 0; translate: -20px 20px; } to { opacity: 1; translate: 0 0; } }
.mini-strip { animation: drift 1.2s var(--ease) 1.4s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .wipe { opacity: 1 !important; translate: none !important; rotate: none !important; clip-path: none !important; }
}

/* ===== Our Story: large old-fashioned prints ===== */
.print {
  position: relative; width: 88%; max-width: 420px; margin: 54px 0; padding: 16px 16px 74px;
  background: #fbf8ef linear-gradient(135deg, rgba(255,255,255,.7), rgba(0,0,0,.04));
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 18px 34px rgba(0,0,0,.34), inset 0 0 22px rgba(120,100,60,.12);
  transform: rotate(var(--r, -2deg)); text-align: center; color: var(--card-text);
}
.print[data-side="l"] { margin-right: auto; margin-left: 0; }
.print[data-side="r"] { margin-left: auto; margin-right: 0; }
.print img { aspect-ratio: 1 / 1.08; filter: grayscale(1) contrast(1.08) sepia(.18); box-shadow: inset 0 0 18px rgba(0,0,0,.5); }
.print::before { /* a strip of tape holding the print down */
  content: ""; position: absolute; top: -15px; left: 50%; width: 96px; height: 30px; translate: -50% 0; rotate: -4deg;
  background: rgba(238, 230, 200, .72); box-shadow: 0 1px 3px rgba(0,0,0,.2);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.print figcaption { position: absolute; left: 0; right: 0; bottom: 14px; font-family: var(--font-hand); font-size: 19px; color: #3d3a30; line-height: 1.3; }
.print figcaption small { display: block; font-family: var(--font-serif); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a8672; margin-top: 2px; }
/* slide in from the side and settle, like a print being dealt onto a table */
.js .reveal.print { transition: opacity 1.1s var(--ease), translate 1.2s var(--ease), rotate 1.2s var(--ease); transition-delay: 0s; }
.js .reveal.print.side-l { translate: -110px 0; rotate: -7deg; }
.js .reveal.print.side-r { translate: 110px 0; rotate: 7deg; }
.js .reveal.print.side-l.in, .js .reveal.print.side-r.in { translate: 0 0; rotate: 0deg; }
.print.polaroid:hover { transform: rotate(0deg) scale(1.02); }
