/* A wedding keepsake inspired by hand-painted Mexican Talavera pottery. */
:root {
  --wine: #164b96;
  --wine-dark: #103a78;
  --cream: #fffaf0;
  --paper: #fffef9;
  --ink: #243c5a;
  --muted: #637082;
  --gold: #a56d15;
  --line: #cdd5d9;
  --cobalt: #164b96;
  --sunflower: #f5bd38;
  --coral: #c84d38;
  --turquoise: #00827e;
}

body { background: var(--cream); }
.light { color: #486283; }
.monogram { color: var(--cobalt); }
.monogram span { color: var(--coral); }
button:focus-visible, a:focus-visible { outline-color: var(--turquoise); }

.reveal {
  color: var(--cobalt);
  background: var(--cream);
  padding: 112px 32px 100px;
  isolation: isolate;
  min-height: 100svh;
}
.reveal::before, .reveal::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  background: url('assets/talavera-tile.svg') repeat-x center / 70px 70px;
  pointer-events: none;
  z-index: 0;
}
.reveal::before { top: 0; border-bottom: 3px solid var(--cobalt); }
.reveal::after { bottom: 0; border-top: 3px solid var(--cobalt); }
.reveal > * { position: relative; z-index: 1; flex-shrink: 0; }
.reveal .reveal-halo {
  position: absolute;
  width: auto;
  aspect-ratio: auto;
  inset: 91px 27px;
  border: 1px solid #164b9640;
  border-radius: 2px;
  box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px #164b9620;
  z-index: 0;
}
.reveal .eyebrow { color: #486283; font-size: 9px; letter-spacing: 2.3px; }
.reveal h1 {
  color: var(--cobalt);
  font-size: clamp(64px, 7.2vw, 106px);
  line-height: .95;
  letter-spacing: -2px;
  font-weight: 500;
  outline: none;
}
.reveal h1 em { color: var(--cobalt); }
.reveal-heart { color: var(--coral); fill: #e76c4f0c; margin: 23px 0 19px; }
.reveal-love { color: var(--ink); font-size: 28px; margin-top: 24px; }
.light-signature { color: var(--coral); margin-top: 7px; font-size: 31px; }
.reveal .text-button { color: var(--cobalt); margin-top: 18px; font-size: 11px; }
.intro-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  margin-top: 24px;
  border: 1px solid var(--cobalt);
  border-radius: 3px;
  color: var(--cream);
  background: var(--cobalt);
  font-size: 11px;
  letter-spacing: .2px;
}
.intro-sound:hover { background: var(--wine-dark); }
.intro-sound svg { width: 16px; height: 16px; }
.intro-sound[aria-pressed='true'] { color: var(--cobalt); background: #e8efef; }
.intro-track {
  display: block;
  max-width: min(420px, 84vw);
  color: #667383;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .2px;
  margin-top: 9px;
}
.intro-loading { color: #667383; font-size: 10px; line-height: 1.6; margin-top: 20px; }
.intro-loading::after { content: ' · · ·'; color: var(--coral); letter-spacing: 2px; }

.site-header { border-bottom: 1px solid #164b9626; }
.site-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--cobalt) 0 35px, var(--sunflower) 35px 50px, #009b9a 50px 65px, var(--coral) 65px 80px);
}
.site-header nav { color: #4c6280; }
.music-toggle { border-color: #b8c7d7; background: #fffef9; }
.memories { padding-top: 65px; }
.section-heading .eyebrow, .letter-label .eyebrow { color: var(--turquoise); }
.section-heading h2, .letter-label h2 { color: var(--cobalt); }
.section-heading h2 em, .letter-label h2 em { color: var(--cobalt); }
.section-heading { position: relative; }
.section-heading::before {
  content: '';
  position: absolute;
  width: 145px;
  height: 43px;
  top: -43px;
  right: -5px;
  background: url('assets/talavera-flourish.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: .85;
}
.photo-stage { border: 1px solid #c2ceda; background: var(--paper); box-shadow: 0 8px 30px #164b9610; }
.photo-stage::after {
  content: '';
  position: absolute;
  width: 43px;
  height: 43px;
  right: -11px;
  top: -11px;
  background: url('assets/talavera-tile.svg') center / contain no-repeat;
  border: 3px solid var(--cream);
  transform: rotate(8deg);
  pointer-events: none;
}
.tape { background: #f5bd3866; }
.photo-caption { color: var(--cobalt); }
.photo-caption svg { color: var(--coral); }
.handwritten { color: var(--turquoise); }
.slide-count > span { color: #6d7e91; }
.circle-button { border-color: #aabdd0; background: #fffdf7; }
.circle-button:hover { background: #e8efef; }
.slide-dots button::after { background: #bbc8d6; }
.placeholder-note { color: #6c7c8d; }
.memory-footer { color: #677f92; border-color: #c3cfda; }
.sample-badge { background: #fffaf0ee; border-color: #c9d5db; color: #506988; }
.love-divider { position: relative; height: 135px; padding: 0; }
.love-divider span, .love-divider > svg { display: none; }
.love-divider::before {
  content: '';
  width: 185px;
  height: 60px;
  background: url('assets/talavera-flourish.svg') center / contain no-repeat;
}
.drawn-heart { color: var(--coral); }
.love-letter { border-color: #c8d4df; box-shadow: 4px 5px 0 #e6eceb; }
.love-letter::before {
  content: '';
  height: 4px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(90deg, var(--cobalt) 0 35px, var(--sunflower) 35px 50px, #009b9a 50px 65px, var(--coral) 65px 80px);
}
.letter-date { color: #667d92; }
.letter-heart { color: var(--coral); }
.closing { padding-top: 112px; padding-bottom: 68px; background: var(--cobalt); }
.closing::before {
  width: 100%;
  height: 55px;
  left: 0;
  top: 0;
  border: 0;
  border-bottom: 3px solid var(--sunflower);
  border-radius: 0;
  background: url('assets/talavera-tile.svg') repeat-x center / 55px 55px;
}
.closing::after { display: none; }
.closing .light { color: #f4d475; }
.closing h2 em { color: #f7cc65; }
.closing > p:not(.eyebrow) { color: #f0ebdf; }
.closing .text-button { color: #fff2c9; }
footer > span { color: #65778b; }
.audio-status { border-color: #c3cfda; }

@media (max-width: 640px) {
  .reveal { padding: 80px 20px 75px; }
  .reveal::before, .reveal::after { height: 46px; background-size: 46px 46px; }
  .reveal .reveal-halo { inset: 62px 12px; box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px #164b9620; }
  .reveal .eyebrow { font-size: 7px; letter-spacing: 1.5px; }
  .reveal h1 { font-size: clamp(47px, 14.8vw, 65px); line-height: .98; letter-spacing: -1.6px; }
  .reveal-heart { margin: 20px 0 18px; width: 23px; height: 23px; }
  .reveal-love { font-size: 25px; margin-top: 20px; }
  .light-signature { font-size: 28px; margin-top: 6px; }
  .intro-sound { margin-top: 21px; font-size: 10px; padding: 12px 17px; }
  .intro-track { font-size: 8px; max-width: 280px; }
  .intro-loading { font-size: 9px; margin-top: 16px; }
  .reveal .text-button { font-size: 10px; margin-top: 15px; }
  .memories { padding-top: 54px; }
  .section-heading::before { width: 104px; height: 34px; right: -4px; top: -32px; }
  .photo-stage::after { width: 34px; height: 34px; right: -8px; top: -8px; border-width: 2px; }
  .love-divider { height: 100px; }
  .love-divider::before { width: 155px; height: 47px; }
  .closing { padding-top: 92px; padding-bottom: 47px; }
  .closing::before { height: 42px; background-size: 42px 42px; }
}

@media (max-height: 720px) {
  .reveal { justify-content: flex-start; padding-top: 88px; padding-bottom: 85px; }
  .reveal::before, .reveal::after { height: 45px; background-size: 45px 45px; }
  .reveal .reveal-halo { inset: 63px 14px; }
  .reveal h1 { font-size: clamp(47px, 11vw, 72px); }
  .reveal-heart { margin-top: 15px; margin-bottom: 13px; }
  .reveal-love { margin-top: 16px; }
  .intro-sound { margin-top: 17px; }
  .reveal .text-button { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal h1, .intro-sound { animation: none; transition: none; }
}
