:root {
  --bg: #f5f5ee;
  --bg-2: #e7e7e0;
  --ink: #16140f;
  --muted: #a39f95;
  --line: #e6e4dc;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.625;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
html[lang="da"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="da"] { display: none !important; }
/* Danish du/I wording: one-guest invitations get html.single */
html:not(.single) .sg, html.single .pl { display: none; }

a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: var(--ink); }

/* fixed corners + centered venue logo */
.corner-left, .corner-right { position: fixed; top: 20px; z-index: 50; }
.corner-left { left: 20px; }
.corner-right { right: 20px; }
footer { display: flex; justify-content: center; padding: 0 20px 64px; }
.venue-logo { width: 144px; display: block; opacity: .8; transition: opacity .15s; }
.venue-logo:hover { opacity: .7; }
.venue-logo img { width: 100%; height: auto; display: block; }

.lang { display: inline-flex; height: 40px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; background: var(--bg); }
.lang button { background: none; border: 0; padding: 0 12px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: white; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 999px;
  background: black; color: white;
  font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: .015rem; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .8; }
.btn[disabled] { opacity: .5; cursor: default; }

/* layout */
.page { max-width: 1168px; margin: 0 auto; padding: 88px 24px 96px; }
.title { max-width: 42rem; text-align: center; }
.greeting { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 0 0 28px; }
.fade-in { animation: fade-in .4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.flights { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0 24px; }
.flight { display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); border-radius: 8px; padding: 14px 16px; text-decoration: none; font-size: 15px; line-height: 1.5; }
.flight { border: 1px solid transparent; transition: border-color .15s; }
.flight:hover { border-color: var(--ink); }
.flight strong { font-size: 18px; font-weight: 600; }
.flight .route { opacity: .6; margin-bottom: 8px; }
.flight .leg { white-space: nowrap; }
.flight .cta { margin-top: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--muted); }
.flight:hover .cta { text-decoration-color: var(--ink); }
@media (min-width: 640px) { .flights { grid-template-columns: repeat(3, 1fr); } }
.header-img { width: 100%; height: auto; display: block; }
.header-img, figure img { mix-blend-mode: multiply; }

.columns { display: flex; flex-direction: column; gap: 40px; margin-top: 56px; }
#site-index { display: none; }
#site-index ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
#site-index li + li { margin-top: 8px; }
#site-index a { text-decoration: none; }
#site-index a:hover { opacity: .6; }
#site-index a.active { font-weight: 600; }
main { width: 100%; min-width: 0; max-width: 42rem; }
.spacer { display: none; width: 10rem; flex-shrink: 0; }

section { scroll-margin-top: 32px; }
section + section { margin-top: 64px; }
#intro + section { margin-top: 120px; } /* let the letter stand alone before the practical part */
h2 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 24px; margin: 0 0 16px; }
h3 { font-size: 18px; font-weight: 600; margin: 24px 0 4px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; }
.signoff { margin-top: 28px; }
/* The letter sits centred under the drawing; the rest of the page stays left-aligned. */
#intro { text-align: center; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin: 6px 0 0; }
input[type="date"] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: white; font: inherit; }

.day { margin-top: 24px; }
.day h3 { margin-top: 0; font-weight: 400; margin-bottom: 12px; }
.timeline { display: grid; grid-template-columns: 128px 1fr; column-gap: 16px; row-gap: 12px; margin: 0; }
.timeline dt { color: var(--muted); }
.timeline dd { margin: 0; }

figure { margin: 32px 0; }
figure img { width: 100%; height: auto; display: block; }


/* RSVP form */
.rsvp-guest { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 12px 0; background: white; }
.rsvp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.rsvp-guest .name { font-weight: 600; flex: 1 1 180px; min-width: 0; }
.rsvp-guest input.plus-name {
  flex: 1 1 180px; width: auto; min-width: 0; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: none; font-weight: 600;
}
.rsvp-guest input.plus-name::placeholder { font-weight: 400; color: var(--muted); }
.rsvp-guest input.plus-name:focus { outline: none; border-bottom-color: var(--ink); }
/* Radios and checkboxes drawn as pills; the real input stays for keyboard and screen readers. */
.seg, .chips { display: inline-flex; flex-wrap: wrap; }
.seg { border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 15px; }
.chips { gap: 8px; margin: 10px 0 8px; }
.seg label, .chips label { position: relative; cursor: pointer; }
.seg input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg .opt { display: block; padding: 7px 16px; }
.chips .opt { display: block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
.seg input:checked + .opt, .chips input:checked + .opt { background: var(--ink); color: white; border-color: var(--ink); }
.seg input:focus-visible + .opt, .chips input:focus-visible + .opt { outline: 2px solid var(--ink); outline-offset: -2px; }
.diet { margin-top: 12px; font-size: 14px; }
.diet summary { cursor: pointer; color: var(--muted); width: fit-content; list-style: none; }
.diet summary::-webkit-details-marker { display: none; }
.diet summary::before { content: "+ "; }
.diet[open] summary::before { content: "\2013  "; }
.diet summary:hover, .diet[open] summary { color: var(--ink); }
label.block { display: block; margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: white; font: inherit; color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
.status { margin-top: 12px; }
.status.err { color: #9b2c2c; }
.status.ok { color: #2f6b3a; }
.hidden { display: none !important; }


@media (max-width: 639px) {
  .corner-left { position: absolute; }
  .header-img, .wide-img { width: calc(100% + 48px); max-width: none; margin: 0 -24px; aspect-ratio: 2 / 1; object-fit: cover; }
  .header-img { object-position: 27% 50%; }
  .wide-img { object-position: 55% 50%; }
  .timeline { grid-template-columns: 86px 1fr; column-gap: 14px; row-gap: 10px; align-items: baseline; }
  .timeline dd { font-size: 17px; }
  .timeline dt { font-size: 14px; font-variant-numeric: tabular-nums; }
  .flights { gap: 0; border-top: 1px solid var(--bg-2); }
  .flight { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 0; align-items: baseline; background: none; border: 0; border-bottom: 1px solid var(--bg-2); border-radius: 0; padding: 12px 0; }
  .flight:hover { border-color: var(--bg-2); }
  .flight strong { grid-column: 1; grid-row: 1; font-size: 17px; }
  .flight strong::after { content: " \2197"; font-weight: 400; }
  .flight .route { grid-column: 1; grid-row: 2; margin: 0; }
  .flight .leg { grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }
  .flight .cta { display: none; }
}
@media (min-width: 640px) {
    .timeline { grid-template-columns: 144px 1fr; column-gap: 24px; }
}
@media (min-width: 768px) {
  .corner-left, .corner-right { top: 32px; }
  .corner-left { left: 32px; }
  .corner-right { right: 32px; }
  .venue-logo { width: 176px; }
  .page { padding-top: 104px; }
  .title { margin-left: 14rem; }
  .columns { flex-direction: row; gap: 64px; }
  #site-index { display: block; position: sticky; top: 48px; z-index: 10; width: 10rem; flex-shrink: 0; align-self: flex-start; padding-top: 4px; }
  section { scroll-margin-top: 96px; }
}
@media (min-width: 1024px) {
  .spacer { display: block; }
}
