/* Christine and Ro, public home page.

   The design system is the printed invitation, not an invented one. Three
   card grounds carry the whole page: charcoal with gold foil, warm amber,
   and magenta, the last softened a little from the printed sheet so a full
   band of it is easier to sit in front of than a card is. Headings copy the
   foil treatment, light serif caps with
   wide tracking. The bilingual "English | Deutsch" pipe is the invitation's
   own convention and is reused in the wordmark and footer.

   Deliberately single theme. This is a printed identity reproduced on
   screen, so it does not follow the viewer's light or dark preference. The
   bands supply their own grounds and contrast in both environments. */

:root {
  --ink:        #1E232A;
  --ink-2:      #2B323B;
  --gold:       #C0A150;
  --gold-bright:#E0C578;
  --amber:      #EFC584;
  --amber-deep: #7A5B24;
  /* Softened from the invitation's #BE1F97, which is hsl(315 72% 43%), by
     dropping the saturation to 55% and holding the hue and lightness. That
     keeps it the same colour at the same weight rather than a different one,
     and it lifts the contrast against the white text from 5.48:1 to 5.88:1. */
  --magenta:    #AB328D;
  --paper:      #FAF6EF;
  --paper-2:    #F2EADC;
  --text:       #2B2F36;
  --text-soft:  #5E636C;
  --rule:       rgba(30, 35, 42, 0.14);

  --serif: Optima, "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --bar-h: 4.25rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--gold-bright);
  padding: 0.65rem 1rem; z-index: 100; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---- top bar --------------------------------------------------------- */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 35, 42, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(192, 161, 80, 0.28);
}

.bar-inner {
  min-height: var(--bar-h);
  display: flex; align-items: center; gap: 1rem;
  justify-content: space-between;
}

.mark {
  display: flex; flex-direction: column; gap: 0.1rem;
  text-decoration: none; color: var(--gold-bright);
  font-size: 0.98rem; letter-spacing: 0.13em; text-transform: uppercase;
  white-space: nowrap;
}
.mark em { font-style: italic; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.mark-date { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em; color: rgba(224, 197, 120, 0.65); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(250, 246, 239, 0.82); text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.nav a.is-current { color: var(--gold-bright); border-bottom-color: var(--gold); }

.nav-gallery { color: var(--gold-bright) !important; }
.nav-gallery::after { content: " \2197"; font-size: 0.9em; }

.lang { display: flex; gap: 0.3rem; margin-left: 0.3rem; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; border: 1px solid rgba(250, 246, 239, 0.22);
  color: rgba(250, 246, 239, 0.7);
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem; border-radius: 2px; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.lang-btn svg { width: 1.05rem; height: 0.63rem; display: block; border: 0.5px solid rgba(0,0,0,0.25); }
.lang-btn:hover { color: var(--paper); border-color: rgba(224, 197, 120, 0.6); }
.lang-btn.is-on { color: var(--ink); background: var(--gold-bright); border-color: var(--gold-bright); }

.nav-toggle { display: none; }

/* ---- hero ------------------------------------------------------------ */

.hero { position: relative; isolation: isolate; }
.hero-slides { position: relative; height: min(78vh, 40rem); }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; filter: saturate(0.92);
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-img.is-on { opacity: 1; }
/* With no JavaScript nothing ever gets is-on added, so the first frame has to
   stand on its own. It carries the class in the markup. */
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,35,42,0.42) 0%, rgba(30,35,42,0.22) 38%, rgba(30,35,42,0.82) 100%);
}
.hero-inner {
  position: absolute; inset-inline: 0; bottom: clamp(1.75rem, 5vh, 3.5rem);
  text-align: center; color: var(--paper);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 0.9rem;
}

.names {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.4rem, 1.1rem + 6vw, 5rem);
  letter-spacing: 0.09em; text-transform: uppercase;
  line-height: 1.05; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.names em { font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.62em; opacity: 0.9; }

.hero-place {
  margin: 1rem 0 0;
  font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(250, 246, 239, 0.86);
}
.hero-line {
  margin: 1.1rem auto 0; max-width: 34rem;
  font-size: 1.05rem; color: rgba(250, 246, 239, 0.92); text-wrap: pretty;
}

/* ---- bands ----------------------------------------------------------- */

.band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band-tight { padding-top: clamp(2rem, 4vw, 3rem); }

.band h2 {
  margin: 0 0 0.6rem;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
  letter-spacing: 0.19em; text-transform: uppercase;
  text-wrap: balance;
}

.band .lede { margin: 0 0 2.2rem; font-size: 1.1rem; color: var(--text-soft); }
.band p { text-wrap: pretty; }

.band-amber { background: var(--amber); color: #3A2C10; }
.band-amber h2 { color: var(--amber-deep); }
.band-amber .lede { color: #6A5020; }

.band-ink { background: var(--ink); color: rgba(250, 246, 239, 0.86); }
.band-ink h2 { color: var(--gold-bright); }

.band-paper { background: var(--paper); }
.band-paper h2 { color: var(--ink); }

.band-magenta { background: var(--magenta); color: #fff; }

/* ---- the weekend ----------------------------------------------------- */

.days {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.days li {
  background: rgba(255, 255, 255, 0.42);
  border-top: 2px solid var(--amber-deep);
  padding: 1.35rem 1.4rem 1.5rem;
}
.day-when {
  margin: 0 0 0.3rem;
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: #7A5B24;
}
.days h3 {
  margin: 0 0 0.55rem; font-weight: 400;
  font-size: 1.35rem; letter-spacing: 0.05em; color: #3A2C10;
}
.days p { margin: 0; font-size: 0.98rem; }

.note {
  margin: 2rem 0 0; font-size: 0.92rem; font-style: italic; opacity: 0.8;
}

/* ---- gallery teaser -------------------------------------------------- */

.teaser {
  display: grid; gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.teaser-item {
  display: block; position: relative; overflow: hidden;
  background: var(--paper-2);
}
.teaser-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.teaser-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,35,42,0) 55%, rgba(30,35,42,0.55) 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.teaser-item:hover img, .teaser-item:focus-visible img { transform: scale(1.045); }
.teaser-item:hover::after, .teaser-item:focus-visible::after { opacity: 1; }

.cta-row { margin: 2.25rem 0 0; }

.btn {
  display: inline-block;
  background: var(--ink); color: var(--gold-bright);
  font-family: var(--sans); font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.95rem 2.1rem; text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }

/* ---- closing and footer ---------------------------------------------- */

.centred { text-align: center; }
.thanks {
  margin: 0; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  letter-spacing: 0.04em; text-wrap: balance;
}
.signoff {
  margin: 1.1rem 0 0;
  font-size: 1rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.signoff em, .foot em { font-style: italic; text-transform: none; letter-spacing: 0; }

.foot { background: var(--ink); color: rgba(250, 246, 239, 0.5); padding-block: 1.75rem; }
.foot p {
  margin: 0; text-align: center;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.foot span { color: rgba(192, 161, 80, 0.7); padding-inline: 0.5rem; }

/* ---- small screens --------------------------------------------------- */

@media (max-width: 56rem) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 2.5rem; height: 2.5rem; padding: 0 0.5rem;
    background: transparent; border: 1px solid rgba(250, 246, 239, 0.25);
    border-radius: 2px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--gold-bright); }

  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(192, 161, 80, 0.28);
    padding: 0.5rem 1.25rem 1.1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding-block: 0.75rem; border-bottom: 1px solid rgba(250, 246, 239, 0.08); }
  .nav a:hover, .nav a.is-current { border-bottom-color: rgba(192, 161, 80, 0.5); }
  .lang { margin: 0.9rem 0 0; }

  /* The height lives on the container now: the frames are absolutely
     positioned inside it and fill it. */
  .hero-slides { height: min(70vh, 30rem); }
}
