/* Guest pages share a wider, quieter frame; the home page keeps its own rhythm. */
body {
  --page-width: 1440px;
  --page-gutter: clamp(20px, 4vw, 64px);
}
.site-header {
  padding-inline: max(
    var(--page-gutter),
    calc((100vw - var(--page-width)) / 2 + var(--page-gutter))
  );
}
main {
  max-width: var(--page-width);
  padding: 0 var(--page-gutter) 56px;
  margin-inline: auto;
}
.page-title {
  max-width: none;
  padding: 36px 0 28px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.page-title .eyebrow {
  color: var(--rust);
  margin-bottom: 12px;
}
.page-title h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin-bottom: 12px;
  text-wrap: balance;
}
.page-title p {
  margin-left: 0;
  margin-right: 0;
}
.page-title > :last-child {
  margin-bottom: 0;
}
.section {
  max-width: none;
  padding: 40px 0;
  margin: 0;
  min-width: 0;
}
.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}
.section p {
  max-width: 78ch;
}
.center p,
.weekend p {
  margin-inline: auto;
}
.two-cards {
  gap: 20px;
}
.two-cards article {
  padding: 24px;
  border: 1px solid var(--line);
}

/* The venue and hotel sit together beside an existing portrait. */
.travel-layout {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  gap: 32px;
  align-items: stretch;
}
.travel-layout .editorial {
  display: block;
  height: 100%;
  max-height: 420px;
  min-height: 320px;
  border-radius: 160px 160px 4px 4px;
}
.travel-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-content: center;
}
.travel-places > div {
  min-width: 0;
}
.travel-places > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.travel-places .eyebrow {
  margin-bottom: 16px;
}
.travel-places h2,
.travel-places h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}
.travel-places p {
  font-size: 15px;
}
.hotel-details,
.airport,
.faq {
  border-top: 1px solid var(--line);
}
.hotel-details .two-cards {
  margin: 24px 0;
}
.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-left: 24px;
  margin: 28px 0;
}
.booking-steps li {
  padding: 0 8px 0 4px;
  font-size: 14px;
}
.booking-steps li::marker {
  color: var(--rust);
  font-family: var(--serif);
  font-size: 1.4rem;
}
.booking-steps h3 {
  font-size: 1.7rem;
}
.booking-steps strong {
  padding: 12px;
  border-radius: 2px;
}
.hotel-contact {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.hotel-contact h3 {
  font-size: 1.7rem;
}
.palette {
  margin-top: 28px;
}
.palette > div > span {
  width: 80px;
  height: 80px;
}
.faq #faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  align-items: start;
}

/* Find the invitation first, with optional arrangements alongside. */
body[data-page="rsvp"] main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: start;
}
body[data-page="rsvp"] .page-title {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  column-gap: 40px;
  grid-column: 1 / -1;
  width: 100%;
}
body[data-page="rsvp"] .page-title .eyebrow {
  grid-column: 1 / -1;
}
body[data-page="rsvp"] .page-title h1 {
  grid-column: 1;
  grid-row: 2 / 4;
}
#cutoff-summary {
  align-self: end;
  margin-bottom: 8px;
}
.page-title #deadline:empty {
  display: none;
}
.form-layout {
  padding: 0;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
}
.form-layout > * {
  min-width: 0;
}
.form-layout aside img {
  display: block;
  height: 360px;
  border-radius: 140px 140px 4px 4px;
}
.form-layout aside p {
  margin-top: 16px;
}
.form-layout h2 {
  font-size: clamp(2rem, 2.7vw, 2.6rem);
}
#lookup-form {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
}
#lookup-form .button {
  width: 100%;
}
#lookup-form .form-status:empty {
  margin: 0;
}
.childcare-panel {
  padding: 28px;
  background: #e9ecdf;
  border: 1px solid var(--line);
}
.childcare-panel h2 {
  font-size: 2rem;
}
.childcare-panel p {
  font-size: 14px;
}
.childcare-panel .actions {
  display: grid;
  margin-bottom: 12px;
}
.childcare-panel details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.childcare-panel summary {
  font-size: 14px;
}
.childcare-panel > p:last-child {
  margin-bottom: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Keep the registry introduction beside its title and the gifts in view. */
body[data-page="registry"] .page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0 56px;
}
body[data-page="registry"] .page-title .eyebrow {
  grid-column: 1;
  align-self: end;
}
body[data-page="registry"] .page-title h1 {
  grid-column: 1;
}
#registry-copy {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  line-height: 1.75;
}
.mail-gift {
  grid-column: 2;
  width: 100%;
  margin: 16px 0 0;
  text-align: left;
}
.registry-section {
  padding-top: 16px;
}
.tabs {
  justify-content: flex-start;
  gap: 32px;
  margin-bottom: 16px;
}
.tabs button {
  min-height: 48px;
}
#registry-note {
  text-align: left;
  max-width: none;
}
#registry-grid {
  gap: 24px;
  margin: 24px 0;
}
#registry-grid > .group-heading {
  margin: 12px 0 0;
}
.gift-illustration {
  height: 160px;
}

@media (max-width: 1100px) {
  .travel-layout {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  }
  .travel-places {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .travel-places > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .travel-layout .editorial {
    max-height: 560px;
  }
  body[data-page="rsvp"] main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .childcare-panel {
    width: 100%;
  }
  .childcare-panel .actions {
    display: flex;
  }
  body[data-page="registry"] .page-title {
    column-gap: 32px;
  }
}
@media (max-width: 700px) {
  main {
    padding-bottom: 32px;
  }
  .page-title {
    padding: 28px 0 24px;
  }
  .page-title h1 {
    font-size: clamp(2.6rem, 10vw, 3.4rem);
  }
  .section {
    padding-block: 28px;
  }
  .travel-layout,
  .travel-places,
  .booking-steps,
  .faq #faq-list,
  body[data-page="rsvp"] .page-title,
  body[data-page="registry"] .page-title {
    display: block;
  }
  .travel-layout > div:first-child {
    margin-bottom: 24px;
  }
  .travel-layout .editorial {
    height: 240px;
    min-height: 0;
    border-radius: 4px;
    object-position: center 70%;
  }
  .travel-places > div + div {
    margin-top: 24px;
  }
  .booking-steps li + li {
    margin-top: 24px;
  }
  .two-cards {
    gap: 16px;
  }
  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .form-layout {
    padding: 0;
    grid-template-columns: 1fr;
  }
  .form-layout aside {
    display: none;
  }
  #lookup-form,
  .childcare-panel {
    padding: 24px 20px;
  }
  body[data-page="rsvp"] main {
    gap: 24px;
  }
  .childcare-panel .actions {
    display: grid;
  }
  #registry-copy {
    margin-top: 20px;
    font-size: 15px;
  }
  .tabs {
    gap: 8px;
    justify-content: space-between;
  }
  .tabs button {
    font-size: 12px;
    padding: 12px 4px;
  }
  .registry-section {
    padding-top: 8px;
  }
}
