/* ---------------------------------------------------------------------------
   Wedding site styles. One file on purpose — it's small enough that splitting
   it costs more than it saves.

   Palette and rationale: docs/design.md. Short version — on this near-white
   ground the roles are the reverse of what they'd be on a dark one. Burgundy
   is the strong ink (10.8:1) and does the text-weight work. Pale cornflower is
   2:1 and is therefore SURFACE ONLY — grounds, tints, hairlines, never text.
   Links use the deepened cornflower instead.
   --------------------------------------------------------------------------- */

:root {
  --paper:      #fafbfd;   /* near-white, faintest cool cast */
  --paper-tint: #edf2fb;   /* light blue — hero ground, cards, bands */
  --ink:        #22283a;   /* deep blue-black; stays in the blue family */
  --muted:      #5a6480;   /* captions, secondary lines */
  --burgundy:   #6e1b33;   /* primary accent — text-safe here */
  --burgundy-deep: #571026;
  --dahlia:     #a8324f;   /* lighter burgundy, still text-safe */
  --cornflower-ink: #2a579c;  /* links — the blue, deepened to carry text */
  --cornflower: #8fb4ec;   /* pale blue — decoration and fills only */
  --rule:       #d6e0f2;   /* light blue hairline */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 34rem;   /* comfortable reading width */
  --gutter: 1.5rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cornflower-ink); text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }

::selection { background: var(--paper-tint); color: var(--burgundy-deep); }

:focus-visible {
  outline: 2px solid var(--cornflower-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--gutter) 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.monogram {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  text-decoration: none;
}

.monogram:hover { color: var(--burgundy-deep); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a.is-current { color: var(--burgundy); border-bottom-color: var(--burgundy); }

/* --- Layout ---------------------------------------------------------------- */

main.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 4rem;
}

main.home { padding: 0 0 4rem; }

.page-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--burgundy);
  margin: 0 0 0.5rem;
}

.page-subtitle {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 3rem;
}

.page-title + .block,
.page-title + .prose,
.page-title + .faq,
.page-title + .cards { margin-top: 3rem; }

.block { margin: 0 0 3.5rem; }

/* Section headings get a small diamond beneath them instead of a plain rule —
   one of the few places the brief's "whimsical" is allowed to show. */
.block h2 {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cornflower-ink);
  text-align: center;
  margin: 0 0 1.75rem;
}

.block h2::after {
  content: "◆";
  display: block;
  margin: 0.6rem auto 0;
  font-size: 0.5rem;
  letter-spacing: normal;
  color: var(--dahlia);
}

.prose { margin-inline: auto; }
.prose.narrow { max-width: var(--measure); }
.prose.narrow-left { max-width: var(--measure); margin-inline: 0; }
.prose.center, .center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); }

.note {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem var(--gutter) 5rem;
  text-align: center;
  /* Pale blue ground with a burgundy wash rising from the bottom edge — the
     daylight inversion of a dusk sky. */
  background-color: var(--paper-tint);
  background-image:
    radial-gradient(120% 85% at 50% 118%, rgba(110, 27, 51, 0.16) 0%, rgba(110, 27, 51, 0) 62%),
    linear-gradient(180deg, var(--paper-tint) 0%, var(--paper) 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--rule);
}

/* Scattered confetti dots. Pure CSS so the site stays self-contained — no
   image, no script, no motion. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(143, 180, 236, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 27% 62%, rgba(168, 50, 79, 0.35), transparent),
    radial-gradient(2px 2px at 41% 14%, rgba(143, 180, 236, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 58% 45%, rgba(143, 180, 236, 0.55), transparent),
    radial-gradient(2px 2px at 71% 18%, rgba(168, 50, 79, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 84% 55%, rgba(143, 180, 236, 0.6), transparent),
    radial-gradient(2px 2px at 93% 28%, rgba(143, 180, 236, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 6% 78%, rgba(143, 180, 236, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 49% 85%, rgba(168, 50, 79, 0.25), transparent),
    radial-gradient(2px 2px at 66% 72%, rgba(143, 180, 236, 0.45), transparent);
}

.hero > * { position: relative; }

.hero-tagline {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cornflower-ink);
  margin: 0 0 1.75rem;
}

.hero-names {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--burgundy);
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-names .amp {
  font-style: italic;
  font-size: 0.55em;
  color: var(--cornflower-ink);
}

.hero-meta {
  margin: 0.25rem 0;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.countdown {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dahlia);
  margin: 2rem 0 0;
}

.hero-cta { margin: 2.5rem 0 0; }

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--burgundy);
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: var(--paper);
}

main.home .prose { padding: 3.5rem var(--gutter) 0; max-width: var(--measure); }

/* --- Schedule -------------------------------------------------------------- */

.schedule { margin: 0; }

.schedule-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.schedule-row:last-child { border-bottom: none; }

.schedule dt {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cornflower-ink);
  padding-top: 0.2rem;
}

.schedule dd { margin: 0; }

/* --- Venues / addresses ---------------------------------------------------- */

.venue { text-align: center; margin-bottom: 2rem; }
.venue h3 { font-weight: 400; font-size: 1.3rem; color: var(--burgundy); margin: 0 0 0.5rem; }

address { font-style: normal; line-height: 1.6; }

.dress-label {
  text-align: center;
  font-size: 1.3rem;
  color: var(--dahlia);
  margin: 0 0 1.25rem;
}

.block .prose.narrow-left { margin-inline: auto; }

/* --- Cards (hotels, registry) ---------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  background: var(--paper-tint);
}

.card h3 { font-weight: 400; font-size: 1.2rem; color: var(--burgundy); margin: 0 0 0.4rem; }
.card p { margin: 0.4rem 0; }
.card-meta { color: var(--muted); font-size: 0.9rem; }

.deadline {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dahlia);
  margin-top: 0.9rem;
}

/* --- FAQ ------------------------------------------------------------------- */

.faq { max-width: var(--measure); margin-inline: auto; }

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h2 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--burgundy);
  margin: 0 0 0.5rem;
}

.faq-item p { margin: 0; color: var(--muted); }

/* --- Photos ---------------------------------------------------------------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: 3px; }

.photo-grid figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* --- RSVP form ------------------------------------------------------------- */

.rsvp-form {
  max-width: 26rem;
  margin: 0 auto;
  text-align: center;
}

.rsvp-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cornflower-ink);
  margin-bottom: 0.75rem;
}

.rsvp-form input[type="text"] {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.rsvp-form input[type="text"]::placeholder { color: var(--muted); opacity: 0.75; }

.rsvp-form input[type="text"]:focus {
  outline: 2px solid var(--cornflower-ink);
  outline-offset: 1px;
  border-color: var(--cornflower-ink);
}

.field-help {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-tint);
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0.3rem 0; }
.footer-names { font-size: 1.1rem; color: var(--burgundy); }

/* --- Small screens --------------------------------------------------------- */

@media (max-width: 34rem) {
  .schedule-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .site-nav { gap: 0.35rem 1.1rem; }
  .hero { padding: 4rem var(--gutter) 3.5rem; }
}

/* --- Print ----------------------------------------------------------------- */

/* Guests print the details page. Drop the tinted grounds so it doesn't burn
   through a colour cartridge. */
@media print {
  .site-nav, .hero-cta { display: none; }
  body { background: #fff; }
  .hero, .card, .site-footer { background: #fff; }
  .hero::before { display: none; }
}
