@font-face {
  font-family: "The Seasons";
  src: url("./assets/fonts/theseasons-light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/fonts/theseasons-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/fonts/theseasons-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/fonts/theseasons-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/fonts/theseasons-light-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/fonts/theseasons-bold-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-background: #f6f2e9;
  --color-panel: #fbf8f1;
  --color-surface: rgba(255, 252, 245, 0.84);
  --color-olive: #134030;
  --color-olive-soft: #134030;
  --color-ink: #134030;
  --color-butter: #d5a63a;
  --color-border: rgba(85, 91, 59, 0.22);
  --color-border-strong: rgba(85, 91, 59, 0.38);
  --color-footer: #4a5033;
  --color-error: #8b4d43;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-signature: "Beth Ellen", cursive;
  --shadow-none: none;
  --radius-soft: 24px;
  --radius-panel: 28px;
  --radius-input: 0;
  --max-width: 1260px;
  --space-2xs: 0.35rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 11rem;
  --text-xs: 0.72rem;
  --text-sm: 0.84rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.35rem;
  --text-xl: clamp(2.4rem, 6vw, 4.8rem);
  --text-h2: clamp(2.1rem, 4.4vw, 3.7rem);
  --line-tight: 0.95;
  --line-snug: 1.08;
  --line-copy: 1.65;
  --tracking-wide: 0.24em;
  --tracking-wider: 0.32em;
  --border-thin: 1px solid var(--color-border);
  --duration-fast: 220ms;
  --duration-base: 300ms;
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-olive);
  font-family: var(--font-display);
  min-width: 320px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

input {
  color: var(--color-olive);
}

::selection {
  background: rgba(213, 166, 58, 0.24);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--color-footer);
  color: var(--color-background);
  padding: 0.75rem 1rem;
  transition: top var(--duration-fast) var(--ease-soft);
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  width: min(calc(100% - 2.25rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--space-4xl) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-number,
.eyebrow,
.desktop-nav a,
.mobile-nav a,
.inline-link,
.hero-meta,
.hero-place,
.schedule-time,
.submit-button,
.field label,
.field legend,
.bus-question,
.accordion-trigger,
.practical-chip span {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.section-number {
  color: var(--color-butter);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-xs);
}

.section-title,
.story-copy h2,
.hero h1 {
  margin: 0;
  font-weight: 500;
  line-height: var(--line-snug);
  letter-spacing: -0.03em;
}

.section-title {
  font-size: var(--text-h2);
}

.section-image-title {
  margin-left: auto;
  margin-right: auto;
}

.section-image-title img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.section-image-title-rsvp {
  width: min(100%, 17rem);
}

.section-image-title-info {
  width: min(100%, 22rem);
}

.section-image-title-day {
  width: min(100%, 13rem);
}

.section-image-title-schedule {
  width: min(100%, 9.5rem);
}

.section-title-smallcaps {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

#gran-dia .section-title-smallcaps {
  letter-spacing: 0.045em;
}

#gran-dia .site-shell {
  padding-top: 2rem;
}

#horaris .site-shell {
  padding-top: 2rem;
}

.section-intro,
.copy-block p,
.event-block p,
.accordion-panel p,
.form-status,
.footer-thanks {
  color: var(--color-ink);
  line-height: var(--line-copy);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 242, 233, 0.74);
  border-bottom: 1px solid rgba(85, 91, 59, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.header-logo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 3.1rem;
  line-height: 1;
}

.header-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 5rem;
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.language-button {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(85, 91, 59, 0.66);
  transition: color var(--duration-fast) var(--ease-soft);
}

.language-button.is-active {
  color: var(--color-olive);
}

.language-button + .language-button {
  position: relative;
}

.language-button + .language-button::before {
  content: "";
  position: absolute;
  left: -0.38rem;
  top: 50%;
  width: 1px;
  height: 0.8rem;
  background: rgba(85, 91, 59, 0.22);
  transform: translateY(-50%);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  font-size: var(--text-xs);
  color: var(--color-olive);
}

.desktop-nav a::after,
.inline-link::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-soft);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.mobile-nav a:hover::after,
.mobile-nav a:focus-visible::after,
.inline-link:hover::after,
.inline-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  color: var(--color-olive);
}

.menu-toggle span {
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition:
    transform var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  border-bottom: 1px solid rgba(85, 91, 59, 0.08);
  background: rgba(251, 248, 241, 0.96);
}

.mobile-nav-inner {
  padding: 0.25rem 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.hero {
  padding-top: calc(var(--space-4xl) + 1rem);
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: var(--space-2xl);
  position: relative;
}

.hero-layout::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0.35rem;
  left: 50%;
  width: min(calc(100% - 4rem), 52rem);
  aspect-ratio: 2172 / 724;
  background: url("./assets/doodles/guirnalda-invitacion.png") center / contain no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-copy {
  max-width: 31rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-branches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 1.6rem;
}

.hero-branches img {
  width: 5.3rem;
}

.hero h1 {
  font-size: clamp(3.3rem, 10.6vw, 5rem);
  line-height: var(--line-tight);
}

.hero-subcopy {
  margin: var(--space-md) auto var(--space-sm);
  max-width: 20rem;
  font-size: var(--text-xs);
  color: var(--color-ink);
}

.hero-rsvp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem auto 0;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(85, 91, 59, 0.34);
  background: rgba(255, 252, 245, 0.44);
  color: var(--color-olive);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background-color var(--duration-fast) var(--ease-soft),
    color var(--duration-fast) var(--ease-soft);
}

.hero-rsvp-cta:hover,
.hero-rsvp-cta:focus-visible {
  border-color: var(--color-olive);
  background: rgba(85, 91, 59, 0.08);
}

.hero-names {
  width: min(100%, 22rem);
  margin: 0 auto 2.8rem;
  font-size: clamp(2.45rem, 7.5vw, 4.2rem);
  font-family: var(--font-signature);
  color: var(--color-olive);
  line-height: 1.05;
  white-space: nowrap;
}

.hero-names img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-message {
  width: min(100%, 26rem);
  margin: 1rem auto 0.85rem;
}

.hero-message img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-announcement {
  width: min(100%, 10rem);
  margin: 0 auto 1.45rem;
  font-size: 0.72rem;
  color: var(--color-olive);
}

.hero-announcement img {
  width: 100%;
  height: auto;
}

.hero-mobile-doodle {
  display: none;
  width: 8.5rem;
  margin: 0 auto var(--space-md);
  color: var(--color-olive-soft);
}

.accent-divider {
  width: 3rem;
  height: 1px;
  margin: 0 auto var(--space-md);
  background: var(--color-butter);
}

.hero-meta,
.hero-place {
  margin: 0;
  font-size: var(--text-xs);
}

.hero-meta {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  letter-spacing: 0.24em;
  color: var(--color-olive);
}

.hero-meta img {
  width: min(100%, 15rem);
  height: auto;
  margin: 0 auto;
}

.hero-illustration {
  width: min(100%, 34rem);
  margin: 0 auto;
  color: var(--color-olive-soft);
  position: relative;
  z-index: 1;
}

.scroll-cue {
  width: 1.75rem;
  height: 3rem;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin: var(--space-xl) auto 0;
  color: var(--color-butter);
}

.scroll-cue span {
  width: 1px;
  height: 100%;
  background: currentColor;
  position: relative;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.story-layout,
.rsvp-layout {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.story-illustration {
  width: min(100%, 20rem);
  margin: 0 auto;
  color: var(--color-olive-soft);
}

.story-table-wrap {
  width: min(100%, 32rem);
}

.story-table-wrap img {
  width: 100%;
}

.story-copy {
  max-width: 31rem;
  margin: 0 auto;
  text-align: center;
}

.story-copy h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-lg);
}

.story-copy .story-image-title {
  width: min(100%, 22rem);
  margin: 0 auto var(--space-lg);
}

.story-image-title img {
  width: 100%;
  height: auto;
}

.story-title-es {
  display: none;
}

html[lang="es"] .story-title-ca {
  display: none;
}

html[lang="es"] .story-title-es {
  display: block;
}

.rsvp-title-es {
  display: none;
}

html[lang="es"] .rsvp-title-ca {
  display: none;
}

html[lang="es"] .rsvp-title-es {
  display: block;
}

.hero-date-es {
  display: none;
}

html[lang="es"] .hero-date-ca {
  display: none;
}

html[lang="es"] .hero-date-es {
  display: block;
}

.day-title-es {
  display: none;
}

html[lang="es"] .day-title-ca {
  display: none;
}

html[lang="es"] .day-title-es {
  display: block;
}

.info-title-es {
  display: none;
}

html[lang="es"] .info-title-ca {
  display: none;
}

html[lang="es"] .info-title-es {
  display: block;
}

.hero-message-es {
  display: none;
}

html[lang="es"] .hero-message-ca {
  display: none;
}

html[lang="es"] .hero-message-es {
  display: block;
}

.ceremony-title-es {
  display: none;
}

html[lang="es"] .ceremony-title-ca {
  display: none;
}

html[lang="es"] .ceremony-title-es {
  display: block;
}

.celebration-title-es {
  display: none;
}

html[lang="es"] .celebration-title-ca {
  display: none;
}

html[lang="es"] .celebration-title-es {
  display: block;
}

/* Spanish artwork is taller, so scale it to preserve the Catalan hero rhythm. */
html[lang="es"] .hero-meta .hero-date-es {
  width: min(100%, 14.5rem);
}

html[lang="es"] .hero-message {
  width: min(100%, 25.4rem);
  margin: 1rem auto 1.6rem;
}

html[lang="es"] .hero-branches {
  margin: 0 auto 1.35rem;
}

html[lang="es"] .hero-meta {
  margin-bottom: 1.8rem;
}

/* Use the story heading as the single Catalan title scale. */
html[lang="ca"] .story-copy .story-image-title {
  width: min(100%, 18rem);
}

html[lang="ca"] .section-image-title-day,
html[lang="ca"] .section-image-title-rsvp {
  width: min(100%, 18rem);
}

html[lang="ca"] .section-image-title-day {
  width: min(100%, 13rem);
}

html[lang="ca"] .section-image-title-info {
  width: min(100%, 18rem);
}

html[lang="ca"] .event-block .event-image-title {
  width: min(100%, 5.7rem);
}

html[lang="ca"] .event-block-reversed .event-image-title {
  width: min(100%, 4.8rem);
}

html[lang="es"] .section-image-title-info {
  width: min(100%, 15.5rem);
}

html[lang="es"] .section-image-title-rsvp {
  width: min(100%, 12.5rem);
}

.copy-block {
  display: grid;
  gap: 0.6rem;
}

.copy-block p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.heart-mark {
  width: 1.8rem;
  color: var(--color-butter);
  margin: var(--space-md) auto 0;
}

.event-layout {
  display: grid;
  gap: var(--space-xl);
}

.event-block {
  text-align: center;
  max-width: 22rem;
  margin: 0 auto;
}

.icon-illustration {
  width: min(100%, 11rem);
  height: auto;
  margin: 0 auto var(--space-md);
}

.event-block .icon-illustration {
  width: min(100%, 9rem);
}

.event-block h3 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-family: var(--font-signature);
}

.event-block .event-image-title {
  width: min(100%, 8rem);
  margin: 0 auto 0.7rem;
}

.event-block .icon-illustration {
  margin-bottom: 0.35rem;
}

.event-image-title img {
  width: 100%;
  height: auto;
}

.event-time {
  margin: 0 0 0.5rem;
}

.event-block p {
  margin: 0.2rem 0;
  font-size: var(--text-md);
}

.inline-link {
  display: inline-block;
  font-size: var(--text-xs);
  margin-top: var(--space-md);
  position: relative;
}

.event-block .inline-link::after {
  transform: scaleX(1);
}

.event-separator {
  display: none;
}

.event-separator .doodle-svg {
  width: 1.35rem;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-xl);
}

.schedule-item {
  text-align: center;
  position: relative;
}

.schedule-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.75rem;
  width: 1px;
  height: 1.5rem;
  background: var(--color-border);
  transform: translateX(-50%);
}

.schedule-item:first-child::before {
  display: none;
}

.schedule-icon {
  width: 3rem;
  margin: 0 auto var(--space-sm);
  color: var(--color-olive-soft);
}

.schedule-time {
  margin: 0 0 0.45rem;
  font-size: var(--text-sm);
}

.schedule-label {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.rsvp-layout {
  grid-template-columns: 1fr;
}

.rsvp-flourish {
  display: none;
}

.rsvp-form {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.form-row {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.field legend,
.bus-question {
  font-size: var(--text-xs);
}

.field legend {
  margin-bottom: var(--space-sm);
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-input);
  background: transparent;
  transition:
    border-color var(--duration-fast) var(--ease-soft),
    background-color var(--duration-fast) var(--ease-soft);
}

.field input::placeholder {
  color: rgba(106, 98, 87, 0.75);
}

.field input:hover {
  border-color: var(--color-olive);
}

.field input:focus-visible,
.menu-toggle:focus-visible,
.submit-button:focus-visible,
.accordion-trigger:focus-visible,
.desktop-nav a:focus-visible,
.mobile-nav a:focus-visible,
.inline-link:focus-visible,
.radio-option:has(input:focus-visible) {
  outline: 2px solid rgba(213, 166, 58, 0.45);
  outline-offset: 3px;
}

.field-error {
  min-height: 1.1rem;
  margin: 0;
  color: var(--color-error);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.radio-fieldset {
  margin: 0 0 var(--space-md);
  padding: 0;
  border: 0;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-ink);
}

.field .radio-option input {
  appearance: none;
  width: 1rem;
  height: 1rem;
  min-height: 0;
  max-height: 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  padding: 0;
  margin: 0;
  position: relative;
}

.radio-option input:checked::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 50%;
  background: var(--color-olive);
}

.radio-option span {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1rem;
}

.bus-panel {
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
  margin: var(--space-lg) 0;
  opacity: 0;
  transform: translateY(-0.4rem);
  transition:
    opacity var(--duration-base) var(--ease-soft),
    transform var(--duration-base) var(--ease-soft);
}

.bus-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bus-panel-inner {
  padding: var(--space-md) 0;
}

.bus-heading {
  width: 4rem;
  color: var(--color-olive-soft);
  margin-bottom: var(--space-md);
}

.bus-question {
  color: var(--color-ink);
  margin: 0 0 var(--space-sm);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.form-actions {
  margin-top: var(--space-lg);
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.submit-button {
  min-width: min(100%, 18rem);
  min-height: 3.1rem;
  padding: 0.95rem 1.5rem;
  background: #134030;
  color: var(--color-background);
  border: 1px solid transparent;
  transition:
    background-color var(--duration-fast) var(--ease-soft),
    color var(--duration-fast) var(--ease-soft);
  font-size: var(--text-xs);
}

.submit-button:hover {
  background: #0c2e22;
}

.submit-button[disabled] {
  opacity: 0.72;
  cursor: progress;
}

.form-status {
  margin: 0;
  min-height: 1.6rem;
  text-align: center;
}

.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(23 48 36 / 52%);
}

.success-modal-card {
  width: min(100%, 30rem);
  padding: clamp(2rem, 6vw, 3.25rem);
  border: 1px solid rgb(255 253 247 / 65%);
  border-radius: 1.5rem;
  background: var(--color-footer);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 22%);
  text-align: center;
}

.success-modal-card p {
  margin: 0;
  color: var(--color-background);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-style: normal;
  line-height: 1.2;
}

.success-modal-close {
  margin-top: 1.7rem;
  min-width: 8.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--color-background);
  background: transparent;
  color: var(--color-background);
  font-size: var(--text-xs);
}

.success-modal-close:hover {
  background: var(--color-background);
  color: var(--color-footer);
}

/* Keep the longer Catalan arrival label on one line in both layouts. */
html[lang="ca"] [data-i18n="info_arrival"] {
  white-space: nowrap;
  font-size: inherit;
  letter-spacing: 0.16em;
}

.desktop-only {
  display: none;
}

.accordion {
  border-top: var(--border-thin);
}

.accordion-item {
  border-bottom: var(--border-thin);
}

.accordion-trigger {
  width: 100%;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  text-align: left;
  color: var(--color-olive);
  font-size: var(--text-xs);
}

.accordion-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.accordion-title-wrap .doodle-svg {
  width: 2rem;
}

.accordion-title-wrap .doodle-emphasis {
  width: 2.35rem;
}

img[src*="contact-phone-exact-2"] {
  width: 1.35rem !important;
}

.accordion-title-wrap .doodle-gift-small {
  width: 1.65rem;
}

.accordion-symbol {
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-soft);
}

.accordion-trigger[aria-expanded="true"] .accordion-symbol {
  transform: rotate(225deg);
}

.accordion-panel {
  padding: 0 0 var(--space-md);
}

.accordion-panel p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 42rem;
}

.gift-account {
  margin-top: 0.9rem !important;
  font-family: var(--font-ui);
  font-size: 0.8rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-olive);
}

body.menu-open {
  overflow: hidden;
}

.site-footer {
  background: #134030;
  color: var(--color-background);
  margin-top: var(--space-4xl);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.footer-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
}

.footer-claim,
.footer-thanks {
  margin: 0;
}

.footer-claim {
  max-width: none;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.05;
  white-space: nowrap;
  text-align: center;
}

.footer-center {
  text-align: center;
}

.footer-names {
  margin: 0;
  line-height: 1;
}

.footer-names img {
  display: block;
  width: min(100%, 18.5rem);
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.footer-heart {
  width: 6.5rem;
  margin: 0 auto 1.3rem;
}

.footer-heart img {
  filter: brightness(0) invert(1);
}

.footer-thanks {
  color: rgba(246, 242, 233, 0.86);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.footer-doodle {
  width: min(100%, 12rem);
  justify-self: end;
  color: rgba(246, 242, 233, 0.9);
}

.doodle-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.doodle-accent {
  color: var(--color-olive-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 700ms var(--ease-soft),
    transform 700ms var(--ease-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

@media (min-width: 768px) {
  .site-shell {
    width: min(calc(100% - 4rem), var(--max-width));
  }

  .section {
    padding: clamp(8rem, 12vw, 12rem) 0;
  }

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

  .hero h1 {
    font-size: clamp(3.85rem, 6.8vw, 5.2rem);
  }

  .story-layout {
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 7rem);
  }

  .story-copy {
    text-align: left;
    margin: 0;
  }

  .story-illustration {
    width: min(100%, 28rem);
  }

  .heart-mark {
    margin-left: 0;
  }

  .event-layout {
    grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
    align-items: center;
  }

  .event-separator {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
  }

  .event-separator span {
    width: 1px;
    height: 4.4rem;
    background: var(--color-border);
  }

  .schedule-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
    align-items: start;
  }

  .schedule-item::before {
    left: auto;
    top: 3.2rem;
    right: calc(100% - 0.5rem);
    width: calc(100% - 1rem);
    height: 1px;
    transform: none;
  }

  .rsvp-flourish {
    display: block;
    color: var(--color-olive-soft);
  }

  .rsvp-layout {
    grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) minmax(7rem, 10rem);
    gap: var(--space-lg);
    align-items: start;
  }

  .desktop-only {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .practical-chip {
    padding: 1rem 0.5rem;
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    text-align: center;
    color: var(--color-olive);
  }

  .practical-chip .doodle-svg {
    width: 2rem;
  }

  .practical-chip .doodle-emphasis {
    width: 2.4rem;
  }

  .practical-chip .doodle-gift-small {
    width: 1.7rem;
  }

  .footer-layout {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-controls {
    gap: 1.5rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(4rem, 8vw, 8rem);
  }

  .hero-copy {
    text-align: left;
    margin: 0;
  }

  .hero-rsvp-cta {
    margin-left: 0;
  }

  .hero-branches,
  .accent-divider {
    margin-left: 0;
  }

  .hero-illustration {
    width: min(100%, 39rem);
    justify-self: end;
  }

  .accordion {
    margin-top: var(--space-md);
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 72px;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 7rem;
  }

  .site-shell {
    width: min(calc(100% - 1.3rem), var(--max-width));
  }

  .site-header {
    background: rgba(246, 242, 233, 0.88);
  }

  .header-inner {
    min-height: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand {
    display: none;
  }

  .header-controls {
    gap: 0.9rem;
    align-items: flex-start;
  }

  .header-logo {
    width: 2.4rem;
    margin-top: -0.15rem;
  }

  .language-switch {
    margin-top: 0.08rem;
  }

  .menu-toggle {
    width: 1.4rem;
    height: 1.2rem;
    padding: 0;
    margin-left: 0;
  }

  .mobile-nav {
    position: absolute;
    inset: calc(100% + 0.1rem) 0 auto;
    border-bottom: 0;
  }

  .mobile-nav-inner {
    padding-top: 0.4rem;
  }

  .menu-toggle span {
    width: 100%;
  }

  .mobile-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(85, 91, 59, 0.12);
  }

  .section {
    padding: 0 0 1rem;
  }

  .hero,
  .story,
  .wedding-day,
  .schedule,
  .rsvp,
  .practical {
    padding-top: 0;
  }

  .hero .site-shell,
  .story .site-shell,
  .wedding-day .site-shell,
  .schedule .site-shell,
  .rsvp .site-shell,
  .practical .site-shell {
    background-color: var(--color-panel);
    border: 1px solid rgba(85, 91, 59, 0.1);
    border-radius: var(--radius-panel);
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero .site-shell {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-layout::before {
    top: 0.65rem;
    width: calc(100% - 1.3rem);
  }

  .hero-layout {
    gap: 1.5rem;
  }

  .hero-copy,
  .story-copy,
  .rsvp-form {
    width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(2.5rem, 10vw, 3.1rem);
    line-height: 0.92;
    text-wrap: balance;
  }

  .hero-names {
    width: min(100%, 17.5rem);
    margin-bottom: 2.5rem;
    font-size: clamp(2.2rem, 10.2vw, 3.2rem);
  }

  .hero-announcement {
    margin-bottom: 1.35rem;
  }

  .hero-subcopy {
    max-width: none;
    margin-top: 1rem;
    margin-bottom: 0.85rem;
    line-height: 1.6;
    font-size: clamp(0.54rem, 2.5vw, 0.7rem);
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .hero-illustration {
    display: none;
  }

  .hero-mobile-doodle {
    display: block;
    width: 8rem;
  }

  .hero-rsvp-cta {
    margin-top: 1rem;
    padding: 0.72rem 1rem;
    border-color: rgba(85, 91, 59, 0.48);
    background: rgba(85, 91, 59, 0.06);
    font-size: 0.62rem;
  }

  .hero-meta {
    margin-top: 0;
    font-size: clamp(1rem, 4.9vw, 1.35rem);
    letter-spacing: 0.26em;
    margin-bottom: 1.8rem;
  }

  .hero-branches {
    gap: 0.25rem;
    margin-bottom: 1.35rem;
  }

  .hero-branches img {
    width: 4.5rem;
  }

  .scroll-cue {
    margin-top: 1.1rem;
    height: 2.4rem;
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }

  .section-number {
    margin-bottom: 0.55rem;
  }

  .story-layout,
  .event-layout,
  .schedule-list,
  .rsvp-layout {
    gap: 1.6rem;
  }

  .story-illustration {
    width: 12rem;
    margin-top: 0.2rem;
  }

  .story-copy {
    text-align: center;
  }

  .story-copy h2,
  .section-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 0.98;
  }

  .copy-block p {
    font-size: 1.18rem;
    line-height: 1.55;
  }

  .event-block {
    max-width: none;
    padding: 0.25rem 0;
  }

  .icon-illustration {
    width: min(100%, 9rem);
    height: auto;
    margin-bottom: 1rem;
  }

  .event-block h3 {
    font-size: 1.45rem;
    letter-spacing: 0.12em;
  }

  .event-block + .event-block,
  .event-separator + .event-block {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(85, 91, 59, 0.12);
  }

  .event-separator {
    display: none;
  }

  .schedule-list {
    position: relative;
  }

  .schedule-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    align-items: center;
    column-gap: 1rem;
    padding: 0.35rem 0 1.15rem;
    border-bottom: 1px solid rgba(85, 91, 59, 0.12);
    text-align: left;
  }

  .schedule-item::before {
    display: none;
  }

  .schedule-icon {
    width: 2.5rem;
    margin: 0;
    padding: 0;
  }

  .schedule-item > .schedule-time,
  .schedule-item > .schedule-label {
    grid-column: 2;
  }

  .schedule-time {
    margin: 0 0 0.15rem;
  }

  .schedule-label {
    margin: 0;
    font-size: 1.15rem;
  }

  .rsvp-form {
    margin: 0;
  }

  .field input {
    min-height: 3.15rem;
    padding: 0.85rem 0.8rem;
  }

  .radio-group {
    gap: 1rem 1.35rem;
  }

  .bus-panel {
    margin: 1.5rem 0;
  }

  .bus-panel-inner {
    padding: 1rem 0 0.35rem;
  }

  .bus-heading {
    margin-bottom: 1rem;
  }

  .submit-button {
    width: 100%;
    max-width: none;
  }

  .accordion-trigger {
    padding: 1rem 0;
    align-items: flex-start;
  }

  .accordion-title-wrap {
    align-items: center;
    gap: 0.7rem;
  }

  .accordion-title-wrap span:last-child {
    display: inline-block;
    max-width: 12rem;
    line-height: 1.5;
  }

  .footer-layout {
    gap: 1.6rem;
  }

  .footer-claim {
    max-width: none;
    font-size: clamp(1.2rem, 4.8vw, 1.7rem);
  }

  .footer-center {
    text-align: center;
  }

  .footer-heart {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-doodle {
    width: 9rem;
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .bus-panel {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* A single, editorial timeline keeps the wedding-day moments easy to scan. */
.schedule-list {
  position: relative;
  width: min(100%, 34rem);
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.schedule-list::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 50%;
  width: 1px;
  background: rgba(85, 91, 59, 0.22);
  transform: translateX(-50%);
}

.schedule-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.9rem;
  padding: 0 0 1.65rem;
  border-bottom: 0;
}

.schedule-item:last-child {
  padding-bottom: 0;
}

.schedule-item::before {
  display: none;
}

.schedule-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  z-index: 1;
  box-sizing: border-box;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid rgba(85, 91, 59, 0.18);
  border-radius: 50%;
  background: var(--color-panel);
  object-fit: contain;
}

.schedule-item > .schedule-time {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ochre);
}

.schedule-item > .schedule-label {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}

.schedule-item:nth-child(even) > .schedule-time,
.schedule-item:nth-child(even) > .schedule-label {
  grid-column: 1;
  text-align: right;
}

@media (max-width: 380px) {
  .schedule-item {
    grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr);
    column-gap: 0.7rem;
  }

  .schedule-list::before {
    left: 50%;
  }

  .schedule-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.35rem;
  }
}

/* Desktop-only composition: keeps the invitation-led hero clear and balanced. */
@media (min-width: 1024px) {
  .hero {
    min-height: 0;
    padding-top: 3rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 8.35rem;
  }

  .hero-layout::before {
    top: 0;
    width: min(calc(100% - 8rem), 58rem);
    height: 6.75rem;
    aspect-ratio: auto;
    background-image: url("./assets/doodles/guirnalda-invitacion.png");
    background-position: center top;
    background-size: 100% auto;
    mix-blend-mode: normal;
  }

  .hero-copy {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
  }

  .hero-names {
    margin-bottom: 1.25rem;
    font-size: clamp(3.2rem, 5vw, 4.5rem);
  }

  .hero-announcement {
    margin-bottom: 1rem;
  }

  .hero-meta {
    margin-bottom: 1rem;
  }

  .hero-branches,
  .accent-divider,
  .hero-rsvp-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(3.6rem, 4.6vw, 4.5rem);
  }

  .hero-illustration {
    width: min(100%, 8rem);
    margin: 0 auto;
    justify-self: center;
  }

  .scroll-cue {
    margin-top: 2.5rem;
  }

  .schedule-list {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 32rem);
  }

  .schedule-list::before {
    top: 2rem;
    bottom: 2rem;
    left: 2rem;
    transform: none;
  }

  .schedule-item {
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    padding-bottom: 2rem;
    text-align: left;
  }

  .schedule-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 4rem;
    height: 4rem;
  }

  .schedule-item > .schedule-time,
  .schedule-item > .schedule-label,
  .schedule-item:nth-child(even) > .schedule-time,
  .schedule-item:nth-child(even) > .schedule-label {
    grid-column: 2;
    text-align: left;
  }

  .schedule-item > .schedule-time {
    grid-row: 1;
    align-self: end;
  }

  .schedule-item > .schedule-label {
    grid-row: 2;
    align-self: start;
  }

  .desktop-only {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop follows the same calm, vertical invitation composition as mobile. */
@media (min-width: 768px) {
  :root {
    --header-height: 72px;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 7rem;
  }

  .site-shell {
    width: min(calc(100% - 2.5rem), 36rem);
  }

  .header-inner {
    min-height: auto;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand,
  .desktop-nav {
    display: none;
  }

  .header-controls {
    gap: 0.9rem;
    align-items: flex-start;
  }

  .header-logo {
    width: 2.4rem;
    margin-top: -0.15rem;
  }

  .language-switch {
    margin-top: 0.08rem;
  }

  .menu-toggle {
    display: inline-flex;
    width: 1.4rem;
    height: 1.2rem;
    padding: 0;
    margin-left: 0;
  }

  .menu-toggle span {
    width: 100%;
  }

  .section {
    padding: 0 0 1rem;
  }

  .hero,
  .story,
  .wedding-day,
  .schedule,
  .rsvp,
  .practical {
    min-height: 0;
    padding-top: 0;
  }

  .hero .site-shell,
  .story .site-shell,
  .wedding-day .site-shell,
  .schedule .site-shell,
  .rsvp .site-shell,
  .practical .site-shell {
    background-color: var(--color-panel);
    border: 1px solid rgba(85, 91, 59, 0.1);
    border-radius: var(--radius-panel);
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero .site-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0;
  }

  .hero-layout::before {
    top: 0.65rem;
    width: calc(100% - 1.3rem);
    height: auto;
    aspect-ratio: 2172 / 724;
    background-image: url("./assets/doodles/guirnalda-invitacion.png");
  }

  .hero-copy,
  .story-copy {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(2.5rem, 5vw, 3.1rem);
    line-height: 0.92;
  }

  .hero-names {
    margin-bottom: 2.5rem;
    font-size: clamp(2.2rem, 5.2vw, 3.2rem);
  }

  .hero-announcement {
    margin-bottom: 1.35rem;
  }

  .hero-meta {
    margin: 0 0 1.8rem;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
  }

  .hero-branches {
    gap: 0.25rem;
    margin: 0 auto 1.35rem;
  }

  .hero-branches img {
    width: 2.8rem;
  }

  .hero-subcopy {
    max-width: none;
    margin: 1rem auto 0.85rem;
    font-size: 0.7rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .hero-illustration {
    display: none;
  }

  .hero-mobile-doodle {
    display: block;
    width: 9.5rem;
  }

  .scroll-cue {
    margin-top: 1.1rem;
    height: 2.4rem;
  }

  .story-layout,
  .event-layout,
  .rsvp-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .story-illustration {
    width: 12rem;
    margin-top: 0.2rem;
  }

  .story-copy h2,
  .section-title {
    font-size: clamp(2.15rem, 5vw, 3rem);
    line-height: 0.98;
  }

  .copy-block p {
    font-size: 1.18rem;
    line-height: 1.55;
  }

  .event-separator,
  .rsvp-flourish {
    display: none;
  }

  .event-block {
    max-width: none;
    padding: 0.25rem 0;
  }

  .icon-illustration {
    width: min(100%, 9rem);
    margin-bottom: 1rem;
  }

  .event-block h3 {
    font-size: 1.45rem;
    letter-spacing: 0.12em;
  }

  .event-block + .event-block {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(85, 91, 59, 0.12);
  }

  .wedding-day .event-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }

  .wedding-day .event-block + .event-block {
    padding-top: 0.25rem;
    border-top: 0;
  }

  .wedding-day .icon-illustration {
    width: min(100%, 7.5rem);
  }

  .schedule-list {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .schedule-list::before,
  .schedule-item::before {
    display: none;
  }

  .schedule-item {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    padding: 0.35rem 0 1.15rem;
    border-bottom: 1px solid rgba(85, 91, 59, 0.12);
    text-align: left;
  }

  .schedule-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 2.5rem;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .schedule-item > .schedule-time,
  .schedule-item > .schedule-label,
  .schedule-item:nth-child(even) > .schedule-time,
  .schedule-item:nth-child(even) > .schedule-label {
    grid-column: 2;
    text-align: left;
  }

  .schedule-time {
    margin: 0 0 0.15rem;
  }

  .schedule-label {
    margin: 0;
    font-size: 1.15rem;
  }

  .rsvp-form {
    width: 100%;
    margin: 0;
  }

  .desktop-only {
    display: none;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
  }

  .footer-claim {
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  }

  .footer-left,
  .footer-doodle {
    justify-self: center;
  }

  .footer-doodle {
    width: 9rem;
  }
}

/* A centered timeline gives each moment equal visual weight. */
.schedule-list {
  width: min(100%, 30rem);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0.5rem;
  position: relative;
}

.schedule-list::before {
  display: none;
}

.schedule-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-items: center;
  row-gap: 0.2rem;
  padding: 0;
  border-bottom: 0;
  text-align: center;
}

.schedule-item::before {
  display: none;
}

.schedule-icon {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 0 0.3rem;
  padding: 0.48rem;
  border: 1px solid rgba(85, 91, 59, 0.18);
  border-radius: 50%;
  background: var(--color-panel);
}

.schedule-item > .schedule-time,
.schedule-item > .schedule-label,
.schedule-item:nth-child(even) > .schedule-time,
.schedule-item:nth-child(even) > .schedule-label {
  grid-column: 1;
  text-align: center;
}

.schedule-item > .schedule-time {
  grid-row: 2;
  align-self: center;
  margin: 0;
}

.schedule-item > .schedule-label {
  grid-row: 3;
  align-self: center;
  margin: 0;
  font-size: 1.2rem;
}

.schedule-item:last-child {
  grid-column: 1 / -1;
  width: 50%;
  justify-self: center;
}

@media (min-width: 768px) {
  .schedule-list {
    width: min(100%, 36rem);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .schedule-list::before {
    display: block;
    top: 1.7rem;
    right: 10%;
    bottom: auto;
    left: 10%;
    width: auto;
    height: 1px;
    background: rgba(85, 91, 59, 0.2);
    transform: none;
  }

  .schedule-item:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

/* Mobile keeps the alternating timeline: icons centered, details at each side. */
@media (max-width: 767px) {
  .schedule-list {
    width: min(100%, 22rem);
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .schedule-list::before {
    display: block;
    top: 1.75rem;
    bottom: 1.75rem;
    left: 50%;
    width: 1px;
    height: auto;
    background: rgba(85, 91, 59, 0.16);
    transform: translateX(-50%);
  }

  .schedule-item,
  .schedule-item:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: stretch;
    column-gap: 0.9rem;
    row-gap: 0;
    width: 100%;
    padding: 0 0 1.65rem;
    border-bottom: 0;
    text-align: left;
  }

  .schedule-item:last-child {
    grid-column: auto;
    justify-self: stretch;
  }

  .schedule-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    z-index: 1;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    padding: 0.55rem;
    border: 1px solid rgba(85, 91, 59, 0.18);
    border-radius: 50%;
    background: var(--color-panel);
  }

  .schedule-item > .schedule-time,
  .schedule-item > .schedule-label,
  .schedule-item:nth-child(even) > .schedule-time,
  .schedule-item:nth-child(even) > .schedule-label {
    grid-column: 3;
    text-align: left;
  }

  .schedule-item > .schedule-time {
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .schedule-item > .schedule-label {
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: 1.2rem;
  }

  .schedule-item:nth-child(even) > .schedule-time,
  .schedule-item:nth-child(even) > .schedule-label {
    grid-column: 1;
    text-align: right;
  }
}

/* The panoramic table illustration needs the full card width. */
.story-illustration.story-table-wrap {
  width: min(100%, 32rem);
}

@media (max-width: 767px) {
  .story-illustration.story-table-wrap {
    width: 100%;
  }

  .story-copy .story-image-title {
    margin-bottom: 0.15rem;
  }
}

.hero .hero-names {
  width: min(100%, 25rem);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.hero-layout::before {
  top: -0.25rem;
}

@media (max-width: 767px) {
  .hero .hero-names {
    width: min(100%, 20rem);
  }
}

.hero-mobile-doodle {
  width: min(100%, 10.5rem);
}

.schedule-poster {
  width: min(100%, 24rem);
  margin: 0 auto;
}

.schedule-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.schedule-poster-es {
  display: none !important;
}

.schedule-poster .schedule-title-ca {
  width: min(100%, 8rem);
  margin: 0 auto 0.8rem;
}

html[lang="es"] .schedule-poster-ca {
  display: none !important;
}

html[lang="es"] .schedule-poster .schedule-title-ca {
  display: none !important;
}

html[lang="es"] .schedule-poster-es {
  display: block !important;
}

.schedule-poster .schedule-title-es {
  display: none !important;
  width: min(100%, 9.5rem);
  margin: 0 auto 0.8rem;
}

html[lang="es"] .schedule-poster .schedule-title-es {
  display: block !important;
}

.wedding-day .event-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.wedding-day .event-visual,
.wedding-day .event-details {
  min-width: 0;
}

.wedding-day .event-visual {
  display: grid;
  justify-items: center;
}

.wedding-day .event-details {
  text-align: center;
  transform: translateY(-0.6rem);
}

.wedding-day .event-details .inline-link {
  margin-top: 0.65rem;
}

.wedding-day .event-block-reversed .event-details {
  grid-column: 1;
  grid-row: 1;
}

.wedding-day .event-block-reversed .event-visual {
  grid-column: 2;
  grid-row: 1;
}

@media (min-width: 768px) {
  .wedding-day .section-heading {
    margin-bottom: 1.25rem;
  }

  .wedding-day .event-block {
    display: block;
    max-width: 18rem;
  }

  .wedding-day .icon-illustration {
    width: 9rem;
    height: 8.5rem;
    object-fit: contain;
    object-position: center;
  }

  .wedding-day .event-details {
    margin-top: 0.7rem;
    transform: none;
  }
}
