/* Coordinator-owned theme refinements. Event content stays in event.js. */
[hidden] { display: none !important; }

:root {
  --page: #f7eeea;
  --paper: #fffaf3;
  --rose-pale: #f5dce1;
  --ink: #623540;
  --ink-soft: #79434e;
  --rose-deep: #9f4b61;
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at 0 20%, #efd9d9 0, transparent 42%),
    radial-gradient(ellipse at 100% 65%, #f2dfd3 0, transparent 40%), var(--page);
}
.picado-band { height: 80px; background-color: #bb6d80; }
.panel { border-color: #e4c8c4; box-shadow: 0 6px 24px #81434b05; }

.panel.hero {
  isolation: isolate;
  border-radius: 280px 280px 22px 22px;
  padding-top: clamp(52px, 12vw, 76px);
  background: linear-gradient(160deg, #f9e0e1, #fff8f1 70%);
}
.hero::before {
  content: '✝';
  width: auto;
  height: auto;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
  background: none;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -66px;
  top: 210px;
  width: 250px;
  height: 260px;
  opacity: .6;
  background: url('./assets/roses.svg') center / contain no-repeat;
  transform: rotate(145deg);
  pointer-events: none;
}
.hero .arch-frame { max-width: 340px; margin-top: 24px; }
.hero .arch-frame img { outline: 7px solid #fff7ec; border-color: #caa775; }
.hero .date-line { margin-top: 12px; }
.hero .arch-roses {
  left: -46px;
  right: auto;
  bottom: -22px;
  width: 174px;
  height: 174px;
  background-position: left bottom;
  transform: rotate(-12deg);
}
.hero .intro { margin-top: 32px; }

.panel.blessing {
  border-color: #ae5f72;
  background: #ad5a6f;
  padding-top: 38px;
  padding-bottom: 38px;
}
.blessing h2, .blessing blockquote { color: #fffaf0; }
.blessing::before { background: linear-gradient(90deg, transparent, #ead2b3, transparent); }
.blessing blockquote::before, .blessing blockquote::after { color: #fff0d7; }
.family-grid h3 { color: var(--rose-deep); }
.family-grid > div + div { padding-top: 20px; border-top: 1px solid #ead8cb; }
.countdown div { background: #fff8f6; border-color: #e4c8c4; }
.mass-time { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 25px; }
.party-times li { background: #fff5ef; border-color: #ecd7ce; padding: 16px 10px; }
.party-times span { font-weight: 500; }
.gallery h2, .closing h2 {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 52px);
  line-height: 1.25;
}
.photo-grid img { object-position: center top; }
.photo-grid button { border: 3px solid #fff8ef; box-shadow: 0 0 0 1px #e4d1c1; }
.photo-grid button:nth-child(4n + 1) { border-radius: 80px 80px 12px 12px; }

.panel.closing {
  border-radius: 200px 200px 22px 22px;
  padding-top: 64px;
  background: linear-gradient(#f7e1e4, #fff8ef);
}
.closing .signature { font-size: 46px; }

dialog.welcome-card {
  overflow: hidden;
  border-radius: 220px 220px 20px 20px;
  padding-top: 64px;
  background: linear-gradient(155deg, #fae7e6, #fff9ef 75%);
  box-shadow: 0 24px 80px #5a263b30;
}
dialog.welcome-card > * { position: relative; z-index: 1; }
dialog.welcome-card::before {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -28px;
  width: 200px;
  height: 200px;
  opacity: .55;
  background: url('./assets/roses.svg') center / contain no-repeat;
  pointer-events: none;
}
dialog.welcome-card::backdrop { background: #66384b8c; backdrop-filter: blur(6px); }
#music-toggle { bottom: max(16px, env(safe-area-inset-bottom)); }
a:focus-visible, button:focus-visible { outline: 3px solid #684535; outline-offset: 4px; }

@media (max-width: 420px) {
  #invitation { width: calc(100% - 24px); gap: 16px; margin-top: 18px; }
  .panel { padding-left: 22px; padding-right: 22px; }
  .panel.hero { padding-left: 28px; padding-right: 28px; }
  .hero .arch-roses { left: -42px; width: 144px; height: 144px; }
  .church-name { font-size: 25px; line-height: 1.25; }
  .church-address { font-size: 15px; }
  .picado-band { height: 64px; }
  .photo-grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.date .big-date { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 9px; font-size: 30px; line-height: 1.25; margin-bottom: 22px; }
.big-date [data-slot="day"] { font-size: 50px; }
.big-date [data-slot="month"] { font-style: italic; }
.big-date [data-slot="year"] { font-size: 24px; }

/* Webpage slide presentation: one composed information/photo banner at a time. */
.presentation-header, .carousel-controls, .section-menu { font-family: 'DM Sans', sans-serif; }
.presentation-header { display: none; }
body.carousel-ready {
  height: 100svh;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: 62px 36px minmax(0, 1fr) 76px;
  justify-items: center;
}
.carousel-ready .presentation-header {
  display: flex; position: relative; align-items: center; justify-content: center;
  width: min(100%, 1000px); height: 62px; padding: 0 20px;
}
.presentation-header .header-name { font: 30px/1.2 'Great Vibes', cursive; color: var(--rose-deep); }
#menu-toggle { position: absolute; left: 16px; top: 9px; width: 44px; height: 44px; padding: 0; border: 1px solid #cfa5ad; border-radius: 50%; background: #fff9f0; color: var(--ink); cursor: pointer; font-size: 24px; }
.carousel-ready .picado-band { height: 36px; align-self: stretch; background-color: #c37a8e; }
.carousel-ready #invitation {
  width: min(calc(100% - 28px), 820px); height: calc(100% - 20px);
  margin: 10px 0; display: block; min-height: 0; position: relative;
  touch-action: pan-y;
}
.carousel-ready #invitation > .panel {
  width: 100%; height: 100%; min-height: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 24px 32px; overflow-x: hidden; overflow-y: auto;
  border-radius: 160px 160px 18px 18px;
  background: linear-gradient(160deg, #fbe6e7, #fffaf1 65%);
  animation: slide-appear .4s ease-out;
}
.carousel-ready .panel::before { flex: 0 0 auto; margin-bottom: 14px; }
.carousel-ready .panel h2 { font: 400 clamp(32px, 5vw, 44px)/1.15 'Great Vibes', cursive; margin-bottom: 14px; }
.carousel-ready .panel h3 { font-size: 22px; }
.carousel-ready .panel p, .carousel-ready .panel li { font-size: 16px; line-height: 1.55; }
.carousel-ready .panel.blessing { color: var(--ink); border-color: #e4c8c4; }
.carousel-ready .blessing h2, .carousel-ready .blessing blockquote { color: var(--ink); }
.carousel-ready .blessing blockquote { font-size: clamp(24px, 5vw, 34px); line-height: 1.35; }
.carousel-ready .panel.hero { padding-top: 24px; padding-bottom: 24px; }
.carousel-ready .hero::before { font-size: 25px; margin-bottom: 12px; }
.carousel-ready .hero h1 { font-size: clamp(56px, 9vw, 82px); margin-bottom: 0; }
.carousel-ready .hero .eyebrow { font-size: 11px; margin-bottom: 5px; }
.carousel-ready .hero .date-line { margin: 8px 0 0; font-size: 18px; }
.carousel-ready .hero .arch-frame { width: min(66%, 270px); max-height: 36svh; margin: 18px auto 0; flex: 0 1 auto; }
.carousel-ready .hero .arch-frame img { height: min(36svh, 330px); aspect-ratio: auto; object-fit: contain; border: 0; outline: 0; background: #f5e2dc; }
.carousel-ready .hero .arch-roses { height: 122px; width: 122px; left: -32px; bottom: -8px; }
.carousel-ready .hero .intro { margin: 20px auto 0; max-width: 42ch; font-size: 15px; }
.carousel-ready .hero::after { top: 115px; width: 200px; height: 190px; right: -65px; }
.carousel-ready .with-story-photo::before, .carousel-ready .photo-slide::before { display: none; }
.carousel-ready .with-story-photo::after { content: ''; position: absolute; top: 2px; left: -42px; width: 190px; height: 180px; background: url('./assets/roses.svg') center/contain no-repeat; opacity: .42; pointer-events: none; }
.slide-copy { width: 100%; position: relative; z-index: 1; }
.slide-photo { width: 100%; margin: 16px 0 0; flex: 0 1 auto; min-height: 0; }
.slide-photo button { display: block; width: 100%; border: 0; margin: 0; padding: 0; background: transparent; cursor: zoom-in; min-height: 44px; }
.slide-photo img { display: block; margin: 0 auto; width: auto; max-width: 100%; height: min(26svh, 240px); object-fit: contain; border: 5px solid #fff9f0; border-radius: 90px 90px 12px 12px; box-shadow: 0 0 0 1px #dcbec0; }
.slide-photo figcaption { font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft); margin-top: 12px; }
.carousel-ready .photo-slide h2 { font-size: 30px; max-width: 15ch; margin: 0 0 8px; }
.photo-slide .slide-photo img { height: min(52svh, 470px); }
.carousel-ready .family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.carousel-ready .family-grid > div + div { border: 0; padding: 0; }
.carousel-ready .family-grid li { font-size: 20px; line-height: 1.25; padding: 3px 0; }
.carousel-ready .family-grid h3 { font-size: 22px; margin-bottom: 10px; }
.carousel-ready .date .big-date { margin: 0 0 16px; font-size: 27px; }
.carousel-ready .big-date [data-slot='day'] { font-size: 44px; }
.carousel-ready .countdown { margin-top: 0; gap: 6px; }
.carousel-ready .countdown div { padding: 7px 3px; }
.carousel-ready .countdown span { font-size: 26px; }
.carousel-ready .countdown small { font-size: 10px; }
.carousel-ready .church-name { font: 600 21px/1.25 'Cormorant Garamond', serif; margin-bottom: 8px; }
.carousel-ready .church-address { font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
.carousel-ready .mass-time { margin: 6px 0 12px; font-size: 20px; }
.carousel-ready .actions { flex-direction: row; flex-wrap: wrap; gap: 7px; justify-content: center; }
.carousel-ready .actions a { font-size: 12px; padding: 9px 13px; min-height: 44px; }
.carousel-ready .party-times { gap: 8px; }
.carousel-ready .party-times li { padding: 10px; }
.carousel-ready .closing .signature { display: none; }
.carousel-ready .closing .cross { margin: 10px 0 0; font-size: 26px; }
.carousel-controls {
  width: min(calc(100% - 28px), 820px); display: flex; align-items: center;
  gap: 10px; padding: 8px 0 max(12px, env(safe-area-inset-bottom));
}
.carousel-controls button { flex: 0 0 46px; height: 46px; border: 1px solid #cfa5ad; border-radius: 50%; background: #fff8ee; color: var(--rose-deep); font-size: 28px; cursor: pointer; }
.carousel-controls button:disabled { opacity: .3; cursor: default; }
.carousel-controls #carousel-play { font-size: 15px; }
.slide-position { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center; min-width: 0; }
#slide-title { font-size: 13px; color: var(--ink); }
#slide-count { font-size: 10px; letter-spacing: .2em; color: var(--ink-soft); }
.carousel-ready #music-toggle { top: 10px; bottom: auto; right: max(16px, calc((100vw - 1000px)/2 + 16px)); height: 42px; min-height: 42px; font-size: 12px; padding: 8px 13px; box-shadow: none; }
.section-menu { margin: 0 auto 0 0; height: 100svh; max-height: 100svh; width: min(86vw, 340px); max-width: 340px; border: 0; border-right: 1px solid #e7c3c8; padding: 26px; background: #fff8f0; color: var(--ink); overflow-y: auto; }
.section-menu::backdrop { background: #683c4770; backdrop-filter: blur(5px); }
.menu-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.menu-heading h2 { font: 34px 'Great Vibes', cursive; margin: 0; }
#menu-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; color: var(--ink); cursor: pointer; }
.section-menu nav { display: flex; flex-direction: column; gap: 3px; }
.section-menu nav button { text-align: left; display: flex; justify-content: space-between; min-height: 48px; padding: 12px 0; border: 0; border-bottom: 1px solid #e9d4ce; background: transparent; font: 15px 'DM Sans', sans-serif; color: var(--ink); cursor: pointer; }
.section-menu nav button span { font-size: 11px; color: #96747a; }
#month-navigation p { margin: 28px 0 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
#month-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#month-buttons button { min-height: 44px; border: 1px solid #d7b4bb; border-radius: 50%; background: #fae9e7; color: var(--ink); font: 18px 'Cormorant Garamond', serif; cursor: pointer; }
@keyframes slide-appear { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@media (min-width: 760px) {
  .carousel-ready #invitation > .with-story-photo { flex-direction: row; gap: 32px; padding: 40px; border-radius: 140px 140px 20px 20px; }
  .with-story-photo .slide-copy { flex: 1; }
  .with-story-photo .slide-photo { flex: 1; margin: 0; }
  .with-story-photo .slide-photo img { width: 100%; height: min(54svh, 440px); }
  .carousel-ready #invitation > .panel.hero:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; align-content: center; column-gap: 24px; padding: 44px; }
  .carousel-ready .hero::before { grid-column: 1; margin: 0 0 16px; }
  .carousel-ready .hero > .eyebrow, .carousel-ready .hero > h1, .carousel-ready .hero > .date-line, .carousel-ready .hero > .intro { grid-column: 1; }
  .carousel-ready .hero > .arch-frame { grid-column: 2; grid-row: 1 / 6; width: 100%; max-height: none; margin: 0; }
  .carousel-ready .hero .arch-frame img { width: 100%; height: min(53svh, 420px); }
  .carousel-ready .hero .intro { font-size: 16px; }
}
@media (max-height: 720px) and (max-width: 759px) {
  body.carousel-ready { grid-template-rows: 54px 26px minmax(0, 1fr) 68px; }
  .carousel-ready .presentation-header { height: 54px; }
  #menu-toggle, .carousel-ready #music-toggle { top: 5px; }
  .carousel-ready .picado-band { height: 26px; }
  .carousel-ready #invitation > .panel { padding: 20px; border-radius: 100px 100px 16px 16px; justify-content: safe center; }
  .carousel-ready .hero h1 { font-size: 50px; }
  .carousel-ready .hero .arch-frame img { height: 27svh; }
  .slide-photo img { height: 20svh; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-ready #invitation > .panel { animation: none; }
}

/* Original coordinated sacramental/celebration illustrations. */
.slide-copy > .scene-ornament { display: block; width: 110px; height: 64px; margin: 0 auto 8px; object-fit: contain; }
.carousel-ready .has-scene-ornament .slide-photo img { height: min(22svh, 190px); }
@media (min-width: 760px) {
  .slide-copy > .scene-ornament { width: 160px; height: 100px; margin-bottom: 18px; }
  .carousel-ready .has-scene-ornament .slide-photo img { height: min(54svh, 440px); }
}
