/* Truss: Rock Island Bridge's rust-red steel on pale concrete, condensed signage type.
   One deliberate light look, so every colour is set explicitly. */
:root {
  color-scheme: light;
  --paper: #f7f6f3;
  --concrete: #ecebe7;
  --line: #d8d5ce;
  --steel: #9b3a22;
  --steel-deep: #7c2d19;
  --ink: #22201d;
  --muted: #5f5a53;
  --white: #ffffff;
  --error: #b3261e;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* Signage type */
.sign { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance; }
h1, h2, h3 { margin: 0; }
h2.sign { font-size: clamp(34px, 4.6vw, 56px); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; background: var(--steel); color: var(--white); font: 800 18px/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease; }
.btn:hover { background: var(--steel-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font-size: 22px; text-decoration: none; }

/* Hero: text on concrete, the bridge beside it */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); background: var(--concrete); }
.hero-text { display: grid; align-content: end; gap: 18px; padding-block: 72px 56px; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + 20px)); padding-right: 40px; }
.hero h1 { font-size: clamp(56px, 6.4vw, 100px); color: var(--steel); }
.when { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.hero .lead { margin: 0; max-width: 40ch; color: var(--muted); font-size: 19px; }
.hero-pic { position: relative; min-height: 560px; }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Speaker and chapter */
.about { padding-block: 96px; }
.about .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--concrete); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: grid; gap: 40px; }
.about-text section { display: grid; gap: 12px; }
.about-text p { margin: 0; max-width: 54ch; color: var(--muted); }

/* Schedule */
.evening { background: var(--concrete); padding-block: 88px; }
.evening .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.sched { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); align-self: start; }
.sched li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding-block: 20px; border-top: 2px solid var(--ink); }
.sched .t { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 26px; line-height: 1.1; color: var(--steel); font-variant-numeric: tabular-nums; }
.sched .what { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 24px; line-height: 1.15; }
.sched small { display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-stretch: 100%; text-transform: none; font-size: 16px; color: var(--muted); }
.place { margin-top: 28px; display: grid; gap: 4px; color: var(--muted); }
.place strong { color: var(--ink); font-weight: 500; }

.map { margin-top: 20px; aspect-ratio: 4 / 3; max-width: 100%; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.maplink { display: inline-block; margin-top: 8px; font-size: 15px; }
.about-text a, .footer a { text-decoration-color: var(--steel); }

/* Three ways to say yes */
.rsvp { padding-block: 96px; }
.rsvp-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 60ch; }
.rsvp-head p { margin: 0; color: var(--muted); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.way { display: grid; gap: 14px; align-content: start; padding: 28px; background: var(--white); border-left: 5px solid var(--steel); min-width: 0; }
.way h3 { font-size: 28px; }
.way p { margin: 0; color: var(--muted); }
.phone { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 34px; line-height: 1; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--steel); }
.form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.form input, .form select { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.form input:hover, .form select:hover { border-color: var(--muted); }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
.form input:user-invalid { border-color: var(--error); }
.form .btn { justify-self: start; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.footer p { margin: 0; max-width: 72ch; font-size: 14px; color: var(--muted); }
.footer p + p { margin-top: 8px; }

/* Thanks page */
.thanks { padding-block: 120px; }
.thanks .container { display: grid; gap: 20px; max-width: 760px; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.thanks p { margin: 0; color: var(--muted); max-width: 52ch; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 48px var(--gutter-r) 40px var(--gutter); }
  .hero-pic { min-height: 300px; }
  .about .container, .evening .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .about, .rsvp { padding-block: 64px; }
  .evening { padding-block: 64px; }
}
@media (max-width: 480px) {
  .sched li { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .sched .t { font-size: 22px; }
  .sched .what { font-size: 20px; }
  .way { padding: 22px; }
  .nav .btn { padding: 0 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.thanks-title { font-size: clamp(48px, 7vw, 96px); color: var(--steel); }
