/* =========================================================
   Selma Christine & Bjørn-Ivar · 22.05.2027
   ========================================================= */

:root {
  /* Fargepalett */
  --blush-100: #F3E0E1;
  --blush-200: #E8C1C2;
  --rose:      #C69C9D;
  --rose-deep: #94696A;
  --sage-200:  #C2C4B2;
  --sage:      #9A9E87;
  --sage-deep: #6F7460;

  --ivory:     #FBF8F3;
  --paper:     #F6F1EA;
  --white:     #FFFDFA;
  --ink:       #3D3335;
  --ink-soft:  #6E6264;
  --line:      rgba(148, 105, 106, .28);

  --serif:  "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --script: "Luxurious Script", "Snell Roundhand", cursive;

  --ease-out:  cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);

  --gutter: clamp(20px, 5vw, 48px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.15vw + 12px, 21px);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fint papirkorn over hele siden */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { list-style: none; margin: 0; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 44px; height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--rose-deep);
}
.icon--lg { width: 56px; height: 56px; }

/* =========================================================
   INTRO · KONVOLUTT
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% 0%, #FFFDF9 0%, rgba(255,253,249,0) 60%),
    var(--paper);
  transition: opacity 1.2s var(--ease-soft), visibility 0s linear 1.2s;
}

.intro__inner {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__head {
  transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease-out);
}

.intro__kicker {
  font-size: clamp(20px, 2.6vh, 26px);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink);
}

.intro__names {
  font-family: var(--script);
  font-size: clamp(44px, min(11.5vw, 7.6vh), 72px);
  line-height: 1.2;
  color: var(--ink);
  margin-top: .05em;
}
.n { white-space: nowrap; }
@media (min-width: 900px) {
  /* Navnene på én linje på større skjermer – får lov til å være bredere enn intro-boksen */
  .intro__names {
    white-space: nowrap;
    width: max-content;
    max-width: calc(100vw - 2 * var(--gutter));
  }
}
.amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: .72em;
  padding: 0 .08em;
}

.intro__hint {
  margin-top: clamp(20px, 4vh, 40px);
  font-size: clamp(15px, 2vh, 18px);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  animation: breathe 2.8s var(--ease-soft) infinite;
  transition: opacity .6s var(--ease-soft);
}

@keyframes breathe {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

/* --- Selve konvolutten --- */
.envelope {
  --w: min(100%, 470px, 52vh);
  position: relative;
  display: block;
  width: var(--w);
  aspect-ratio: 1040 / 676;
  margin-top: clamp(20px, 4vh, 40px);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  perspective: 1600px;
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
  transition: transform 1.2s var(--ease-out);
}
.envelope:focus-visible { outline: 1px solid var(--rose); outline-offset: 10px; }

.env-back,
.env-flap,
.env-flap__outer,
.env-flap__inner,
.env-card-clip,
.env-front,
.env-front__paper {
  position: absolute;
  inset: 0;
  display: block;
}

.env-back {
  z-index: 1;
  background: linear-gradient(rgba(80, 55, 50, .07), rgba(80, 55, 50, .07)), url("../images/konvolutt.jpg") center / cover;
  box-shadow:
    0 1px 2px rgba(60, 40, 40, .08),
    0 18px 40px -12px rgba(60, 40, 40, .25);
  transition: box-shadow .6s var(--ease-soft);
}

.env-liner {
  position: absolute;
  inset: 0;
  display: block;
  /* Kartet er ett sammenhengende motiv over bakvegg + åpen klaff.
     Felles lerret (i cqw = 1 % av konvoluttbredden): 120cqw bredt,
     venstre kant -10cqw, toppkant -44.2cqw over konvoluttens øvre kant. */
  background:
    linear-gradient(rgba(80, 55, 50, .07), rgba(80, 55, 50, 0) 2.2cqw),
    #FFFDFC url("../images/kart-innside.png") -10cqw -44.2cqw / 120cqw auto no-repeat;
}

.env-flap {
  z-index: 5;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.55, .05, .25, 1);
}
.env-flap__outer {
  background: url("../images/konvolutt.jpg") center / cover;
  clip-path: polygon(0 0, 100% 0, 100% 16.5%, 50.5% 78%, 0 10.5%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.env-flap__inner {
  /* Samme lerret som .env-liner, sett fra klaffens innside (forskjøvet én konvolutthøyde) */
  background: #FFFDFC url("../images/kart-innside.png") -10cqw 20.8cqw / 120cqw auto no-repeat;
  clip-path: polygon(0 89.5%, 50.5% 22%, 100% 83.5%, 100% 100%, 0 100%);
  transform: rotateX(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Svak foldskygge mot hengselen på klaffens innside */
.env-flap__inner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.2cqw;
  background: linear-gradient(to top, rgba(80, 55, 50, .05), rgba(80, 55, 50, 0));
}

.env-card-clip {
  z-index: 3;
  clip-path: inset(-140% -10% 0 -10%);
}
.env-card {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 38%;
  height: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6.4cqw;
  color: var(--ink);
  background:
    radial-gradient(130% 90% at 50% 0%, #FFFFFF 0%, #FBF7F2 100%);
  box-shadow: 0 1px 1px rgba(60, 40, 40, .06), 0 -6px 22px -10px rgba(60, 40, 40, .25);
  border-radius: 1px;
  transition: transform 1.6s cubic-bezier(.3, .1, .15, 1);
}
.env-card::before {
  content: "";
  position: absolute;
  inset: 3.2cqw;
  border: 1px solid var(--line);
  pointer-events: none;
}
.env-card__kicker {
  font-size: 2.7cqw;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.env-card__names {
  font-family: var(--script);
  font-size: 8.6cqw;
  line-height: 1.15;
  max-width: 78%;
  margin-top: .8cqw;
}
.env-card__rule {
  display: block;
  width: 12cqw;
  height: 1px;
  margin: 1.2cqw 0 2.2cqw;
  background: var(--rose);
}
.env-card__date {
  font-size: 4.6cqw;
  letter-spacing: .04em;
}
.env-card__place {
  font-size: 2.6cqw;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .6cqw;
}

.env-front {
  z-index: 4;
  filter: drop-shadow(0 -2px 3px rgba(60, 40, 40, .12));
}
.env-front__paper {
  background: url("../images/konvolutt.jpg") center / cover;
  clip-path: polygon(0 10.5%, 50.5% 78%, 100% 16.5%, 100% 100%, 0 100%);
}

.env-seal {
  position: absolute;
  z-index: 6;
  left: 50.5%;
  top: 72%;
  width: 19%;
  translate: -50% -50%;
  filter: drop-shadow(0 2px 2px rgba(90, 60, 60, .25)) drop-shadow(0 8px 14px rgba(90, 60, 60, .18));
  transition: transform .5s var(--ease-out), filter .5s var(--ease-out);
}
.env-seal img { width: 100%; height: auto; }

@media (hover: hover) {
  .intro:not(.is-opening) .envelope:hover { transform: translateY(-4px); }
  .intro:not(.is-opening) .envelope:hover .env-back {
    box-shadow: 0 1px 2px rgba(60, 40, 40, .08), 0 26px 50px -14px rgba(60, 40, 40, .3);
  }
  .intro:not(.is-opening) .envelope:hover .env-seal { transform: scale(1.04); }
}

/* --- Åpningssekvensen --- */
.intro.is-opening .intro__hint { opacity: 0; animation: none; }
.intro.is-opening .env-seal { transform: scale(.96); }
.intro.is-opening .env-flap { transform: rotateX(180deg); }
.intro.is-flap-back .env-flap { z-index: 2; }

.intro.is-opening .intro__head { opacity: 0; transform: translateY(-12px); }
.intro.is-card-out .envelope { transform: translateY(-20%) scale(1.04); }
.intro.is-card-out .env-card { transform: translateY(-104%); }

.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}
.intro.is-leaving .intro__inner {
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-soft);
}

/* =========================================================
   NAVIGASJON
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  color: #fff;
  transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft), box-shadow .5s var(--ease-soft), opacity .8s var(--ease-soft) .4s;
}
body.is-locked .nav { opacity: 0; }

.nav.is-solid {
  color: var(--ink);
  background: rgba(251, 248, 243, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.nav__mark {
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nav__mark .amp { font-size: .6em; }

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav__links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 13px/1 var(--serif);
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav__toggle-lines,
.nav__toggle-lines::before {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease-out);
}
.nav__toggle-lines { position: relative; transform: translateY(-3px); }
.nav__toggle-lines::before { content: ""; position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease-soft), visibility 0s linear .5s;
  }
  .nav__links li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s var(--ease-soft), transform .6s var(--ease-out);
  }
  /* backdrop-filter lager en ny containing block for position:fixed – må av når menyen er åpen */
  .nav.is-open {
    color: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: transparent;
    box-shadow: none;
  }
  .nav__links {
    padding: 0 var(--gutter);
    background:
      radial-gradient(90% 60% at 50% 100%, rgba(243, 224, 225, .7) 0%, rgba(243, 224, 225, 0) 70%),
      var(--ivory);
  }
  .nav__links li { text-align: center; }
  .nav__links a {
    font-family: var(--script);
    font-size: 44px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
  }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-soft); }
  .nav.is-open .nav__links li { opacity: 1; transform: none; }
  .nav.is-open .nav__links li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__links li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__links li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__links li:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__toggle-lines { transform: translateY(0) rotate(45deg); }
  .nav.is-open .nav__toggle-lines::before { transform: translateY(-6px) rotate(-90deg); }
  .nav__mark { position: relative; z-index: 2; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transform: scale(1.14);
  transition: transform 9s cubic-bezier(.15, .6, .25, 1);
}
body.is-ready .hero__media img { transform: scale(1.02); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 38% at 50% 50%, rgba(45, 32, 32, .28) 0%, rgba(45, 32, 32, 0) 100%),
    linear-gradient(180deg, rgba(45, 32, 32, .38) 0%, rgba(45, 32, 32, .12) 38%, rgba(45, 32, 32, .18) 62%, rgba(45, 32, 32, .55) 100%);
}

.hero__content { padding: 0 var(--gutter); }

.hero__kicker {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
}
.hero__names {
  font-family: var(--script);
  font-size: clamp(60px, 9vw, 140px);
  line-height: 1.2;
  margin: .1em 0 .15em;
  text-shadow: 0 2px 30px rgba(40, 25, 25, .25);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  width: 1px;
  height: 56px;
  translate: -50% 0;
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  animation: scrollLine 2.4s var(--ease-soft) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hero-in {
  opacity: 0;
  transform: translateY(18px);
}
body.is-ready .hero-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.4s var(--ease-soft) calc(var(--d, 0s) + .3s), transform 1.6s var(--ease-out) calc(var(--d, 0s) + .3s);
}
body.is-ready .hero__scroll.hero-in { transform: none; }

/* =========================================================
   FELLES SEKSJONER
   ========================================================= */

.section {
  position: relative;
  padding: clamp(88px, 13vw, 168px) 0;
}
.container {
  width: min(100% - 2 * var(--gutter), 1100px);
  margin-inline: auto;
}
.container.narrow { width: min(100% - 2 * var(--gutter), 680px); text-align: center; }

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.script-title {
  font-family: var(--script);
  font-size: clamp(54px, 8vw, 90px);
  line-height: 1.2;
  color: var(--ink);
}
.script-title--sm {
  font-size: clamp(44px, 5.8vw, 64px);
  text-align: center;
  margin: clamp(72px, 10vw, 120px) 0 clamp(36px, 5vw, 56px);
}
.section-note {
  margin-top: 10px;
  font-style: italic;
  color: var(--ink-soft);
}
.lead {
  font-size: clamp(20px, 1.4vw + 13px, 25px);
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
}

/* Avsløring ved scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease-soft) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   VELKOMMEN
   ========================================================= */

.welcome .container { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.welcome__seal {
  width: 78px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 10px rgba(90, 60, 60, .18));
}
.signature {
  margin-top: 8px;
  font-family: var(--script);
  font-size: clamp(34px, 3.4vw, 44px);
  color: var(--rose-deep);
}

/* =========================================================
   NEDTELLING
   ========================================================= */

.countdown {
  position: relative;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  text-align: center;
  background:
    radial-gradient(90% 140% at 15% 0%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(80% 120% at 90% 100%, rgba(232,193,194,.55) 0%, rgba(232,193,194,0) 60%),
    var(--blush-100);
}
.countdown__grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 2.4vw, 32px);
}
.cd { display: flex; flex-direction: column; align-items: center; min-width: 2.4ch; }
.cd__num {
  font-size: clamp(44px, 8.5vw, 96px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: .02em;
}
.cd__sep {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--rose);
}
.cd__label {
  margin-top: 12px;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.countdown__caption {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--script);
  font-size: clamp(34px, 4vw, 48px);
  color: var(--ink);
}

/* =========================================================
   DETALJER
   ========================================================= */

.details__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.arch {
  position: relative;
  margin: 0 auto;
  width: min(100%, 420px);
  text-align: center;
}
.arch img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 54% 50%;
  border-radius: 999px 999px 3px 3px;
  outline: 1px solid var(--line);
  outline-offset: 12px;
}
.arch figcaption {
  margin-top: 40px;
  font-family: var(--script);
  font-size: 40px;
  color: var(--rose-deep);
}

.details__info { display: grid; gap: clamp(44px, 6vw, 64px); text-align: center; }
.info { display: flex; flex-direction: column; align-items: center; }
.info .icon { margin-bottom: 14px; }
.info__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
.info__value {
  font-size: clamp(28px, 2.4vw + 14px, 38px);
  font-weight: 400;
  line-height: 1.25;
}
.info__note {
  margin-top: 6px;
  font-style: italic;
  color: var(--ink-soft);
}

/* =========================================================
   PROGRAM
   ========================================================= */

.program { background: linear-gradient(180deg, var(--ivory) 0%, #F7F3EC 100%); }

.days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 940px;
  margin: 0 auto;
}
.day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 5vw, 56px) 20px clamp(32px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 999px 999px 4px 4px;
  background: rgba(255, 253, 250, .6);
}
.day--main {
  background: linear-gradient(180deg, rgba(243, 224, 225, .75) 0%, rgba(243, 224, 225, .35) 100%);
  border-color: rgba(198, 156, 157, .5);
}
.day .icon { margin-bottom: 16px; }
.day__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.day__date { font-family: var(--script); font-size: 44px; line-height: 1.3; }
.day__what { font-size: 22px; margin-top: 4px; }
.day__time { font-style: italic; color: var(--ink-soft); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  border-top: 1px dashed var(--rose);
  opacity: .6;
}
.moment {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.moment .icon {
  width: 68px;
  height: 68px;
  padding: 10px;
  margin-bottom: 14px;
  background: #F9F6F0;
  border-radius: 50%;
  stroke-width: 1.05;
  color: var(--ink);
  transition: transform .6s var(--ease-out), color .6s var(--ease-soft);
}
@media (hover: hover) {
  .moment:hover .icon { transform: translateY(-4px) rotate(-4deg); color: var(--rose-deep); }
}
.moment__time { font-size: 22px; font-variant-numeric: lining-nums; }
.moment__what {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
/* Kort variant av lange etiketter vises bare på smale skjermer (se RESPONSIV) */
.moment__short { display: none; }

/* =========================================================
   DRESSCODE
   ========================================================= */

.dresscode__theme {
  margin-top: calc(-1 * clamp(24px, 4vw, 44px));
  margin-bottom: 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.swatches {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
  margin-bottom: 44px;
}
.swatches li {
  width: clamp(44px, 9vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), 0 8px 18px -10px rgba(90, 60, 60, .4);
  animation: bob 5s var(--ease-soft) infinite;
  animation-delay: calc(var(--i) * -.9s);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.dress-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(48px, 6vw, 64px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.dress-col p { color: var(--ink-soft); }

.avoid {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 10px;
}
.avoid li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-style: italic; color: var(--ink-soft); }
.avoid__dot {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.avoid__dot::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  top: 50%;
  height: 1px;
  background: var(--ink-soft);
  transform: rotate(-45deg);
}
.avoid__dot--dark::after {
  left: 3px; right: 3px;
  background: rgba(255, 255, 255, .75);
}

/* =========================================================
   MUSIKK
   ========================================================= */

.music { background: linear-gradient(180deg, var(--ivory) 0%, #F7F3EC 100%); }

.playlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: clamp(40px, 6vw, 56px) auto;
  padding: clamp(36px, 5vw, 48px) 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 250, .6);
}
.playlist__disc { margin-bottom: 8px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.playlist__title { font-family: var(--script); font-size: clamp(36px, 4vw, 46px); line-height: 1.2; }
.playlist__note { font-style: italic; color: var(--ink-soft); }
.playlist__status { margin: 18px 0 6px; font-style: italic; color: var(--ink-soft); }
.playlist__status:empty { display: none; }
.tracklist:empty { display: none; }
.track__title a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease-soft); }
.track__title a:hover, .track__title a:focus-visible { border-bottom-color: var(--rose-deep); outline: none; }
.tracklist {
  list-style: none;
  counter-reset: track;
  width: 100%;
  max-width: 520px;
  margin: clamp(22px, 3vw, 32px) 0 clamp(26px, 4vw, 36px);
  padding: 0;
  text-align: left;
}
.tracklist li {
  counter-increment: track;
  display: grid;
  grid-template-columns: 2.2em 1fr;
  grid-template-areas: "n title" "n artist";
  column-gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.tracklist li:last-child { border-bottom: 0; }
.tracklist li::before {
  content: counter(track, decimal-leading-zero);
  grid-area: n;
  align-self: start;
  padding-top: 3px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--rose-deep);
}
.track__title { grid-area: title; font-size: 20px; line-height: 1.25; }
.track__artist { grid-area: artist; font-size: 15px; font-style: italic; color: var(--ink-soft); }
@media (min-width: 560px) {
  .tracklist li {
    grid-template-columns: 2.2em 1fr auto;
    grid-template-areas: "n title artist";
    align-items: baseline;
  }
  .track__artist { text-align: right; }
}
.playlist__link { display: inline-block; text-decoration: none; margin-top: 0; }

.song-form {
  display: grid;
  gap: 22px;
  text-align: left;
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.song-form .info__label { text-align: center; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.field__label em { font-weight: 400; letter-spacing: .05em; text-transform: none; font-size: 16px; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 1.5px solid rgba(148, 105, 106, .6);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 20px/1.4 var(--serif);
  resize: vertical;
  transition: border-color .4s var(--ease-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(110, 98, 100, .7); font-style: italic; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--rose-deep); }

.btn {
  justify-self: center;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 16px 40px;
  border: 1px solid var(--rose-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--rose-deep);
  font: 600 13px/1 var(--serif);
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .5s var(--ease-soft);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose-deep);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn span { position: relative; }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:focus-visible { outline: 1px solid var(--rose); outline-offset: 4px; }
.btn[disabled] { opacity: .6; cursor: default; }

.song-form__status {
  min-height: 1.6em;
  text-align: center;
  font-style: italic;
  color: var(--rose-deep);
  transition: opacity .5s var(--ease-soft);
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   GAVER
   ========================================================= */

.gifts {
  overflow: hidden;
  background: #FFFDFC;
}
.gifts__map {
  position: absolute;
  inset: 0;
  background: url("../images/kart.png") center / contain no-repeat;
  margin: 3% 0;
  opacity: .55;
  mix-blend-mode: multiply;
}
.gifts .container { position: relative; }

/* =========================================================
   SPØRSMÅL
   ========================================================= */

.accordion { text-align: left; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative;
  display: block;
  padding: 24px 52px 24px 0;
  font-size: clamp(20px, 1vw + 15px, 24px);
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color .4s var(--ease-soft);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--rose-deep); }
.qa summary:focus-visible { outline: 1px solid var(--rose); outline-offset: 4px; }
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }

.qa__body { overflow: hidden; }
.qa__body > div { padding: 0 52px 28px 0; color: var(--ink-soft); }
.qa__body a { color: var(--rose-deep); text-underline-offset: 3px; }
.qa__body p + p { margin-top: 1em; }

.tbd {
  background: rgba(232, 193, 194, .38);
  border-radius: 3px;
  padding: 0 .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(80px, 11vw, 140px) var(--gutter) max(80px, env(safe-area-inset-bottom));
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 100%, rgba(194, 196, 178, .45) 0%, rgba(194, 196, 178, 0) 70%),
    var(--blush-100);
}
.footer__seal {
  width: 64px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 10px rgba(90, 60, 60, .2));
}
.footer__names { font-family: var(--script); font-size: clamp(50px, 7vw, 74px); line-height: 1.3; }
.footer__date { letter-spacing: .3em; color: var(--ink-soft); font-size: 15px; }
.footer__note { margin-top: 28px; max-width: 46ch; font-style: italic; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* =========================================================
   RESPONSIV
   ========================================================= */

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .timeline::before { display: none; }
}

@media (max-width: 760px) {
  .details__grid { grid-template-columns: 1fr; }
  .arch { width: min(78%, 340px); }

  .days { grid-template-columns: 1fr; max-width: 320px; }
  .day { border-radius: 150px 150px 4px 4px; padding-top: 36px; }

  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; row-gap: 20px; }
  .moment:nth-child(even) { margin-top: 56px; }
  .moment__long { display: none; }
  .moment__short { display: inline; }

  .dress-cols { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero__media img { object-position: 64% 55%; }
  .hero__names { font-size: clamp(56px, 17vw, 88px); line-height: 1.05; margin: .25em 0 .4em; }
  .hero__names .n, .hero__names .amp { display: block; white-space: nowrap; }
  .hero__names .amp { font-size: .5em; line-height: 1.3; }
  .hero__meta { flex-direction: column; gap: 6px; }
  .hero__meta .dot { display: none; }
}


/* Redusert bevegelse */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal, .hero-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media img { transform: none !important; transition: none !important; }
}
