:root {
  --paper: #FBFBF9;
  --ink: #2A2A29;
  --concrete: #6E6E6A;
  --rule: #D6D5D1;
  --accent: #B84A33;
  --error: #9B2C22;
  --display: "Jost", "Hanken Grotesk", sans-serif;
  --body: "Hanken Grotesk", "Jost", sans-serif;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section: clamp(5rem, 10vw, 10rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule) var(--paper);
  accent-color: var(--accent);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  caret-color: var(--accent);
}

::selection { background: var(--accent); color: #FFFFFF; }

img { display: block; max-width: 100%; }

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--concrete);
}

.amp { color: var(--accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.monogram {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.625rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.monogram .amp { font-size: 0.7em; margin-inline: 0.12em; }
.nav {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding-block: 0.75rem;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-top: 3rem;
}
.hero__text { padding-bottom: 1rem; }
.hero__names {
  font-size: clamp(2.75rem, 4.6vw, 4.5rem);
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.hero__names span { display: block; }
.hero__rule {
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin: 2.25rem 0 1.75rem;
  border: 0;
}
.hero__facts { display: grid; gap: 0.25rem; }
.hero__facts .label { color: var(--ink); }
.hero__cta { margin-top: 2.5rem; }
.hero__image {
  width: 100%;
  height: clamp(22rem, calc(100svh - 72px - 6rem), 46rem);
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text, .hero__image { animation: rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__image { animation-delay: 0.15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2.25rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.button:hover { background: var(--accent); color: #FFFFFF; }

.text-link {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  padding-block: 0.6rem;
}

/* Sections */
.section { padding-block: var(--section); }
.section + .section { position: relative; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split h2, .page-title { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.1rem; }
.muted { color: var(--concrete); }

.page-head { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-title { font-size: clamp(2.75rem, 5.5vw, 4.75rem); }
.page-head p { margin-top: 1.25rem; }

/* Event list, used on home and schedule */
.events { list-style: none; margin: 0; padding: 0; }
.event {
  display: grid;
  grid-template-columns: minmax(7rem, 2fr) minmax(0, 5fr);
  gap: 1.5rem 2.5rem;
  padding-block: 2.5rem;
  
}
.event:last-child {  }
.event__time {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--accent);
}
.event__name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; margin-bottom: 0.6rem; }
.event .label { margin-bottom: 0.5rem; }
.events + .text-link, .events + p { margin-top: 2rem; }

/* Figures as wall pieces */
.piece {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.piece img { width: 100%; height: auto; max-height: 52rem; object-fit: cover; }
.piece--portrait img { aspect-ratio: 4 / 5; }
.piece--wide { grid-template-columns: 1fr; }
.piece--wide img { aspect-ratio: 21 / 9; max-height: none; }
.piece figcaption {
  
  padding-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--concrete);
  max-width: 18rem;
}
.piece figcaption strong { display: block; font-weight: 500; color: var(--ink); }

/* Notes grid */
.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem);
}
.notes h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }
.notes .button { margin-top: 2rem; }

/* Travel details */
.details { margin: 0; display: grid; gap: 1.75rem; }
.details div {  padding-top: 1.25rem; }
.details dt { margin-bottom: 0.25rem; }
.details dd { margin: 0; font-size: 1.125rem; }
.code {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* FAQ */
.faq { margin: 0; max-width: 46rem; }
.faq div { padding-block: 2.5rem;  }
.faq div:last-child {  }
.faq dt {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.faq dd { margin: 0; max-width: 38rem; }

/* RSVP page */
.form-block { max-width: 38rem; }
.form-block + .form-block { margin-top: clamp(4rem, 7vw, 5rem); padding-top: clamp(4rem, 7vw, 5rem);  }
.form-block h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.page-body { padding-bottom: var(--section); }
.hero__names .amp { display: inline; }
.form-block .intro { margin-bottom: 0.75rem; }
.deadline { margin: 1.25rem 0 2.5rem; color: var(--ink); }
.deadline strong { color: var(--accent); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(4rem, 7vw, 6rem) 3rem; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
}
.footer-facts { display: grid; gap: 0.75rem; }
.footer-facts .monogram { font-size: 2rem; margin-bottom: 0.5rem; }
.credits { font-size: 0.9375rem; color: var(--concrete); max-width: 40rem; justify-self: end; }
.credits a { color: var(--concrete); }
.credits a:hover { color: var(--accent); }

/* Forms */
.wa-form { display: flex; flex-direction: column; gap: 1.75rem; }
.wa-form__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0;
}
.wa-form__description { color: var(--concrete); }
.wa-field { display: flex; flex-direction: column; gap: 0.5rem; }
.wa-field[hidden], .wa-form [hidden] { display: none; }
.wa-field__label, .wa-choices legend, .wa-group legend {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0;
}
.wa-field__required { color: var(--accent); margin-left: 0.3em; }
.wa-field__help { font-size: 0.9375rem; color: var(--concrete); }
.wa-form input[type="text"],
.wa-form input[type="email"],
.wa-form input[type="tel"],
.wa-form input[type="number"],
.wa-form input:not([type]),
.wa-form textarea,
.wa-form .wa-select,
.wa-form select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 0;
  appearance: none;
}
.wa-form textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.wa-form input::placeholder, .wa-form textarea::placeholder { color: var(--concrete); }
.wa-form input:hover, .wa-form textarea:hover, .wa-form select:hover { border-color: var(--concrete); }
.wa-form input:focus-visible, .wa-form textarea:focus-visible, .wa-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.wa-choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.wa-choices legend { margin-bottom: 0.5rem; }
.wa-choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  cursor: pointer;
  padding-block: 0.35rem;
  
}
.wa-choice input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); flex: none; }
.wa-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wa-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.wa-group__item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.75rem;
  
}
.wa-group__item-title {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--concrete);
  margin: 0;
}
.wa-group__add { align-self: flex-start; }
.wa-group__remove { align-self: flex-start; }
.wa-note {  padding-top: 1.25rem; color: var(--concrete); font-size: 0.9375rem; }
.wa-note__title {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2.25rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.wa-button--primary { background: var(--accent); color: #FFFFFF; border: 1px solid var(--accent); align-self: flex-start; }
.wa-button--primary:hover { background: #9E3E2A; border-color: #9E3E2A; }
.wa-button--secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.wa-button--secondary:hover { background: var(--accent); color: #FFFFFF; }
.wa-button--quiet {
  background: none;
  border: 0;
  padding: 0.6rem 0;
  min-height: 44px;
  color: var(--concrete);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.3em;
}
.wa-button--quiet:hover { color: var(--accent); }
.wa-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wa-button[disabled], .wa-button[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.wa-field__error, .wa-form__error { color: var(--error); font-size: 0.9375rem; }
.wa-form [aria-invalid="true"] { border-color: var(--error); }
.wa-form__status { font-size: 0.9375rem; color: var(--concrete); }
.wa-form__success, .wa-form__closed {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  text-align: center;
  padding: 3.5rem 1.5rem;
  
}
.wa-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Narrow screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .hero__text { padding-bottom: 0; }
  .hero__rule { margin: 1.5rem 0 1.25rem; }
  .hero__cta { margin-top: 1.75rem; }
  .hero__image { height: 40svh; min-height: 16rem; }
  .split, .notes, .footer-inner { grid-template-columns: 1fr; }
  .piece { grid-template-columns: 1fr; }
  .piece--wide img { aspect-ratio: 3 / 2; }
  .credits { justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .header-inner { flex-direction: column; justify-content: center; gap: 0.25rem; padding-block: 1rem 0.25rem; }
  .nav { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
  .nav a { font-size: 0.75rem; letter-spacing: 0.14em; }
  .event { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Hairlines drawn as pseudo-elements */
.event, .faq div, .details div, .piece figcaption, .form-block + .form-block,
.wa-choice, .wa-group__item, .wa-note, .wa-form__success, .wa-form__closed { position: relative; }
.section + .section::before,
.event::before, .faq div::before, .details div::before, .piece figcaption::before,
.form-block + .form-block::before, .wa-group__item::before, .wa-note::before,
.wa-form__success::before, .wa-form__closed::before,
.event:last-child::after, .faq div:last-child::after, .wa-choice::after,
.wa-form__success::after, .wa-form__closed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--rule);
  pointer-events: none;
}
.section + .section::before, .event::before, .faq div::before, .details div::before,
.piece figcaption::before, .form-block + .form-block::before, .wa-group__item::before,
.wa-note::before, .wa-form__success::before, .wa-form__closed::before { top: 0; }
.event:last-child::after, .faq div:last-child::after, .wa-choice::after,
.wa-form__success::after, .wa-form__closed::after { bottom: 0; }
