/*
  Jessica & Joshua · jessicaandjoshua2027.com

  Contents
    0. Fonts (self-hosted)
    1. Design tokens: change colors, fonts, and widths here
    2. Base
    3. Shared pieces
    4. Navigation
    5. Intro screen
    6. Hero: scrolling photo strip
    7. Schedule
    8. Accommodations
    9. Houston Activities: tabs + numbered places
   10. FAQ
   11. RSVP
   12. Footer
   13. Print: schedule, hotels, activities and FAQ on clean paper (keep last)
*/

/* ==========================================================================
   0. Fonts (self-hosted)
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-300-normal.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-vietnamese-300-normal.woff2")
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-300-italic.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-vietnamese-300-italic.woff2")
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-400-normal.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-vietnamese-400-normal.woff2")
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-400-italic.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-vietnamese-400-italic.woff2")
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/jost-latin-300-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/jost-latin-ext-300-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. Design tokens: change colors, fonts, and widths here
   ========================================================================== */
:root {
  --bg: #fafaf8;
  --bg-alt: #f3f2ee;
  --surface: #fff;
  --ink: #2b2b28;
  --ink-soft: #55554f;
  --muted: #6b6b63;
  --rule: #dcdbd4;
  --accent: #2b2b28;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-section: clamp(5rem, 12vw, 9rem);

  --max-width: 980px;
  --nav-height: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-padding-top: calc(var(--nav-height) + 8px);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: var(--space-3);
}
h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}
h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-1);
}

p {
  margin: 0 0 var(--space-2);
  text-wrap: pretty;
}
address {
  font-style: normal;
}
a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: #dde5d6;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
input,
textarea {
  font-size: max(16px, 1em);
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
}

/* ==========================================================================
   3. Shared pieces
   ========================================================================== */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: var(--space-section) var(--space-2);
  text-align: center;
}
.section > * {
  max-width: var(--max-width);
  margin-inline: auto;
}
.section-alt {
  background: var(--bg-alt);
}

.prose {
  max-width: 36em;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.65;
}
.prose p {
  text-wrap: balance;
}
.prose + h3 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}
.lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: calc(-1 * var(--space-2)) auto var(--space-3);
  text-wrap: balance;
}

.link {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s;
}
.link:hover {
  border-color: var(--ink);
}

.btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.8rem 1.6rem;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder highlight: delete the "todo" class once real content is in */
.todo {
  background: #fff3c4;
  outline: 1px dashed #d9b44a;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(var(--space-2), 4vw, var(--space-3));
  background: var(--bg); /* always solid, so nothing shows through it */
  transition: box-shadow 0.4s;
}
.nav.scrolled,
.nav.menu-open {
  box-shadow: 0 1px 0 var(--rule);
}

.nav-names img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-home svg {
  width: 18px;
  height: 18px;
  display: block;
}
.nav-home-label {
  display: none;
}

.nav-links {
  display: flex;
  gap: clamp(var(--space-2), 2.2vw, var(--space-3));
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav-links a:hover {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: var(--ink);
  transition:
    transform 0.3s,
    top 0.3s;
}
.nav-toggle span:first-child {
  top: 16px;
}
.nav-toggle span:last-child {
  top: 24px;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.4s var(--ease),
      visibility 0s 0.4s;
  }
  .nav-links.open {
    max-height: 80vh;
    visibility: visible;
    border-bottom: 1px solid var(--rule);
    transition: max-height 0.4s var(--ease);
  }
  .nav-links a {
    padding: var(--space-2);
    text-align: center;
    border: 0;
  }
  .nav-home {
    justify-content: center;
  }
  .nav-home-label {
    display: inline;
  }
}

/* ==========================================================================
   5. Intro screen
   ========================================================================== */
.intro {
  display: none;
}

.js:not(.intro-seen) .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-3), 5vh, var(--space-4));
  padding: var(--space-3);
  background: var(--bg);
  cursor: pointer;
  transition:
    opacity 0.8s var(--ease),
    visibility 0s 0.8s;
  animation: intro-fallback 0s 6s forwards;
}
.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}
@keyframes intro-fallback {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.intro > * {
  opacity: 0;
  transform: translateY(12px);
  animation: intro-in 1s var(--ease) forwards;
}
.intro > :nth-child(2) {
  animation-delay: 0.35s;
}
.intro > :nth-child(3) {
  animation-delay: 0.7s;
}
@keyframes intro-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.intro-names {
  display: block;
  width: min(100%, 40rem);
}
.intro-names img {
  width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .intro-names {
    width: min(100%, 15rem); /* stacked names are nearly square */
  }
}
.intro-art {
  width: clamp(140px, 22vw, 240px);
  height: auto;
}
.intro-date {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-active,
.intro-active body {
  overflow: hidden;
}

/* ==========================================================================
   6. Hero: scrolling photo strip
   ========================================================================== */
.hero {
  padding-top: var(--nav-height);
}

.hero-strip {
  --strip-gap: 4px;
  position: relative;
  height: clamp(380px, calc(100svh - var(--nav-height) - 8.5rem), 900px);
  overflow: hidden;
}
.hero-track {
  display: flex;
  height: 100%;
  width: max-content;
}
.hero-track img {
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-right: var(--strip-gap);
}
.hero-strip.is-moving .hero-track {
  animation: strip-scroll var(--strip-duration, 70s) linear infinite;
  will-change: transform;
}
@keyframes strip-scroll {
  to {
    transform: translateX(-50%);
  }
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(150px, 24vw, 300px);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero-meta {
  padding: var(--space-3) clamp(var(--space-2), 5vw, var(--space-5)) 0;
  text-align: center;
}
.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-1);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-date::before,
.hero-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.hero-countdown {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-variant-numeric: lining-nums;
  margin: 0;
}
.countdown {
  display: flex;
  justify-content: center;
}
.countdown[hidden] {
  display: none;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5.5rem;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-unit + .countdown-unit {
  border-left: 1px solid var(--rule);
}
.countdown-unit span {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

@media (max-width: 600px) {
  .hero-strip {
    height: clamp(360px, calc(100svh - var(--nav-height) - 7.5rem), 720px);
  }
  .hero-track img {
    aspect-ratio: 2 / 3;
  }
  .hero-date {
    gap: var(--space-1);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
  }
  .countdown-unit {
    width: 4.5rem;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }
  .countdown-unit span {
    font-size: 1.7rem;
  }
}

.js:not(.hero-shown) :is(.hero-strip, .hero-meta) {
  opacity: 0;
  animation: reveal-fallback 0s 7s forwards;
}
@keyframes reveal-fallback {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   7. Schedule
   ========================================================================== */
.section > .events {
  max-width: 1120px;
}

.events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
  background: var(--bg);
  text-align: left;
}
.event {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(var(--space-3), 4.5vw, var(--space-4));
}
.event + .event {
  border-left: 1px solid var(--rule);
}

/* Line the two cards up row by row: art, label, name, address, note, time.
   A two-line venue name pushes both cards down together. */
@supports (grid-template-rows: subgrid) {
  .event {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    justify-items: center;
    align-content: start;
  }
  .event-top {
    align-self: end; /* both paintings sit on the same bottom line */
  }
}

.event-top {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(var(--space-3), 6vw, var(--space-5));
}

.event-art {
  width: min(78%, 340px);
  height: auto;
}

.event-label {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.event-place {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}
.event-addr {
  text-wrap: balance;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.event-note {
  flex: 1;
  text-wrap: balance;
  max-width: 30em;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.event-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.event-time {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0;
}
.event-time span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.event-time time {
  font-family: var(--serif);
  font-size: 1.45rem;
}
/* Bigger tap area for Directions without changing how it looks */
.event-foot .link {
  position: relative;
}
.event-foot .link::after {
  content: "";
  position: absolute;
  inset: -0.85rem -1rem;
}

@media (max-width: 760px) {
  .events {
    grid-template-columns: 1fr;
  }
  .event + .event {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .event {
    padding: var(--space-4) var(--space-3);
  }
  .event-top {
    margin-bottom: var(--space-3);
  }
  .event-art {
    width: min(92%, 340px);
  }
  .event-place {
    margin-bottom: var(--space-2);
  }
  .event-note {
    line-height: 1.7;
  }
}

/* ==========================================================================
   8. Accommodations
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-3);
  text-align: left;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--space-3);
}
.card h3 {
  font-size: 1.7rem;
  margin-bottom: var(--space-1);
}
.card-addr {
  color: var(--muted);
  font-size: 0.9rem;
}
.card-facts {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  font-size: 0.9rem;
}
.card-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.card-facts span {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-rate {
  font-family: var(--serif);
  font-size: 2rem;
  margin: var(--space-2) 0 0;
}
.card-rate small {
  font-size: 1rem;
  color: var(--muted);
}
.card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   9. Houston Activities: tabs + numbered places
   ========================================================================== */
.tabs {
  text-align: left;
}
/* .tab-list uses display: flex, which would override the hidden attribute */
.tabs [hidden] {
  display: none !important;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid var(--rule);
}
.tab {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-bottom: 0;
  margin-bottom: -1px;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: color 0.3s;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--bg-alt);
  border-color: var(--rule);
}
.tab:focus-visible {
  outline-offset: -4px;
}

/* With JS the tab names the panel; without JS (and on paper) show a heading */
.js .tab-panel-title {
  display: none;
}
.tab-panel-title {
  font-size: 1.6rem;
  margin: var(--space-3) 0 var(--space-2);
}

@media (prefers-reduced-motion: no-preference) {
  .tab-panel:not([hidden]) {
    animation: panel-in 0.4s var(--ease);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.places {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: place;
}
.place {
  counter-increment: place;
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 4.5rem;
  border-top: 1px solid var(--rule);
}
.places > .place:first-child {
  border-top: 0;
}
/* The number sits on the name's first line, so they share a baseline */
.place-name::before {
  content: counter(place, decimal-leading-zero);
  display: inline-block;
  width: 4.5rem;
  margin-left: -4.5rem;
  font-size: 1.3rem;
  color: var(--muted);
}
.place-tags {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.place-name {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: var(--space-1);
}
.place-desc {
  max-width: 44em;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: var(--space-1);
}
.place-addr {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition:
    color 0.3s,
    border-color 0.3s;
}
.place-addr:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 600px) {
  .tab {
    flex: 1;
    padding: var(--space-2) var(--space-1);
    letter-spacing: 0.14em;
    font-size: 0.62rem;
  }
  .place {
    padding-left: 2.75rem;
  }
  .place-name::before {
    width: 2.75rem;
    margin-left: -2.75rem;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq {
  max-width: 720px;
  text-align: left;
}
.faq details {
  border-bottom: 1px solid var(--rule);
  overflow: hidden; /* clips the answer while it slides open or shut */
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > :not(summary) {
    animation: faq-in 0.45s var(--ease);
  }
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  transition: transform 0.3s;
}
.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: var(--space-2);
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq-group + .faq-group {
  margin-top: var(--space-4);
}
.faq-heading {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--rule);
}
.faq-contact {
  margin-top: var(--space-4);
  font-family: var(--serif);
  font-size: 1.2rem;
}
.faq-contact a {
  text-underline-offset: 3px;
}

/* ==========================================================================
   11. RSVP
   ========================================================================== */
/* Several pieces below use display: grid/flex, which would override the
   hidden attribute. This keeps hidden things hidden. */
.rsvp [hidden] {
  display: none !important;
}

.rsvp {
  max-width: 600px;
  margin-inline: auto;
  text-align: left;
}
.rsvp-progress {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: var(--space-3);
}
.rsvp-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: var(--space-3);
  outline: none;
}
.rsvp-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--space-3) 0 var(--space-1);
}
.rsvp-optional {
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 0.8rem;
}
.rsvp-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: var(--space-1) 0 0;
}

.rsvp-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b8b7af;
  border-radius: 0;
  padding: 0.7rem 0;
}
.rsvp-input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
textarea.rsvp-input {
  resize: vertical;
}

.rsvp button.btn {
  font-family: inherit;
  font-weight: 300;
  background: transparent;
  cursor: pointer;
}
.rsvp button.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.rsvp button.link {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 0.15rem;
  cursor: pointer;
}
.rsvp button.link:hover {
  border-bottom-color: var(--ink);
}

.rsvp button.btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.rsvp button.btn-solid:hover {
  background: transparent;
  color: var(--ink);
}

.rsvp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.rsvp-actions .btn:only-child {
  margin-inline: auto;
}

.rsvp-error {
  margin: var(--space-2) 0 0;
  color: #8a3b2f;
  font-size: 0.92rem;
  text-align: center;
}

.rsvp-matches {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
}
.rsvp-match {
  font: inherit;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--space-2);
  cursor: pointer;
}
.rsvp-match:hover {
  border-color: var(--ink);
}
.rsvp-match strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}
.rsvp-match span {
  font-size: 0.85rem;
  color: var(--muted);
}

.rsvp-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}
.rsvp-shortcuts .btn {
  padding-inline: var(--space-1);
}

.rsvp-person {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: var(--space-3) 0 var(--space-2);
  min-width: 0;
}
.rsvp-person-name {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
.rsvp-person > :not(legend) {
  clear: both;
}
.rsvp-tag {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: var(--space-1);
  vertical-align: middle;
}
.rsvp-added-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.rsvp-added-name .link {
  flex: none;
}

.rsvp-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
}
.rsvp-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rsvp-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-1);
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.rsvp-toggle span:hover {
  border-color: var(--ink);
}
.rsvp-toggle input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.rsvp-toggle input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.rsvp-toggle-small span {
  min-height: 44px;
  font-size: 0.66rem;
}
.rsvp-toggle-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rsvp-more {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.rsvp-diet-btn {
  justify-self: start;
  background: none;
  border: 0;
  padding: var(--space-1) 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rsvp-field-error {
  margin: var(--space-1) 0 0;
  color: #8a3b2f;
  font-size: 0.88rem;
}
.rsvp-person.has-error .rsvp-toggle span {
  border-color: #c9a29b;
}

.rsvp-add {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
  text-align: center;
}
.rsvp-add .btn {
  margin-top: var(--space-2);
}

.rsvp-summary {
  display: grid;
  gap: var(--space-3);
}
.rsvp-summary .rsvp-label {
  margin-top: 0;
}
.rsvp-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rsvp-summary li {
  font-family: var(--serif);
  font-size: 1.25rem;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--rule);
}
.rsvp-done {
  text-align: center;
}
.rsvp-done .rsvp-summary {
  text-align: left;
  margin-bottom: var(--space-3);
}
.rsvp-calendar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

/* Hidden field that only bots fill in */
.rsvp-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .rsvp-shortcuts {
    grid-template-columns: 1fr;
  }
  .rsvp-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
  .rsvp-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
  text-align: center;
  padding: var(--space-5) var(--space-2);
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-logo {
  width: clamp(160px, 40vw, 280px);
  height: auto;
  margin: 0 auto var(--space-3);
}

/* ==========================================================================
   13. Print: schedule, hotels, activities and FAQ on clean paper (keep last)
   ========================================================================== */
@media print {
  @page {
    margin: 1.6cm 1.8cm;
  }

  html,
  body {
    background: #fff !important;
  }
  body {
    color: #000;
  }

  .intro,
  .nav-toggle,
  .nav-links,
  .hero-strip,
  .hero-countdown,
  #story,
  #registry,
  #rsvp,
  .event-foot .link,
  .btn,
  .footer-logo {
    display: none !important;
  }

  .link {
    border: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: inherit;
  }

  .section > *,
  .hero-meta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .nav {
    position: static;
    height: auto;
    justify-content: center;
    padding: 0 0 0.4cm;
    background: none;
    box-shadow: none !important;
  }
  .nav-names img {
    height: 34px;
  }
  .hero {
    padding-top: 0;
  }
  .hero-meta {
    padding: 0 0 0.2cm;
  }

  .section,
  .section-alt {
    background: none !important;
    padding: 0.8cm 0 0;
  }
  h2 {
    font-size: 22pt;
    margin-bottom: 0.35cm;
  }
  .lede {
    font-size: 12pt;
    margin: 0 auto 0.35cm;
  }
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  .events,
  .event,
  .card,
  .faq details {
    break-inside: avoid;
  }

  .events {
    border-color: #bbb;
    background: none;
  }

  #stay {
    break-before: page;
    padding-top: 0;
  }
  .event {
    padding: 0.6cm;
  }
  .event + .event {
    border-color: #bbb;
  }
  .event-top {
    margin-bottom: 0.4cm;
  }
  .event-art {
    width: 45%;
  }
  .event-place {
    font-size: 16pt;
    margin-bottom: 0.3cm;
  }
  .event-note {
    flex: none;
    margin-bottom: 0.3cm;
  }
  .event-foot {
    padding-top: 0.3cm;
  }

  .card {
    padding: 0.5cm;
    background: none;
    border-color: #bbb;
  }

  .faq summary {
    padding: 0.25cm 0;
    font-size: 13pt;
  }
  .faq summary::after {
    content: none;
  }
  .faq details {
    border-color: #bbb;
  }
  .faq details p {
    padding-bottom: 0.3cm;
  }
  details::details-content {
    content-visibility: visible;
    display: block;
  }

  .footer {
    border: 0;
    padding: 0.6cm 0 0;
  }
  .todo {
    background: none;
    outline: none;
  }

  .tab-list {
    display: none !important;
  }
  .tab-panel[hidden] {
    display: block !important;
  }
  .tab-panel-title {
    display: block !important;
    font-size: 14pt;
  }
  .place {
    break-inside: avoid;
    padding: 0.25cm 0 0.25cm 1.2cm;
  }
  .place-name::before {
    width: 1.2cm;
    margin-left: -1.2cm;
    font-size: 11pt;
  }
  .place-addr {
    border: 0;
  }
}
