/* ==========================================================================
   Colors and fonts: change these to re-theme the whole site.
   ========================================================================== */
:root {
  color-scheme: light;

  --white: #fff;
  --grey-lightest: #f2f2f2;
  --grey: #e4e4e4;
  --grey-mid: #8a8a8a;
  --grey-dark: #3a3a3a;
  --black: #000;
  --ink: #111;
  --muted: #666;
  --rule: #d4d4d4;

  --font-display: Didot, "Bodoni 72", "Bodoni MT", "Noto Serif Display", Georgia, serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-script: Kristi, "Snell Roundhand", "Segoe Script", cursive;
  --font-sans: "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-condensed: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;

  --nav-height: 60px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; background: var(--rule); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
}
.skip-link:focus { top: 8px; }

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

/* ==========================================================================
   Shared pieces
   ========================================================================== */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 720px; }

.section { padding-block: clamp(64px, 10vw, 120px); }
.section--white { background: var(--white); }
.section--grey { background: var(--grey); }
.section--grey-dark { background: var(--grey-dark); color: var(--white); }
.section--dark { background: var(--black); color: var(--white); }

.section__header { margin-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.section__header h2,
.registry h2 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-style: italic;
}

.kicker {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 13px 36px;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.button:hover { background: transparent; color: var(--black); }
.button:disabled { opacity: 0.6; cursor: progress; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  padding: 8px var(--gutter);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  height: calc(var(--nav-height) - 16px);
  margin-inline: auto;
  border-block: 1px solid var(--black);
}

.site-nav__brand {
  display: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}
.site-nav__brand span { font-style: italic; }

.site-nav__toggle {
  display: none;
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav__links { display: flex; justify-content: space-around; width: 100%; }

.site-nav__links a {
  padding: 4px 6px;
  border-bottom: 1px solid transparent;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="true"] { border-bottom-color: currentColor; }

@media (max-width: 859px) {
  .site-nav__inner { position: relative; padding-inline: 4px; }
  .site-nav__brand, .site-nav__toggle { display: block; }

  .site-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--black);
    background: var(--white);
    box-shadow: 0 16px 24px -16px rgb(0 0 0 / 0.3);
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { padding: 12px 8px; text-align: center; }
  .site-nav__links .site-nav__home { display: none; } /* The "A & D" link goes home instead. */
  .site-nav__links a:hover,
  .site-nav__links a[aria-current="true"] { border-bottom-color: transparent; font-style: italic; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: max(calc(100svh - var(--nav-height)), 600px);
  padding: clamp(20px, 4vh, 40px) var(--gutter) clamp(20px, 3.5vh, 36px);
  background: #000;
  color: #fff;
  text-align: center;
}

.hero picture { position: absolute; inset: 0; } /* Keeps the wrapper out of the hero's spacing. */

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%; /* Keeps the couple above the title on wide screens. */
}

/* Fades the bottom of the photo to black, behind the title and details. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgb(0 0 0 / 0.5) 0%,
    rgb(0 0 0 / 0) 26%,
    rgb(0 0 0 / 0) 48%,
    rgb(0 0 0 / 0.55) 74%,
    rgb(0 0 0 / 0.96) 100%);
}

.hero__names,
.hero__content { position: relative; z-index: 1; }

/* Each name sits above one half of the photo: Adam left, Danielle right. */
.hero__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 860px);
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.45);
}
.hero__names strong { display: block; font-weight: 700; }

.hero__title {
  font-family: var(--font-script);
  font-size: min(36vw, 22svh);
  line-height: 0.74;
  -webkit-text-stroke: 0.015em currentColor;
}
.hero__title span { display: block; }

.hero__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  margin-top: clamp(20px, 3.5vh, 32px);
}
.hero__laurel { width: 24px; height: 58px; flex: none; }
.hero__laurel--flip { transform: scaleX(-1); }

.hero__coming {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero__day {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(14px, 2.5vh, 24px);
  font-family: var(--font-condensed);
  font-size: clamp(0.9375rem, 1.7vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__info span + span::before { content: "|"; margin-inline: 0.7em; font-weight: 400; }
.hero__info a { display: inline-block; text-underline-offset: 3px; }

/* Tall screens show the portrait photo. It fills the top of the hero and fades
   into black, which keeps the couple's faces clear of the title. */
@media (max-aspect-ratio: 1/1) {
  .hero__photo { height: 66%; object-position: 50% 0; }
  .hero::after {
    background: linear-gradient(180deg,
      rgb(0 0 0 / 0.45) 0%,
      rgb(0 0 0 / 0) 20%,
      rgb(0 0 0 / 0) 44%,
      rgb(0 0 0 / 1) 66%);
  }
}

@media (max-width: 859px) {
  /* The venue and address each get a line, so no divider starts a row. */
  .hero__info { flex-direction: column; align-items: center; }
  .hero__info span + span::before { content: none; }
  .hero__info a { padding: 10px 28px; margin-top: 10px; border: 1px solid currentColor; text-decoration: none; }
}

/* ==========================================================================
   Our Story timeline
   ========================================================================== */
.timeline { position: relative; }

.timeline__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid var(--white);
}

.timeline__text time {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.timeline__text h3 { margin: 6px 0; font-size: 1.5rem; font-style: italic; }
.timeline__text p { font-size: 1rem; opacity: 0.88; }

/* Phone: vertical line down the left */
@media (max-width: 859px) {
  .timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 1px;
    background: var(--white);
    opacity: 0.6;
  }
  .timeline__item { position: relative; padding-left: 36px; }
  .timeline__item + .timeline__item { margin-top: 48px; }
  .timeline__item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white);
  }
  .timeline__photo { max-width: 340px; aspect-ratio: 4 / 3; margin-bottom: 16px; }
}

/* Laptop: horizontal line, entries alternating above and below */
@media (min-width: 860px) {
  .timeline { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 24px; }
  .timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--white);
    opacity: 0.6;
  }
  .timeline__item {
    position: relative;
    display: grid;
    grid-template-rows: 1fr 56px 1fr;
    text-align: center;
  }
  .timeline__item::before {
    content: "";
    grid-row: 2;
    justify-self: center;
    align-self: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white);
  }
  .timeline__photo { grid-row: 1; align-self: end; }
  .timeline__text { grid-row: 3; align-self: start; }
  .timeline__item:nth-child(even) .timeline__photo { grid-row: 3; align-self: start; }
  .timeline__item:nth-child(even) .timeline__text { grid-row: 1; align-self: end; }
}

/* ==========================================================================
   The Details
   ========================================================================== */
.details { display: grid; gap: 48px; }

.details__facts { display: grid; gap: 28px; align-content: start; }
.details__facts dt {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.details__facts dd { font-size: 1.125rem; }
.details__note { display: block; margin-top: 6px; font-size: 0.9375rem; font-style: italic; color: var(--muted); }

/* The small round "?" that opens a help popup. Its tap area is 44px. */
.help-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: 600 0.8125rem/1 var(--font-sans);
  vertical-align: 2px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.help-button::after { content: ""; position: absolute; inset: -11px; }
.help-button:hover { background: var(--black); color: var(--white); }

/* Help popup. The page behind it is dimmed and doesn't scroll. */
html:has(.help-dialog[open]) { overflow: hidden; }

.help-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(calc(100svh - 32px), 720px);
  padding: 0;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--ink);
}
.help-dialog::backdrop { background: rgb(0 0 0 / 0.55); }

.help-dialog__body { position: relative; padding: clamp(24px, 6vw, 40px); text-align: center; }

.help-dialog__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font: 300 1.75rem/1 var(--font-sans);
  cursor: pointer;
}

.help-dialog h3 { padding-inline: 32px; font-size: clamp(1.75rem, 6vw, 2.25rem); font-style: italic; }
.help-dialog h3:focus { outline: none; } /* Focus starts here only so the popup opens without a ring on the × button. */
.help-dialog__intro { margin-top: 8px; color: var(--muted); }

.help-dialog__columns { display: grid; gap: 18px; margin-block: 20px; text-align: left; }
.help-dialog h4 {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.help-dialog li { position: relative; padding-left: 16px; font-size: 1rem; line-height: 1.5; }
.help-dialog li + li { margin-top: 6px; }
.help-dialog li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

.help-dialog__note { margin-bottom: 20px; font-size: 0.9375rem; font-style: italic; color: var(--muted); }

@media (min-width: 560px) {
  .help-dialog__columns { grid-template-columns: 1fr 1fr; gap: 32px; margin-block: 28px; }
  .help-dialog__note { margin-bottom: 24px; }
}

.agenda h3 { margin-bottom: 24px; font-size: 2rem; font-style: italic; }

.agenda__list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}
.agenda__list li:last-child { border-bottom: 1px solid var(--rule); }
.agenda__list time { padding-top: 3px; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; }
.agenda__list h4 { font-size: 1.3125rem; }
.agenda__list p { font-size: 1rem; color: var(--muted); }

@media (min-width: 860px) {
  .details { grid-template-columns: 1fr 2fr; gap: 80px; }
}

/* ==========================================================================
   Wedding Party
   ========================================================================== */
.party__group {
  margin: 64px 0 32px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-style: italic;
  text-align: center;
}
.section__header + .party__group { margin-top: 0; }

.party { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }

/* Flex instead of grid so an odd portrait on the last row stays centered. */
.party--kids { display: flex; flex-wrap: wrap; justify-content: center; }
.party--kids .person { flex: 0 0 calc((100% - 16px) / 2); }

.person { text-align: center; }
.person img {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  object-fit: cover;
  border-radius: 50%;
}
.person h4 { font-size: 1.375rem; }
.person p { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }

@media (min-width: 720px) {
  .party { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .party--kids .person { flex-basis: calc((100% - 48px) / 3); }
}

/* ==========================================================================
   Travel Guide
   ========================================================================== */
.venue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(24px, 5vw, 48px);
  background: var(--black);
  color: var(--white);
}
.venue > div { flex: 1 1 320px; }
.venue h3 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 2.75rem); font-style: italic; }
.venue address { margin-bottom: 12px; font-style: normal; font-size: 1.125rem; }
.venue .button { border-color: var(--white); background: var(--white); color: var(--black); }
.venue .button:hover { background: transparent; color: var(--white); }

.travel__heading { margin: 56px 0 24px; font-size: 2rem; font-style: italic; }

.cards { display: grid; gap: 16px; }

.card { padding: 28px 24px; border: 1px solid var(--rule); background: var(--white); }
.card h4 { margin-bottom: 4px; font-size: 1.5rem; }
.card__meta { margin-bottom: 12px; font-size: 0.9375rem; font-style: italic; color: var(--muted); }
.card address { margin: -4px 0 12px; font-style: normal; }
.map-link { text-underline-offset: 3px; }
.card > a {
  display: inline-block;
  margin-top: 16px;
  padding-block: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards--two { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp {
  padding: clamp(24px, 5vw, 48px);
  background: var(--white);
  color: var(--ink);
}

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }

.field > label,
.field > legend,
.rsvp__guest-title {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.field label span { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--grey-mid);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px or larger keeps iPhones from zooming in on focus */
}
textarea { resize: vertical; }

.choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-weight: 400;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--black); }

.rsvp__party { margin: 0; padding: 0; border: 0; min-width: 0; }

.rsvp__guest {
  margin: 0 0 22px;
  padding: 18px 16px 2px;
  border: 0;
  border-left: 2px solid var(--grey-mid);
  background: var(--grey-lightest);
  min-width: 0;
}
/* Floating the legend keeps it inside the shaded box instead of on its top edge. */
.rsvp__guest-title { float: left; width: 100%; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; font-weight: 400; }
.rsvp__guest-title + .field { clear: both; }

.rsvp .button { width: 100%; }

.rsvp__status {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--black);
  background: var(--grey);
  font-size: 1rem;
}

.rsvp__thanks { text-align: center; }
.rsvp__thanks h3 { margin-bottom: 8px; font-size: 2.5rem; font-style: italic; }
.rsvp__thanks:focus { outline: none; }

.link-button {
  margin-top: 16px;
  padding: 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 6px;
  font-family: var(--font-body);
  font-size: 1.75rem;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 20px; }

/* ==========================================================================
   Registry
   ========================================================================== */
.registry { display: grid; gap: 32px; align-items: center; text-align: center; }
.registry__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.registry h2 { margin-bottom: 16px; }
.registry .button { margin-top: 24px; }

@media (min-width: 860px) {
  .registry { grid-template-columns: 1fr 1fr; gap: 72px; text-align: left; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 56px var(--gutter) 32px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.footer__names { font-family: var(--font-display); font-size: 2.25rem; }
.footer__names span { font-style: italic; }

.footer__credits { max-width: 720px; margin: 28px auto 0; font-size: 0.8125rem; opacity: 0.75; }
.footer__credits summary { padding: 8px; cursor: pointer; }

/* ==========================================================================
   Tablets and portrait phones. Laptops never match these rules.
   ========================================================================== */

/* Landscape tablets use the laptop layout. Their squarer screens (3:2 or
   narrower) only need a smaller title to keep it clear of the couple. */
@media (orientation: landscape) and (min-width: 860px) and (max-width: 1366px) and (max-aspect-ratio: 3/2) {
  .hero__title { font-size: 18svh; }
}

/* Portrait phones and tablets: the portrait photo fills the whole hero, aligned
   to its bottom edge so the couple's faces land above the title. */
@media (orientation: portrait) and (max-width: 1100px) {
  .hero__photo { height: 100%; object-position: 50% 100%; }
  .hero::after {
    background: linear-gradient(180deg,
      rgb(0 0 0 / 0.45) 0%,
      rgb(0 0 0 / 0) 20%,
      rgb(0 0 0 / 0) 46%,
      rgb(0 0 0 / 0.6) 68%,
      rgb(0 0 0 / 0.96) 100%);
  }
  .hero__title { font-size: min(26vw, 20svh); }
  .hero__names { font-size: clamp(1.25rem, 3vw, 1.75rem); }
}

/* Portrait phones: the tablet look, scaled down. The title size comes from the
   hero's height, so its top always lands just below the couple's faces. */
@media (orientation: portrait) and (max-width: 599px) {
  .hero {
    --hero-height: max(calc(100svh - var(--nav-height)), 600px);
    min-height: var(--hero-height);
    padding-bottom: 16px;
  }
  .hero__names { font-size: 1rem; }

  .hero__title {
    font-size: min(26vw, calc(var(--hero-height) * 0.228 - 62px));
    margin-bottom: 0.32em; /* Clears the tail of the "g". */
  }
  .hero__date { margin-top: 0; }
  .hero__laurel { width: 18px; height: 44px; }
  .hero__coming { font-size: 0.875rem; }
  .hero__day { font-size: 1rem; }

  /* Two short lines: venue and RSVP, then the address. */
  .hero__info { flex-direction: row; margin-top: 10px; font-size: 0.8125rem; }
  .hero__info span:nth-child(3) { order: 1; }
  .hero__info span:nth-child(3)::before { content: "|"; }
  .hero__info span:nth-child(2) { order: 2; flex-basis: 100%; }
  .hero__info a { padding: 8px 0; margin-block: -8px; border: 0; text-decoration: underline; }
}

/* Portrait tablets too narrow for the laptop section layouts. */
@media (orientation: portrait) and (min-width: 600px) and (max-width: 859px) {
  /* Venue details stay on one line, as on laptops. */
  .hero__info { flex-direction: row; font-size: clamp(0.8125rem, 2.3vw, 1rem); }
  .hero__info span + span::before { content: "|"; }
  .hero__info a { padding: 0; margin-top: 0; border: 0; text-decoration: underline; }

  /* Story: photo and text sit side by side along the timeline. */
  .timeline__item {
    display: grid;
    grid-template-columns: minmax(0, 300px) 1fr;
    gap: 32px;
    align-items: center;
  }
  .timeline__item::before { top: 50%; transform: translateY(-50%); }
  .timeline__photo { max-width: none; margin-bottom: 0; }

  /* Details: where, when, and attire share a row above the agenda. */
  .details__facts { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  /* Registry: photo beside the text. */
  .registry { grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
}

/* Portrait tablets with room for the full menu instead of the Menu button. */
@media (orientation: portrait) and (min-width: 744px) and (max-width: 859px) {
  .site-nav__inner { padding-inline: 0; }
  .site-nav__brand, .site-nav__toggle { display: none; }
  .site-nav__links {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border-bottom: 0;
    background: none;
    box-shadow: none;
  }
  .site-nav__links a { padding: 4px 2px; font-size: 0.75rem; letter-spacing: 0.1em; }
  .site-nav__links .site-nav__home { display: inline; }
  .site-nav__links a:hover,
  .site-nav__links a[aria-current="true"] { border-bottom-color: currentColor; font-style: normal; }
}
