@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pinyon-script-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Parisienne";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/parisienne-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
}

:root {
  --paper: #f5f0e7;
  --paper-deep: #e9dfd0;
  --ink: #292822;
  --muted: #6d6a60;
  --olive: #66705a;
  --olive-dark: #4d5644;
  --rose: #a36d68;
  --gold: #b39562;
  --white: #fffdf8;
  --line: rgba(41, 40, 34, 0.2);
  --shadow: 0 24px 80px rgba(36, 31, 24, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --script: "Pinyon Script", cursive;
  --display: "Parisienne", cursive;
  --content-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.has-dialog {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.name-connector {
  display: inline-block;
  font-family: var(--script);
  font-size: 0.58em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.name-pair {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  color: var(--white);
  background: linear-gradient(rgba(30, 27, 23, 0.16), rgba(30, 27, 23, 0.42)), url("images/image_3.jpeg") center 42% / cover;
}

.hero__nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.4rem clamp(1.25rem, 5vw, 4.5rem);
}

.hero__nav a {
  color: inherit;
  font-size: 0.77rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__nav .monogram {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.nav-label--short {
  display: none;
}

.hero__content {
  align-self: center;
  justify-self: center;
  padding: 5rem 1.25rem 3rem;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.hero__intro {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  margin: 0;
  font-family: var(--script);
  font-size: 8.5rem;
  font-weight: 400;
  line-height: 1;
}

.hero__date {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll span {
  font-size: 1.1rem;
}

.section {
  width: 100%;
  min-height: 100svh;
}

.section__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 400;
  line-height: 1.05;
}

.intro {
  display: grid;
  align-items: center;
  padding: clamp(5rem, 11vw, 9rem) 0;
  text-align: center;
}

.intro__inner {
  max-width: 960px;
}

.intro__lead {
  max-width: 620px;
  margin: 1.5rem auto 3.5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-facts div {
  padding: 1.7rem 1rem;
}

.event-facts div + div {
  border-left: 1px solid var(--line);
}

.event-facts span,
.event-facts strong {
  display: block;
}

.event-facts span {
  margin-bottom: 0.35rem;
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-facts strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button--primary {
  color: var(--white);
  background: var(--olive-dark);
  transition: background 160ms ease, transform 160ms ease;
}

.button--primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.button--large {
  min-height: 64px;
  padding: 1rem 2.5rem;
  font-size: 0.88rem;
}

.place,
.dress {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  min-height: 100svh;
}

.place,
.details,
.dress,
.rsvp,
footer,
.success-dialog {
  font-family: var(--content-serif);
}

.place__image,
.dress__image {
  min-height: 520px;
  overflow: hidden;
}

.place__image img,
.dress__image img {
  height: 100%;
  object-fit: cover;
}

.place__content,
.dress__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 8vw, 7rem);
}

.place__content {
  color: var(--white);
  background: var(--olive-dark);
}

.place__content .eyebrow {
  color: #dcc5ad;
}

.place__content p:not(.eyebrow),
.dress__copy p:not(.eyebrow) {
  max-width: 520px;
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.details {
  display: grid;
  align-items: center;
  padding: clamp(5rem, 11vw, 9rem) 0;
  background: var(--white);
}

.details h2 {
  margin-bottom: 3.5rem;
}

.details__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
  border-top: 1px solid var(--line);
}

.details article {
  padding: 2rem clamp(1rem, 3vw, 2.5rem) 0;
}

.details article:first-child {
  padding-left: 0;
}

.details article:last-child {
  padding-right: 0;
}

.details article + article {
  border-left: 1px solid var(--line);
}

.details h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 400;
}

.details p {
  color: var(--muted);
}

.details .accomplice__lead {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 1.2rem;
}

.accomplice__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  align-items: baseline;
  margin: 1.4rem 0;
  color: var(--ink);
}

.accomplice__contact strong {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.accomplice__contact a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.accomplice__closing {
  margin-top: 1.35rem;
}

.accomplice__closing p {
  margin: 0.15rem 0;
}

.accomplice__closing p:last-child {
  margin-top: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.booking-phone {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
}

.booking-phone a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.dress {
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  background: var(--paper-deep);
}

.dress__image {
  order: 2;
  background: #e8dfd2;
}

.dress__image img {
  object-position: center;
}

.rsvp {
  display: grid;
  align-items: center;
  padding: clamp(5rem, 11vw, 9rem) 0;
  background: var(--white);
}

.rsvp__inner {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.rsvp__heading {
  position: sticky;
  top: 2rem;
}

.rsvp__heading h2 {
  font-size: 4.5rem;
}

.rsvp__heading > p:not(.eyebrow) {
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.rsvp-form {
  min-width: 0;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 0 2.3rem;
  margin: 0 0 2.3rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section--stack {
  grid-template-columns: 1fr;
}

.field,
fieldset.field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.field > label,
.field > legend {
  display: block;
  width: 100%;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-family: var(--content-serif);
  font-size: 1.08rem;
  line-height: 1.35;
}

.field-help {
  margin: -0.3rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.field > input,
.field > textarea {
  width: 100%;
  padding: 0.85rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  transition: border-color 150ms ease;
}

.field > textarea {
  resize: vertical;
}

.field > input:focus,
.field > textarea:focus {
  border-color: var(--olive-dark);
}

.field-error,
.form-message {
  min-height: 1.35rem;
  margin: 0.35rem 0 0;
  color: #9a3e38;
  font-size: 0.75rem;
}

.autocomplete {
  position: relative;
  z-index: 4;
}

.suggestions {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  padding: 0.35rem;
  margin: 0;
  border: 1px solid var(--line);
  list-style: none;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(38, 34, 27, 0.14);
}

.suggestions li {
  padding: 0.65rem 0.75rem;
}

.suggestions [role="option"] {
  cursor: pointer;
}

.suggestions [role="option"]:hover,
.suggestions [role="option"].is-active {
  color: var(--white);
  background: var(--olive-dark);
}

.suggestions__empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.segmented {
  display: grid;
  gap: 0;
}

.segmented--two {
  grid-template-columns: repeat(2, 1fr);
}

.segmented--three {
  grid-template-columns: repeat(3, 1fr);
}

.segmented label,
.check-grid label,
.radio-list label {
  position: relative;
  cursor: pointer;
}

.segmented input,
.check-grid input,
.radio-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented span {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 650;
  text-align: center;
}

.segmented label + label span {
  border-left: 0;
}

.segmented input:checked + span {
  color: var(--white);
  border-color: var(--olive-dark);
  background: var(--olive-dark);
}

.segmented input:focus-visible + span,
.check-grid input:focus-visible + span,
.radio-list input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.check-grid span,
.radio-list span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.check-grid span::before,
.radio-list span::before {
  content: "";
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  background: transparent;
}

.radio-list {
  display: grid;
  gap: 0.55rem;
}

.radio-list span::before {
  border-radius: 50%;
}

.check-grid input:checked + span::before,
.radio-list input:checked + span::before {
  border: 4px solid var(--white);
  outline: 1px solid var(--olive-dark);
  background: var(--olive-dark);
}

.attending-fields[hidden] + .form-actions {
  margin-top: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-actions .form-message {
  margin: 0;
}

footer {
  padding: 4rem 1.25rem;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

footer p {
  margin: 0;
  font-family: var(--script);
  font-size: 4rem;
}

footer small {
  display: block;
  margin-top: 0.5rem;
  color: #d6cdbc;
  font-family: var(--content-serif);
}

.success-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(35, 33, 28, 0.7);
}

.success-dialog__panel {
  width: min(100%, 500px);
  padding: clamp(2rem, 7vw, 4rem);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-dialog h2 {
  margin: 0;
  font-family: var(--script);
  font-size: 5rem;
  font-weight: 400;
  color: var(--olive-dark);
}

.success-dialog p:not(.eyebrow) {
  margin: 1rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero h1 {
    flex-direction: column;
    gap: 0;
    font-size: 5.25rem;
  }

  .hero h1 .name-connector {
    margin: -0.2em 0;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }

  .event-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .place,
  .dress {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .place__image,
  .dress__image {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .place__content,
  .dress__copy {
    padding: 4rem 1.5rem;
  }

  .dress__image {
    order: 0;
  }

  .details__grid {
    grid-template-columns: 1fr;
  }

  .details article,
  .details article:first-child,
  .details article:last-child {
    padding: 2rem 0;
  }

  .details article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .rsvp__inner {
    grid-template-columns: 1fr;
  }

  .rsvp__heading {
    position: static;
  }

  .section h2,
  .rsvp__heading h2 {
    font-size: 3.6rem;
  }
}

@media (max-width: 560px) {
  .hero__nav {
    padding: 1.1rem 1rem;
  }

  .hero__nav a:last-child {
    font-size: 0.65rem;
  }

  .nav-label--long {
    display: none;
  }

  .nav-label--short {
    display: inline;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .section h2,
  .rsvp__heading h2 {
    font-size: 3rem;
  }

  footer p,
  .success-dialog h2 {
    font-size: 3.25rem;
  }

  .section__inner {
    width: min(100% - 2rem, 1120px);
  }

  .form-section {
    grid-template-columns: 1fr;
  }

  .segmented--three {
    grid-template-columns: 1fr;
  }

  .segmented--three label + label span {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
