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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: calc(var(--step-0) * 1.2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }

.label {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 2.3rem + 3vw, 4.9rem);
  line-height: 1.1;
  color: var(--accent-strong);
  margin: 0 0 0.6rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }

p { margin: 0 0 1.25rem; max-width: var(--measure); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 4rem;
}
.nav__brand {
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__links a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 0.2rem;
  transition: background-size 0.4s var(--ease);
}
.nav__links a:hover { background-size: 100% 1px; }

.nav__toggle { display: none; }
@media (max-width: 56rem) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0 0.6rem;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav__toggle span { height: 1.5px; background: var(--accent-strong); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open nav { display: block; }
  .nav__links { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .nav__links a { display: block; padding: 0.7rem 0; background-image: none; }
}

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: 7rem 5rem;
  position: relative;
}
.hero__names {
  font-size: var(--step-hero);
  line-height: 0.95;
  font-weight: 300;
}
.hero__names .amp {
  font-style: normal;
  color: var(--accent-strong);
  padding-inline: 0.1em;
}
.hero__meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 4rem;
  text-align: center;
  color: var(--text-soft);
}
.footer__names {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.footer p { margin-inline: auto; }

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent-strong); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.link {
  color: var(--accent-strong);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

/* Program */
.days {
  display: grid;
  gap: clamp(3rem, 8vw, 6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  margin-top: 3rem;
}
.day__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-2);
  margin: 0 0 0.25rem;
}
.day__sub { color: var(--text-soft); margin-bottom: 1.5rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}
.timeline li::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.timeline time {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.timeline li.is-key span { font-weight: 500; }

/* Venues */
.cards {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  margin-top: 3rem;
}
.card { border-top: 1px solid var(--text); padding-top: 1.5rem; }
.card h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.card address { font-style: normal; color: var(--text-soft); margin-bottom: 1rem; }
.maps { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; }

/* RSVP */
.deadline {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--accent-strong);
  margin-bottom: 1.5rem;
}
.checklist { padding-left: 1.1rem; max-width: var(--measure); margin: 0 0 1.5rem; }
.checklist li { margin-bottom: 0.4rem; padding-left: 0.3rem; }
.checklist li::marker { color: var(--accent-strong); }

/* Info */
.facts {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 3rem;
}
.fact { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.fact h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.fact p { color: var(--text-soft); }

/* Doodles */
.wrap { position: relative; }
.doodle {
  color: var(--accent-strong);
  overflow: visible;
  filter: url(#pen); /* slight pen wobble */
}
.doodle .o { stroke-width: 2.2; }
.doodle .d { stroke-width: 1; }
.doodle--hero .o { stroke-width: 1.8; }
.doodle--hero .d { stroke-width: 0.9; }
.doodle--sm { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }
.doodle--corner {
  position: absolute;
  top: -1rem;
  right: 0;
  width: clamp(3.5rem, 8vw, 6rem);
  height: auto;
  transform: rotate(8deg);
}
.doodle--hero {
  position: absolute;
  right: var(--gutter);
  bottom: 3rem;
  width: clamp(6rem, 20vw, 15rem);
  height: auto;
  opacity: 0.85;
}
@media (max-width: 40rem) {
  .doodle--hero { bottom: 5.5rem; width: 6.5rem; opacity: 0.5; }
}

.js .doodle > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.js .doodle.is-drawn > * { stroke-dashoffset: 0; }

/* Timeline draw-on */
.js .timeline li { opacity: 0; transform: translateY(0.6rem); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .timeline li::after { transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.js .timeline.is-visible li { opacity: 1; transform: none; }
.js .timeline.is-visible li::after { transform: scaleX(1); }

#countdown { color: var(--accent-strong); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .js .doodle > * { stroke-dashoffset: 0; transition: none; }
  .js .timeline li { opacity: 1; transform: none; transition: none; }
  .js .timeline li::after { transform: none; transition: none; }
}

/* Watercolour wash behind the pen outline */
.doodle .w { fill: var(--accent); stroke: none; opacity: 0; filter: url(#wc); }
.js .doodle > .w { stroke-dasharray: none; stroke-dashoffset: 0; transition: opacity 1.8s var(--ease) 0.6s; }
.js .doodle.is-drawn > .w { opacity: 0.16; }
.doodle--hero .w { transform: translate(2px, 2px); }
@media (prefers-reduced-motion: reduce) { .js .doodle > .w { opacity: 0.16; transition: none; } }

/* Hero layout + photo strip */
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  /* sized so "Anders &" always fits inside its column and never sits under the photos */
  .hero__names--couple { font-size: clamp(3.5rem, 2.2rem + 5.9vw, 7.5rem); }
}
.hero__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
  align-items: start;
}
.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}
.photo:nth-child(1) { margin-top: 1.5rem; }
.photo:nth-child(2) { margin-top: -1rem; }
.photo:nth-child(3) { margin-top: 3rem; }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}
.photo img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .photo img { transition: none; }
}

.hero__welcome {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  max-width: 34rem;
  color: var(--text-soft);
}

/* Taped snapshots */
.photo {
  aspect-ratio: auto;
  overflow: visible;
  background: #fffdf8;
  padding: 0.4rem 0.4rem 1.5rem;
  box-shadow: 0 0.6rem 1.2rem -0.7rem rgba(43, 42, 40, 0.4);
}
.photo__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}
.photo:nth-child(1) { rotate: -3deg; }
.photo:nth-child(2) { rotate: 2deg; }
.photo:nth-child(3) { rotate: -1.5deg; }
.js .photo.reveal {
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    rotate 0.4s var(--ease), translate 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.photo:hover { rotate: 0deg; translate: 0 -0.35rem; }


/* Hand-drawn illustrations (assets/img/drawings), inked bordeaux via the #ink filter */
.drawing, .tl-icon { width: auto; max-width: none; }
.drawing { height: clamp(3.5rem, 8vw, 4.5rem); margin-bottom: 1rem; }
.drawing--sm { height: clamp(3.75rem, 8vw, 5rem); }
.drawing--corner {
  position: absolute;
  top: -0.5rem;
  right: 0;
  height: clamp(4rem, 9vw, 7rem);
  margin: 0;
  rotate: 7deg;
}
.drawing--hero {
  position: absolute;
  right: var(--gutter);
  bottom: 3rem;
  height: clamp(4.5rem, 11vw, 9rem);
  margin: 0;
  opacity: 0.8;
  rotate: -6deg;
}
@media (max-width: 40rem) {
  .drawing--hero { bottom: 1rem; height: 4.5rem; opacity: 0.5; }
}
.drawing--footer { display: block; height: clamp(4rem, 9vw, 6rem); margin: 0 auto 1rem; opacity: 0.85; }
.timeline li { grid-template-columns: clamp(3rem, 8vw, 3.75rem) clamp(4rem, 10vw, 4.5rem) 1fr; min-height: 4rem; align-items: center; }
.tl-icon { order: -1; width: 100%; height: clamp(2.75rem, 6vw, 3.5rem); object-fit: contain; justify-self: center; opacity: 0.9; }
.drawing--venue { height: clamp(11.5rem, 26vw, 18rem); }

/* Hand-drawn dividers between sections. On phones they follow --divider-phone
   (tokens.css): set it to "none" to hide them there. */
.section { position: relative; }
.section::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto 0;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'><path d='M0 6.7 Q38 5.9 58 6.3 Q77 6.7 91 5.3 Q105 4 127 4.0 Q149 4 165 5.7 Q180 7.4 198 8.4 Q217 9.3 235 9.4 Q253 9.6 268 9.8 Q282 9.9 305 9.9 Q328 10.0 349 10.5 Q370 11.0 384 11.5 Q397 12 417 11.0 Q436 10.0 450 10.9 Q463 11.9 481 11.9 Q499 11.9 522 11.7 Q545 11.4 568 10.2 Q591 8.9 613 8.2 Q635 7.4 658 8.2 Q681 8.9 695 7.3 Q709 5.7 725 7.2 Q740 8.7 758 8.8 Q776 8.8 792 8.6 Q808 8.4 826 8.0 Q843 7.6 862 8.2 Q882 8.8 905 9.6 Q928 10.4 951 11.2 Q974 12 998 12.0 Q1022 12 1037 12.0 Q1051 12 1075 12.0 Q1099 12 1118 12.0 Q1137 12 1169 11.9 L1200 11.9' fill='none' stroke='%236d2e3a' stroke-width='2.2' stroke-linecap='round'/></svg>") center / 100% 16px no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.section:nth-of-type(even)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'><path d='M0 6.1 Q38 8.8 56 8.6 Q75 8.3 94 7.4 Q113 6.5 132 7.4 Q151 8.3 172 7.5 Q194 6.7 211 6.2 Q227 5.6 249 7.0 Q271 8.5 284 10.1 Q298 11.7 321 11.6 Q345 11.4 365 9.7 Q384 8.0 398 8.0 Q411 8.0 424 6.9 Q438 5.8 454 4.9 Q469 4 487 4.0 Q506 4.1 528 4.5 Q550 4.9 570 5.2 Q590 5.6 610 5.8 Q631 6.0 647 7.8 Q663 9.7 687 10.6 Q711 11.5 732 10.7 Q752 9.8 768 9.2 Q783 8.6 797 9.6 Q811 10.6 828 11.3 Q846 12 863 12.0 Q880 12 903 10.3 Q925 8.7 940 9.8 Q955 10.8 974 11.4 Q992 12 1009 9.7 Q1027 7.3 1046 7.8 Q1066 8.4 1082 6.8 Q1098 5.1 1115 6.6 Q1132 8.2 1166 6.8 L1200 5.5' fill='none' stroke='%236d2e3a' stroke-width='2.2' stroke-linecap='round'/></svg>");
  transform: scaleX(-1);
}
@media (max-width: 40rem) {
  .section::before { display: var(--divider-phone, block); }
}

/* Fredag: hero drawing and the "letter" layout */
.fredag__hero { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: start; column-gap: clamp(2rem, 9vw, 8rem); align-items: center; }
.fredag__hero > :not(.fredag__art) { grid-column: 1; }
.fredag__art { grid-column: 2; grid-row: 1 / span 4; align-self: center; height: clamp(7.5rem, 28vw, 19rem); margin: 0; rotate: 4deg; }
.letter { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 56rem) {
  .letter { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; }
  .letter__head { position: sticky; top: 6rem; }
}
.letter__text p { max-width: 52ch; position: relative; }
.letter__text .lead { font-family: var(--font-serif); font-weight: 300; font-size: var(--step-1); line-height: 1.5; color: var(--text); }
.heart-inline { display: inline-block; height: 1em; width: auto; max-width: none; vertical-align: -0.15em; }
.hl {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 12' preserveAspectRatio='none'><path d='M0 6.5 Q62 7.3 96 7.2 Q131 7.1 164 5.5 Q198 3.9 225 6.0 Q252 8.0 282 7.9 Q312 7.8 333 6.8 Q355 5.9 379 6.1 Q402 6.2 431 5.0 Q460 3.9 483 4.5 Q506 5.0 553 6.1 L600 7.2' fill='none' stroke='%23e3b8bc' stroke-width='10' stroke-linecap='round'/></svg>") 0 90% / 100% 0.6em no-repeat;
  color: inherit;
  padding: 0 0.15em;
  margin: 0 -0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.closing { margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.closing p { margin-inline: auto; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.closing .btn-row { justify-content: center; }
.drawing--closing { display: block; margin: 0 auto 1rem; height: clamp(3.5rem, 8vw, 5rem); }

/* Small UI text stays in the sans for legibility */
.nav__links, .btn, .hero__meta, .maps, .link-ui { font-family: var(--font-sans); font-weight: 400; }
.nav__brand, .footer__names { font-weight: 500; }

.hero__names--couple { color: var(--accent-strong); }

/* Welcome text on a clean paper card */
.hero__welcome {
  position: relative;
  max-width: 36rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 0.6rem 1.2rem -0.9rem rgba(43, 42, 40, 0.35);
  color: var(--text);
  font-size: calc(var(--step-0) * 1.25);
  line-height: 1.6;
}
.hero__welcome .salutation,
.hero__welcome .signature {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent-strong);
  line-height: 1.25;
}
.hero__welcome .salutation { font-size: 1.9em; }
.hero__welcome .signature { font-size: 1.7em; }

/* Disco ball garland across the top of the hero */
.garland {
  position: absolute;
  top: 3.75rem;
  left: 0;
  right: 0;
  display: flex;
  pointer-events: none;
  z-index: 1;
}
.garland__unit { position: relative; flex: var(--g, 1) 1 0; height: 1.75rem; }
.garland__unit::before { /* string from the garland down to the ball */
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 50%;
  width: 1.6px;
  height: calc(var(--d, 0rem) + 0.2rem);
  background: #6d2e3a;
  opacity: 0.8;
}
.garland__arc { width: 100%; height: 100%; overflow: visible; fill: none; stroke: #6d2e3a; stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.garland__arc path { vector-effect: non-scaling-stroke; }
.garland__ball {
  position: absolute;
  top: calc(0.8rem + var(--d, 0rem));
  left: 50%;
  height: calc(var(--s, 1) * clamp(3.75rem, 7vw, 5rem));
  width: auto;
  max-width: none;
  translate: -50% 0;
  scale: var(--flip, 1) 1;
  transform-origin: 50% 0;
  animation: sway var(--t, 5s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.garland__unit:nth-child(1) { --g: 1;    --s: 1;    --d: 0rem;   --tilt: 0deg;  --t: 5.2s; --delay: 0s; }
.garland__unit:nth-child(2) { --g: .85;  --s: .7;   --d: 1.1rem; --tilt: 6deg;  --t: 6.1s; --delay: -2s; }
.garland__unit:nth-child(3) { --g: 1.2;  --s: .9;   --d: .4rem;  --tilt: -5deg; --t: 4.8s; --delay: -3.5s; --flip: -1; }
.garland__unit:nth-child(4) { --g: 1;    --s: 1.15; --d: .2rem;  --tilt: 3deg;  --t: 5.7s; --delay: -1s; }
.garland__unit:nth-child(5) { --g: .9;   --s: .75;  --d: 1.4rem; --tilt: -7deg; --t: 6.4s; --delay: -4s; }
.garland__unit:nth-child(6) { --g: 1.15; --s: 1;    --d: .6rem;  --tilt: 4deg;  --t: 5s;   --delay: -2.7s; --flip: -1; }
.garland__unit:nth-child(7) { --g: .85;  --s: .68;  --d: .1rem;  --tilt: -3deg; --t: 6.8s; --delay: -0.5s; }
.garland__unit:nth-child(8) { --g: 1.1;  --s: .95;  --d: .9rem;  --tilt: 6deg;  --t: 5.4s; --delay: -3s; }
@keyframes sway {
  from { rotate: calc(var(--tilt, 0deg) - 4deg); }
  to { rotate: calc(var(--tilt, 0deg) + 4deg); }
}
@media (max-width: 56rem) { .garland__unit:nth-child(n + 7) { display: none; } }
@media (max-width: 40rem) { .garland__unit:nth-child(n + 5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .garland__ball { animation: none; } }
.hero { padding-top: 12rem; }
.hero .label { font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem); }

/* Champagne tower in the corner of the welcome card */
.drawing--card { position: absolute; right: clamp(2.25rem, 6vw, 4rem); bottom: clamp(2.25rem, 6vw, 4rem); height: clamp(7rem, 17vw, 11rem); margin: 0; }
@media (max-width: 40rem) {
  .hero__welcome { padding-bottom: 5.5rem; }
  .drawing--card { height: 6rem; right: 1.25rem; bottom: 1.25rem; }
}

/* Gentle movement on the illustrations, like the garland balls */
.drawing {
  animation: wobble var(--t, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.drawing:nth-child(2n) { --t: 7.2s; --delay: -2s; }
.drawing:nth-child(3n) { --t: 5.4s; --delay: -3.6s; }
.drawing--corner { --base: 7deg; }
.drawing--hero { --base: -6deg; }
.fredag__art { --base: 4deg; }
.drawing--hero, .fredag__art, .drawing--card {
  animation: wobble var(--t, 6s) ease-in-out infinite alternate, bob 4.6s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s), -1.5s;
}
@keyframes wobble {
  from { rotate: calc(var(--base, 0deg) - 3deg); }
  to { rotate: calc(var(--base, 0deg) + 3deg); }
}
@keyframes bob {
  from { translate: 0 -3px; }
  to { translate: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawing, .drawing--hero, .fredag__art, .drawing--card { animation: none; }
}

/* Venue drawings (Sted & transport) stay still */
.drawing--venue { animation: none; }

/* Fredag hero: the intro line is the page headline */
.label--hero { font-size: clamp(2.9rem, 1.8rem + 5vw, 6.5rem) !important; line-height: 1.05; margin-bottom: 1.25rem; }
.hero__note { margin: 1.75rem 0 0; max-width: 34rem; color: var(--text-soft); }

.letter__text .lead { font-weight: 600; }

/* Main hero: greeting in the serif, names in the script on one line */
.hero__text .label { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); letter-spacing: 0; }
.hero__names--couple { font-family: var(--font-script); font-weight: 400; line-height: 1; white-space: nowrap; font-size: clamp(3rem, 14vw, 4.5rem); }
.hero__names--couple .amp { font-family: var(--font-script); padding-inline: 0; }
@media (min-width: 56rem) {
  /* names get the full width; the meta line sits left and the photos right, below them */
  .hero__text { display: contents; }
  .hero__text .label, .hero__names--couple { grid-column: 1 / -1; }
  .hero__names--couple { font-size: clamp(5rem, 11vw, 12rem); margin-bottom: 0.5rem; }
  .hero__meta { grid-column: 1; align-self: center; margin-top: 0; }
  .hero__photos { grid-column: 2; }
  .hero__grid { row-gap: clamp(1rem, 3vw, 2rem); }
}

/* Fredag hero is only as tall as its content */
.hero--compact { min-height: 0; padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Plain-text mail address next to the "Send en mail" button */
.btn-row .mail-addr { align-self: center; color: var(--text-soft); }
