/*
  მარი 30, all styling for index.html.

  Mobile-first, min-width queries only. 769px hands the screen to the desktop
  notice, so nothing above 480px needs a real layout.

  Blocks: fonts -> tokens -> reset/scrollbar -> paper grain -> desktop notice ->
  loader -> entry modal -> stop-motion keyframes -> hero -> sheets -> save the
  date + toast -> nav -> timetable -> dress code -> location -> rsvp -> closing
  -> footer -> breakpoints -> reduced motion.

  Every motion on the page is stepped (steps(1) on each keyframe stop) so it
  reads as hand-shot stop-motion frames rather than a CSS tween. Keep it that
  way when adding anything.
*/

/* ==========================================================================
   1. FONTS
   font-display: block is only safe because the loader covers the block period
   and script.js gates on document.fonts (with a Georgian probe glyph).
   ========================================================================== */
@font-face {
    font-family: 'Borgers Script';
    src: url('font/BorgersScript.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Inria Serif';
    src: url('font/inria-serif.regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'ALK Life';
    src: url('alk_life.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

/* ==========================================================================
   2. TOKENS
   --red is sampled off cherry-1.png and is the only type colour on the page.
   The three papers step darker so each sheet reads as its own leaf.
   ========================================================================== */
:root {
    --vh: 1vh;

    --paper:   #fff6f8;
    --paper-2: #fbecf0;
    --paper-3: #f6e2e7;
    --paper-4: #f1d8de;

    --red:      #870000;
    --red-soft: #a3323a;
    --red-line: rgba(135, 0, 0, 0.35);
    --white:    #fffdfd;

    --f-script: 'Borgers Script', 'Brush Script MT', cursive;
    --f-serif:  'Inria Serif', Georgia, serif;
    --f-ka:     'ALK Life', 'Noto Serif Georgian', serif;

    --shadow-sheet: 0 -12px 30px rgba(135, 0, 0, 0.10);
}

/* ==========================================================================
   3. RESET + SCROLLBAR
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 1.2s ease;
}

/* Thumb fades in once the entry modal is gone, so nothing rides the edge of
   the screen while the modal is still up. */
html.is-open {
    scrollbar-color: var(--red-soft) var(--paper-2);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background-color: var(--paper-2); }
html::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: transparent;
    transition: background-color 1.2s ease;
}
html.is-open::-webkit-scrollbar-thumb { background-color: var(--red-soft); }

html,
body {
    overscroll-behavior-y: none;
}

/* The scroll trap is JS (see script.js); this only stops the rubber band. */
html.is-locked,
body.is-locked {
    overscroll-behavior: none;
    touch-action: none;
}

body {
    background-color: var(--paper);
    color: var(--red);
    font-family: var(--f-serif);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

a { color: inherit; }

.ka { font-family: var(--f-ka); }

/* ==========================================================================
   4. PAPER GRAIN
   One fixed noise sheet over everything, multiplied in at low opacity. Sits
   under the loader and entry modal so they get the same grain.
   ========================================================================== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.30;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.62  0 0 0 0 0.45  0 0 0 0 0.48  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
}

/* ==========================================================================
   5. DESKTOP NOTICE (shown at 769px+, see breakpoints)
   ========================================================================== */
.mobile-prompt { display: none; }

/* ==========================================================================
   6. LOADER
   Out-ranks the entry modal. Gates on hero art + fonts, see script.js.
   ========================================================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--paper);
    transition: opacity 0.7s ease;
}

.loader.is-done {
    opacity: 0;
    pointer-events: none;
}

.loader__spin {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(135, 0, 0, 0.18);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   7. ENTRY MODAL
   Full-screen sheet with one card. A tap fades it and wakes the hero.
   ========================================================================== */
.entry {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--paper-2);
    cursor: pointer;
    transition: opacity 0.8s ease;
}

.entry.is-done {
    opacity: 0;
    pointer-events: none;
}

.entry__card {
    width: 100%;
    max-width: 300px;
    padding: 34px 26px 30px;
    border: 1.5px solid var(--red);
    border-radius: 18px;
    background-color: var(--paper);
    box-shadow: 0 14px 34px rgba(135, 0, 0, 0.12);
    text-align: center;
    transform: rotate(-1.2deg);
}

.entry__cake {
    width: 130px;
    margin: 0 auto 14px;
    opacity: 0;
}

.entry__kicker {
    font-family: var(--f-serif);
    font-size: 13px;
    letter-spacing: 0.2em;
    opacity: 0;
}

.entry__title {
    margin-top: 6px;
    font-family: var(--f-script);
    font-size: 52px;
    line-height: 1;
    opacity: 0;
}

.entry__star {
    width: 22px;
    margin: 14px auto 12px;
    opacity: 0;
}

.entry__hint {
    font-family: var(--f-ka);
    font-size: 14px;
    letter-spacing: 0.04em;
    opacity: 0;
}

/* Held until the loader clears (html.is-loading), then each piece drops in. */
html:not(.is-loading) .entry__cake   { animation: popIn 0.7s 0.10s both, floatIdle 5s 1s infinite; }
html:not(.is-loading) .entry__kicker { animation: textPopIn 0.6s 0.35s both; }
html:not(.is-loading) .entry__title  { animation: textPopIn 0.7s 0.50s both, jitter 4.4s 1.2s infinite; }
html:not(.is-loading) .entry__star   { animation: starPop 0.6s 0.85s both, twinkle 3.2s 1.5s infinite; }
html:not(.is-loading) .entry__hint   { animation: textPopIn 0.6s 1.05s both, hintBlink 2.6s 1.7s infinite; }

@keyframes hintBlink {
    0%   { opacity: 1;    animation-timing-function: steps(1); }
    50%  { opacity: 0.45; animation-timing-function: steps(1); }
    100% { opacity: 1; }
}

/* ==========================================================================
   7b. MUSIC TOGGLE
   Fixed top-right pill, four bars that bounce while playing. Hidden until the
   hero is on (.is-visible from script.js) so nothing sits over the modal.
   ========================================================================== */
.music {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 8000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 46px;
    height: 46px;
    padding: 0 0 14px;
    border: 1.5px solid var(--red);
    border-radius: 50%;
    background-color: rgba(255, 246, 248, 0.85);
    box-shadow: 0 4px 14px rgba(135, 0, 0, 0.14);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    -webkit-appearance: none;
    appearance: none;
}
.music.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.music__bar {
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background-color: var(--red);
}
.music.is-playing .music__bar { animation: eq 1.1s infinite; }
.music.is-playing .music__bar:nth-child(2) { animation-delay: -0.3s; }
.music.is-playing .music__bar:nth-child(3) { animation-delay: -0.6s; }
.music.is-playing .music__bar:nth-child(4) { animation-delay: -0.15s; }

/* Stepped so the bars hop instead of glide, same as everything else. */
@keyframes eq {
    0%   { height: 6px;  animation-timing-function: steps(1); }
    25%  { height: 16px; animation-timing-function: steps(1); }
    50%  { height: 9px;  animation-timing-function: steps(1); }
    75%  { height: 14px; animation-timing-function: steps(1); }
    100% { height: 6px; }
}

/* ==========================================================================
   8. STOP-MOTION KEYFRAMES
   steps(1) on every stop. Shared by the entry, hero and sheet reveals.
   ========================================================================== */
@keyframes textPopIn {
    0%   { opacity: 0; transform: translateY(14px) scale(0.86) rotate(-2deg);  animation-timing-function: steps(1); }
    25%  { opacity: 1; transform: translateY(6px)  scale(1.06) rotate(1.5deg); animation-timing-function: steps(1); }
    50%  { opacity: 1; transform: translateY(-3px) scale(0.96) rotate(-1deg);  animation-timing-function: steps(1); }
    75%  { opacity: 1; transform: translateY(1px)  scale(1.03) rotate(0.5deg); animation-timing-function: steps(1); }
    100% { opacity: 1; transform: translateY(0)    scale(1)    rotate(0deg); }
}

@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.5)  rotate(-8deg); animation-timing-function: steps(1); }
    30%  { opacity: 1; transform: scale(1.12) rotate(4deg);  animation-timing-function: steps(1); }
    55%  { opacity: 1; transform: scale(0.94) rotate(-2deg); animation-timing-function: steps(1); }
    80%  { opacity: 1; transform: scale(1.04) rotate(1deg);  animation-timing-function: steps(1); }
    100% { opacity: 1; transform: scale(1)    rotate(0); }
}

@keyframes starPop {
    0%   { opacity: 0; transform: scale(0)    rotate(-40deg); animation-timing-function: steps(1); }
    30%  { opacity: 1; transform: scale(1.35) rotate(10deg);  animation-timing-function: steps(1); }
    55%  { opacity: 1; transform: scale(0.85) rotate(-6deg);  animation-timing-function: steps(1); }
    80%  { opacity: 1; transform: scale(1.1)  rotate(3deg);   animation-timing-function: steps(1); }
    100% { opacity: 1; transform: scale(1)    rotate(0); }
}

/* Text idle: the chalk jitter from jimy-teo. */
@keyframes jitter {
    0%   { opacity: 0.94; transform: translateY(0)    rotate(-0.15deg); animation-timing-function: steps(1); }
    13%  { opacity: 1;    transform: translateY(-1px) rotate(0.10deg);  animation-timing-function: steps(1); }
    26%  { opacity: 0.90; transform: translateY(0)    rotate(-0.10deg); animation-timing-function: steps(1); }
    39%  { opacity: 0.96; transform: translateY(1px)  rotate(0.18deg);  animation-timing-function: steps(1); }
    52%  { opacity: 1;    transform: translateY(0)    rotate(-0.12deg); animation-timing-function: steps(1); }
    65%  { opacity: 0.92; transform: translateY(-1px) rotate(0.15deg);  animation-timing-function: steps(1); }
    78%  { opacity: 0.96; transform: translateY(0)    rotate(-0.18deg); animation-timing-function: steps(1); }
    91%  { opacity: 1;    transform: translateY(1px)  rotate(0.10deg);  animation-timing-function: steps(1); }
    100% { opacity: 0.94; transform: translateY(0)    rotate(-0.15deg); }
}

/* Decoration idle: a slow stepped sway. */
@keyframes floatIdle {
    0%   { transform: translateY(0)    rotate(0);       animation-timing-function: steps(1); }
    20%  { transform: translateY(-3px) rotate(1.2deg);  animation-timing-function: steps(1); }
    40%  { transform: translateY(-1px) rotate(-0.8deg); animation-timing-function: steps(1); }
    60%  { transform: translateY(2px)  rotate(1.6deg);  animation-timing-function: steps(1); }
    80%  { transform: translateY(-2px) rotate(-1.2deg); animation-timing-function: steps(1); }
    100% { transform: translateY(0)    rotate(0); }
}

@keyframes twinkle {
    0%   { opacity: 1;    transform: scale(1)    rotate(0);     animation-timing-function: steps(1); }
    25%  { opacity: 0.7;  transform: scale(0.88) rotate(6deg);  animation-timing-function: steps(1); }
    50%  { opacity: 1;    transform: scale(1.08) rotate(-4deg); animation-timing-function: steps(1); }
    75%  { opacity: 0.8;  transform: scale(0.94) rotate(3deg);  animation-timing-function: steps(1); }
    100% { opacity: 1;    transform: scale(1)    rotate(0); }
}

/* ==========================================================================
   9. HERO
   One viewport tall; every piece is absolute and placed to match the
   reference poster. Elements start invisible and only animate once script.js
   adds .is-on after the modal is tapped, so nothing plays behind it.
   ========================================================================== */
.hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--paper);
}

.vh-lock .hero { min-height: calc(var(--vh) * 100); }

.hero .anim { opacity: 0; }

.hero__disco {
    position: absolute;
    top: 2%;
    left: 2%;
    width: 38%;
    z-index: 3;
}

.hero__star {
    position: absolute;
    z-index: 3;
}
.hero__star--a { top: 3.5%;  left: 41%; width: 8%; }
.hero__star--b { top: 22%;   left: 32%; width: 11%; }
.hero__star--c { top: 47%;   left: 5%;  width: 10%; }

.hero__balloon {
    position: absolute;
    z-index: 2;
}
.hero__balloon--3 { top: 1.5%; left: 44%;  width: 36%; }
.hero__balloon--0 { top: 12%;  right: -6%; width: 34%; }

/* IN MY / Thirties / Era, centred as a block under the disco ball. */
.hero__title {
    position: absolute;
    top: 34.5%;
    left: 3%;
    width: 48%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__inmy {
    display: inline-block;
    font-family: var(--f-serif);
    font-size: 15px;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    text-transform: none;
}

.hero__thirties {
    display: inline-block;
    margin-top: 2px;
    font-family: var(--f-script);
    font-size: 76px;
    line-height: 0.95;
    white-space: nowrap;
}

.hero__era {
    display: inline-block;
    margin-top: 0;
    font-family: var(--f-script);
    font-size: 58px;
    line-height: 0.95;
}

.hero__girl {
    position: absolute;
    bottom: -2px;
    left: -2%;
    width: 65%;
    z-index: 5;
}

/* Right-hand column: quote, star rule, date, star rule. */
.hero__aside {
    position: absolute;
    top: 50%;
    right: 3%;
    width: 42%;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__quote {
    display: inline-block;
    font-family: var(--f-script);
    font-size: 28px;
    line-height: 1.22;
    white-space: nowrap;
}

.hero__rule {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 12px 0;
}
.hero__rule span {
    flex: 1;
    height: 1.5px;
    background-color: var(--red);
}
.hero__rule img {
    width: 16px;
    margin: 0 8px;
}

.hero__date {
    display: inline-block;
    font-family: var(--f-serif);
    font-size: 34px;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* Hero entry sequence: disco from the top-left, balloons from the top-right,
   stars pop, titles pop, the girl rises, then the aside. Each entry runs
   [entry both -> idle infinite], the idle's delay lined up with the end. */
@keyframes discoIn {
    0%   { opacity: 0; transform: translate(-130%, -130%) rotate(-40deg); animation-timing-function: steps(1); }
    18%  { opacity: 1; transform: translate(-80%,  -80%)  rotate(-26deg); animation-timing-function: steps(1); }
    36%  { opacity: 1; transform: translate(-38%,  -38%)  rotate(-12deg); animation-timing-function: steps(1); }
    54%  { opacity: 1; transform: translate(6%,    6%)    rotate(4deg);   animation-timing-function: steps(1); }
    72%  { opacity: 1; transform: translate(-4%,   -4%)   rotate(-3deg);  animation-timing-function: steps(1); }
    88%  { opacity: 1; transform: translate(2%,    2%)    rotate(1deg);   animation-timing-function: steps(1); }
    100% { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@keyframes discoIdle {
    0%   { transform: translateY(0)    rotate(0);      animation-timing-function: steps(1); }
    25%  { transform: translateY(-4px) rotate(2.5deg); animation-timing-function: steps(1); }
    50%  { transform: translateY(-1px) rotate(-1deg);  animation-timing-function: steps(1); }
    75%  { transform: translateY(3px)  rotate(-3deg);  animation-timing-function: steps(1); }
    100% { transform: translateY(0)    rotate(0); }
}

@keyframes balloonIn {
    0%   { opacity: 0; transform: translate(70%, -130%) rotate(24deg);  animation-timing-function: steps(1); }
    18%  { opacity: 1; transform: translate(44%, -84%)  rotate(16deg);  animation-timing-function: steps(1); }
    36%  { opacity: 1; transform: translate(20%, -40%)  rotate(8deg);   animation-timing-function: steps(1); }
    54%  { opacity: 1; transform: translate(-4%, 6%)    rotate(-4deg);  animation-timing-function: steps(1); }
    72%  { opacity: 1; transform: translate(2%,  -4%)   rotate(2deg);   animation-timing-function: steps(1); }
    88%  { opacity: 1; transform: translate(-1%, 2%)    rotate(-1deg);  animation-timing-function: steps(1); }
    100% { opacity: 1; transform: translate(0, 0) rotate(0); }
}

/* Foil balloons drift on their strings: a slow stepped rise and lean. */
@keyframes balloonIdle {
    0%   { transform: translateY(0)    rotate(0);      animation-timing-function: steps(1); }
    20%  { transform: translateY(-5px) rotate(-1.5deg); animation-timing-function: steps(1); }
    40%  { transform: translateY(-2px) rotate(1deg);   animation-timing-function: steps(1); }
    60%  { transform: translateY(3px)  rotate(2deg);   animation-timing-function: steps(1); }
    80%  { transform: translateY(-3px) rotate(-1deg);  animation-timing-function: steps(1); }
    100% { transform: translateY(0)    rotate(0); }
}

@keyframes girlIn {
    0%   { opacity: 0; transform: translateY(60%)  rotate(3deg);   animation-timing-function: steps(1); }
    20%  { opacity: 1; transform: translateY(38%)  rotate(-2deg);  animation-timing-function: steps(1); }
    40%  { opacity: 1; transform: translateY(18%)  rotate(1.5deg); animation-timing-function: steps(1); }
    60%  { opacity: 1; transform: translateY(-3%)  rotate(-1deg);  animation-timing-function: steps(1); }
    80%  { opacity: 1; transform: translateY(1.5%) rotate(0.5deg); animation-timing-function: steps(1); }
    100% { opacity: 1; transform: translateY(0)    rotate(0); }
}

@keyframes girlIdle {
    0%   { transform: translateY(0)    rotate(0);      animation-timing-function: steps(1); }
    30%  { transform: translateY(-2px) rotate(0.4deg); animation-timing-function: steps(1); }
    60%  { transform: translateY(1px)  rotate(-0.4deg); animation-timing-function: steps(1); }
    100% { transform: translateY(0)    rotate(0); }
}

.hero.is-on .hero__disco      { animation: discoIn 1.1s 0.05s both, discoIdle 6s 1.2s infinite; }
.hero.is-on .hero__balloon--3 { animation: balloonIn 1.1s 0.25s both, balloonIdle 5.2s 1.4s infinite; }
.hero.is-on .hero__balloon--0 { animation: balloonIn 1.1s 0.40s both, balloonIdle 6.1s 1.6s infinite; }
.hero.is-on .hero__star--a    { animation: starPop 0.6s 1.05s both, twinkle 3.4s 1.7s infinite; }
.hero.is-on .hero__star--b    { animation: starPop 0.6s 1.20s both, twinkle 4.1s 1.9s infinite; }
.hero.is-on .hero__star--c    { animation: starPop 0.6s 1.35s both, twinkle 3.7s 2.0s infinite; }
.hero.is-on .hero__inmy       { animation: textPopIn 0.6s 1.15s both, jitter 4.6s 1.8s infinite; }
.hero.is-on .hero__thirties   { animation: textPopIn 0.7s 1.30s both, jitter 4.2s 2.0s infinite; }
.hero.is-on .hero__era        { animation: textPopIn 0.7s 1.45s both, jitter 4.9s 2.2s infinite; }
.hero.is-on .hero__girl       { animation: girlIn 1.0s 1.30s both, girlIdle 5.5s 2.4s infinite; }
.hero.is-on .hero__quote      { animation: textPopIn 0.7s 1.90s both, jitter 5.1s 2.7s infinite; }
.hero.is-on .hero__rule       { animation: textPopIn 0.6s 2.10s both; }
.hero.is-on .hero__date       { animation: textPopIn 0.7s 2.25s both, jitter 4.4s 3.0s infinite; }
.hero.is-on .hero__rule:last-child { animation-delay: 2.40s; }

/* ==========================================================================
   10. SHEETS
   Every section below the hero is a sheet of paper laid over the one before:
   square top edge, an upward shadow, a step in paper tone and a negative
   margin so it rides over its neighbour. DOM order paints later on top.
   ========================================================================== */
.sheet {
    position: relative;
    z-index: 2;
    margin-top: -18px;
    padding: 50px 24px 46px;
    background-color: var(--paper);
    box-shadow: var(--shadow-sheet);
}

/* A hairline of light along the top edge so the fold reads even where the
   two papers are nearly the same tone. */
.sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.85);
}

.sheet--date  { background-color: var(--paper-2); }
.sheet--nav   { background-color: var(--paper);   padding: 26px 18px; }
.sheet--tt    { background-color: var(--paper-3); }
.sheet--dress { background-color: var(--paper); }
.sheet--loc   { background-color: var(--paper-2); }
.sheet--rsvp  { background-color: var(--paper); }
.sheet--bye   { background-color: var(--paper-3); }
.sheet--foot  { background-color: var(--paper-4); padding: 30px 24px 34px; text-align: center; }

.sheet__inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

/* Reveal: every .r inside a .reveal sheet starts hidden and pops in once the
   sheet scrolls into view (script.js adds .in and staggers the delays). */
.reveal .r { opacity: 0; }
.reveal.in .r { animation: textPopIn 0.65s var(--d, 0s) both; }

.script-title {
    font-family: var(--f-script);
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
}

.ka-title {
    font-family: var(--f-ka);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.reveal.in .script-title,
.reveal.in .ka-title {
    animation: textPopIn 0.65s var(--d, 0s) both, jitter 4.6s calc(var(--d, 0s) + 0.7s) infinite;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 1.5px solid var(--red);
    border-radius: 999px;
    background-color: transparent;
    color: var(--red);
    font-family: var(--f-ka);
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:active {
    background-color: var(--red);
    color: var(--white);
}

/* ==========================================================================
   11. SAVE THE DATE + TOAST
   ========================================================================== */
.date__day {
    margin-top: 14px;
    font-family: var(--f-serif);
    font-size: 22px;
    letter-spacing: 0.12em;
    line-height: 1;
}

.date__time {
    margin-top: 6px;
    font-family: var(--f-serif);
    font-size: 46px;
    letter-spacing: 0.06em;
    line-height: 1;
}

.date__text {
    margin-top: 26px;
    font-size: 18px;
    line-height: 1.65;
}
.date__text--last { margin-top: 14px; }

/* Two coupe glasses that tip toward each other on a slow stepped loop, and
   three cherries dropped round their feet. */
.toast {
    position: relative;
    width: 280px;
    height: 220px;
    margin: 26px auto 0;
}

.toast__cup {
    position: absolute;
    bottom: 26px;
    width: 112px;
}
.toast__cup--l {
    left: 16px;
    transform-origin: 50% 95%;
    animation: clinkL 3.2s infinite;
}
.toast__cup--r {
    right: 16px;
    transform-origin: 50% 95%;
    animation: clinkR 3.2s 0.1s infinite;
}

@keyframes clinkL {
    0%   { transform: rotate(0) translateX(0);       animation-timing-function: steps(1); }
    22%  { transform: rotate(6deg) translateX(6px);  animation-timing-function: steps(1); }
    34%  { transform: rotate(9deg) translateX(10px); animation-timing-function: steps(1); }
    40%  { transform: rotate(7deg) translateX(8px);  animation-timing-function: steps(1); }
    58%  { transform: rotate(2deg) translateX(2px);  animation-timing-function: steps(1); }
    74%  { transform: rotate(-1deg) translateX(-1px); animation-timing-function: steps(1); }
    100% { transform: rotate(0) translateX(0); }
}
@keyframes clinkR {
    0%   { transform: rotate(0) translateX(0);        animation-timing-function: steps(1); }
    22%  { transform: rotate(-6deg) translateX(-6px); animation-timing-function: steps(1); }
    34%  { transform: rotate(-9deg) translateX(-10px); animation-timing-function: steps(1); }
    40%  { transform: rotate(-7deg) translateX(-8px); animation-timing-function: steps(1); }
    58%  { transform: rotate(-2deg) translateX(-2px); animation-timing-function: steps(1); }
    74%  { transform: rotate(1deg) translateX(1px);   animation-timing-function: steps(1); }
    100% { transform: rotate(0) translateX(0); }
}

.toast__cherry {
    position: absolute;
    bottom: 0;
}
.toast__cherry--1 { left: 4px;   width: 40px; animation: cherryBob 4.2s 0.3s infinite; }
.toast__cherry--2 { left: 118px; width: 46px; bottom: -6px; animation: cherryBob 3.6s 1.1s infinite; }
.toast__cherry--3 { right: 6px;  width: 40px; animation: cherryBob 4.8s 0.7s infinite; }

@keyframes cherryBob {
    0%   { transform: translateY(0)    rotate(0);     animation-timing-function: steps(1); }
    25%  { transform: translateY(-2px) rotate(4deg);  animation-timing-function: steps(1); }
    50%  { transform: translateY(0)    rotate(-3deg); animation-timing-function: steps(1); }
    75%  { transform: translateY(-1px) rotate(2deg);  animation-timing-function: steps(1); }
    100% { transform: translateY(0)    rotate(0); }
}

/* ==========================================================================
   12. ICON NAV
   ========================================================================== */
.nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 380px;
    margin: 0 auto;
}

.nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px 12px;
    border: 1.5px solid var(--red);
    border-radius: 14px;
    background-color: var(--paper-2);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.nav__item:active {
    background-color: var(--paper-3);
    transform: scale(0.96);
}
.nav__item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.reveal.in .nav__item img { animation: floatIdle 5s var(--d, 0s) infinite; }

/* ==========================================================================
   13. TIMETABLE
   Outlined cards on a rose paper, threaded by a line and a heart, after
   timetable-design-ref.png.
   ========================================================================== */
.tt {
    list-style: none;
    margin-top: 30px;
}

.tt__item { display: flex; flex-direction: column; align-items: center; }

.tt__card {
    width: 100%;
    padding: 24px 18px 22px;
    border: 1.5px solid var(--red);
    border-radius: 18px;
    background-color: rgba(255, 246, 248, 0.45);
}

.tt__time {
    font-family: var(--f-serif);
    font-size: 32px;
    letter-spacing: 0.06em;
    line-height: 1;
}

.tt__name {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.3;
}

.tt__desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.tt__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 62px;
    padding-top: 4px;
}

.tt__line {
    width: 1.5px;
    flex: 1;
    background-color: var(--red);
}

.tt__heart {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23870000' d='M12 21s-7.5-4.6-9.6-9.1C.7 8.2 3 4.5 6.6 4.5c2 0 3.5 1 4.4 2.4 1-1.4 2.5-2.4 4.4-2.4 3.6 0 5.9 3.7 4.2 7.4C19.5 16.4 12 21 12 21z'/></svg>") center / contain no-repeat;
}
.reveal.in .tt__heart { animation: heartBeat 2.8s var(--d, 0s) infinite; }

@keyframes heartBeat {
    0%   { transform: scale(1);    animation-timing-function: steps(1); }
    12%  { transform: scale(1.22); animation-timing-function: steps(1); }
    24%  { transform: scale(1);    animation-timing-function: steps(1); }
    36%  { transform: scale(1.14); animation-timing-function: steps(1); }
    48%  { transform: scale(1);    animation-timing-function: steps(1); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   14. DRESS CODE
   ========================================================================== */
.dress__bow {
    width: 84px;
    margin: 0 auto 6px;
}
.reveal.in .dress__bow { animation: textPopIn 0.65s var(--d, 0s) both, floatIdle 5.4s calc(var(--d, 0s) + 0.7s) infinite; }

.dress__lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.6;
}

.dress__qa {
    list-style: none;
    margin-top: 22px;
}
.dress__qa li {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px dashed var(--red-line);
}
.dress__qa li:last-child { border-bottom: 1px dashed var(--red-line); }
.dress__q { font-size: 15px; line-height: 1.5; }
.dress__a {
    margin-top: 2px;
    font-size: 17px;
    line-height: 1.4;
}

.dress__ask {
    margin-top: 26px;
    font-size: 15px;
}

/* The one rule that must land: a filled red banner, white type, big. */
.dress__banner {
    position: relative;
    margin: 12px -6px 0;
    padding: 20px 34px;
    border-radius: 14px;
    background-color: var(--red);
    color: var(--white);
    box-shadow: 0 10px 26px rgba(135, 0, 0, 0.28);
    transform: rotate(-1.5deg);
}
.dress__banner p {
    font-size: 22px;
    line-height: 1.35;
}
.reveal.in .dress__banner {
    animation: textPopIn 0.65s var(--d, 0s) both, bannerIdle 4.6s calc(var(--d, 0s) + 0.7s) infinite;
}
@keyframes bannerIdle {
    0%   { transform: rotate(-1.5deg) scale(1);    animation-timing-function: steps(1); }
    30%  { transform: rotate(-0.8deg) scale(1.015); animation-timing-function: steps(1); }
    60%  { transform: rotate(-2deg)   scale(1);    animation-timing-function: steps(1); }
    100% { transform: rotate(-1.5deg) scale(1); }
}

/* Stars in the banner are the red PNG knocked out to white. */
.dress__banner-star {
    position: absolute;
    top: 50%;
    width: 22px;
    margin-top: -11px;
    filter: brightness(0) invert(1);
}
.dress__banner-star--l { left: 10px; animation: twinkle 3.4s infinite; }
.dress__banner-star--r { right: 10px; animation: twinkle 3.9s 0.8s infinite; }

.dress__cherry {
    width: 54px;
    margin: 22px auto 0;
}
.reveal.in .dress__cherry { animation: textPopIn 0.65s var(--d, 0s) both, cherryBob 4.4s calc(var(--d, 0s) + 0.7s) infinite; }

/* ==========================================================================
   15. LOCATION
   ========================================================================== */
.loc__pin {
    width: 56px;
    margin: 0 auto 8px;
}
.reveal.in .loc__pin { animation: textPopIn 0.65s var(--d, 0s) both, floatIdle 5s calc(var(--d, 0s) + 0.7s) infinite; }

.loc__name {
    margin-top: 18px;
    font-family: var(--f-script);
    font-size: 48px;
    line-height: 1;
}

.loc__addr {
    margin-top: 8px;
    font-family: var(--f-serif);
    font-size: 14px;
    letter-spacing: 0.06em;
}

/* Map tinted to the paper: greyscale, warmed, hue turned to the reds. */
.loc__map {
    height: 230px;
    margin: 22px 0 20px;
    border: 1.5px solid var(--red);
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--paper-3);
}
.loc__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) sepia(0.9) hue-rotate(305deg) saturate(1.6) brightness(1.02) contrast(0.92);
}

/* ==========================================================================
   16. RSVP
   ========================================================================== */
.rsvp {
    margin-top: 24px;
    text-align: left;
}

.field { display: block; margin-top: 16px; }
.field__label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.field input {
    display: block;
    width: 100%;
    padding: 10px 2px;
    border: 0;
    border-bottom: 1.5px solid var(--red);
    border-radius: 0;
    background-color: transparent;
    color: var(--red);
    font-size: 17px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.field input:focus { border-bottom-width: 2px; }

.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
}
.choice { display: block; cursor: pointer; }
.choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.choice__box {
    display: block;
    padding: 14px 16px;
    border: 1.5px solid var(--red);
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.choice input:checked + .choice__box {
    background-color: var(--red);
    color: var(--white);
}

.rsvp__reply {
    min-height: 0;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}
.rsvp__reply.is-on { animation: textPopIn 0.6s both; }

.rsvp .btn {
    display: block;
    width: 100%;
    margin-top: 22px;
}
.rsvp .btn[disabled] { opacity: 0.55; }

.rsvp__status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.rsvp__done {
    margin-top: 24px;
    padding: 26px 20px;
    border: 1.5px solid var(--red);
    border-radius: 18px;
    background-color: var(--paper-2);
    font-size: 17px;
    line-height: 1.6;
    animation: textPopIn 0.65s both;
}
.rsvp__done img {
    width: 26px;
    margin: 0 auto 12px;
    animation: twinkle 3.4s infinite;
}

/* ==========================================================================
   17. CLOSING WORDS
   ========================================================================== */
.bye__text {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
}
.bye__text:first-of-type { margin-top: 24px; }

.bye__sign {
    margin-top: 26px;
    font-family: var(--f-script);
    font-size: 44px;
    line-height: 1;
}
.reveal.in .bye__sign { animation: textPopIn 0.65s var(--d, 0s) both, jitter 4.6s calc(var(--d, 0s) + 0.7s) infinite; }

.bye__cake {
    width: 150px;
    margin: 22px auto 0;
}
.reveal.in .bye__cake { animation: popIn 0.7s var(--d, 0s) both, floatIdle 5.6s calc(var(--d, 0s) + 0.8s) infinite; }

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.credit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--f-serif);
    font-size: 12px;
    color: var(--red);
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
.credit:hover,
.credit:focus-visible { opacity: 0.75; }
.credit__logo { width: 16px; height: auto; }

/* ==========================================================================
   19. BREAKPOINTS
   481px is the large-phone step. 769px+ is the desktop notice.
   ========================================================================== */
@media (min-width: 481px) {
    .hero__inmy     { font-size: 17px; }
    .hero__thirties { font-size: 78px; }
    .hero__era      { font-size: 62px; }
    .hero__quote    { font-size: 28px; }
    .hero__date     { font-size: 40px; }
    .script-title   { font-size: 62px; }
}

@media (min-width: 769px) {
    .mobile-prompt {
        position: fixed;
        inset: 0;
        z-index: 20000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 30px;
        background-color: var(--paper);
        text-align: center;
    }
    .mobile-prompt__icon {
        width: 52px;
        height: auto;
        opacity: 0.8;
    }
    .mobile-prompt p {
        font-family: var(--f-ka);
        font-size: 17px;
        letter-spacing: 0.04em;
        color: var(--red-soft);
    }
}

/* ==========================================================================
   20. REDUCED MOTION
   Idle loops go; entries become instant so nothing is left at opacity 0.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero .anim, .reveal .r, .entry__cake, .entry__kicker, .entry__title, .entry__star, .entry__hint { opacity: 1; }
}
