/* Project overrides - loaded after the template CSS.
   Everything in the template is sized in rem, so shrinking the root scales the whole page. */
html {
  font-size: 13.5px;
}

/* Honorifics (Chi. / Chi. La. Sow.) sit small above the names */
.wed10-person-name {
  font-size: clamp(1.55rem, calc(6.4 * var(--wed10-vw, 1vw)), 2rem);
  line-height: 1.12;
}

.wed10-honorific {
  display: block;
  margin: 0 0 0.12rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--wed10-maroon);
}

.wed10-person-name-main {
  display: block;
}

/* Long bride name needs to be a touch smaller still */
#wed10-bride-name .wed10-person-name-main {
  font-size: 0.88em;
}

/* Extra-small where text runs long */
.wed10-person-parent {
  font-size: 1.02rem;
}

.wed10-person-prefix {
  font-size: 0.62rem;
}

.wed10-venue-address,
.wed10-welcome-text,
.wed10-blessings-names {
  font-size: 0.95em;
}

.wed10-welcome-text {
  font-size: 1.05rem;
  line-height: 1.45;
}

.wed10-hero-msg {
  font-size: 0.9em;
}

.wed10-hero-venue {
  font-size: 0.82em;
}

.wed10-timeline-title {
  font-size: 1.05rem;
}

/* Entry: animated tap icon instead of "Tap to begin" text */
.wed10-tap-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-top: clamp(2rem, 6vh, 3.5rem);
  border-radius: 50%;
  border: 1.5px solid rgba(212, 181, 106, 0.85);
  background: radial-gradient(circle, rgba(110, 26, 26, 0.75), rgba(26, 12, 8, 0.7));
  color: #f3e2b4;
  box-shadow: 0 0 22px rgba(212, 181, 106, 0.45), 0 10px 26px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: wed10-tap-glow 1.8s ease-in-out infinite;
}

.wed10-tap-hand {
  position: relative;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transform-origin: 50% 90%;
  animation: wed10-tap-press 1.8s ease-in-out infinite;
}

.wed10-tap-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 226, 180, 0.8);
  opacity: 0;
  animation: wed10-tap-ripple 1.8s ease-out infinite;
}
.wed10-tap-ring--2 { animation-delay: 0.45s; }
.wed10-tap-ring--3 { animation-delay: 0.9s; }

@keyframes wed10-tap-press {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(0.35rem) scale(0.9); }
  55% { transform: translateY(0) scale(1); }
}

@keyframes wed10-tap-ripple {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes wed10-tap-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(212, 181, 106, 0.35), 0 10px 26px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 30px rgba(212, 181, 106, 0.7), 0 10px 26px rgba(0, 0, 0, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .wed10-tap-icon, .wed10-tap-hand, .wed10-tap-ring { animation: none; }
  .wed10-tap-ring { opacity: 0.5; }
}

/* Timeline: lunch note + per-event calendar button */
.wed10-timeline-note {
  margin: 0.3rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: #e6c887;
  text-align: center;
}

.wed10-timeline-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.3rem;
  margin: 0.7rem auto 0;
  padding: 0.45rem 1.05rem 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 106, 0.85);
  background: linear-gradient(165deg, var(--wed10-maroon-2), var(--wed10-maroon) 60%, #4a1010);
  color: #f6e6b8;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(60, 14, 14, 0.3), inset 0 1px 0 rgba(246, 230, 184, 0.22);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.wed10-timeline-cal svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: #e6c887;
}

.wed10-timeline-cal:active {
  transform: scale(0.97);
}

.wed10-timeline-card {
  text-align: center;
}

/* Thank You footer: taller layer, light at the top to dark at the bottom */
.wed10-welcome::before {
  top: -5rem;
  bottom: -1rem;
  left: 50%;
  width: calc(100 * var(--wed10-vw, 1vw));
  height: auto;
  transform: translateX(-50%);
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 4, 4, 0) 0%,
    rgba(8, 4, 4, 0.22) 22%,
    rgba(8, 4, 4, 0.55) 45%,
    rgba(8, 4, 4, 0.8) 70%,
    rgba(8, 4, 4, 0.94) 100%
  );
}


/* Main "Add Reception to Calendar" button - same maroon + gold pill */
.wed10-btn-calendar {
  justify-content: center;
  width: min(100%, 17rem);
  min-height: 2.9rem;
  margin-top: 1rem;
  padding: 0.55rem 1.15rem;
  gap: 0.6rem;
  border: 1px solid rgba(212, 181, 106, 0.9);
  border-radius: 999px;
  background: linear-gradient(165deg, var(--wed10-maroon-2), var(--wed10-maroon) 60%, #4a1010);
  color: #f6e6b8;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(60, 14, 14, 0.36), inset 0 1px 0 rgba(246, 230, 184, 0.25);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.wed10-btn-calendar > span:not(.wed10-btn-calendar-ico-wrap) {
  flex: 0 1 auto;
  text-align: center;
}

.wed10-btn-calendar-ico-wrap {
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(246, 230, 184, 0.16);
  box-shadow: none;
}

.wed10-btn-calendar-ico {
  width: 0.95rem;
  height: 0.95rem;
  color: #e6c887;
}

.wed10-btn-calendar-chevron {
  display: none;
}

/* iPhone / Safari */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.wed10-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.wed10-mute-btn {
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
}

.wed10-scroll-inner {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

input, textarea, select {
  font-size: 16px;
}

button, .wed10-btn {
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

@media (max-width: 360px) {
  html { font-size: 12.5px; }
}

.wed10-btn-calendar {
  width: auto;
  max-width: 100%;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0.55rem 1.3rem 0.55rem 0.9rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}


/* Timeline / venue notes: always readable */
.wed10-timeline-note {
  color: #f3e2b4;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.wed10-venue-note {
  margin: 0.1rem auto 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wed10-maroon);
  text-align: center;
}

/* Footer: names on separate lines with parents, animated heart between */
.wed10-blessings-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.6rem;
  font-size: inherit;
}

.wed10-bl-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.wed10-bl-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.1rem;
  line-height: 1.1;
  color: #f3e2b4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.wed10-bl-parents {
  max-width: 17rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: #fff8ec;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.wed10-bl-heart {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0.25rem 0;
  color: #e23a12;
  filter: drop-shadow(0 0 6px rgba(226, 58, 18, 0.55));
  animation: wed10-bl-beat 1.4s ease-in-out infinite;
}

.wed10-bl-heart svg {
  width: 100%;
  height: 100%;
}

@keyframes wed10-bl-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
  60% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .wed10-bl-heart { animation: none; }
}

/* Gallery photo 3 (couple): keep faces in frame, aligned to the top centre */
#wed10-photo-3 {
  object-position: 50% 14% !important;
}

/* Desktop / tablet: same phone-sized layout as on mobile, centred on the themed background */
@media (min-width: 769px) {
  html {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background:
      linear-gradient(rgba(26, 6, 9, 0.8), rgba(14, 3, 5, 0.9)),
      url('../media/velvet-mobile.webp') center / cover no-repeat,
      #1a0709;
  }

  body {
    --wed10-app-height: min(100vh, 932px);
    position: relative;
    width: 430px;
    max-width: 430px;
    height: min(100vh, 932px);
    min-height: 0;
    max-height: 932px;
    margin: 0;
    overflow: hidden;
    transform: translateZ(0); /* makes the fixed layers stay inside the phone frame */
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(230, 200, 135, 0.35), 0 30px 90px rgba(0, 0, 0, 0.6);
  }

  .wed10-welcome::before {
    width: 100%;
  }
}

/* Best wishes: one entry per line */
.wed10-blessings-name-item {
  display: block;
}

/* Custom very thin scrollbar (gold hairline) */
/* Firefox only (Chrome/Safari ignore the webkit rules below if scrollbar-width is set) */
@supports not selector(::-webkit-scrollbar) {
  .wed10-scroll,
  .wed10-wall-field textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 181, 106, 0.85) transparent;
  }
}

.wed10-scroll::-webkit-scrollbar {
  display: block;
  width: 2px;
  height: 2px;
}

.wed10-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.wed10-scroll::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: linear-gradient(180deg, #e6c887, #8c6d2a);
}

.wed10-wall-field textarea::-webkit-scrollbar {
  width: 3px;
}

.wed10-wall-field textarea::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(140, 109, 42, 0.8);
}

/* Photo 3 frame: square so the couple's faces are never cropped */
.wed10-photo-frame--ornate {
  aspect-ratio: 1 / 1;
}

#wed10-photo-3 {
  object-position: 50% 0% !important;
}

/* Venue notes on the light venue panel */
.wed10-venue-note {
  margin: 0.1rem auto 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wed10-maroon);
  text-align: center;
  text-shadow: none;
}

.wed10-venue-address {
  margin-bottom: 0.45rem;
}

.wed10-venue-note:last-of-type {
  margin-bottom: 0.4rem;
}

.wed10-venue-card .wed10-btn-map {
  margin-top: 0.7rem;
}

/* Footer: names only, with air around them */
.wed10-blessings-couple {
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.wed10-bl-name {
  font-size: 2.2rem;
  line-height: 1.2;
}

.wed10-bl-heart {
  margin: 0.55rem 0;
}

.wed10-blessings-from-label {
  margin-top: 1.5rem;
}

.wed10-blessings-name-item--note {
  margin-top: 0.4rem;
  font-style: italic;
  color: #f3e2b4;
}

/* Timeline: venue + area line */
.wed10-timeline-venue {
  margin: 0.3rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff8ec;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* Gallery photos 4 & 5 (portraits): keep faces in frame */
#wed10-photo-4 { object-position: 50% 18% !important; }
#wed10-photo-5 { object-position: 50% 22% !important; }


/* Scratch card showing two dates (wedding & reception) */
.wed10-scratch-reveal.is-dual-dates .wed10-scratch-day {
  font-size: clamp(1.9rem, calc(9.5 * var(--wed10-vw, 1vw)), 2.4rem);
  white-space: nowrap;
}

.wed10-scratch-reveal.is-dual-dates .wed10-scratch-time {
  font-size: 0.7em;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wed10-wall-lead {
  max-width: none;
  line-height: 1.35;
}

.wed10-scratch-reveal.is-dual-dates .wed10-scratch-time {
  font-size: 0.72em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  max-width: 7.5em;
}

/* No scrollbar anywhere in the invitation (scrolling still works) */
.wed10-scroll,
.wed10-wall-field textarea {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

.wed10-scroll::-webkit-scrollbar,
.wed10-wall-field textarea::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* vw units follow the phone frame on desktop/tablet */
:root { --wed10-vw: 1vw; }
@media (min-width: 769px) {
  body { --wed10-vw: 4.3px; }
}

/* Legibility: a soft light halo so titles never get lost behind the corner flowers */
.wed10-section-title,
.wed10-quote-title,
.wed10-quote-text,
.wed10-scratch-title {
  text-shadow:
    0 0 3px rgba(255, 250, 240, 0.95),
    0 0 10px rgba(255, 248, 235, 0.9),
    0 0 22px rgba(255, 248, 235, 0.75);
}

.wed10-welcome .wed10-section-title {
  text-shadow: 0 0 3px rgba(255, 250, 240, 0.7), 0 0 12px rgba(255, 248, 235, 0.55);
}

.wed10-quote-title {
  color: #6e1a1a;
  font-size: clamp(1.7rem, calc(6 * var(--wed10-vw, 1vw)), 2.1rem);
}

/* Quote: slightly smaller + narrower so it never touches the side flowers */
.wed10-quote-text {
  max-width: 14.5rem;
  font-size: clamp(1.8rem, calc(7 * var(--wed10-vw, 1vw)), 2.4rem);
}


.wed10-quote-title {
  margin-top: 1.2rem;
  font-size: clamp(2rem, calc(7 * var(--wed10-vw, 1vw)), 2.5rem);
  font-weight: 600;
}

/* Catch-all: no scrollbar anywhere on the page */
html, body, * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
