/* Sample guest page v2, styled after Rachel & Gabriele's site (STYLE_NOTES.md). Tokens copied from its style.css. */
@font-face { font-family: "Pinyon Script"; src: url(PinyonScript-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }  /* SIL OFL */
:root {
  --paper: #FBF8F3; --sky: #EDF5F7; --aqua: #DCEEF1; --turq: #4FB0B6; --sage: #A3B99B; --ink: #224062; --muted: #5B6B7C;
  --serif: "Baskervville", Baskerville, Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --header-h: 94px;
  --ease: cubic-bezier(.445,.05,.55,.95);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font: 400 17px/1.7 var(--serif); color: var(--ink); background: var(--paper); padding-top: var(--header-h); overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; }
.note { font-style: italic; color: var(--muted); font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--paper); border-bottom: 7px double var(--turq);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.play-round { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); position: relative; }
.play-round::after { content: ""; position: absolute; inset: 7px; border: 1px solid currentColor; border-radius: 50%; }
.play-round::before { content: ""; margin-left: 3px; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.watch { min-height: 44px; background: none; border: 0; cursor: pointer; font: italic 16px var(--serif); color: var(--ink); text-decoration: underline; text-decoration-color: var(--turq); text-underline-offset: 4px; }
.monogram { text-decoration: none; text-align: center; font: 400 34px/1 var(--script); white-space: nowrap; padding-top: 6px; }
.monogram > svg { display: block; width: 104px; height: 10px; margin: 4px auto 0; color: var(--turq); }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; }
.arrow-link::after { content: "→"; font-size: 20px; letter-spacing: 0; transition: transform .3s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }
.header-reply { justify-self: end; }

/* ---------- hero: the film's world drifting, names written into the sky, the film in an arched window ---------- */
.hero { position: relative; padding: 20px 16px 0; text-align: center; }
.pan { position: absolute; inset: 0 0 auto; height: var(--pan-h, 700px); overflow: hidden; background: #E6F1F5;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.pan img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; animation: pan 150s ease-in-out infinite alternate; }
@keyframes pan { to { transform: translateX(calc(100vw - 100%)); } }
.hero-text { position: relative; text-shadow: 0 0 22px rgba(255,255,255,.9), 0 0 6px rgba(255,255,255,.9); }
.hero-text::before { content: ""; position: absolute; inset: -10% 18%; z-index: -1; background: radial-gradient(closest-side, rgba(251,248,243,.75), transparent); }
.hero .note { color: var(--ink); }
.hero h1 { font: 400 clamp(46px, 5.2vw, 76px)/1.1 var(--script); margin-top: 2px; }
.hero .when { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; letter-spacing: 1px; margin-top: 2px; }
.hero .where { font: 400 clamp(32px, 3.2vw, 46px)/1.2 var(--script); }
.write { clip-path: inset(0 100% 0 0); animation: write 2.6s cubic-bezier(.45,.05,.35,1) forwards; }
.write.d2 { animation-delay: 2s; }
.write.d3 { animation-delay: 3.4s; animation-duration: 1.8s; }
@keyframes write { to { clip-path: inset(0 -5% 0 0); } }

/* the film: Rachel's cover-card arch, double turquoise */
.film { --fh: clamp(400px, calc(100svh - var(--header-h) - 262px), 711px); position: relative; height: var(--fh); width: calc(var(--fh) * 9 / 16); max-width: 100%; margin: 16px auto 0; border: 9px double var(--turq);
  border-radius: 999px 999px 4px 4px; overflow: hidden; background: #E3F0F6; animation: rise 1.4s var(--ease) .6s both; }
.film video { width: 100%; height: 100%; object-fit: cover; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.play { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 0 24px; background: rgba(251,248,243,.94); border: 1px solid var(--ink); color: var(--ink);
  font: 16px var(--serif); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s; }
.play span { border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.play:hover { background: var(--ink); color: #fff; }
html:not(.js) .play { display: none; }

/* ---------- sections ---------- */
.section { position: relative; padding: 80px 24px; text-align: center; background: var(--paper); }
.bg-sky { background: var(--sky); }
.narrow { max-width: 720px; margin: 0 auto; }
.script { font: 400 48px/1.25 var(--script); }
h3 { font: 400 28px/1.25 var(--serif); }
.section p + p { margin-top: 6px; }

.bookby { padding-top: 56px; padding-bottom: 8px; }
.big { display: inline-block; margin-top: 18px; padding: 22px 32px; background: #fff; border: 7px double var(--turq); font-size: 28px; line-height: 1.35; }

/* the film's boat stands on the bottom edge of the travel facts, rocking gently */
.facts { padding-top: 64px; padding-bottom: 0; }
.boat { width: min(340px, 78%); height: auto; margin: 32px auto -6px; }

.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 36px auto 0; max-width: 620px; }
.facts dt { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 19px; line-height: 1.45; margin-top: 4px; }
.facts .note { margin-top: 28px; }

/* days: text, then the painting standing on the section's bottom edge; each pins and the next slides over */
.day.section { padding: 64px 24px 0; }
.day h2 { margin-bottom: 24px; }
.day h3 { margin-bottom: 8px; }
.venue { height: min(46vh, 460px); width: auto; max-width: 100%; margin: 28px auto 0; object-fit: contain; }
.stack { position: sticky; top: var(--header-h); }

.wear p { margin-top: 14px; }
.wear .narrow { max-width: 560px; }

/* ---------- reply: the save-the-date card ---------- */
.reply { position: relative; background: var(--aqua); padding: 72px 16px 88px; text-align: center; }
.oval { width: 240px; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 50%; margin: 0 auto; border: 5px solid var(--sage); outline: 2px solid var(--sage); outline-offset: 5px; }
.reply h2 { margin: 26px 0 30px; }
.card { background: #fff; max-width: 560px; margin: 0 auto; padding: 36px; text-align: left; border: 10px double var(--turq); }
.field { margin-bottom: 24px; border: 0; }
.field > label:not(.opt), legend { display: block; font-size: 16px; color: var(--muted); letter-spacing: .5px; }
legend { margin-bottom: 4px; }
.field input:not([type=radio]) { width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: 18px var(--serif); color: var(--ink); padding: 6px 2px; border-radius: 0; }
.field input:focus { outline: 2px solid var(--turq); outline-offset: 2px; }
input[aria-invalid=true] { border-bottom: 2px solid #A63F25 !important; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); }
.submit { width: 100%; min-height: 52px; padding: 13px; background: var(--ink); color: #fff; border: 0; font: 16px var(--serif); letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: background .3s; }
.submit:hover { background: #2E5480; }
.err { color: #A63F25; font-size: 16px; margin-top: 12px; }
.thanks { text-align: center; padding: 40px 8px; font-size: 19px; }
.thanks:focus { outline: none; }

/* ---------- questions ---------- */
.faq .narrow { max-width: 620px; }
.faq h2 { margin-bottom: 20px; }
details { border-top: 1px solid rgba(79,176,182,.55); text-align: left; }
details:last-child { border-bottom: 1px solid rgba(79,176,182,.55); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 56px; padding: 8px 0; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--turq); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 40px 20px 0; color: var(--muted); }

.shore img { width: 100%; height: clamp(110px, 13vw, 200px); object-fit: cover; }
.site-footer { background: var(--paper); padding: 48px 24px 64px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.site-footer .monogram { justify-self: start; }
.site-footer .note { padding-top: 10px; }

/* ---------- motion (Rachel's measured presets) ---------- */
.m-swing { animation: swing var(--dur, 5.5s) ease-in-out var(--delay, 0s) infinite alternate; transform-origin: var(--origin, 50% 0); }
@keyframes swing { from { transform: rotate(calc(var(--amp, 6deg) * -1)); } to { transform: rotate(var(--amp, 6deg)); } }
.js .m-fade { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .m-float { opacity: 0; transform: translateY(60px); transition: opacity .3s var(--ease), transform .3s var(--ease); transition-delay: var(--d, 0s); }
.m-fade.in, .m-float.in { opacity: 1; transform: none; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 17px; }
  .site-header { padding: 0 10px; }
  .watch { display: none; }
  .monogram { font-size: 28px; padding-top: 4px; }
  .monogram > svg { width: 80px; }
  .header-reply { font-size: 16px; letter-spacing: 1.5px; }
  .hero { padding-top: 18px; --pan-h: 520px; }
  .hero h1 { font-size: 50px; }
  .hero .when { font-size: 19px; }
  .hero .where { font-size: min(29px, 7.4vw); white-space: nowrap; }
  .film { --fh: auto; width: min(340px, 100%); height: auto; aspect-ratio: 9/16; margin-top: 14px; }
  .section { padding: 60px 18px; }
  .bookby { padding-bottom: 8px; }
  .facts { padding-top: 48px; padding-bottom: 0; }
  .script { font-size: 40px; }
  h3 { font-size: 24px; }
  .big { font-size: 22px; padding: 18px 20px; }
  .facts dl { grid-template-columns: 1fr; gap: 20px; }
  .day.section { padding: 48px 18px 0; }
  .venue { height: auto; width: 100%; }
  .card { padding: 24px 18px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pan img, .m-swing, .film { animation: none; }
  .write { animation: none; clip-path: none; }
  .js .m-fade, .js .m-float { opacity: 1; transform: none; transition: none; }
  .play, .submit, summary::after, .arrow-link::after { transition: none; }
  .stack { position: relative; top: auto !important; }
}
