/* theme overrides for the celebrations invite */

/* scratch strip (29 Nov 2026): larger label on a soft plate, a finger that rubs the strip,
   and a slow pulse around it so guests notice they have to do something */
.scratch .date { padding: 22px 6px; }
.scratch__hint { gap: 8px; }
.scratch__label {
  font-size: clamp(1rem, .92rem + .45vw, 1.2rem); font-weight: 700; letter-spacing: .12em;
  color: #3d2d1b; text-shadow: 0 1px 0 rgba(255, 246, 220, .8);
  padding: .45em .95em; border-radius: 999px;
  background: rgba(255, 246, 220, .52);
  box-shadow: inset 0 0 0 1px rgba(129, 104, 69, .35);
}
.scratch__hint .scratch__icon { display: none; }
.scratch__label { max-inline-size: calc(100% - 20px); white-space: nowrap; }
.scratch::before {
  content: ""; position: absolute; inset: -2px; z-index: 0; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 236, 197, .55);
}
.scratch__finger {
  position: absolute; z-index: 4; left: 50%; bottom: -14px; inline-size: 44px; block-size: 44px;
  margin-left: -22px; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
}
.scratch__finger svg { inline-size: 100%; block-size: 100%; fill: #fff8e6; stroke: #4e3a23; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .scratch::before { animation: scratchPulse 2.4s ease-out infinite; }
  .scratch__finger { animation: scratchRub 2.4s cubic-bezier(.45, 0, .25, 1) infinite; }
  .scratch__label { animation: scratchNudge 2.4s ease-in-out infinite; }
}
@keyframes scratchPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 236, 197, .6); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 236, 197, 0); } }
@keyframes scratchRub {
  0% { transform: translate(-70px, 4px) rotate(-14deg); opacity: 0; }
  12% { opacity: 1; }
  30% { transform: translate(60px, -6px) rotate(8deg); }
  50% { transform: translate(-40px, 2px) rotate(-10deg); }
  70% { transform: translate(70px, -4px) rotate(10deg); opacity: 1; }
  85%, 100% { transform: translate(70px, -4px) rotate(10deg); opacity: 0; }
}
@keyframes scratchNudge { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.05); } 80% { transform: scale(1); } }
.motion-paused .scratch::before, .motion-paused .scratch__finger, .motion-paused .scratch__label { animation-play-state: paused; }
.scratch.is-scratching .scratch__finger, .scratch.is-revealed .scratch__finger { opacity: 0; animation: none; transition: opacity .3s; }
.scratch.is-scratching::before, .scratch.is-revealed::before { animation: none; box-shadow: none; }

html { font-synthesis: none; }
.nobr { white-space: nowrap; }
@media (min-width: 900px) { .story__grid { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; } .story__grid .arch-card:nth-child(2) { margin-top: 60px; } }
.names .name { font-size: clamp(2.4rem, 1.2rem + 7vw, 5.2rem); max-inline-size: 92vw; overflow-wrap: anywhere; }

.names--two { gap: clamp(10px, 2svh, 22px); }
.couple { display: grid; justify-items: center; }
.couple__label { font-family: var(--f-body); font-style: italic; font-size: clamp(1.02rem, .95rem + .5vw, 1.25rem); color: var(--gold-hi); margin-bottom: .35em; letter-spacing: .01em; }
.names--two .name { font-size: clamp(1.6rem, .8rem + 5vw, 3.4rem); letter-spacing: .03em; white-space: nowrap; }
.names--two .names__with { font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem); }
.names--two .groom-parent { margin-top: .2em; }
.names--two .groom-parent__name { letter-spacing: .12em; max-inline-size: none; white-space: nowrap; font-size: clamp(.8rem, .74rem + .4vw, 1rem); }
.names--two .names__with { line-height: 1.15; }
#baratTitle { font-size: clamp(1.7rem, 1.3rem + 2.2vw, 2.6rem); }
.names--two .groom-parent__rel { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.couple__amp { font-size: 1rem; color: var(--gold); opacity: .8; }
.hero__content { gap: clamp(4px, 1svh, 10px); }
