/* Kjersti & Håkon — bryllupssiden
   Layout: følger brudeparets skisse. Himmelblå hero med blomstereng,
   lyseblå og hvite bånd, program i lyseblått, bildestripe i krem. */

:root {
    --sky-top: #7aa9e8;
    --sky-low: #d4e5f8;
    --blue: #bcd5f5;
    --blue-deep: #2f5a9a;
    --white: #ffffff;
    --cream: #f7efdf;
    --ink: #2b2724;
    --ink-soft: #5a534d;
    --line: rgba(43, 39, 36, 0.28);
    --coral: #b5442f;

    --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
    --f-display: 'Gilda Display', 'Didot', Georgia, serif;
    --f-body: 'Courier Prime', 'Courier New', ui-monospace, monospace;
    --f-label: 'Jost', 'Futura', 'Helvetica Neue', sans-serif;

    --gutter: clamp(20px, 5vw, 64px);
    --wrap: 1180px;
    --band-y: clamp(72px, 10vw, 140px);
    --tabbar-h: 56px;

    /* programme sky, repainted from the sun's position as you scroll */
    --sky-top: #8eaee2;
    --sky-bot: #f6d4a8;
    --sky-ink: #2b2724;
    --sky-ink-soft: rgba(43, 39, 36, 0.74);
    --trees: #2a3a34;
    --sun-x: 70%;
    --sun-y: 40%;
    --sun-glow: 0.5;
    --sun-color: #fff3d6;

    color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tabbar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--ink); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); }
.band-blue { background: var(--blue); }
.band-white { background: var(--white); }
.band-cream { background: var(--cream); }

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

.h-caps {
    font-family: var(--f-display);
    font-size: clamp(22px, 2.3vw, 30px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

h3 {
    font-family: var(--f-display);
    font-size: 19px;
    line-height: 1.3;
    margin-top: 28px;
    margin-bottom: 8px;
}

.text-link {
    color: var(--blue-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Placeholder chips for info the couple still has to send */
.fyll {
    color: var(--coral);
    font-family: var(--f-display);
    font-size: 1.05em;
    border-bottom: 1px dashed currentColor;
    white-space: nowrap;
}

/* ============ TABS ============ */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; }
.skip:focus { top: 12px; }

.tabbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--white) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 39, 36, 0.12);
    padding-top: env(safe-area-inset-top, 0px);
}
.tabbar ul {
    list-style: none;
    margin: 0 auto;
    padding: 0 12px;
    height: var(--tabbar-h);
    max-width: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 2.4vw, 28px);
}
.tabbar a {
    display: block;
    padding: 9px clamp(6px, 1.6vw, 14px);
    font-family: var(--f-label);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
}
.tabbar a:hover { color: var(--blue-deep); }
.tabbar a[aria-current] { color: var(--blue-deep); border-bottom-color: var(--blue-deep); }
/* the one thing every guest has to do stands out */
.tabbar a.tab-svar { background: var(--ink); color: var(--white); border-radius: 999px; border-bottom: 0; padding-inline: clamp(12px, 2.4vw, 20px); }
.tabbar a.tab-svar:hover { background: var(--blue-deep); color: var(--white); }
.tabbar a.tab-svar[aria-current] { background: var(--blue-deep); box-shadow: 0 0 0 3px rgba(47, 90, 154, 0.25); }


/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky-top) 0%, #94bdf0 38%, #b9d5f6 62%, var(--sky-low) 80%, #e9f1f8 100%);
    color: var(--white);
    padding-top: clamp(16px, 3vw, 32px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-top: clamp(20px, 3vw, 36px);
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: 0 24px 48px -24px rgba(31, 62, 110, 0.45);
}

/* the photo-booth strip from the invitation: tall and narrow, so it is
   sized by height and the grid column shrinks to fit it */
.hero-strip { justify-self: center; margin: 0; }
.hero-strip img {
    display: block;
    height: min(46vh, 500px);
    width: auto;
    aspect-ratio: 352 / 1800;
    object-fit: contain;
    box-shadow: 0 24px 48px -24px rgba(31, 62, 110, 0.45);
}
/* desktop: names on the page's centre line (same as the menu and the
   text below), the strip centred in the free space to their left */
@media (min-width: 901px) {
    .hero-inner:has(.hero-strip) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
    .hero-strip { grid-column: 1; }
    .hero-strip + .hero-title { grid-column: 2; }
}

.hero-title { text-align: center; padding-top: clamp(8px, 3vw, 40px); }
.hero-title h1 { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-title .script {
    font-size: clamp(64px, 7.6vw, 120px);
    line-height: 1.05;
    text-shadow: 0 2px 30px rgba(40, 80, 140, 0.25);
    white-space: nowrap;
}
.hero-title .amp { font-size: 0.8em; }
.hero-title .caps {
    font-family: var(--f-display);
    font-size: clamp(22px, 2.6vw, 34px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding-left: 0.32em; /* optical centring of tracked caps */
}

.hero-meta {
    margin-top: clamp(28px, 4vw, 48px);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px clamp(28px, 5vw, 72px);
    font-family: var(--f-label);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 1px 14px rgba(28, 66, 124, 0.45);
}


/* ============ ENG ============ */
/* The meadow is the hero's backdrop: the canvas covers the whole hero,
   and main.js tilts its camera so the horizon lands on top of
   .hero-ground. pan-y keeps the page scrolling on phones; a sideways
   drag moves through the flowers. */
.hero { touch-action: pan-y; }
.hero .meadow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-ground { position: relative; z-index: 1; height: clamp(280px, 42vh, 460px); margin-top: clamp(32px, 6vw, 84px); } /* room for the treetops under the date line */
.meadow-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: 0; transition: opacity .6s; }
.hero.no-webgl .meadow-fallback { opacity: 1; }
.hero.no-webgl .meadow { display: none; }
.eng-hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    margin: 0;
    padding: 7px 14px;
    font-family: var(--f-label);
    font-size: 13px;
    color: #fffaf0;
    background: rgba(28, 35, 71, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .8s;
}
.eng-hint.is-gone { opacity: 0; }
.hero.no-webgl .eng-hint { display: none; }
.eng-hint { z-index: 2; bottom: calc(clamp(64px, 9vh, 110px) + 10px); } /* just above the fade */

/* No hard edge between meadow and the blue band below: the nearest
   flowers dissolve into the band colour like a haze over the grass
   (eased stops, so there is no visible line where the fade starts),
   The fade is on top of the canvas but ignores the pointer, so dragging
   still works. */
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    height: clamp(64px, 9vh, 110px);
    pointer-events: none;
    background: linear-gradient(180deg,
        rgb(188 213 245 / 0) 0%,
        rgb(188 213 245 / 0.08) 35%,
        rgb(188 213 245 / 0.3) 60%,
        rgb(188 213 245 / 0.7) 85%,
        rgb(188 213 245 / 1) 100%);
}
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }

/* ============ INTRO ============ */
.intro { text-align: center; padding-inline: var(--gutter); padding-bottom: clamp(56px, 7vw, 96px); }
.intro-row {
    display: grid;
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 64px);
    max-width: 960px;
    margin-inline: auto;
}
.intro-side {
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.1;
    color: var(--ink);
}
.intro-row .intro-side:first-child { text-align: right; }
.intro-row .intro-side:last-child { text-align: left; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.intro-lede {
    margin: clamp(48px, 6vw, 72px) auto 0;
    max-width: 34ch;
    font-family: var(--f-display);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.45;
    text-wrap: balance;
}
.intro-note {
    margin: 20px auto 0;
    max-width: 44ch;
    text-wrap: balance;
}
.deadline { margin-top: 18px; }
.deadline + .btn-big { margin-top: 14px; }
.countdown {
    margin-top: 14px;
    font-family: var(--f-label);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-deep);
    min-height: 1.7em;
}

/* the couple's KH monogram, drawn from assets/monogram.svg */
.monogram {
    display: block;
    width: 64px;
    height: 68px;
    margin: 44px auto 0;
    color: var(--ink);
}
.hero-mono {
    display: block;
    width: clamp(58px, 6vw, 80px);
    height: auto;
    aspect-ratio: 355 / 378;
    margin: 0 auto 18px;
    color: var(--ink);
}

.facts {
    margin: 36px auto 0;
    max-width: 640px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block: 1px solid var(--line);
}
.facts div { padding: 16px 12px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 18px; line-height: 1.3; }
.btn.btn-big { display: inline-block; margin-top: 32px; padding: 16px 44px; font-size: 15px; text-decoration: none; }
.intro-links { margin-top: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }

/* ============ SVAR (own tab) ============ */
.svar-wrap { max-width: 680px; }
.svar-page .svar > p { font-size: 16px; }

/* ============ STED ============ */
.sted { padding-bottom: clamp(40px, 6vw, 80px); }
.sted-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.sted-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    /* feathered, painterly edge to echo the watercolour in the sketch */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='4' seed='8'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='14'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3Crect x='14' y='14' width='272' height='172' rx='10' filter='url(%23f)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='4' seed='8'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='14'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3Crect x='14' y='14' width='272' height='172' rx='10' filter='url(%23f)'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.sted-photo figcaption {
    margin-top: 6px;
    text-align: center;
    font-family: var(--f-label);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.sted-text { max-width: 58ch; }
.sted-text .h-caps { margin-bottom: 4px; }
.sted-text p + p { margin-top: 10px; }

/* ============ PRAKTISK + SVAR ============ */
.praktisk { padding-top: clamp(32px, 4vw, 56px); }
.praktisk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "info bidrag";
    gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px);
}
.praktisk-info { grid-area: info; max-width: 54ch; }
.praktisk-info h3:first-child { margin-top: 0; }
.praktisk-info p + p { margin-top: 4px; }
.dress { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.dress strong { font-weight: 700; }
.daisy { grid-area: daisy; justify-self: center; align-self: center; width: min(380px, 100%); }
.daisy img { mix-blend-mode: multiply; }
.svar { min-width: 0; }
.bidrag { grid-area: bidrag; max-width: 54ch; align-self: start; }
.svar > p, .bidrag > p { margin-top: 14px; }

.checklist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: baseline; cursor: pointer; }
.checklist input {
    appearance: none;
    flex: none;
    width: 15px; height: 15px;
    margin: 0;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    transform: translateY(2px);
    display: grid; place-content: center;
    cursor: pointer;
}
.checklist input::after {
    content: "";
    width: 9px; height: 5px;
    border-left: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: transform .15s ease;
}
.checklist input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--coral); color: var(--ink-soft); }

.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contacts .name { font-family: var(--f-display); font-size: 17px; margin-right: 6px; }

.betaling {
    margin-top: 36px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: #fbfcfe;
}
.betaling h3 { margin-top: 0; }
.betaling p + p { margin-top: 6px; }

.pay { margin: 18px 0; display: grid; gap: 0; border-block: 1px solid var(--line); }
.pay div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; }
.pay div + div { border-top: 1px solid var(--line); }
.pay dt { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.pay dd { margin: 0; }
.important { padding-left: 14px; border-left: 3px solid var(--coral); }
.wishlist-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.paid-field .hint { margin: 0 0 10px; }

/* ---- RSVP form ---- */
.rsvp { margin-top: 24px; display: grid; gap: 22px; }
.guest {
    display: grid;
    gap: 16px;
    padding: 20px 20px 22px;
    background: #f2f7fd;
    border: 1px solid #d6e4f5;
    position: relative;
}
.guest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.guest-head h3 { margin: 0; font-size: 18px; }
.guest-remove {
    font: inherit; font-size: 13px;
    background: none; border: 0; padding: 4px 0;
    color: var(--coral); cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field legend {
    font-family: var(--f-label);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0;
}
.opt { text-transform: none; letter-spacing: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px; /* avoids iOS zoom */
    color: var(--ink);
    background: var(--white);
    border: 1px solid #bccbdc;
    border-radius: 0;
    padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(47, 90, 154, 0.15); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.hint { font-size: 13px; color: var(--ink-soft); }

.sub-label { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #bccbdc;
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.choices.invalid .choice span { border-color: var(--coral); }

.btn, .btn-ghost {
    font-family: var(--f-label);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    justify-self: start;
}
.btn {
    padding: 14px 30px;
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost {
    padding: 10px 0;
    background: none;
    border: 0;
    color: var(--blue-deep);
    text-decoration: underline;
    text-underline-offset: 5px;
    letter-spacing: 0.1em;
}
.form-error { color: var(--coral); font-size: 14px; }

.rsvp-done { margin-top: 24px; padding: 22px; background: #f2f7fd; border: 1px solid #d6e4f5; display: grid; gap: 12px; }
.rsvp-done h3 { margin: 0; }
.rsvp-done ul { margin: 0; padding-left: 18px; }

/* ============ GALLERI ============ */
.galleri { padding-inline: var(--gutter); }
.galleri-row {
    max-width: 1060px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: clamp(16px, 3vw, 48px);
    align-items: center;
}
.galleri-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.galleri-row .mid img { aspect-ratio: 4 / 5.4; }
.galleri-row .strip { justify-self: center; }
.galleri-row .strip img { width: auto; height: clamp(380px, 46vw, 560px); aspect-ratio: auto; object-fit: contain; }

/* ============ GAVE ============ */
.gave-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
    position: relative;
}
.gave-art {
    background: #f5f2ec;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 40px -28px rgba(31, 62, 110, 0.5);
}
.gave-art img { width: 52%; }
.gave-title {
    font-family: var(--f-display);
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.3;
    color: #1f4580;
    margin-bottom: 20px;
}
.gave-text p + p { margin-top: 12px; }
.gave-text { max-width: 54ch; }
.wishlist { margin-top: 28px; display: flex; gap: 18px; align-items: center; }
.wishlist img { width: 96px; height: 96px; padding: 8px; background: var(--white); }
.wishlist-label {
    font-family: var(--f-label);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.monogram-end { position: absolute; right: var(--gutter); bottom: calc(-1 * var(--band-y) + 32px); margin: 0; }

.site-footer {
    background: var(--blue);
    border-top: 1px solid rgba(43, 39, 36, 0.12);
    padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-family: var(--f-label);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    display: grid;
    gap: 6px;
}
.site-footer .credits { font-size: 11px; color: var(--ink); opacity: .78; }
.band-blue .fyll { color: #8f2f1e; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .sted-grid { grid-template-columns: 1fr; }
    .praktisk-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "info" "bidrag";
    }
    .daisy { width: min(300px, 80%); }
    .gave-grid { grid-template-columns: 1fr; }
    .gave-art { width: min(320px, 80%); justify-self: center; }
    .monogram-end { position: relative; right: auto; bottom: auto; justify-self: end; margin-top: 8px; }
}

@media (max-width: 900px) {
    .hero { min-height: 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; justify-items: center; padding-top: 28px; }
    .hero-title { order: -1; padding-top: 0; }
    .hero-title .script { font-size: clamp(54px, 13vw, 104px); }
    .hero-photo { width: min(320px, 70vw); }
    .hero-photo.hero-strip { width: auto; }
    .hero-strip img { height: min(42vh, 440px); }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .facts { grid-template-columns: 1fr; }
    .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
    .facts div { padding: 12px 4px; }
    .hero-title .script { font-size: clamp(54px, 15vw, 76px); }
    .hero-meta { flex-direction: column; gap: 4px; margin-top: 22px; font-size: 12px; }
    .hero-photo { width: min(270px, 70vw); }
    .hero-photo.hero-strip { width: auto; }
    .hero-strip img { height: min(36vh, 320px); }
    .hero-inner { gap: 20px; padding-top: 16px; }
    .hero-ground { height: clamp(220px, 32vh, 300px); margin-top: 32px; }

    .intro-row { grid-template-columns: 1fr; gap: 18px; }
    .intro-row .intro-side:first-child, .intro-row .intro-side:last-child { text-align: center; }
    .intro-photo { width: min(260px, 64vw); margin-inline: auto; }

    .galleri-row { grid-template-columns: 1fr 1fr; }
    .galleri-row .mid { grid-column: 1 / -1; grid-row: 1; width: min(420px, 100%); justify-self: center; }

    .row-2 { grid-template-columns: 1fr; }
    .guest { padding: 16px; }
}

@media (max-width: 480px) {
    .tabbar ul { padding: 0 8px; gap: 10px; justify-content: center; }
    .tabbar a { font-size: 13px; letter-spacing: 0.1em; padding-inline: 10px; }
    .tabbar a.tab-svar { padding-inline: 18px; }
}
@media (max-width: 350px) {
    .tabbar a { font-size: 11px; letter-spacing: 0.02em; padding-inline: 5px; }
}
.drinks { margin-top: 18px; }

/* the couple's own photos (assets/foto) */
.sted-photo.akvarell img { aspect-ratio: auto; object-fit: contain; -webkit-mask-image: none; mask-image: none; mix-blend-mode: multiply; }
.daisy.bath img { mix-blend-mode: normal; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px -28px rgba(31, 62, 110, 0.5); }

/* svarskjema: store, tydelige felt så alle aldre kan fylle det inn */
.rsvp input[type="text"], .rsvp input[type="email"], .rsvp textarea { font-size: 17px; }
.rsvp input[type="text"], .rsvp input[type="email"] { min-height: 50px; }
.rsvp .choice span { min-width: 96px; min-height: 50px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.rsvp legend, .rsvp label:not(.choice) { font-size: 16px; }
.rsvp .guest h3 { font-size: 20px; }
.rsvp .hint { margin: 2px 0 8px; }
.rsvp input.invalid, .rsvp textarea.invalid { border-color: var(--coral); }
.rsvp .hint { font-size: 15px; line-height: 1.5; }

/* ============ PARETS BILDER ============ */
/* the sketch's drawings are replaced by their own photos */
.gave-art.photo { background: none; aspect-ratio: auto; box-shadow: none; display: block; margin: 0; max-width: 400px; justify-self: end; }
.gave-art.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px -28px rgba(31, 62, 110, 0.5); }
.galleri-row figure:first-child img { object-position: 40% center; }

/* ============ SVAR-SIDEN (svar.html) ============ */
/* Light and plain so every guest can fill it in on a phone: one card per
   person, large Ja/Nei buttons side by side, one wide send button. */
.page-svar { min-height: 100svh; display: flex; flex-direction: column; background: var(--blue); }
.page-svar main { flex: 1; }
.svar-page { background: var(--blue); }
.svar-page .svar-wrap { max-width: 560px; }
.svar-page .svar > p { font-size: 17px; }
.svar-page .hint { font-family: var(--f-label); font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 6px; }
.svar-page .rsvp { gap: 18px; }
#guests { display: grid; gap: 18px; }
.svar-page .guest, .svar-page .field.paid-field {
    display: grid; gap: 18px; margin: 0;
    background: var(--white);
    border: 1px solid rgba(43, 39, 36, 0.14);
    border-radius: 10px;
    padding: 20px;
}
.svar-page .field.paid-field > legend { float: left; width: 100%; margin-bottom: 8px; }
.svar-page .field.paid-field > legend + * { clear: both; }
.svar-page .guest-head h3 { font-family: var(--f-display); font-size: 24px; font-weight: 400; }
.svar-page .field > label, .svar-page .field > legend { font-family: var(--f-label); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 0; }
.svar-page .opt { font-weight: 400; color: var(--ink-soft); }
.svar-page .field input[type="text"], .svar-page .field input[type="email"], .svar-page .field textarea {
    font-family: var(--f-label); font-size: 18px; color: var(--ink);
    background: var(--white); border: 1.5px solid rgba(43, 39, 36, 0.35); border-radius: 6px;
    box-sizing: border-box; width: 100%; padding: 0 14px;
}
.svar-page .field input[type="text"], .svar-page .field input[type="email"] { height: 52px; }
.svar-page .field textarea { padding-block: 12px; min-height: 84px; }
.svar-page .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svar-page .choice { display: block; }
.svar-page .choice span {
    display: flex; align-items: center; justify-content: center;
    height: 56px; box-sizing: border-box; padding: 0;
    font-family: var(--f-label); font-size: 18px; font-weight: 500;
    background: var(--white); border: 1.5px solid rgba(43, 39, 36, 0.35); border-radius: 8px;
}
.svar-page .choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.svar-page #add-guest { width: 100%; height: 56px; border: 1.5px dashed rgba(43, 39, 36, 0.45); border-radius: 8px; background: transparent; }
.svar-page #rsvp-submit { width: 100%; height: 60px; }
.svar-page .rsvp-done { background: var(--white); border-radius: 10px; }
.svar-page .betaling { background: var(--white); border-radius: 10px; }
@media (max-width: 420px) { .svar-page .row-2 { grid-template-columns: 1fr; } }

/* ============ MOBIL ============ */
/* each toastmaster on their own lines: name, phone, e-mail */
.contacts { gap: 14px; }
.contacts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.contacts .name { flex-basis: 100%; }
@media (max-width: 760px) {
    /* the script names must fit inside the screen with some air */
    .hero-title .script { font-size: clamp(44px, 12.5vw, 76px); }
    /* account label above the number instead of squeezed beside it */
    .pay div { grid-template-columns: 1fr; gap: 2px; }
    /* photo row: the photo-booth strip centred on top, the two photos side by side under it */
    .galleri-row .mid.strip { width: auto; justify-self: center; }
    .galleri-row .strip img { height: 420px; }
}

@media (max-width: 860px) { .gave-art.photo { justify-self: center; width: min(320px, 80%); } }
.site-footer .footer-mono { margin: 0 auto; width: 48px; height: 52px; }


/* three quiet groups, told apart by a faint change of colour:
   stay and travel (white) / dress and packing (pale blue) / toastmasters (white) */
.band-tint { background: #eef4fc; }
.praktisk { padding-top: var(--band-y); }
.praktisk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info"; max-width: 680px; }
.toast-wrap { max-width: 680px; }
.praktisk-info .h-caps, .bidrag .h-caps { margin-bottom: 14px; }
.sted .sted-grid { max-width: 1360px; }

/* ============ PROGRAM / SKY ============ */
.program { position: relative; color: var(--sky-ink); transition: color .6s; }
/* Sticky layers live inside absolute wrappers the size of the section,
   so they can never travel past its edges. */
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer-sky { z-index: 0; }
.layer-horizon { z-index: 2; }
.sky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
}
.sky-fill {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 226, 180, var(--sun-glow)) 0, rgba(255, 226, 180, 0) 38vmax),
        linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 80%);
}
.sun {
    position: absolute;
    left: var(--sun-x); top: var(--sun-y);
    width: clamp(46px, 5vw, 72px); aspect-ratio: 1;
    margin: calc(clamp(46px, 5vw, 72px) / -2) 0 0 calc(clamp(46px, 5vw, 72px) / -2);
    border-radius: 50%;
    background: radial-gradient(circle, #fffdf6 0 45%, var(--sun-color) 62%, transparent 72%);
    filter: blur(.4px);
}
.layer-horizon { display: flex; flex-direction: column; justify-content: flex-end; }
.horizon {
    position: sticky;
    bottom: 0;
    height: var(--horizon-h);
}
.program { --horizon-h: clamp(44px, 7vh, 72px); }
.trees { display: block; width: 100%; height: 100%; fill: var(--trees); transition: fill .6s; }


.program-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(160px, 30vh, 320px);
}
.program-head { max-width: 46ch; margin-bottom: clamp(60px, 12vh, 140px); }
.program-head p { margin-top: 20px; color: var(--sky-ink-soft); }

.day + .night-note, .night-note + .day { margin-top: 0; }
.day-title {
    font-family: var(--f-display);
    font-optical-sizing: auto;
    font-size: clamp(36px, 4.6vw, 68px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: clamp(24px, 5vh, 48px);
}
.day-title em { font-style: italic; }
.events { list-style: none; padding: 0; margin: 0; }
.event {
    display: grid;
    grid-template-columns: minmax(8.6em, 10em) minmax(0, 34em) minmax(0, 1fr);
    gap: 0 clamp(20px, 3vw, 44px);
    align-items: start;
    min-height: clamp(76px, 12vh, 120px);
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--sky-ink) 22%, transparent);
    transition: border-color .6s;
}
.event time {
    font-family: var(--f-display);
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.15;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}
.event h4 {
    font-family: var(--f-display);
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.event p { margin-top: 8px; color: var(--sky-ink-soft); max-width: 44ch; transition: color .6s; }
.event.is-key h4 { font-style: italic; font-size: clamp(32px, 3.6vw, 54px); }
.night-note {
    max-width: 30ch;
    margin: clamp(80px, 20vh, 200px) 0 clamp(120px, 40vh, 380px) auto;
    font-family: var(--f-display);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.3;
    text-align: right;
}
.night-note em { font-style: italic; }
.day { margin-top: 0; }

.program-head p { margin-top: 14px; color: var(--sky-ink-soft); font-style: italic; }
.event h4, .day-title { margin: 0; font-weight: 400; }
.day-title { margin-bottom: clamp(24px, 5vh, 48px); }
.event p { margin-bottom: 0; }
.program-end { margin-top: 48px; font-family: var(--f-display); font-size: 19px; color: var(--sky-ink-soft); }

@media (max-width: 640px) {
    .event {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-block: 16px 30px;
    }
    .event time { font-size: 18px; }
}

/* Open sky between the days: dusk, the light summer night and sunrise
   play out here, with nothing to read, so every line of the programme
   sits under the light that suits it. */
.program .night { position: relative; height: clamp(170px, 32vh, 300px); }
.program .night span { position: absolute; left: 0; }
.program .night span:nth-child(1) { top: 0; }
.program .night span:nth-child(2) { top: 12%; }
.program .night span:nth-child(3) { top: 24%; }
.program .night span:nth-child(4) { top: 36%; }
.program .night span:nth-child(3):last-child { top: 36%; }
.program .event { min-height: clamp(84px, 14vh, 140px); }
.program-inner { text-shadow: var(--sky-shadow, none); }

/* after sending: an obvious way back to the site */
.done-actions { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.done-actions .btn { display: inline-block; text-decoration: none; text-align: center; }
@media (max-width: 760px) { .done-actions .btn { flex: 1 1 100%; padding-block: 16px; } }
