/* ================================================================
   Beba & Mark · 04.09.2026 — Einladung
   Palette + Typografie nach Canva-Vorlage, fein gesetzt.
   ================================================================ */

:root {
  --cream: #FAF8F1;
  --ink: #1C1B18;
  --ink-soft: rgba(28, 27, 24, .72);
  --dark: #2B2A26;
  --hairline: rgba(28, 27, 24, .22);
  --hairline-light: rgba(250, 248, 241, .4);

  /* Ein Schnitt pro Rolle:
     Display = HV Cedarwood (aus dem PDF, Fallback Cormorant Garamond)
     Script  = ED Drayton (aus dem PDF, Fallback Monsieur La Doulaise)
     Text    = Cormorant Garamond */
  --serif: "Cormorant Garamond", Georgia, serif;
  --serif-alt: "Cormorant Garamond", Georgia, serif;
  --display: "Cedarwood", "Cormorant Garamond", Georgia, serif;
  --script: "Drayton", "Monsieur La Doulaise", cursive;

  --track-wide: .34em;
  --track-mid: .22em;
  --track-small: .16em;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p { margin: 0; }

/* ---------------------------------------------------------- Reveals */

/* Nur verstecken, wenn JS läuft — ohne JS bleibt alles sichtbar */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1),
              transform .9s cubic-bezier(.22, .61, .36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { display: none; }
}

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

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 18, 14, .24) 0%,
    rgba(20, 18, 14, .1) 38%,
    rgba(20, 18, 14, 0) 70%
  );
}

.hero__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
  padding: max(5rem, 11svh) clamp(1.75rem, 7vw, 6rem) 0;
}

@media (max-width: 600px) {
  .hero__text {
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: max(2rem, 4svh);
  }
}

@media (min-width: 900px) {
  .hero__text {
    justify-content: center;
    padding: 10vh clamp(1.75rem, 7vw, 6rem) 0;
  }
}

.hero__names,
.hero__rule,
.hero__couple,
.hero__date {
  animation: heroIn 1.4s cubic-bezier(.22, .61, .36, 1) both var(--d, .3s);
}

@media (prefers-reduced-motion: reduce) {
  .hero__names, .hero__rule, .hero__couple, .hero__date { animation: none; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Wortmarke als originales SVG – unabhängig von geladenen Webfonts. */

.hero__names {
  width: clamp(8.35rem, 14.5vw, 14.5rem);
}

.hero__wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(20, 18, 14, .2));
}

.hero__rule {
  display: block;
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, .8);
  margin: clamp(1.4rem, 3.5vh, 2.2rem) 0;
}

.hero__couple,
.hero__date {
  font-family: var(--serif-alt);
  font-size: clamp(.95rem, .82rem + .65vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, .75);
  animation: drop 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
  transform-origin: top;
}

@keyframes drop {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: .9; }
  70%  { transform: scaleY(1); opacity: .9; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* -------------------------------------------------------- Sections */

.section--cream {
  background: var(--cream);
}

/* --------------------------------------------------------- Einladung */

.invite {
  padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.25rem, 5vw, 4rem);
}

.invite__grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .invite__grid { grid-template-columns: 5fr 6fr; }
}

@media (max-width: 899px) {
  .invite__body { order: -1; }
}

.invite__photo {
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  padding: clamp(.6rem, 1.4vw, 1rem);
  background: var(--cream);
  max-width: 30rem;
  justify-self: center;
}

.invite__photo img { width: 100%; height: auto; }

.invite__body {
  text-align: center;
  max-width: 34rem;
  justify-self: center;
}

.invite__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  color: var(--ink);
  line-height: 1;
}

.invite__display {
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(2rem, 1.3rem + 3.7vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: .04em;
}

.invite__display > span { display: block; }

.invite__yes {
  margin-top: -.18em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.2rem, 2.2rem + 5vw, 5.5rem);
  line-height: .8;
  transform: translateX(-.16em);
}

.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 2.4rem + 5vw, 5.8rem);
  line-height: 1.15;
  color: var(--ink);
}

.invite__lead {
  margin-top: 1.4em;
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem);
  line-height: 1.65;
  color: var(--ink);
}

.invite__lead + .invite__lead { margin-top: .9em; }

/* --------------------------------------------------------- Countdown */

.count {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(6rem, 16vh, 10rem) 1.25rem;
  text-align: center;
}

.count__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.count__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 20, 15, .5), rgba(24, 20, 15, .38) 45%, rgba(24, 20, 15, .55));
}

.count__inner { position: relative; }

.count__till {
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.3;
}

.count__till .script-inline { font-size: 1.3em; }

.script-inline {
  font-family: var(--script);
  font-weight: 400;
}

/* „till we say" enthält Glyphen (l, w, y), die es in den extrahierten
   Drayton-Subsets nicht gibt — die Zeile komplett im Lookalike setzen,
   damit nichts gemischt rendert. */
.count .script-inline {
  font-family: "Monsieur La Doulaise", cursive;
}

.count__yes {
  font-family: var(--serif);
  letter-spacing: var(--track-mid);
  padding-left: .15em;
}

.count__grid {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(.3rem, 1.6vw, 1.1rem);
}

.count__num {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 6.5vw, 5.6rem);
  line-height: 1;
  min-width: 1.6ch;
  font-variant-numeric: lining-nums tabular-nums;
}

.count__sep {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 5.5vw, 4.6rem);
  line-height: 1;
  opacity: .85;
  align-self: flex-start;
}

.count__label {
  display: block;
  margin-top: 1.1em;
  font-size: clamp(.5625rem, .5rem + .45vw, .8125rem);
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  opacity: .92;
}

.count__fallback {
  margin-top: 2rem;
  font-size: 1.25rem;
}

/* ------------------------------------------------------- Tagesablauf */

.day {
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 4rem);
}

.day__grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

@media (max-width: 899px) {
  .day__headline {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .day__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .day__headline { position: sticky; top: 14vh; }
}

/* Ein Durchschuss, ein Tracking — für ALLE Display-Headlines gleich */

.day__display {
  font-family: var(--display);
  font-weight: 700; /* Cedarwood Bold wie im PDF */
  font-synthesis: none;
  font-size: clamp(2.55rem, 1.4rem + 5.3vw, 5.15rem);
  line-height: 1.04;
  letter-spacing: .04em;
}

.day__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(1.6rem, 3.4vw, 2.4rem);
  border-left: 1px solid var(--hairline);
  display: grid;
  gap: clamp(3rem, 6.5vw, 4.4rem);
}

/* Location-Gruppe mit Punkt-Marker auf der Linie */

.day__group { position: relative; }

.day__group::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.6rem, 3.4vw, 2.4rem) - 3.5px);
  top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.day__locname {
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.day__locaddr {
  margin-top: .55em;
  font-size: clamp(.875rem, .8rem + .3vw, 1rem);
  color: var(--ink-soft);
}

.day__locaddr .way { margin-top: 0; }

.day__events {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: grid;
  gap: 1.05em;
}

.day__time {
  font-size: clamp(1rem, .9rem + .45vw, 1.25rem);
  font-variant-numeric: lining-nums;
  font-weight: 500;
}

.day__title {
  margin-top: .3em;
  font-size: clamp(.9375rem, .85rem + .4vw, 1.125rem);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.day__note { white-space: nowrap; }

.day__note::before {
  content: "· ";
  color: var(--ink-soft);
}

/* Anfahrt-Link */

.way {
  display: inline-block;
  margin-top: .9em;
  font-size: clamp(.75rem, .7rem + .25vw, .875rem);
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .25em;
  transition: opacity .25s ease;
}

.way::after {
  content: "";
  display: inline-block;
  width: .72em;
  height: .72em;
  margin-left: .38em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11l6-6M6 5h5v5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11l6-6M6 5h5v5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-.02em);
}

.way:hover { opacity: .55; }

.way--light {
  color: var(--cream);
  border-bottom-color: var(--hairline-light);
}

/* ---------------------------------------------------------- Location */

.loc {
  background: var(--dark);
  padding: clamp(1rem, 3vw, 2.5rem);
}

.loc__frame {
  border: 1px solid rgba(250, 248, 241, .55);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  color: var(--cream);
  max-width: 78rem;
  margin: 0 auto;
}

.loc__display {
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(2.05rem, 1.2rem + 4.8vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: .04em;
  text-wrap: balance;
}

.loc__script {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  color: var(--cream);
}

.loc__art {
  max-width: min(38rem, 88%);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

.loc__art img { width: 100%; height: auto; }

.loc__text {
  max-width: 48rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  font-size: clamp(1rem, .9rem + .4vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(250, 248, 241, .92);
  text-wrap: pretty;
}

.loc .way--light { margin-top: clamp(2.2rem, 5vw, 3.2rem); }

/* ------------------------------------------------------------- Outro */

.outro {
  position: relative;
  overflow: hidden;
  min-height: min(88svh, 56rem);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: clamp(6rem, 18vh, 11rem) 1.25rem;
}

.outro__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.outro__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 75% at 50% 45%, rgba(24, 20, 15, .52), rgba(24, 20, 15, .24));
}

.outro__text { position: relative; }

.outro__date {
  font-family: var(--serif);
  font-size: clamp(.9375rem, .85rem + .5vw, 1.25rem);
  letter-spacing: var(--track-mid);
}

.outro__display {
  max-width: 13ch;
  margin: 1em auto 0;
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(2.4rem, 1.4rem + 5.4vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: .04em;
  text-wrap: balance;
}
