/* vigifteross.wtf — round 3, built on draft A (papir) with colour: forest, brass, sage on ivory. */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe9df;
  --ink: #2b2a27;
  --muted: #6f6a61;
  --line: #d9d1c3;
  --sage: #7d8b6a;
  --sage-2: #5f6e50;
  --forest: #1f3028;
  --forest-2: #2a4035;
  --brass: #b08d57;
  --brass-2: #d3b98a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button { font-family: inherit; }
figure { margin: 0; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 980px; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--sage); }
h2 { font: 400 clamp(34px, 7vw, 48px)/1.1 var(--serif); margin: 14px 0 28px; letter-spacing: -.005em; }
h3 { font: 400 24px/1.2 var(--serif); margin: 0 0 6px; }
section { padding: clamp(72px, 12vw, 112px) 0; text-align: center; }
section + section { border-top: 1px solid var(--line); }
section.band, section.program, section.rsvp, section.rsvp + section { border-top: 0; }
.lead { font: 400 clamp(20px, 3vw, 23px)/1.55 var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.todo {
  color: #8a5a3c; font-style: italic; background: #f5e6d7; padding: 0 .3em; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ornament { display: block; width: 72px; height: 14px; margin: 0 auto 22px; color: var(--brass); }

/* ---------- Hero ---------- */
.hero {
  display: grid; min-height: 100svh; background: var(--paper);
}
.hero-text {
  display: grid; place-items: center; text-align: center;
  padding: clamp(56px, 10vh, 96px) 24px clamp(48px, 8vh, 72px);
}
.monogram {
  width: 108px; height: 108px; margin: 0 auto 36px; border: 1px solid var(--brass); border-radius: 50%;
  display: grid; place-items: center; font: italic 400 32px/1 var(--serif); color: var(--brass);
  outline: 1px solid var(--line); outline-offset: 6px;
}
.names { font: 400 clamp(50px, 12vw, 92px)/.95 var(--serif); margin: 22px 0; }
.names em { display: block; font-size: .5em; color: var(--sage); margin: 8px 0; }
.date { font: 400 13px/1.8 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.place { font: italic 400 clamp(20px, 3vw, 23px)/1.4 var(--serif); color: var(--muted); margin-top: 6px; }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 40px;
  font-size: 14px; color: var(--muted);
}
.hero-foot b { font: 500 20px var(--serif); color: var(--ink); }
.hero-foot a { color: var(--sage-2); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; text-decoration: none; align-self: center; }
.hero-foot a:hover { color: var(--ink); }
.hero-photo { position: relative; background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-photo { aspect-ratio: auto; min-height: 100svh; }
  .hero-text { padding: 64px 48px; }
}
body.no-photos .hero-photo, body.no-photos .band, body.no-photos .timeline figure, body.no-photos #bilder { display: none; }
body.no-photos .hero { grid-template-columns: 1fr; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
nav ul {
  display: flex; gap: 22px; list-style: none; margin: 0; padding: 14px 20px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  font: 400 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
nav ul::-webkit-scrollbar { display: none; }
nav li:first-child { margin-left: auto; } nav li:last-child { margin-right: auto; }
nav a { text-decoration: none; color: var(--muted); white-space: nowrap; padding: 4px 0; }
nav a:hover { color: var(--ink); }
nav a.cta { color: var(--sage-2); font-weight: 500; }

/* ---------- Story timeline ---------- */
#oss .kicker { text-align: center; font-style: italic; color: var(--brass); margin: 28px 0 0; }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; position: relative; text-align: left; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-.5px);
}
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year {
  display: block; position: relative; margin: 6px auto 14px; width: max-content; padding: 0 14px; background: var(--paper);
  font: italic 400 clamp(30px, 6vw, 40px)/1 var(--serif); color: var(--brass); text-align: center;
}
.timeline figure {
  background: #fff; padding: 10px 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 30px -14px rgba(60,50,30,.28);
  width: min(100%, 340px); margin: 0 auto; position: relative;
}
.timeline figure img { width: 100%; height: auto; }
.timeline .tl-text { text-align: center; margin: 12px auto 0; max-width: 420px; }
.timeline .tl-text p { margin: 0; font: italic 400 20px/1.5 var(--serif); }
.timeline .final { text-align: center; }
.timeline .final .card {
  background: var(--forest); color: #e9ece7; padding: 32px 24px; width: min(100%, 420px); margin: 0 auto;
  font: 400 22px/1.4 var(--serif);
}
.timeline .final .card b { display: block; font-size: 30px; color: #fff; font-weight: 400; }
.timeline .final .card small { display: block; font: 400 12px/1.8 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); margin-top: 10px; }
@media (min-width: 760px) {
  .timeline li:not(.final) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: center; }
  .timeline li:not(.final) .year { grid-column: 1 / -1; }
  .timeline figure { width: min(100%, 300px); }
  .timeline li { padding-bottom: 0; }
  /* Pull each photo up beside the previous one: the columns alternate, so they interlock. */
  .timeline li:not(.final):not(:has(.year)) { margin-top: -56px; }
  .timeline li.final { padding-top: 32px; }
  .timeline li:nth-child(odd):not(.final) figure { grid-column: 1; margin: 0 0 0 auto; transform: rotate(-1.2deg); }
  .timeline li:nth-child(odd):not(.final) .tl-text { grid-column: 2; text-align: left; margin: 0; }
  .timeline li:nth-child(even):not(.final) figure { grid-column: 2; grid-row: 2; margin: 0 auto 0 0; transform: rotate(1.1deg); }
  .timeline li:nth-child(even):not(.final) .tl-text { grid-column: 1; grid-row: 2; text-align: right; margin: 0; }
}

/* ---------- Wide photo band ---------- */
.band { position: relative; padding: 0; height: clamp(320px, 62vh, 620px); overflow: hidden; background: var(--forest); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.band .band-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 24px 32px;
  background: linear-gradient(to top, rgba(20,30,25,.72), rgba(20,30,25,0));
  color: #fff; font: italic 400 clamp(24px, 4vw, 34px)/1.3 var(--serif); text-align: center;
}

/* ---------- Program ---------- */
.program { background: var(--forest); color: #e6e9e4; }
.program .eyebrow { color: var(--brass-2); }
.program h2 { color: #fff; }
.schedule { list-style: none; padding: 0; margin: 0 auto; max-width: 460px; text-align: left; }
.schedule li { display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.schedule li:last-child { border-bottom: 0; }
.schedule time { font: 400 26px/1.15 var(--serif); color: var(--brass-2); }
.schedule b { display: block; font: 400 24px/1.2 var(--serif); color: #fff; }
.schedule small { color: #adb8b1; font-size: 15px; line-height: 1.5; display: block; margin-top: 2px; }
.program .note { color: #adb8b1; font-size: 15px; margin: 32px auto 0; max-width: 460px; }
.program .todo { background: rgba(255,255,255,.1); color: var(--brass-2); }

/* ---------- Venue / info ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; text-align: left; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.cards > div { background: var(--paper); padding: 30px 28px; }
.cards p { margin: 0; font-size: 16px; }
.cards p + p { margin-top: 10px; }
.cards ul { margin: 8px 0 0; padding-left: 18px; font-size: 16px; }
.cards .tag { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage-2); margin-bottom: 8px; }
.maplink { display: inline-block; margin-top: 6px; }

/* ---------- Gallery: deck + grid ---------- */
.deck { margin: 48px auto 0; max-width: 340px; }
.deck .track { position: relative; aspect-ratio: 4 / 5; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.deck .track:active { cursor: grabbing; }
.deck .slide {
  position: absolute; inset: 0; margin: 0; background: #fff; padding: 12px 12px 46px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 30px -12px rgba(60,50,30,.3);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s;
}
@media (prefers-reduced-motion: reduce) { .deck .slide { transition: none; } }
.deck .slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: var(--paper-2); }
.deck .slide figcaption, .lightbox figcaption { display: none; }
.deck .slide figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; font: italic 17px/1.3 var(--serif); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.deck-ctrl { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 34px; }
.deck-ctrl button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink);
  font-size: 16px; cursor: pointer;
}
.deck-ctrl button:hover { border-color: var(--sage); }
.deck-ctrl span { font-size: 12px; letter-spacing: .2em; color: var(--muted); min-width: 64px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.linkbtn { background: none; border: 0; color: var(--sage-2); font: 400 14px var(--sans); cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.grid-toggle { margin-top: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 28px auto 0; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 8px; } }
.grid[hidden] { display: none; }
.grid button { padding: 0; border: 0; background: var(--paper-2); aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid button:hover img { transform: scale(1.04); }
.grid button:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 26, 22, .92); }
.lightbox .lb-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px 64px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #cfd6d0; font: italic 18px var(--serif); padding: 0 72px; }
.lightbox button {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25); color: #fff; font-size: 18px; cursor: pointer; z-index: 2;
}
.lightbox button:hover { background: rgba(255,255,255,.15); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- RSVP ---------- */
.rsvp { background: var(--paper-2); border-top: 3px solid var(--sage); }
.rsvp .intro { max-width: 520px; margin: 0 auto 8px; }
form { text-align: left; margin-top: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.step { margin-top: 36px; }
.step legend { display: flex; align-items: center; gap: 10px; font: italic 400 23px/1.2 var(--serif); color: var(--ink); padding: 0; margin-bottom: 8px; }
.step legend small, label small { font: 300 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.step-no { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--sage); color: var(--sage-2); font: normal 400 13px var(--sans); }
.step > .help { margin: 0 0 14px; }
.guest { background: var(--paper); border: 1px solid var(--line); padding: 18px; margin-top: 12px; display: grid; gap: 14px; }
.guest-head { display: flex; justify-content: space-between; align-items: baseline; }
.guest-head > span { font: italic 21px var(--serif); }
label, .lbl { display: block; font-size: 14px; font-weight: 400; letter-spacing: .03em; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font: 300 17px var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); padding: 10px 12px; border-radius: 3px; -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #a39c90; }
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%236f6a61' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sage-2); box-shadow: 0 0 0 2px rgba(125,139,106,.25); }
input:user-invalid { border-color: #b5533c; }
.choice { display: flex; gap: 10px; }
.choice label { flex: 1; margin: 0; letter-spacing: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
  font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.choice span:hover { border-color: var(--sage-2); }
.choice input:checked + span { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.choice span small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.choice input:checked + span small { color: var(--brass-2); }
.grid-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grid-choice { grid-template-columns: repeat(3, 1fr); } }
.addbtn { margin-top: 12px; width: 100%; padding: 12px; background: transparent; border: 1px dashed var(--sage); border-radius: 3px; color: var(--sage-2); font: 500 15px var(--sans); cursor: pointer; }
.addbtn:hover { background: #fff; color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); flex: none; }
.amount { display: flex; align-items: center; gap: 10px; max-width: 220px; }
.contrib-amount[hidden] { display: none; }
.choice input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.field { margin-top: 24px; }
.field .help { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.contrib-text[hidden] { display: none; }
.turnstile { margin-top: 28px; min-height: 65px; }
.submit {
  margin-top: 28px; width: 100%; padding: 17px; border: 0; background: var(--forest); color: #fff;
  font: 500 13px var(--sans); letter-spacing: .25em; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.submit:hover { background: var(--forest-2); }
.submit[disabled] { opacity: .6; cursor: wait; }
.rsvp-done, .rsvp-fail { font: 400 24px/1.45 var(--serif); margin-top: 24px; }
.rsvp-fail { background: #fff; border: 1px solid var(--line); padding: 28px 24px; text-align: left; }
.rsvp-fail p { margin: 0 0 12px; }
.rsvp-fail .btn {
  display: inline-block; margin-top: 8px; padding: 12px 22px; background: var(--forest); color: #fff; text-decoration: none;
  font: 500 12px var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.rsvp .after { margin-top: 28px; font-size: 14px; color: var(--muted); }
.error { color: #b5533c; font-size: 14px; margin-top: 12px; }

/* ---------- English + footer ---------- */
.en p { max-width: 560px; margin: 0 auto 16px; }
.en ul { text-align: left; max-width: 560px; margin: 0 auto; padding-left: 20px; }
footer { background: var(--forest); color: #c9d1cb; padding: 64px 24px 72px; text-align: center; }
footer .mono { font: 400 40px var(--serif); color: #fff; }
footer .mono em { color: var(--brass-2); }
footer .date { color: #c9d1cb; margin-top: 8px; }
footer a { color: #fff; text-decoration-color: var(--brass); }
footer p { margin: 18px 0 0; font-size: 14px; }
