/* ==========================================================================
   Wedding site — global styles
   Floral look — dusty rose blooms on warm cream, deep eucalyptus foliage.
   Fonts: Pinyon Script (names), Josefin Sans (headings & nav), EB Garamond (body).
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #faf8f5;
  --cream: #f3ede8;
  --fg: #2a2326;
  --muted: #463c40;
  --primary: #A3A380;   /* sage: headings, buttons, links */
  --deep: #4a5548;      /* deep eucalyptus: cards, forms, footer */
  --border: rgba(122, 84, 90, 0.18);
  --on-dark: #f6efe9;

  --font-script: 'Pinyon Script', 'Brush Script MT', cursive;
  --font-display: 'Josefin Sans', 'Futura', 'Trebuchet MS', sans-serif;
  --font-body: 'EB Garamond', Garamond, Georgia, serif;

  --header-h: 64px;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
}
p { margin: 0; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 48rem; }
.container--mid { max-width: 64rem; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--primary);
}
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1rem 2rem;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--on-dark);
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--bg); color: var(--primary); }
.btn--block { display: block; width: 100%; text-align: center; }
.btn:disabled { background: rgba(163, 163, 128, .35); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); cursor: not-allowed; }

/* ---------- Placeholder images ----------
   Wrap an <img> in .ph and give it data-ph="what the photo should be" to
   show a small dev label. Remove the .ph class once real images are in. */
.ph { position: relative; }
.ph::after {
  content: attr(data-ph);
  position: absolute; left: .6rem; bottom: .6rem;
  font-family: var(--font-display); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(74, 85, 72, .9); color: #fff; padding: .35rem .6rem; border-radius: 2px;
  pointer-events: none; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background .3s, border-color .3s, box-shadow .3s;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  position: relative; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav { display: none; align-items: center; gap: 2rem; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--fg); text-decoration: none; transition: color .3s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a.btn { padding: .75rem 1.25rem; color: var(--on-dark); }
.site-nav a.btn:hover { color: var(--primary); }
.site-nav a.btn[aria-current="page"] { background: var(--bg); color: var(--primary); }

.site-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-script); font-size: 1.9rem; line-height: 1;
  color: var(--primary); text-decoration: none; white-space: nowrap;
  transition: color .3s;
}
.menu-toggle {
  margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--fg);
  display: inline-flex; transition: color .3s;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }
.site-header.is-open .menu-toggle .icon-menu { display: none; }

/* Transparent header over the hero (home page) */
body.has-hero .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent; border-color: transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 245, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Mobile dropdown */
.mobile-nav { display: none; background: var(--bg); border-top: 1px solid var(--border); padding: .5rem 0 .75rem; }
.site-header.is-open .mobile-nav { display: block; }
.mobile-nav a {
  display: block; padding: .6rem 1.5rem;
  font-family: var(--font-display); font-size: .68rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted); text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--primary); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* Push page content below the fixed header on non-hero pages */
body:not(.has-hero) main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--on-dark); text-align: center;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.hero__content { position: relative; padding: 0 1.5rem; }
.hero__names { font-family: var(--font-script); font-weight: 400; color: #fff; font-size: clamp(3.5rem, 12vw, 8rem); line-height: 1; }
.hero__names .amp { font-style: italic; }
.hero__date { margin-top: 2rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; }
.hero__place { margin-top: .9rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-size: .65rem; opacity: .85; }
.countdown > .ph { position: absolute; inset: 0; }

/* ---------- Envelope hero ----------
   The envelope opens, the polaroids fly out to their --x/--y/--r positions
   (set inline on each <img>) after --d seconds, then the text fades in. */
.hero--letter {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(163, 163, 128, .10), transparent 55%),
    var(--cream);
  color: var(--fg);
  perspective: 1200px;
}
.hero--letter .hero__names { color: #BB8588; }
.hero--letter .hero__date { color: var(--fg); }
.hero--letter .hero__place { color: var(--muted); }
.hero--letter .hero__content {
  z-index: 6;
  opacity: 0;
  animation: hero-text-in 1.1s ease 2.2s forwards;
}
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}


/* Envelope — a photographed ivory envelope with a gold wax seal, cut into three
   image layers (see index.html). The flap is a two-faced element flipped with
   rotateX; its z-index is handed over mid-flip so it ends up behind the body. */
.envelope {
  position: absolute; left: 50%; bottom: 4vh;
  width: min(340px, 68vw); aspect-ratio: 1230 / 870;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 30px rgba(60, 48, 42, .22)) drop-shadow(0 4px 6px rgba(60, 48, 42, .10));
  perspective: 900px;
}
.env-body { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.env-flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 60.6%;
  transform-origin: top center;
  transform-style: preserve-3d;
  z-index: 5;
  animation: env-open 1.15s cubic-bezier(.55, .06, .35, 1) 1s forwards;
}
@keyframes env-open {
  0%   { transform: rotateX(0); z-index: 5; }
  45%  { z-index: 5; }
  55%  { z-index: 1; }
  100% { transform: rotateX(180deg); z-index: 1; }
}
.env-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-face--back { transform: rotateX(180deg); }
.env-shadow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.env-img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; }

/* Polaroids */
.polaroid {
  position: absolute; left: 50%; bottom: 13vh; z-index: 5;
  width: clamp(120px, 15vw, 200px);
  padding: 8px 8px 26px;
  background: #fff;
  border: 1px solid rgba(42, 35, 38, .05);
  box-shadow: 0 12px 32px rgba(42, 35, 38, .28);
  aspect-ratio: 4 / 5.35;
  object-fit: cover; object-position: 50% 40%;
  filter: grayscale(1);
  opacity: 0;
  transform: translate(-50%, 30%) scale(.12) rotate(0deg);
  animation: polaroid-pop 1.2s cubic-bezier(.18, .75, .3, 1.08) forwards;
  animation-delay: var(--d);
}
@keyframes polaroid-pop {
  12%  { opacity: 1; }
  100% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), var(--y)) scale(1) rotate(var(--r));
  }
}

/* The top-centre photo is smaller so it clears both the header logo and the names */
.polaroid--small { width: clamp(90px, 11vw, 150px); }

/* Tighter spread on small screens */
@media (max-width: 767px) {
  .polaroid { width: clamp(96px, 27vw, 130px); bottom: 12vh; }
  .polaroid:nth-of-type(1) { --x: -27vw; --y: -58vh; }
  .polaroid:nth-of-type(2) { --x:  27vw; --y: -56vh; }
  .polaroid:nth-of-type(3) { --x: -30vw; --y: -20vh; }
  .polaroid:nth-of-type(4) { --x:  30vw; --y: -18vh; }
  .polaroid:nth-of-type(5) { --x:   0vw; --y: -63vh; width: clamp(84px, 22vw, 110px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--letter .hero__content, .polaroid, .env-flap { animation: none; }
  .hero--letter .hero__content { opacity: 1; }
  .env-flap { transform: rotateX(180deg); z-index: 1; }
  .polaroid { opacity: 1; transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--r)); }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-title { font-size: 1.75rem; text-align: center; }
.page-title { font-size: clamp(2.4rem, 6vw, 3.25rem); text-align: center; margin-top: 2.5rem; }
.page-intro { max-width: 46rem; margin: 1.25rem auto 0; text-align: center; font-size: 1.1rem; }

/* Letter + photo */
.letter { display: grid; gap: 3rem; align-items: center; }
.letter__text h2 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; }
.letter__text p { margin-top: 1.25rem; white-space: pre-line; color: var(--muted); }
.letter__text .btn { margin-top: 2rem; }
.letter__photo { order: -1; }
.letter__photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
@media (min-width: 768px) {
  .letter { grid-template-columns: 1fr 1fr; }
  .letter__photo { order: 2; }
}

/* Countdown banner */
.countdown {
  /* 42vw keeps the banner from getting wider than the photo's 2.38:1 crop on wide screens,
     so the sky, the ridge and both our faces all stay in frame. */
  position: relative; min-height: clamp(70vh, 42vw, 900px); display: flex; align-items: flex-start; justify-content: center;
  text-align: center; color: var(--on-dark); overflow: hidden;
}
.countdown__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.countdown__shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.countdown__content { position: relative; padding: clamp(2.5rem, 7vh, 5rem) 1.5rem; }
.countdown__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .25em; font-size: .7rem; }
.countdown__grid { display: flex; justify-content: center; gap: 1.5rem; margin: 1.5rem 0 2.5rem; }
.countdown__num { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1; }
.countdown__unit { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .6rem; margin-top: .35rem; }
.countdown__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (min-width: 640px) { .countdown__grid { gap: 3rem; } .countdown__unit { font-size: .75rem; } }

/* Venue cards (3-up) */
.cards { display: grid; gap: 2.5rem; margin-top: 3rem; }
.card { text-align: center; display: flex; flex-direction: column; }
.card__eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .3em; font-size: 1.05rem; color: var(--primary); margin-bottom: 1rem; }
.card img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; margin-top: 1.25rem; white-space: pre-line; }
.card p:not(.card__eyebrow) { margin-top: .9rem; color: var(--muted); font-size: 1rem; flex: 1; }
.cards-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Old photo of Märtas föräldrar inside each Plats panel */
.panel__photo { margin: 0 0 1.5rem; }
.panel__photo img { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; padding: .4rem; background: #fff; }
.panel__photo figcaption { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .65rem; color: rgba(242,240,239,.7); margin-top: .75rem; text-align: center; }

/* Burgundy info panels (Plats) */
.panels { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.panel { background: var(--deep); color: var(--on-dark); padding: 2rem; border: 1px solid rgba(255,255,255,.08); }
.panel .eyebrow { color: rgba(242,240,239,.8); font-size: .75rem; }
.panel h2 { color: #fff; font-size: 1.8rem; margin-top: .5rem; }
.panel p { margin-top: 1rem; display: flex; gap: .5rem; align-items: center; color: rgba(242,240,239,.9); }
.panel p svg { width: 16px; height: 16px; flex: none; }
.panel a { color: inherit; }
@media (min-width: 768px) { .panels { grid-template-columns: 1fr 1fr; } }

/* Icon columns (Ta dig hit / Boende / Schema) */
.icon-cols { display: grid; gap: 3rem; margin-top: 3rem; }
.icon-col { text-align: center; padding: 1.5rem; }
.icon-col--highlight { background: var(--cream); border: 1px solid var(--border); border-radius: 4px; }
.icon-col .icon { width: 110px; height: 90px; margin: 0 auto .75rem; color: var(--fg); }
.icon-col .icon svg { width: 100%; height: 100%; }
.icon-col .eyebrow { font-size: 1.05rem; letter-spacing: .2em; color: var(--fg); }
.icon-col h3 { font-size: 1.9rem; margin-top: .25rem; }
.icon-col p { margin-top: 1rem; color: var(--muted); font-size: 1rem; max-width: 24rem; margin-left: auto; margin-right: auto; }
.icon-col strong { color: var(--primary); font-weight: 600; }
@media (min-width: 768px) {
  .icon-cols { grid-template-columns: repeat(3, 1fr); }
  .icon-cols--2 { grid-template-columns: repeat(2, 1fr); max-width: 44rem; margin-left: auto; margin-right: auto; }
}

/* Info cards (Bra att veta) */
.info-cards { display: grid; gap: 1.75rem; margin-top: 3rem; }
.info-card {
  background: #fffdfa;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
}
.info-card .icon { width: 110px; height: 90px; margin: 0 auto 1.25rem; color: var(--muted); }
.info-card .icon svg { width: 100%; height: 100%; }
.info-card h3 { font-size: 1.5rem; }
.info-card__rule { width: 42px; border: 0; border-top: 1px solid #b3915f; margin: 1.1rem auto 1.4rem; }
.info-card p { color: var(--muted); font-size: 1rem; max-width: 24rem; margin: 0 auto; }
@media (min-width: 768px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Forms (dark card) ---------- */
.form-card {
  background: var(--deep); color: #fff; padding: 2rem 1.5rem; margin: 2.5rem auto 0;
  max-width: 36rem; box-shadow: 0 10px 30px rgba(74,85,72,.2);
}
.form-card .field { margin-bottom: 1.5rem; }
.form-card label, .form-card legend {
  display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .15em;
  font-size: .68rem; color: #fff; margin-bottom: .5rem; padding: 0;
}
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel],
.form-card input[type=password], .form-card textarea {
  width: 100%; background: var(--bg); color: var(--fg); border: 1px solid transparent;
  padding: .8rem 1rem; font: inherit; font-size: 1rem; border-radius: 0;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid rgba(255,255,255,.5); outline-offset: 1px; }
.form-card textarea { min-height: 5rem; resize: vertical; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.choice { display: block; margin-bottom: .6rem; position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: block; padding: .9rem 1rem; background: var(--bg); color: var(--muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  cursor: pointer; transition: background .2s, color .2s;
}
.choice input:checked + span { background: var(--primary); color: #fff; font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid #fff; }
.form-card .btn { width: 100%; font-size: .7rem; }
.form-card .btn:hover { background: var(--bg); color: var(--primary); }
.form-note { margin-top: 1rem; font-size: .8rem; text-align: center; color: rgba(255,255,255,.8); }
.form-status { margin-top: 1rem; text-align: center; font-size: .95rem; min-height: 1.5rem; }
.form-status.err { color: #ffc4c4; }
.form-success { text-align: center; padding: 1rem 0; }
.form-success h3 { color: #fff; font-size: 1.6rem; }
.form-success p { margin-top: .75rem; color: rgba(255,255,255,.85); }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 6rem; background: var(--cream); overflow: hidden; }
.marquee {
  position: relative; overflow: hidden; user-select: none;
  padding-block: 2.75rem 3.25rem;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 4rem; z-index: 3; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 68s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }

/* The item is a fixed layout slot; only the polaroid inside it grows on hover,
   so a lifted card never reflows the track. */
.marquee__item { position: relative; width: 55vw; padding: 0 .5rem; flex: none; }
.marquee__polaroid {
  padding: 8px 8px 0;
  background: #fff;
  border: 1px solid rgba(42, 35, 38, .05);
  box-shadow: 0 4px 14px rgba(42, 35, 38, .12);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
}
.marquee__frame { overflow: hidden; aspect-ratio: 4/5; }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }

/* The polaroid's bottom margin. Fixed height so cards without a caption stay the same size. */
.marquee__caption { height: 3.4rem; padding: .8rem .5rem 0; text-align: center; }
.marquee__place {
  display: block; font-family: var(--font-display); font-size: .62rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .18em; color: var(--fg); text-wrap: balance;
}
.marquee__year {
  display: block; margin-top: .35rem; font-family: var(--font-body); font-style: italic;
  font-size: .78rem; line-height: 1; color: var(--primary);
}

@media (hover: hover) {
  .marquee__item:hover { z-index: 2; }
  .marquee__item:hover .marquee__polaroid {
    transform: scale(1.13) translateY(-8px);
    box-shadow: 0 18px 40px rgba(42, 35, 38, .26);
  }
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__polaroid { transition: none; }
  .marquee__item:hover .marquee__polaroid { transform: none; }
}
@media (min-width: 640px) { .marquee__item { width: 38vw; } }
@media (min-width: 768px) { .marquee__item { width: 28vw; } }
@media (min-width: 1024px) { .marquee__item { width: 20vw; } }

.footer-contact { background: var(--primary); color: var(--on-dark); padding: 4rem 1.5rem; }
.footer-contact__grid { display: grid; gap: 2.5rem; text-align: center; max-width: 48rem; margin: 0 auto; }
.footer-contact h4 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; }
.footer-contact p { font-size: .95rem; line-height: 1.9; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
@media (min-width: 640px) { .footer-contact__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Login page ---------- */
body.login-page { align-items: center; justify-content: center; padding: 2rem 1rem; }
.login { width: 100%; max-width: 24rem; text-align: center; }
.login__names { font-family: var(--font-script); color: var(--primary); font-size: 3.5rem; line-height: 1; }
.login__date { font-family: var(--font-display); font-size: 1.4rem; margin: .75rem 0 2rem; color: var(--fg); }
.login .form-card { margin-top: 0; text-align: left; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem !important; }
.pw-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: #999; display: inline-flex; padding: .25rem; }
.pw-toggle:hover { color: #555; }
.pw-toggle svg { width: 20px; height: 20px; }
.login .form-note { font-style: italic; margin-top: 1.5rem; }
.login .error { color: #ffc4c4; font-size: .9rem; margin-bottom: 1rem; text-align: center; }

/* ---------- Invite page ---------- */
.invite { padding: 2rem 1.5rem 4rem; text-align: center; max-width: 52rem; margin: 0 auto; }
.invite h1 { font-size: 2.4rem; margin-top: 1rem; }
.invite .names { font-family: var(--font-script); font-size: 2.5rem; color: var(--primary); margin: 1rem 0 2rem; line-height: 1.1; }
.invite video { width: 100%; max-width: 720px; margin: 0 auto; border-radius: 4px; background: #000; box-shadow: 0 12px 40px rgba(74,85,72,.3); }
.invite .btn { margin-top: 2.5rem; }

/* ---------- OSA page (light, personal) ---------- */
.osa-title {
  font-family: var(--font-body); font-weight: 400; text-align: center;
  font-size: clamp(3.2rem, 9vw, 4.75rem); letter-spacing: .06em; line-height: 1;
  color: var(--deep); margin-top: 2.5rem;
}
.osa-root { margin-top: 2.5rem; }
.osa-loading { text-align: center; color: var(--muted); font-style: italic; }
.osa-letter { max-width: 40rem; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.osa-letter p + p { margin-top: 1.1rem; }

.osa-form { max-width: 40rem; margin: 3.5rem auto 0; }
.osa-hint { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }
.osa-notice {
  background: var(--cream); border-left: 3px solid var(--primary); color: var(--fg);
  padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.55;
}

.osa-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.5rem 1.25rem; margin-bottom: 1.5rem;
}
.osa-card h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.4rem; color: var(--deep); margin-bottom: 1.1rem; }

.osa-option {
  display: flex; align-items: center; gap: .8rem; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: .95rem 1rem; margin-bottom: .65rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .01em; color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.osa-option:hover { border-color: rgba(74,85,72,.45); }
.osa-option input { appearance: auto; accent-color: var(--deep); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; cursor: pointer; }
.osa-option:has(input:checked) { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.osa-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.osa-field { margin-top: 1.25rem; }
.osa-field > label {
  display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .15em;
  font-size: .68rem; color: var(--muted); margin-bottom: .5rem;
}
.osa-field > input, .osa-field > textarea {
  width: 100%; background: #fff; color: var(--fg); border: 1px solid var(--border); border-radius: 4px;
  padding: .85rem 1rem; font: inherit; font-size: 1rem;
}
.osa-field > input:focus, .osa-field > textarea:focus { outline: 2px solid var(--deep); outline-offset: 1px; border-color: var(--deep); }
.osa-field textarea { min-height: 6rem; resize: vertical; }

.osa-form .btn { display: block; width: 100%; text-align: center; margin-top: .5rem; }
.osa-status { margin-top: 1rem; text-align: center; font-size: 1rem; min-height: 1.5rem; color: var(--muted); }
.osa-status.err { color: #9b2f2f; }

.osa-success { text-align: center; padding: 2.5rem 1.5rem; }
.osa-success h3 { font-size: 1.9rem; margin-bottom: .75rem; }
.osa-success p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.osa-success__note { margin-top: 1rem; font-size: .95rem; font-style: italic; }

@media (min-width: 640px) { .osa-card { padding: 1.75rem; } .osa-option { font-size: .95rem; } }
