/*
  Colour and type tokens live here. To re-theme the whole site, change the values in :root
  (light) and the two dark blocks. When you have your hero photo, pull the accent and
  background tones from it.
*/
:root {
  /* Taken from the photos: overcast sky, ripe wheat, and the near-black of his jacket. */
  --bg: #ebebea;
  --surface: #f8f8f6;
  --fg: #1c1713;
  --muted: #5e5750;
  --line: #d3d1cc;
  --accent: #8a5f2d;
  --accent-fg: #ffffff;
  --brass: #7a5624;
  --arch: #1c1713;
  --arch-fg: #ebebea;
  --danger: #b3402f;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --surface: #201b16;
    --fg: #ece9e3;
    --muted: #ada69b;
    --line: #3a332b;
    --accent: #d4a45f;
    --accent-fg: #15120f;
    --brass: #d4a45f;
    --arch: #201b16;
    --arch-fg: #ece9e3;
    --danger: #f0937f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-inline: 20px;
  padding-block: 0 72px;
}
.wrap { max-width: 960px; margin-inline: auto; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: var(--fg); text-decoration: none; font-size: 14px; }
.bar nav a:hover { color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px 56px; align-items: end; padding-block: 56px 64px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 9vw, 6.25rem); line-height: 0.98; letter-spacing: -0.01em; margin: 18px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); padding-inline: 0.04em; }
.hero .when { font-family: var(--font-display); font-size: clamp(1.3rem, 3.4vw, 1.75rem); margin: 0 0 4px; }
.hero .where { margin: 0 0 14px; color: var(--muted); }
.hero .count { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; margin: 0 0 24px; color: var(--muted); }
.hero .count b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.arch { position: relative; background: var(--arch); color: var(--arch-fg); border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 3 / 4; width: 100%; max-width: 340px; justify-self: end; display: flex; align-items: center; justify-content: center; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch .monogram { font-family: var(--font-display); font-style: italic; font-size: clamp(2.4rem, 8vw, 3.4rem); }
.arch.has-photo { background: transparent; }
.arch.has-photo .monogram { display: none; }
.arch.small { max-width: 260px; justify-self: end; background: var(--line); }

.btn { display: inline-block; font: 600 15px/1 var(--font-body); padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-fg); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

.banner { margin: 0 0 8px; }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 788; object-fit: cover; border-radius: 4px; background: var(--line); }
@media (max-width: 600px) { .banner img { aspect-ratio: 4 / 3; object-position: 50% 40%; } }
.banner.scenic { margin: 0; }
.banner.scenic img { object-position: 50% 55%; }

section { padding-block: 56px; border-top: 1px solid var(--line); }
section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; margin: 10px 0 14px; text-wrap: balance; }
.intro { max-width: 56ch; color: var(--muted); margin: 0 0 28px; }
/* Intro paragraphs that should run the full width of the page, not a narrow column. */
.intro.wide { max-width: none; }

/* hotels */
.hotels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hotel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hotel h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; margin: 0; }
.hotel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.hotel dt { color: var(--muted); }
.hotel dd { margin: 0; overflow-wrap: anywhere; }
.hotel .btn, .hotel .soon { margin-top: auto; text-align: center; }
.soon { font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 12px 16px; }

.hotel .how { margin: 0; font-size: 14px; color: var(--muted); }
.small-link { font-size: 14px; text-align: center; }

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 40px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; min-width: 0; }
.detail h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; margin: 0 0 8px; }
.detail p { margin: 0; font-size: 15px; color: var(--muted); }

.venue-map, .parking { margin-top: 8px; padding-top: 32px; }
.where-addr { margin: 6px 0 14px; color: var(--muted); }
.map-frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .map-frame { aspect-ratio: 4 / 3; } }
.map-link { margin: 10px 0 0; font-size: 14px; }
.parking .notes { margin: 10px 0 16px; }
.parking img { display: block; width: 100%; max-width: 909px; height: auto; border: 1px solid var(--line); border-radius: 4px; }

/* forms and panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panel h3, .block-title { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; margin: 0; }
.panel form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
input[type="text"], input[type="password"], select, textarea { font: 16px var(--font-body); color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%; min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 1px; }
input[type="file"] { font: 14px var(--font-body); color: var(--fg); width: 100%; min-width: 0; }
input[type="file"]::file-selector-button { font: 600 14px var(--font-body); color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 16px; margin-right: 12px; cursor: pointer; }
.err, .status { font-size: 14px; min-height: 1.4em; margin: 0; }
.err { color: var(--danger); }
.status.bad { color: var(--danger); }

.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px; max-width: 520px; }
.gate-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.gate-row input { flex: 1 1 200px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }

.guests-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 24px 56px; align-items: end; margin-bottom: 8px; }
.guests-intro { min-width: 0; }
.welcome { margin: 0; color: var(--muted); }
.block { padding-top: 40px; }
.guests-head + #guest-area .block:first-child { padding-top: 24px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.block > .block-title { margin-top: 10px; }
.block > .panel { margin-top: 14px; }
.block > .intro { margin-top: 8px; }
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sched li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sched li:last-child { border-bottom: 0; padding-bottom: 0; }
.sched .t { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { flex: 1 1 140px; border: 1.5px solid var(--line); border-radius: 4px; padding: 12px 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 15px; }
.choice input { accent-color: var(--accent); }
.choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.choice label:has(input:disabled) { cursor: default; opacity: 0.7; }

.guest-rows { display: grid; gap: 18px; }
.guest-row { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.guest-row legend { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; padding: 0; margin-bottom: 8px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }

.song-slots { display: grid; gap: 18px; }
.song-slot { display: grid; gap: 8px; }

.songs { list-style: none; margin: 0; padding: 0; }
.songs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.songs li:first-child { border-top: 0; padding-top: 0; }
.songs .st { font-weight: 600; overflow-wrap: anywhere; }
.songs .sa { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; grid-column: 1 / -1; }
.songs .mine { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.empty { color: var(--muted); font-size: 15px; margin: 0; }

.photo-form { max-width: 620px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.previews:empty { display: none; }
.thumb { margin: 0; min-width: 0; }
.thumb img, .thumb .noprev { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.thumb .noprev { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 13px; color: var(--muted); }
.thumb figcaption { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.thumb .link { font-size: 13px; color: var(--danger); }

.submit-bar { padding-top: 40px; display: grid; gap: 12px; justify-items: start; }
.btn.big { padding: 18px 40px; font-size: 17px; }
.submit-bar .status { max-width: 62ch; }

.lost { padding-block: 80px; }
.lost h2 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; margin: 12px 0; }

footer { padding-top: 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 36px 48px; }
  .arch { justify-self: start; max-width: 300px; }
  .guests-head { grid-template-columns: minmax(0, 1fr); }
  .arch.small { justify-self: start; max-width: 200px; }
  .btn.big { width: 100%; text-align: center; }
}
