/*
 * Template "Album Kenangan" (Anniversary Pernikahan): a cherished vintage memory album — cream and sepia album
 * pages, oxblood leather tooled in aged brass, forest-green linen. Photos are deckle-edged prints with photo
 * corners or washi tape (sections/_print), polaroids with handwritten captions, postage stamps and postmarks
 * (sections/_stamp, _postmark), a wax seal (sections/_seal), pressed flowers (sections/_pressed) and film strips.
 * The love story is an album leafed page by page (sections/story, CSS 3D page turn).
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>): --inv-primary (the leather / wax),
 * --inv-accent (aged brass), --inv-background (album paper), --inv-text (ink), --inv-deep (dark leather),
 * --inv-shine (light brass on dark), --inv-soft (sepia kraft), --inv-petal and --inv-leaf (pressed flowers),
 * --inv-band (the linen band: forest green by default).
 *
 * Section tones: .alb-tone--paper, --sepia, --leather, --linen.
 * Revision standard (docs/template-guide.md section 10): the cover in px steps per screen height, never svh;
 * ornaments clear of faces; photos melt into sections with masks; a compact closing above the bottom menu.
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Kulit Merah Bata" variant (the variant's colours override these) */
    --inv-primary: #9a2a1e;
    --inv-accent: #c4912f;
    --inv-background: #f6e8cc;
    --inv-text: #3a2214;
    --inv-deep: #4e130d;
    --inv-shine: #f2cf78;
    --inv-soft: #e8cc9c;
    --inv-petal: #c2452f;
    --inv-leaf: #2f6142;
    --inv-band: #1f4a32;
    --inv-radius: 10px;

    --alb-serif: var(--inv-font-heading, 'Playfair Display'), Georgia, 'Times New Roman', serif;
    --alb-script: var(--inv-font-display, 'Pinyon Script'), 'Brush Script MT', cursive;
    --alb-book: 'IM Fell English', Georgia, 'Times New Roman', serif;
    --alb-hand: 'Caveat', 'Segoe Print', cursive;
    --alb-type: 'Special Elite', 'Courier New', monospace;
    --alb-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --alb-col: 460px;

    /* aged brass, mixed from the accent: dark bronze → brass → pale light */
    --alb-gold-1: color-mix(in srgb, var(--inv-accent) 55%, #2e1a04);
    --alb-gold-2: var(--inv-accent);
    --alb-gold-3: color-mix(in srgb, var(--inv-accent) 42%, #fff4d2);
    --alb-gold-ink: color-mix(in srgb, var(--inv-accent) 62%, #3a2203);
    --alb-foil: linear-gradient(100deg, var(--alb-gold-1), var(--alb-gold-2) 30%, var(--alb-gold-3) 48%, var(--alb-gold-2) 62%, var(--alb-gold-1));

    /* sealing wax (from the primary) and the pressed flowers */
    --alb-wax-1: color-mix(in srgb, var(--inv-primary) 62%, #1a0202);
    --alb-wax-2: var(--inv-primary);
    --alb-wax-3: color-mix(in srgb, var(--inv-primary) 62%, #ffd7c4);
    --alb-petal-1: color-mix(in srgb, var(--inv-petal) 70%, #2a0a00);
    --alb-petal-2: var(--inv-petal);
    --alb-petal-3: color-mix(in srgb, var(--inv-petal) 45%, #fff0dc);
    --alb-petal-line: color-mix(in srgb, var(--inv-petal) 55%, #3a1000);
    --alb-leaf-1: var(--inv-leaf);
    --alb-leaf-2: color-mix(in srgb, var(--inv-leaf) 65%, #0b1a08);
    --alb-leaf-3: color-mix(in srgb, var(--inv-leaf) 45%, #f4ffe2);
    --alb-lav: color-mix(in srgb, #7b5bb0 72%, var(--inv-petal));

    /* paper, ink and lines */
    --alb-paper: color-mix(in srgb, #fffaf0 58%, var(--inv-background));
    --alb-print: #fbf4e3;
    --alb-title: color-mix(in srgb, var(--inv-primary) 80%, var(--inv-deep));
    --alb-ink: color-mix(in srgb, var(--inv-text) 86%, var(--inv-primary));
    --alb-hand-ink: color-mix(in srgb, #23305a 62%, var(--inv-text));
    --alb-muted: color-mix(in srgb, var(--inv-text) 76%, var(--inv-background));
    --alb-cream: color-mix(in srgb, var(--inv-background) 88%, transparent);
    --alb-line: color-mix(in srgb, var(--inv-accent) 60%, transparent);
    --alb-leather: color-mix(in srgb, var(--inv-deep) 70%, var(--inv-primary));
    --alb-corner: color-mix(in srgb, var(--inv-deep) 78%, #000);

    /* a torn deckle edge for prints and cards (px jitter, so it stays fine at any size) */
    --alb-deckle: polygon(0% 0.5px, 3.3% 2.7px, 6.6% 0.6px, 9.9% 0.1px, 13.2% 0.8px, 16.5% 3.2px, 19.8% 2.7px, 23.1% 2.9px, 26.4% 0.3px, 29.7% 3.1px, 33% 0.3px, 36.3% 0.6px, 39.6% 2.3px, 42.9% 2.2px, 46.2% 0.2px, 49.5% 1.5px, 52.8% 2.1px, 56.1% 1.7px, 59.4% 2.3px, 62.7% 0.8px, 66% 1.6px, 69.3% 1px, 72.6% 1px, 75.9% 3.1px, 79.2% 0.3px, 82.5% 2.3px, 85.8% 2.8px, 89.1% 1.7px, 92.4% 1px, 95.7% 0.3px, 99% 0.1px, calc(100% - 0.5px) 0%, calc(100% - 3.1px) 3.3%, calc(100% - 3.3px) 6.6%, calc(100% - 3px) 9.9%, calc(100% - 1.1px) 13.2%, calc(100% - 3.1px) 16.5%, calc(100% - 0.2px) 19.8%, calc(100% - 2px) 23.1%, calc(100% - 1px) 26.4%, calc(100% - 2.9px) 29.7%, calc(100% - 2.1px) 33%, calc(100% - 1.4px) 36.3%, calc(100% - 1.7px) 39.6%, calc(100% - 2.2px) 42.9%, calc(100% - 2.6px) 46.2%, calc(100% - 2.9px) 49.5%, calc(100% - 3.3px) 52.8%, calc(100% - 3.2px) 56.1%, calc(100% - 1.2px) 59.4%, calc(100% - 2.9px) 62.7%, calc(100% - 2.4px) 66%, calc(100% - 2.2px) 69.3%, calc(100% - 2.3px) 72.6%, calc(100% - 2px) 75.9%, calc(100% - 2.7px) 79.2%, calc(100% - 0.5px) 82.5%, calc(100% - 0.5px) 85.8%, calc(100% - 3.2px) 89.1%, calc(100% - 0.2px) 92.4%, calc(100% - 2px) 95.7%, calc(100% - 0.7px) 99%, 100% calc(100% - 0.8px), 96.7% calc(100% - 1.7px), 93.4% calc(100% - 0.5px), 90.1% calc(100% - 2px), 86.8% calc(100% - 1.8px), 83.5% calc(100% - 3.4px), 80.2% calc(100% - 1.7px), 76.9% calc(100% - 3.4px), 73.6% calc(100% - 3.1px), 70.3% calc(100% - 0.2px), 67% calc(100% - 1.6px), 63.7% calc(100% - 3px), 60.4% calc(100% - 2.2px), 57.1% calc(100% - 2.2px), 53.8% calc(100% - 0.5px), 50.5% calc(100% - 1.1px), 47.2% calc(100% - 1.3px), 43.9% calc(100% - 1.8px), 40.6% calc(100% - 1.6px), 37.3% calc(100% - 0.1px), 34% calc(100% - 0.1px), 30.7% calc(100% - 3px), 27.4% calc(100% - 2.6px), 24.1% calc(100% - 2.9px), 20.8% calc(100% - 0.9px), 17.5% calc(100% - 0.7px), 14.2% calc(100% - 2.1px), 10.9% calc(100% - 0.4px), 7.6% calc(100% - 1.4px), 4.3% calc(100% - 3.3px), 1% calc(100% - 1.3px), 0.8px 100%, 1.7px 96.7%, 0.3px 93.4%, 1.6px 90.1%, 1.2px 86.8%, 0.8px 83.5%, 0.2px 80.2%, 0px 76.9%, 2.7px 73.6%, 0.1px 70.3%, 2.8px 67%, 2.4px 63.7%, 2.5px 60.4%, 0.7px 57.1%, 2.9px 53.8%, 0.7px 50.5%, 2.9px 47.2%, 0.5px 43.9%, 0.5px 40.6%, 0.3px 37.3%, 2.5px 34%, 0px 30.7%, 1.7px 27.4%, 0.5px 24.1%, 0.4px 20.8%, 0.9px 17.5%, 3.3px 14.2%, 1.2px 10.9%, 2.3px 7.6%, 1.6px 4.3%, 1.1px 1%);

    /* grain: a fine fractal noise (dark specks for leather and linen, soft fibres for paper) */
    --alb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.4 0 0 0 .78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --alb-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .32' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .27 0 0 0 0 .1 -2 0 0 0 1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");

    /* colours of the shared components */
    --inv-ambient-1: var(--inv-petal);
    --inv-ambient-2: var(--inv-shine);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--alb-sans);
    font-size: 15px;
    line-height: 1.65;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }

/* the SVG definitions: present for the gradients and symbols, never seen */
.alb-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.alb-preview {
    position: sticky; top: 0; z-index: 60; padding: .5rem 1rem; text-align: center;
    background: #fff4d6; color: #6b4e00; font-size: .8125rem;
}

/* the one column of the page; every section paints its own full-width background */
.alb-main { max-width: var(--alb-col); margin: 0 auto; overflow-x: clip; }
.alb-branding { max-width: var(--alb-col); margin: 0 auto; }

.alb-section { position: relative; isolation: isolate; overflow: hidden; padding: 4.2rem 1.4rem; text-align: center; }
.alb-section > p { margin: 0 auto 1rem; max-width: 34ch; }

.alb-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--alb-title); }
.alb-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* brass foil text: the gradient clipped to the letters with a slow moving shine */
.alb-tone--leather .alb-heading__title em, .alb-tone--linen .alb-heading__title em, .alb-cover__names, .alb-closing__names {
    background: var(--alb-foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 2. section tones ---------- */
/* paper: the cream album page, its edges browned with age, a few foxing spots, fine fibres */
.alb-tone--paper {
    background:
        radial-gradient(120% 70% at 50% 50%, transparent 55%, color-mix(in srgb, var(--inv-soft) 70%, transparent) 100%),
        radial-gradient(4rem 3rem at 88% 12%, color-mix(in srgb, #b07a3a 14%, transparent), transparent 70%),
        radial-gradient(3rem 2.4rem at 10% 78%, color-mix(in srgb, #b07a3a 12%, transparent), transparent 70%),
        var(--alb-paper);
}
/* sepia: a warm kraft page */
.alb-tone--sepia {
    background:
        radial-gradient(110% 60% at 50% 0%, color-mix(in srgb, #fff8e6 45%, transparent), transparent 70%),
        radial-gradient(120% 70% at 50% 50%, transparent 55%, color-mix(in srgb, var(--inv-primary) 14%, transparent) 100%),
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 72%, var(--inv-background)));
}
.alb-tone--paper::before, .alb-tone--sepia::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--alb-fibre) 0 0 / 240px 240px; opacity: .22;
}
/* leather: the album's oxblood leather with grain, tooled with a double brass rule and a stitched line */
.alb-tone--leather {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 20% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 75%),
        radial-gradient(70% 34% at 100% 100%, color-mix(in srgb, var(--inv-primary) 55%, transparent), transparent 75%),
        radial-gradient(60% 30% at 0% 70%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        var(--inv-deep);
}
/* linen: the second band colour (forest green by default) woven with fine threads */
.alb-tone--linen {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 80% 0%, color-mix(in srgb, var(--inv-band) 60%, #fff 8%), transparent 75%),
        repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgb(0 0 0 / .06) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, var(--inv-band), color-mix(in srgb, var(--inv-band) 78%, #000));
}
.alb-tone--leather::before, .alb-tone--linen::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--alb-grain) 0 0 / 180px 180px; opacity: .55; mix-blend-mode: multiply;
}
.alb-tone--leather::after {
    content: ''; position: absolute; inset: .7rem; z-index: -1; pointer-events: none; border-radius: 4px;
    border: 1px solid var(--alb-line);
    box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 40%, transparent);
    outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 30%, transparent); outline-offset: -11px;
}
.alb-tone--leather a:not(.inv-button), .alb-tone--linen a:not(.inv-button) { color: var(--inv-shine); }
.alb-tone--leather .alb-arabic, .alb-tone--linen .alb-arabic { color: var(--inv-shine); }

/* a client photo behind a section, under a strong gradient of the section's own tone */
.alb-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.alb-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 30%; filter: sepia(.45); --inv-parallax: 40px; }
.alb-bgphoto::after { content: ''; position: absolute; inset: 0; }
.alb-tone--leather .alb-bgphoto::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-deep) 92%, transparent),
        color-mix(in srgb, var(--inv-deep) 76%, transparent) 45%,
        color-mix(in srgb, var(--inv-deep) 95%, transparent));
}
.alb-tone--linen .alb-bgphoto::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-band) 93%, #000),
        color-mix(in srgb, var(--inv-band) 80%, transparent) 40%,
        color-mix(in srgb, var(--inv-band) 95%, #000));
}

/* ---------- 3. shared pieces ---------- */

/* heading: the eyebrow typed on a taped paper label, the title, the brass rule */
.alb-heading { margin: 0 0 2rem; }
.alb-heading__eyebrow { margin: 0 0 .75rem; }
.alb-heading__eyebrow span {
    position: relative; display: inline-block; padding: .3rem .85rem .26rem; transform: rotate(-1.5deg);
    font-family: var(--alb-type); font-size: .72rem; line-height: 1.2; letter-spacing: .08em; color: var(--alb-ink);
    background: var(--alb-print); box-shadow: 0 3px 6px -3px rgb(60 30 0 / .45);
}
.alb-heading__eyebrow span::before {
    content: ''; position: absolute; left: 50%; top: -.42rem; width: 2.6rem; height: .8rem; margin-left: -1.3rem; transform: rotate(4deg);
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-petal) 55%, transparent) 0 5px, color-mix(in srgb, var(--inv-shine) 50%, transparent) 5px 10px);
    clip-path: polygon(0 10%, 6% 0, 12% 12%, 88% 4%, 94% 14%, 100% 4%, 100% 92%, 94% 100%, 88% 88%, 12% 96%, 6% 86%, 0 100%);
}
.alb-heading__title {
    margin: 0; font-family: var(--alb-serif); font-size: 2.15rem; font-weight: 500; line-height: 1.1;
    color: var(--alb-title); text-wrap: balance;
}
.alb-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--alb-script); font-style: normal; font-weight: 400;
    font-size: 1.25em; line-height: .9; color: var(--inv-primary);
}
.alb-heading__divider { margin: .7rem auto 0; }
.alb-tone--leather .alb-heading__title, .alb-tone--linen .alb-heading__title { color: #fff8ea; }

/* the ornamental rule */
.alb-divider { display: block; width: min(13rem, 70%); height: auto; overflow: visible; }

/* washi tape: translucent striped paper with torn ends */
.alb-tape {
    position: absolute; z-index: 3; width: 5.4rem; height: 1.5rem; pointer-events: none;
    background:
        repeating-linear-gradient(45deg, color-mix(in srgb, var(--inv-petal) 52%, transparent) 0 6px, color-mix(in srgb, var(--inv-shine) 52%, transparent) 6px 12px);
    clip-path: polygon(0 8%, 5% 0, 9% 10%, 14% 2%, 86% 4%, 91% 12%, 96% 0, 100% 9%, 100% 92%, 95% 100%, 90% 88%, 85% 98%, 14% 96%, 9% 88%, 4% 100%, 0 90%);
    box-shadow: inset 0 0 0 40px rgb(255 255 255 / .12);
}
.alb-tape--left { left: -1.4rem; top: .2rem; transform: rotate(-36deg); }
.alb-tape--right { right: -1.4rem; top: .2rem; transform: rotate(36deg); }
.alb-tape--tl { left: -.9rem; top: -.5rem; transform: rotate(-24deg); }
.alb-tape--tr { right: -.9rem; top: -.5rem; transform: rotate(22deg);
    background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--inv-leaf) 50%, transparent) 0 5px, color-mix(in srgb, #fff8e6 55%, transparent) 5px 10px); }

/* photo corners: little dark pockets of album paper holding a print */
.alb-corner {
    position: absolute; z-index: 2; width: var(--corner, 15%); max-width: 2.4rem; min-width: 1.35rem; aspect-ratio: 1; pointer-events: none;
    background:
        linear-gradient(135deg, transparent 47%, color-mix(in srgb, var(--inv-shine) 55%, transparent) 48%, transparent 53%),
        linear-gradient(135deg, color-mix(in srgb, var(--alb-corner) 70%, #6a4a2a) 0%, var(--alb-corner) 45%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    filter: drop-shadow(1px 1px 1px rgb(0 0 0 / .45));
}
.alb-corner--tl { left: -4px; top: -4px; }
.alb-corner--tr { right: -4px; top: -4px; transform: scaleX(-1); }
.alb-corner--bl { left: -4px; bottom: -4px; transform: scaleY(-1); }
.alb-corner--br { right: -4px; bottom: -4px; transform: scale(-1, -1); }

/* the print: a cream border torn at the edge (clip-path), shadow from the wrapper (a filter) */
.alb-print { --print-w: 15rem; --print-ratio: 4 / 5; --print-pad: 9px; --tilt: 0deg; position: relative; width: var(--print-w); margin: 0 auto; flex: none; transform: rotate(var(--tilt)); }
.alb-print__paper {
    position: relative; padding: var(--print-pad); clip-path: var(--alb-deckle);
    background: linear-gradient(160deg, #fffaf0, var(--alb-print) 55%, color-mix(in srgb, var(--alb-print) 85%, #c8a46a));
}
.alb-print::before {
    content: ''; position: absolute; inset: 3px; z-index: -1; pointer-events: none;
    box-shadow: 0 14px 22px -10px rgb(45 20 5 / .55), 0 2px 5px rgb(45 20 5 / .25);
}
.alb-print__window {
    position: relative; overflow: hidden; aspect-ratio: var(--print-ratio);
    background: radial-gradient(80% 60% at 50% 35%, color-mix(in srgb, var(--inv-soft) 70%, #fff), color-mix(in srgb, var(--inv-primary) 45%, #6b4a2a));
}
.alb-print__window::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgb(60 30 0 / .18), inset 0 0 26px rgb(90 50 10 / .28);
}
.alb-print__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: sepia(.14) saturate(1.06) contrast(1.03); }
.alb-print--sepia .alb-print__photo { filter: sepia(.62) contrast(1.06) brightness(.98); }
.alb-print__empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--alb-script); font-size: calc(var(--print-w) * .2); color: #fff8ea; text-shadow: 0 4px 14px rgb(0 0 0 / .3); white-space: nowrap; }
.alb-print--polaroid .alb-print__paper { padding: 11px 11px 0; }
.alb-print__caption {
    padding: .35rem .5rem .55rem; font-family: var(--alb-hand); font-size: 1.55rem; font-weight: 600; line-height: 1.1; text-align: center;
    color: var(--alb-hand-ink); overflow-wrap: anywhere;
}

/* the postage stamp: perforated edge (holes punched along the border by a mask) */
.alb-stamp {
    --stamp-w: 7rem; position: relative; width: var(--stamp-w); aspect-ratio: 4 / 5; padding: 8px; flex: none;
    background: #fbf6e8;
    -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4.2px, #0000 96%, #000) -6px -6px / 12px 12px round;
    mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4.2px, #0000 96%, #000) -6px -6px / 12px 12px round;
}
.alb-stamp__face {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; overflow: hidden;
    color: #fff8ea; text-align: center;
    background:
        repeating-linear-gradient(0deg, rgb(255 255 255 / .06) 0 1px, transparent 1px 3px),
        radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--inv-primary) 75%, #fff 12%), var(--alb-wax-1));
    box-shadow: inset 0 0 0 3px #fbf6e8, inset 0 0 0 4px color-mix(in srgb, var(--inv-primary) 60%, transparent);
}
.alb-stamp__big {
    font-family: var(--alb-serif); font-size: calc(var(--stamp-w) * .42); font-weight: 600; line-height: .9;
    background: var(--alb-foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 3px rgb(0 0 0 / .4));
}
.alb-stamp__small { margin-top: .15rem; font-family: var(--alb-type); font-size: calc(var(--stamp-w) * .1); letter-spacing: .08em; color: var(--inv-shine); }
.alb-stamp__value { position: absolute; left: 7px; top: 5px; font-family: var(--alb-type); font-size: calc(var(--stamp-w) * .085); color: #fff8ea; opacity: .9; }
.alb-stamp__heart { position: absolute; right: 7px; top: 6px; width: calc(var(--stamp-w) * .13); fill: var(--inv-shine); }
.alb-stamp--photo .alb-stamp__face { justify-content: flex-end; padding-bottom: 6px; }
.alb-stamp__photo { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover; object-position: center 25%; filter: sepia(.4) saturate(1.2); }

/* the postmark: an ink stamp, faded and tilted */
.alb-postmark { display: block; height: auto; overflow: visible; color: color-mix(in srgb, #23243f 62%, var(--inv-deep)); opacity: .72; transform: rotate(-12deg); pointer-events: none; }
.alb-tone--leather .alb-postmark, .alb-tone--linen .alb-postmark { color: var(--inv-shine); opacity: .62; }

/* the wax seal */
.alb-seal { --seal-w: 4.6rem; position: relative; width: var(--seal-w); aspect-ratio: 1; flex: none; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .4)); }
.alb-seal__wax { display: block; width: 100%; height: 100%; overflow: visible; }
.alb-seal__letters {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .08em; margin: 0;
    font-family: var(--alb-serif); font-size: calc(var(--seal-w) * .27); font-weight: 600; line-height: 1; color: var(--alb-wax-1);
    text-shadow: 0 1px 0 color-mix(in srgb, var(--alb-wax-3) 70%, transparent), 0 -1px 0 rgb(0 0 0 / .35);
}
.alb-seal__letters i { font-family: var(--alb-script); font-style: normal; font-size: .8em; opacity: .85; }

/* pressed flowers */
.alb-pressed { display: block; height: auto; overflow: visible; pointer-events: none; opacity: .94; filter: drop-shadow(0 2px 2px rgb(60 30 0 / .25)); }
.alb-pressed__tape { fill: color-mix(in srgb, var(--inv-shine) 55%, transparent); }

/* the interlocking rings */
.alb-rings { display: block; width: 100%; height: auto; overflow: visible; }

/* the tap marker: two pulsing brass rings and a hand */
.alb-tap { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.alb-tap__ring {
    position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0;
}
.alb-tap__hand {
    position: absolute; left: 52%; top: 50%; width: 2.6rem; height: 2.6rem;
    fill: #fff; stroke: var(--alb-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35));
}

/* a vintage name label: cream card with clipped corners, a double brass rule, a brass eyelet with string */
.alb-label {
    position: relative; padding: 1.5rem .7rem 1rem; text-align: center; background: var(--alb-print);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    box-shadow: inset 0 0 0 5px var(--alb-print), inset 0 0 0 6px var(--alb-line), inset 0 0 0 8px var(--alb-print), inset 0 0 0 8.8px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
.alb-label__eyelet {
    position: absolute; left: 50%; top: .55rem; width: .62rem; height: .62rem; margin-left: -.31rem; border-radius: 50%;
    background: color-mix(in srgb, var(--inv-soft) 60%, #6b4a2a); box-shadow: 0 0 0 2.4px var(--inv-accent), 0 0 0 3px var(--alb-gold-1);
}

/* ---------- 4. cover: the leather album's front board ---------- */
.alb-cover {
    --cover-w: 16.6rem;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 1.9rem 1.5rem 1.9rem 2.2rem; isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(75% 40% at 55% 36%, color-mix(in srgb, var(--inv-primary) 92%, transparent), transparent 78%),
        radial-gradient(60% 30% at 100% 100%, color-mix(in srgb, var(--inv-primary) 50%, transparent), transparent 75%),
        radial-gradient(50% 26% at 0% 0%, color-mix(in srgb, var(--inv-accent) 16%, transparent), transparent 75%),
        var(--inv-deep);
    transition: opacity .9s ease, transform .9s ease;
}
/* leather grain */
.alb-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .6; mix-blend-mode: multiply;
    background: var(--alb-grain) 0 0 / 180px 180px;
}
/* brass motes drifting up slowly */
.alb-cover::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
    background:
        radial-gradient(1.6px 1.6px at 14% 82%, var(--inv-shine), transparent),
        radial-gradient(1.2px 1.2px at 30% 62%, var(--inv-shine), transparent),
        radial-gradient(2px 2px at 78% 74%, var(--inv-shine), transparent),
        radial-gradient(1.3px 1.3px at 90% 40%, var(--inv-shine), transparent),
        radial-gradient(1.8px 1.8px at 10% 30%, var(--inv-shine), transparent),
        radial-gradient(1.2px 1.2px at 64% 16%, var(--inv-shine), transparent),
        radial-gradient(1.5px 1.5px at 44% 94%, var(--inv-shine), transparent);
    background-size: 100% 420px;
}
/* the spine with raised bands on the left edge */
.alb-cover__spine {
    position: absolute; left: 0; top: 0; bottom: 0; width: 1.15rem; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, transparent 0 13%, var(--alb-gold-2) 13% 13.6%, var(--alb-leather) 13.6% 15.6%, var(--alb-gold-2) 15.6% 16.2%, transparent 16.2% 83.8%, var(--alb-gold-2) 83.8% 84.4%, var(--alb-leather) 84.4% 86.4%, var(--alb-gold-2) 86.4% 87%, transparent 87%),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-deep) 70%, #000), color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)) 45%, color-mix(in srgb, var(--inv-deep) 80%, #000));
    box-shadow: 3px 0 6px rgb(0 0 0 / .45), inset -1px 0 0 color-mix(in srgb, var(--inv-shine) 30%, transparent);
}
/* the tooled border: a brass rule, a fine inner rule and a stitched line */
.alb-cover__tooling {
    position: absolute; top: .85rem; right: .85rem; bottom: .85rem; left: 1.95rem; z-index: -1; pointer-events: none;
    border: 1.6px solid color-mix(in srgb, var(--inv-accent) 85%, transparent);
    box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 0 0 1px rgb(0 0 0 / .3);
    outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 34%, transparent); outline-offset: -12px;
}
.alb-fleuron { display: block; overflow: visible; pointer-events: none; }
.alb-cover__fleuron { position: absolute; z-index: -1; width: 3.4rem; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .5)); }
.alb-cover__fleuron--tl { left: 1.55rem; top: .45rem; }
.alb-cover__fleuron--tr { right: .45rem; top: .45rem; transform: scaleX(-1); }
.alb-cover__fleuron--bl { left: 1.55rem; bottom: .45rem; transform: scaleY(-1); }
.alb-cover__fleuron--br { right: .45rem; bottom: .45rem; transform: scale(-1, -1); }
/* a slow band of light sweeping across the leather */
.alb-cover__sheen {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--inv-shine) 13%, transparent) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
}

.alb-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; }

.alb-cover__title {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-family: var(--alb-serif);
    font-size: .74rem; font-weight: 500; line-height: 1.25; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine);
    text-shadow: 0 1px 0 rgb(0 0 0 / .55), 0 -1px 0 color-mix(in srgb, var(--inv-shine) 30%, transparent);
}
.alb-cover__title::before, .alb-cover__title::after { content: ''; width: 1.4rem; height: 1px; background: var(--inv-shine); opacity: .8; }

/* the window: a cream mat recessed into the leather, framed by a brass rule */
.alb-cover__window {
    position: relative; padding: 11px; border-radius: 3px;
    background: radial-gradient(90% 70% at 50% 40%, var(--alb-paper), color-mix(in srgb, var(--inv-soft) 80%, #b08850));
    box-shadow: inset 0 3px 8px rgb(40 15 0 / .5), inset 0 0 0 1px rgb(0 0 0 / .25), 0 0 0 2px var(--alb-gold-2), 0 0 0 3px var(--alb-gold-1), 0 0 0 6px color-mix(in srgb, var(--inv-deep) 80%, #000), 0 0 0 7px var(--alb-line), 0 22px 30px -16px rgb(0 0 0 / .7);
}
.alb-print--cover { --print-w: var(--cover-w); --print-pad: 8px; }
.alb-print--cover .alb-print__photo { object-position: center 24%; }
.alb-cover__seal { --seal-w: 4.5rem; position: absolute; right: -1.6rem; bottom: -1.5rem; z-index: 3; transform: rotate(-10deg); }

.alb-cover__names {
    margin: 1.05rem 0 0; max-width: 100%; font-family: var(--alb-script); font-size: 2.65rem; font-weight: 400; line-height: 1.14;
    padding: 0 .2em .06em; white-space: nowrap; overflow-wrap: normal;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / .45));
}
/* the brass nameplate with two screws */
.alb-cover__plate { margin: .3rem 0 0; }
.alb-cover__plate span {
    display: inline-block; padding: .28rem 1.55rem .3rem; border-radius: 3px; white-space: nowrap;
    font-family: var(--alb-serif); font-size: .94rem; font-weight: 500; letter-spacing: .04em; color: var(--inv-deep);
    background:
        radial-gradient(circle 2.6px at .7rem 50%, var(--alb-gold-1) 60%, transparent 70%),
        radial-gradient(circle 2.6px at calc(100% - .7rem) 50%, var(--alb-gold-1) 60%, transparent 70%),
        var(--alb-foil);
    background-size: 100% 100%, 100% 100%, 220% 100%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--alb-gold-1) 80%, transparent), 0 4px 8px -4px rgb(0 0 0 / .6);
}
.alb-cover__quote {
    max-width: 30ch; margin: .6rem 0 0; font-family: var(--alb-book); font-style: italic;
    font-size: 1.08rem; line-height: 1.32; color: var(--alb-cream);
}
/* the guest's name on a paper label tied with string */
.alb-cover__guest {
    position: relative; width: min(100%, 17.5rem); margin: .85rem 0 0; padding: .4rem 1rem .45rem 1.9rem; transform: rotate(-1.2deg);
    color: var(--inv-text); background: linear-gradient(170deg, #fffaf0, var(--alb-print));
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    box-shadow: inset 0 0 0 4px var(--alb-print), inset 0 0 0 5px var(--alb-line);
}
.alb-cover__guest::before {
    content: ''; position: absolute; left: .7rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 50%;
    background: var(--inv-deep); box-shadow: 0 0 0 2px var(--inv-accent);
}
.alb-cover__guest p { margin: 0; font-family: var(--alb-type); font-size: .64rem; letter-spacing: .12em; color: var(--alb-muted); }
.alb-cover__guest-name { display: block; font-family: var(--alb-serif); font-size: 1.2rem; font-weight: 500; line-height: 1.22; color: var(--alb-title); overflow-wrap: anywhere; }
.alb-cover__open {
    margin-top: .95rem; min-height: 2.9rem; padding: .65rem 1.9rem; font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.2px var(--alb-line), 0 14px 26px -12px rgb(0 0 0 / .6);
}

/* leaving: the board swings open toward the left and fades */
.alb-cover--leave { transition: opacity .9s ease .15s, transform 1s cubic-bezier(.55, 0, .3, 1); transform-origin: left center; }
.alb-cover--gone { opacity: 0; transform: perspective(1400px) rotateY(-28deg); }

/* ---------- 5. sections ---------- */

/* opening: the taped letter */
.alb-opening { padding: 4.2rem 1.4rem 4.4rem; }
.alb-letter { position: relative; max-width: 22.5rem; margin: 0 auto; transform: rotate(-.6deg); }
.alb-letter::before { content: ''; position: absolute; inset: 4px; z-index: -1; box-shadow: 0 18px 26px -14px rgb(60 30 5 / .5); }
.alb-letter__sheet {
    position: relative; padding: 2.6rem 1.5rem 3rem; clip-path: var(--alb-deckle);
    background:
        repeating-linear-gradient(180deg, transparent 0 1.9rem, color-mix(in srgb, #4a6a9a 16%, transparent) 1.9rem calc(1.9rem + 1px)),
        linear-gradient(90deg, transparent 1.1rem, color-mix(in srgb, var(--inv-petal) 30%, transparent) 1.1rem calc(1.1rem + 1px), transparent calc(1.1rem + 1px)),
        linear-gradient(165deg, #fffbf2, var(--alb-print) 60%, color-mix(in srgb, var(--alb-print) 82%, #c9a46c));
}
.alb-letter__pressed { position: absolute; right: -1.5rem; bottom: -1.4rem; z-index: 3; width: 5.6rem; transform: rotate(14deg); }
.alb-opening__basmalah { margin: 0 0 .6rem; font-size: 1.75rem; }
.alb-opening__greeting { margin: 0 auto; max-width: 22ch; font-family: var(--alb-book); font-size: 1.42rem; font-style: italic; line-height: 1.3; color: var(--alb-title); }
.alb-opening__divider { margin: .9rem auto; }
.alb-opening__message { margin: 0 auto; max-width: 28ch; font-family: var(--alb-book); font-size: 1.06rem; line-height: 1.55; color: var(--alb-ink); }
.alb-opening__quote { margin: 1.2rem auto 0; max-width: 28ch; }
.alb-opening__quote p { margin: 0; font-family: var(--alb-book); font-size: 1.04rem; font-style: italic; line-height: 1.5; color: var(--alb-title); }
.alb-opening__quote cite { display: block; margin-top: .5rem; font-style: normal; font-family: var(--alb-type); font-size: .7rem; letter-spacing: .1em; color: var(--alb-gold-ink); }

/* couple: the polaroid, the stamp, the two name labels */
.alb-couple__photo { position: relative; width: min(16rem, 74vw); margin: 0 auto; }
.alb-print--couple { --print-w: 100%; --tilt: -2.4deg; }
.alb-couple__stamp { --stamp-w: 4.6rem; position: absolute; right: -1.7rem; bottom: 3.4rem; z-index: 3; transform: rotate(9deg); filter: drop-shadow(0 4px 5px rgb(60 30 0 / .35)); }
.alb-couple__people { display: grid; grid-template-columns: minmax(0, 1fr) 2.8rem minmax(0, 1fr); align-items: center; gap: .3rem; margin-top: 2.3rem; }
.alb-couple__person { min-width: 0; }
.alb-couple__person:first-child { transform: rotate(-1.5deg); }
.alb-couple__person:last-child { transform: rotate(1.5deg); }
.alb-couple__role { display: block; font-family: var(--alb-type); font-size: .7rem; letter-spacing: .14em; color: var(--alb-gold-ink); }
.alb-couple__nickname { margin: .1rem 0 0; font-family: var(--alb-script); font-size: 1.7rem; line-height: 1.12; color: var(--alb-title); overflow-wrap: anywhere; }
.alb-couple__name { margin: .15rem 0 0; font-family: var(--alb-book); font-size: .98rem; line-height: 1.25; color: var(--alb-muted); overflow-wrap: anywhere; }
.alb-couple__rings { width: 2.8rem; }

/* milestone: the stamp, the postmark, the label, since when, then & now */
.alb-milestone__eyebrow { margin: 0 0 1.3rem !important; font-family: var(--alb-type); font-size: .78rem; letter-spacing: .14em; color: var(--inv-shine); }
.alb-milestone__stamps { position: relative; display: flex; justify-content: center; }
.alb-milestone__stamp { --stamp-w: min(11.5rem, 50vw); transform: rotate(-3deg); filter: drop-shadow(0 12px 18px rgb(0 0 0 / .5)); }
.alb-milestone__postmark { position: absolute; left: calc(50% + 1.5rem); top: 55%; width: min(11rem, 48vw); }
.alb-milestone__label { margin: 1.4rem auto 0 !important; }
.alb-milestone__label span {
    display: inline-block; padding: .3rem 1.5rem .34rem; font-family: var(--alb-serif); font-size: 1.08rem; font-weight: 500; letter-spacing: .04em;
    color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%;
    clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%, .7rem 50%);
}
.alb-milestone__since { display: flex; flex-direction: column; gap: .15rem; margin: 1.3rem auto 0 !important; font-family: var(--alb-book); font-size: 1.1rem; line-height: 1.4; color: var(--alb-cream); }
.alb-milestone__since strong { font-weight: 400; color: #fff; }
.alb-milestone__place { font-style: italic; color: var(--inv-shine); }
.alb-milestone .alb-heading { margin-top: 3rem; }
.alb-print--then { --print-w: min(15rem, 66vw); --tilt: 2deg; margin-top: 2.4rem; }

/* Dulu & Sekarang: a print on top of a second print; the photo of then clipped at --pos */
.alb-compare-wrap { position: relative; width: min(100%, 20rem); margin: 0 auto; }
.alb-compare__back {
    position: absolute; inset: 6% -4% -2% 8%; transform: rotate(7deg); padding: 8px 8px 26px; clip-path: var(--alb-deckle);
    background: var(--alb-print); box-shadow: inset 0 0 30px rgb(110 70 20 / .3);
}
.alb-compare__back img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: sepia(.75) brightness(.9); opacity: .9; }
.alb-compare { position: relative; padding: 10px 10px 2.5rem; transform: rotate(-2deg); }
.alb-compare__paper {
    position: absolute; inset: 0; clip-path: var(--alb-deckle);
    background: linear-gradient(160deg, #fffaf0, var(--alb-print) 55%, color-mix(in srgb, var(--alb-print) 85%, #c8a46a));
}
.alb-compare::before { content: ''; position: absolute; inset: 4px; box-shadow: 0 18px 30px -12px rgb(0 0 0 / .7); }
.alb-compare__window { position: relative; aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y; }
.alb-compare__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.alb-compare__then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.alb-compare__then .alb-compare__img { filter: sepia(.65) contrast(1.06) brightness(.97); }
.alb-compare__tag {
    position: absolute; bottom: .45rem; pointer-events: none; font-family: var(--alb-hand); font-size: 1.4rem; font-weight: 700; line-height: 1;
    color: var(--alb-hand-ink);
}
.alb-compare__tag--then { left: 1rem; transform: rotate(-3deg); }
.alb-compare__tag--now { right: 1rem; transform: rotate(2deg); }
.alb-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff8ea; box-shadow: 0 0 8px rgb(0 0 0 / .5); pointer-events: none; }
.alb-compare__knob {
    position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem; border-radius: 50%;
    color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%; box-shadow: 0 0 0 3px #fff8ea, 0 8px 18px -6px rgb(0 0 0 / .6);
}
.alb-compare__knob svg { width: 1.3rem; height: 1.3rem; }
.alb-compare .alb-tap { inset: auto; left: 50%; top: 50%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; }
.alb-compare .alb-tap__ring { width: 100%; margin: -50% 0 0 -50%; }
.alb-compare .alb-tap__hand { left: 46%; top: 58%; }
.alb-compare__hint {
    position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    padding: .38rem .95rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em;
    color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .6);
}
.alb-compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.alb-compare__range:focus-visible { opacity: .01; }
.alb-compare:has(.alb-compare__range:focus-visible) .alb-compare__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--inv-shine); }
.alb-compare .alb-corner { --corner: 13%; }

/* family: the print, the index cards, the grandchildren's tag */
.alb-print--family { --print-w: min(100%, 22rem); --print-ratio: 3 / 2; --tilt: 1.2deg; margin-bottom: 2rem; }
.alb-print--family .alb-print__photo { object-position: center 30%; }
.alb-print--family .alb-corner { --corner: 10%; }
.alb-family__cards { display: grid; gap: .75rem; max-width: 21rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.alb-family__card {
    position: relative; display: flex; flex-direction: column; padding: .7rem 1rem .75rem 2.2rem;
    background:
        linear-gradient(90deg, transparent 1.6rem, color-mix(in srgb, var(--inv-petal) 55%, transparent) 1.6rem calc(1.6rem + 1px), transparent calc(1.6rem + 1px)),
        repeating-linear-gradient(180deg, transparent 0 1.35rem, color-mix(in srgb, #4a6a9a 18%, transparent) 1.35rem calc(1.35rem + 1px)),
        #fffaf0;
    box-shadow: 0 6px 12px -8px rgb(60 30 5 / .55), inset 0 0 0 1px rgb(120 80 30 / .12);
}
.alb-family__card:nth-child(odd) { transform: rotate(-.8deg); }
.alb-family__card:nth-child(even) { transform: rotate(.7deg); }
.alb-family__tab {
    position: absolute; right: -.4rem; top: -.45rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
    font-family: var(--alb-type); font-size: .8rem; color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%;
    box-shadow: 0 2px 4px rgb(0 0 0 / .3);
}
.alb-family__name { font-family: var(--alb-book); font-size: 1.22rem; line-height: 1.25; color: var(--alb-title); overflow-wrap: anywhere; }
.alb-family__note { font-family: var(--alb-hand); font-size: 1.2rem; line-height: 1.1; color: var(--alb-hand-ink); }
.alb-family__grand {
    position: relative; max-width: 19rem; margin: 2.2rem auto 0; padding: 1.2rem 1.2rem 1.15rem 2.4rem; transform: rotate(1.4deg); text-align: left;
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-soft) 85%, #fff), color-mix(in srgb, var(--inv-soft) 85%, #a07840));
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(50% + 14px), 0 calc(50% - 14px));
}
.alb-family__grand::before {
    content: ''; position: absolute; left: 1rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.3rem; border-radius: 50%;
    background: var(--alb-paper); box-shadow: 0 0 0 2.4px var(--inv-accent);
}
.alb-family__string { position: absolute; left: -1rem; top: calc(50% - 1px); width: 2.3rem; height: 2px; background: color-mix(in srgb, #8a6a3a 80%, transparent); transform: rotate(-10deg); }
.alb-family__grand-label { display: block; font-family: var(--alb-type); font-size: .7rem; letter-spacing: .12em; color: var(--alb-title); }
.alb-family__grand p { margin: .25rem 0 0; font-family: var(--alb-hand); font-size: 1.42rem; line-height: 1.15; color: var(--alb-hand-ink); }

/* message: the letter in the airmail envelope */
.alb-message__envelope { position: relative; max-width: 22rem; margin: 0 auto; padding: 0 .9rem; }
.alb-message__pocket {
    position: absolute; left: 0; right: 0; bottom: 0; height: 7.5rem; z-index: 0;
    background: color-mix(in srgb, var(--inv-soft) 60%, #fff8ea); box-shadow: 0 16px 26px -14px rgb(60 30 5 / .55);
}
.alb-message__letter {
    position: relative; z-index: 1; margin: 0; padding: 1.8rem 1.4rem 6.4rem; clip-path: var(--alb-deckle);
    background:
        repeating-linear-gradient(180deg, transparent 0 1.95rem, color-mix(in srgb, #4a6a9a 14%, transparent) 1.95rem calc(1.95rem + 1px)),
        linear-gradient(170deg, #fffbf2, var(--alb-print));
}
.alb-message__letter p { margin: 0; font-family: var(--alb-book); font-style: italic; font-size: 1.22rem; line-height: 1.6; color: var(--alb-ink); }
.alb-message__letter cite { display: block; margin-top: .9rem; font-family: var(--alb-script); font-style: normal; font-size: 2rem; line-height: 1.1; color: var(--alb-title); }
/* the envelope's front with the airmail border, the stamp and the postmark */
.alb-message__front {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4.6rem;
    background:
        linear-gradient(color-mix(in srgb, var(--inv-soft) 50%, #fffaf0), color-mix(in srgb, var(--inv-soft) 50%, #fffaf0)) padding-box,
        repeating-linear-gradient(135deg, var(--inv-primary) 0 9px, #fffaf0 9px 14px, color-mix(in srgb, #2b4f8f 70%, var(--inv-band)) 14px 23px, #fffaf0 23px 28px) border-box;
    border: 6px solid transparent;
    clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 -2px 0 rgb(0 0 0 / .05);
}
.alb-message__stamp { --stamp-w: 2.9rem; position: absolute; right: .7rem; bottom: .55rem; transform: rotate(4deg); }
.alb-message__postmark { position: absolute; right: 2.4rem; bottom: .3rem; width: 6.4rem; opacity: .6; }
.alb-message__seal { --seal-w: 3.4rem; position: absolute; left: 50%; bottom: 2.1rem; z-index: 3; margin-left: -1.7rem; }

/* events: admission tickets */
.alb-ticket {
    position: relative; max-width: 25rem; margin: 0 auto; padding: 2.1rem .85rem 1.5rem; text-align: left;
    background: linear-gradient(170deg, #fffbf2, var(--alb-print) 70%, color-mix(in srgb, var(--alb-print) 88%, #c9a46c));
    box-shadow: inset 0 0 0 5px var(--alb-print), inset 0 0 0 6px var(--alb-line), inset 0 0 0 9px var(--alb-print), inset 0 0 0 9.8px color-mix(in srgb, var(--inv-accent) 35%, transparent);
    -webkit-mask: radial-gradient(circle 12px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 12px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.alb-ticket + .alb-ticket { margin-top: 2.2rem; }
.alb-ticket__no {
    position: absolute; left: 0; right: 0; top: 0; padding: .3rem 1rem; font-family: var(--alb-type); font-size: .68rem; letter-spacing: .2em;
    color: var(--inv-shine); text-align: center; background: linear-gradient(90deg, var(--alb-wax-1), var(--inv-primary), var(--alb-wax-1));
}
.alb-ticket__media { position: relative; margin: .4rem .35rem 0; }
.alb-ticket__photo { display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: center 30%; filter: sepia(.15) saturate(1.05); box-shadow: 0 0 0 5px #fffaf0, 0 4px 10px rgb(60 30 5 / .3); }
.alb-ticket__media .alb-corner { --corner: 11%; }
.alb-ticket__top { display: flex; align-items: center; gap: .9rem; padding: 1.15rem .8rem 0; }
.alb-ticket__date {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 4.6rem; height: 5.3rem; margin: 0; padding: 7px;
    background: #fbf6e8; font-size: .56rem; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase;
    -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.4px, #0000 96%, #000) -5px -5px / 10px 10px round;
    mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.4px, #0000 96%, #000) -5px -5px / 10px 10px round;
    color: #fff8ea; box-shadow: inset 0 0 0 7px #fbf6e8;
}
.alb-ticket__date::before { content: ''; position: absolute; inset: 7px; z-index: -1; background: radial-gradient(80% 70% at 50% 30%, color-mix(in srgb, var(--inv-primary) 80%, #fff 10%), var(--alb-wax-1)); }
.alb-ticket__date { isolation: isolate; }
.alb-ticket__date strong { font-family: var(--alb-serif); font-size: 1.85rem; font-weight: 600; line-height: 1; letter-spacing: 0; }
.alb-ticket__date span:first-child { color: var(--inv-shine); }
.alb-ticket__head { min-width: 0; }
.alb-ticket__name { margin: 0; font-family: var(--alb-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.15; color: var(--alb-title); }
.alb-ticket__full { margin: .2rem 0 0; font-family: var(--alb-book); font-style: italic; font-size: .95rem; color: var(--alb-muted); }
.alb-ticket__rows { display: grid; gap: .7rem; margin: 1rem .8rem 0; padding: .95rem 0 0; list-style: none; font-size: .9rem; border-top: 1.5px dashed var(--alb-line); }
.alb-ticket__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.alb-ticket__rows .alb-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: var(--alb-gold-ink); box-shadow: inset 0 0 0 1px var(--alb-line); }
.alb-ticket__rows li > span { padding-top: .28rem; }
.alb-ticket__venue { display: block; font-weight: 600; }
.alb-ticket__address { display: block; font-size: .85rem; color: var(--alb-muted); }
.alb-ticket .inv-maps { margin: 1.1rem .8rem 0; text-align: center; }
.alb-ticket .inv-maps .inv-button { width: 100%; font-weight: 600; }
.alb-ticket .inv-maps__frame { height: 180px; border-radius: 6px; filter: sepia(.2); }

/* countdown: the sheets of a tear-off desk calendar */
.alb-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .75rem); }
.alb-countdown .inv-countdown__item {
    position: relative; display: grid; place-content: center; width: clamp(3.9rem, 18vw, 4.6rem); min-width: 0; height: clamp(4.6rem, 21vw, 5.4rem); padding: .7rem 0 0; border-radius: 4px;
    color: var(--inv-text);
    background:
        radial-gradient(circle 3px at 30% .32rem, var(--alb-gold-3) 70%, transparent 75%),
        radial-gradient(circle 3px at 70% .32rem, var(--alb-gold-3) 70%, transparent 75%),
        linear-gradient(180deg, var(--inv-primary) 0 .62rem, color-mix(in srgb, var(--alb-wax-1) 80%, #000) .62rem .7rem, #fffaf0 .7rem, var(--alb-print));
    box-shadow: 0 3px 0 -1px #efe2c4, 0 6px 0 -2px #e2d0a8, 0 14px 22px -10px rgb(0 0 0 / .7);
}
.alb-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--alb-book); font-size: 1.9rem; line-height: 1; color: var(--alb-title); }
.alb-countdown .inv-countdown__label { margin-top: .1rem; font-family: var(--alb-type); font-size: .58rem; letter-spacing: .08em; color: var(--alb-muted); }
.alb-countdown .inv-countdown__done { font-family: var(--alb-book); font-size: 1.3rem; font-style: italic; color: var(--inv-shine); }
.alb-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.alb-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 600;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 10%, transparent);
    box-shadow: inset 0 0 0 1px var(--alb-line);
}
.alb-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%; box-shadow: none; }
.alb-countdown .inv-cal {
    --inv-cal-bg: #fffaf0; --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 4px; transform: rotate(-1deg);
    box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 6px var(--alb-line), 0 22px 40px -24px rgb(0 0 0 / .8);
}
.alb-countdown .inv-cal__month { font-family: var(--alb-script); font-size: 2rem; font-weight: 400; color: var(--alb-title); }

/* prayer: the deckle card on the linen */
.alb-prayer { padding-top: 4.8rem; }
.alb-prayer__card {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 2.4rem 1.4rem 2.4rem; color: var(--inv-text);
    background: linear-gradient(170deg, #fffbf2, var(--alb-print) 60%, color-mix(in srgb, var(--alb-print) 84%, #c9a46c));
    box-shadow: inset 0 0 0 7px transparent, inset 0 0 0 8px var(--alb-line), inset 0 0 0 11px transparent, inset 0 0 0 11.8px color-mix(in srgb, var(--inv-accent) 35%, transparent);
    clip-path: var(--alb-deckle);
}
.alb-prayer__pressed { position: absolute; left: -.5rem; top: -.8rem; width: 4.6rem; transform: rotate(-18deg); }
.alb-prayer__eyebrow { margin: 0 0 .9rem; font-family: var(--alb-type); font-size: .74rem; letter-spacing: .12em; color: var(--alb-gold-ink); }
.alb-prayer__card .alb-prayer__arabic { margin: 0 0 1rem; font-size: 1.42rem; text-wrap: balance; color: var(--alb-title); }
.alb-prayer__text { margin: 0; }
.alb-prayer__text p { margin: 0; font-family: var(--alb-book); font-size: 1.12rem; font-style: italic; line-height: 1.55; }
.alb-prayer__text cite {
    display: inline-block; margin-top: 1rem; padding: .26rem .9rem; font-style: normal; font-family: var(--alb-type); font-size: .72rem;
    letter-spacing: .08em; color: var(--alb-gold-ink); box-shadow: inset 0 0 0 1px var(--alb-line);
}

/* rundown: a strip of film down the left, the steps on cream slips */
.alb-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: .6rem 0; list-style: none; text-align: left; }
.alb-rundown__list::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5.2rem; transform-origin: top; border-radius: 3px;
    background:
        repeating-linear-gradient(180deg, #f2e6c8 0 6px, transparent 6px 14px) 5px 0 / 6px 100% no-repeat,
        repeating-linear-gradient(180deg, #f2e6c8 0 6px, transparent 6px 14px) calc(100% - 5px) 0 / 6px 100% no-repeat,
        linear-gradient(90deg, #1d130d, #2c1d14 50%, #1d130d);
    box-shadow: 0 10px 18px -10px rgb(0 0 0 / .6);
}
.alb-rundown__item { position: relative; display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: center; column-gap: .9rem; padding: 0 0 .9rem; }
.alb-rundown__item:last-child { padding-bottom: 0; }
.alb-rundown__frame {
    display: grid; place-items: center; margin: 0 1rem; min-height: 3.4rem; border-radius: 2px;
    background: radial-gradient(90% 80% at 50% 40%, color-mix(in srgb, var(--inv-shine) 75%, #fff), color-mix(in srgb, var(--inv-accent) 80%, #5a3a10));
    box-shadow: inset 0 0 8px rgb(80 40 0 / .5);
}
.alb-rundown__time { font-family: var(--alb-type); font-size: .9rem; font-variant-numeric: tabular-nums; color: #3a2010; }
.alb-rundown__body {
    padding: .65rem .95rem .7rem; background: #fffaf0; box-shadow: 0 6px 12px -8px rgb(60 30 5 / .5), inset 0 0 0 1px rgb(120 80 30 / .14);
}
.alb-rundown__item:nth-child(odd) .alb-rundown__body { transform: rotate(-.6deg); }
.alb-rundown__item:nth-child(even) .alb-rundown__body { transform: rotate(.6deg); }
.alb-rundown__body h3 { margin: 0; font-family: var(--alb-serif); font-size: 1.1rem; font-weight: 500; line-height: 1.3; color: var(--alb-title); }
.alb-rundown__body p { margin: .1rem 0 0; font-family: var(--alb-hand); font-size: 1.15rem; line-height: 1.15; color: var(--alb-hand-ink); }

/* story: the album leafed page by page (sections/story) */
.alb-story__intro { font-family: var(--alb-book); font-style: italic; font-size: 1.02rem; color: var(--alb-cream); margin-top: -1rem !important; margin-bottom: 1.6rem !important; }
.alb-book { max-width: 22.5rem; margin: 0 auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
/* the album's back board under the pages, a stack of page edges on the right */
.alb-book__board {
    position: relative; padding: .8rem 1.05rem .9rem 1.25rem; border-radius: 4px 10px 10px 4px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--inv-deep) 70%, #000) 0 .55rem, transparent .55rem),
        radial-gradient(90% 60% at 40% 30%, color-mix(in srgb, var(--inv-primary) 85%, #000 5%), var(--alb-leather));
    box-shadow: 0 26px 40px -18px rgb(0 0 0 / .8), inset 0 0 0 1px var(--alb-line), inset 0 0 0 4px transparent, inset 0 0 0 4.8px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
.alb-book__edges {
    position: absolute; right: .45rem; top: 1.05rem; bottom: .75rem; width: 6px; pointer-events: none;
    background: repeating-linear-gradient(90deg, #efe1bf 0 1px, #b99d68 1px 2px); border-radius: 0 3px 3px 0;
}
.alb-book__stage { position: relative; display: grid; perspective: 1800px; clip-path: inset(-40px -40px -60px 0); }
.alb-leaf {
    grid-area: 1 / 1; position: relative; display: grid; transform-origin: left center; transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(.45, .05, .25, 1), z-index 0s .5s, visibility 0s 0s;
}
.alb-leaf.is-turned { transform: rotateY(-178deg); visibility: hidden; transition: transform 1s cubic-bezier(.45, .05, .25, 1), z-index 0s .5s, visibility 0s 1s; }
.alb-leaf__front {
    grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 29rem;
    padding: 1.3rem 1.15rem 2.6rem 1.95rem; border-radius: 2px 6px 6px 2px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background:
        linear-gradient(90deg, rgb(70 40 10 / .28), transparent 1.4rem),
        radial-gradient(120% 80% at 60% 50%, transparent 60%, color-mix(in srgb, var(--inv-soft) 75%, transparent)),
        var(--alb-paper);
    box-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.alb-leaf__back {
    position: absolute; inset: 0; border-radius: 6px 2px 2px 6px; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: linear-gradient(270deg, rgb(70 40 10 / .3), transparent 1.4rem), color-mix(in srgb, var(--alb-paper) 88%, #b08850);
}
.alb-leaf__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(40 15 0 / .05), rgb(40 15 0 / .45)); opacity: 0; transition: opacity 1s ease; }
.alb-leaf.is-turned .alb-leaf__shade { opacity: 1; }
.alb-leaf__holes { position: absolute; left: .45rem; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; }
.alb-leaf__holes i { display: block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--alb-corner); box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 2.6px var(--alb-gold-1); }
.alb-leaf__when { margin: 0 0 .9rem; }
.alb-leaf__when span {
    display: inline-block; padding: .05rem 1rem .1rem; transform: rotate(-2.5deg); font-family: var(--alb-hand); font-size: 1.65rem; font-weight: 700; line-height: 1.2;
    color: var(--alb-hand-ink);
    background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--inv-shine) 55%, transparent) 0 6px, color-mix(in srgb, var(--inv-petal) 28%, transparent) 6px 12px);
    clip-path: polygon(0 10%, 4% 0, 8% 12%, 92% 4%, 96% 14%, 100% 4%, 100% 92%, 95% 100%, 90% 88%, 8% 96%, 4% 86%, 0 100%);
}
.alb-print--leaf { --print-w: min(100%, 15rem); --print-ratio: 4 / 3; --print-pad: 8px; --tilt: -2.2deg; }
.alb-leaf--flip .alb-print--leaf { --tilt: 2.2deg; }
.alb-print--leaf .alb-corner { --corner: 13%; }
.alb-leaf__pressed { width: 7rem; margin: 0 auto .2rem; transform: rotate(-8deg); }
.alb-leaf__title { margin: 1rem 0 0; font-family: var(--alb-serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; color: var(--alb-title); text-wrap: balance; }
.alb-leaf__text { margin: .45rem 0 0; max-width: 30ch; font-family: var(--alb-book); font-style: italic; font-size: 1.02rem; line-height: 1.5; color: var(--alb-ink); }
.alb-leaf__folio { position: absolute; left: 0; right: 0; bottom: .75rem; font-family: var(--alb-book); font-style: italic; font-size: .82rem; color: var(--alb-muted); }

/* the dog-eared corner (the button that turns the page) */
.alb-book__corner { position: absolute; right: 0; bottom: 0; z-index: 400; width: 4.4rem; height: 4.4rem; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.alb-book__fold {
    position: absolute; right: 0; bottom: 0; width: 2.7rem; height: 2.7rem;
    background:
        linear-gradient(315deg, var(--alb-leather) 0 49.5%, transparent 50%),
        linear-gradient(135deg, #fff9ec 0%, color-mix(in srgb, var(--alb-print) 80%, #c9a46c) 47%, color-mix(in srgb, var(--alb-print) 50%, #7a5a2a) 50%, transparent 50.5%);
    filter: drop-shadow(-2px -2px 3px rgb(40 15 0 / .35));
    transform-origin: right bottom;
}
.alb-book__corner:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 2px; border-radius: 8px; }
.alb-book__corner .alb-tap { inset: auto; right: -.4rem; bottom: -.4rem; width: 4.6rem; height: 4.6rem; }
.alb-book__corner .alb-tap__ring { width: 100%; margin: -50% 0 0 -50%; }
.alb-book__corner .alb-tap__hand { left: 40%; top: 44%; }
.alb-book__hint {
    position: absolute; right: 4rem; bottom: 1.1rem; z-index: 401; white-space: nowrap; pointer-events: none;
    padding: .36rem .9rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em;
    color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .6);
}
.alb-book__hint::after { content: ' \2192'; }
/* the arrows and the page dots */
.alb-book__nav { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.2rem; }
.alb-book__arrow {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    color: var(--inv-shine); background: color-mix(in srgb, var(--inv-background) 8%, transparent); box-shadow: inset 0 0 0 1.2px var(--alb-line);
    transition: opacity .2s ease, background-color .2s ease;
}
.alb-book__arrow svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.alb-book__arrow:disabled { opacity: .35; cursor: default; }
.alb-book__dots { display: flex; gap: .45rem; }
.alb-book__dot { width: .62rem; height: .62rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: color-mix(in srgb, var(--inv-shine) 35%, transparent); transition: width .3s ease, background-color .3s ease; }
.alb-book__dot.is-on { width: 1.6rem; background: var(--inv-shine); }

/* party: the theme label, the gown and its paint chips, the note and the hashtag tag */
.alb-party__label { display: block; font-family: var(--alb-type); font-size: .7rem; letter-spacing: .12em; color: var(--alb-gold-ink); }
.alb-party__theme-card {
    position: relative; max-width: 18.5rem; margin: 0 auto; padding: 1.4rem 3.4rem 1.5rem; background: #fffaf0;
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
    box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 7px var(--alb-line), inset 0 0 0 10px #fffaf0, inset 0 0 0 10.8px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
.alb-party__theme { margin: .25rem 0 0; font-family: var(--alb-script); font-size: 2.2rem; line-height: 1.1; color: var(--alb-title); }
.alb-party__daisy { position: absolute; top: 50%; width: 2.6rem; margin-top: -1.3rem; }
.alb-party__daisy--left { left: .9rem; }
.alb-party__daisy--right { right: .9rem; transform: rotate(30deg); }
.alb-party__dress {
    display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 22rem; margin: 1.6rem auto 0;
    padding: 1.1rem 1.2rem; text-align: left; background: #fffaf0; transform: rotate(-.6deg);
    box-shadow: 0 10px 18px -12px rgb(60 30 5 / .55), inset 0 0 0 1px rgb(120 80 30 / .15);
}
.alb-party__gown { width: 5rem; height: auto; }
.alb-party__gown-body { fill: var(--alb-pick, var(--inv-primary)); stroke: var(--alb-gold-1); stroke-width: 1.2; transition: fill .4s ease; }
.alb-party__gown-line { fill: none; stroke: color-mix(in srgb, #fff 55%, transparent); stroke-width: 1; }
.alb-party__dress-name { margin: .15rem 0 .55rem; font-family: var(--alb-book); font-size: 1.2rem; line-height: 1.25; color: var(--alb-title); }
.alb-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.alb-swatch {
    width: 2rem; height: 2.5rem; padding: 0 0 .5rem; border: 0; border-radius: 2px; cursor: pointer;
    background: linear-gradient(var(--alb-swatch), var(--alb-swatch)) top / 100% 78% no-repeat, #fffaf0;
    box-shadow: 0 0 0 1px rgb(120 80 30 / .3), 0 3px 5px -2px rgb(0 0 0 / .3); transition: transform .2s ease;
}
.alb-swatch[aria-pressed=true] { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 0 0 2px var(--inv-accent), 0 6px 8px -3px rgb(0 0 0 / .35); }
.alb-party__hint { margin: .5rem 0 0 !important; font-family: var(--alb-hand); font-size: 1.1rem; line-height: 1.15; color: var(--alb-hand-ink); }
.alb-party__hint--center { margin: .5rem auto 0 !important; text-align: center; }
.alb-party__note { margin-top: 1.4rem !important; font-family: var(--alb-book); font-size: 1.1rem; font-style: italic; line-height: 1.5; color: var(--inv-text); }
.alb-party__hashtag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .4rem; padding: .4rem .45rem .4rem 1.6rem;
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-soft) 70%, #fff), color-mix(in srgb, var(--inv-soft) 80%, #a07840));
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}
.alb-party__hashtag .alb-icon { color: var(--alb-title); }
.alb-party__hashtag-text { font-family: var(--alb-type); font-size: .9rem; color: var(--alb-title); overflow-wrap: anywhere; }
.alb-party__copy {
    min-height: 2.2rem; padding: .3rem .9rem; border: 0; border-radius: 999px; cursor: pointer; font: 600 .78rem/1 var(--alb-sans);
    color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%;
}

/* gallery: the running film strip, then the prints */
.alb-film { position: relative; margin: -.6rem -1.6rem 2.2rem; padding: 15px 0; overflow: hidden; transform: rotate(-2.4deg); background: #1b120c; box-shadow: 0 14px 24px -12px rgb(0 0 0 / .7); }
.alb-film::before, .alb-film::after {
    content: ''; position: absolute; left: 0; right: 0; height: 6px; z-index: 1;
    background: repeating-linear-gradient(90deg, transparent 0 5px, #efe2c3 5px 12px, transparent 12px 17px);
}
.alb-film::before { top: 4px; }
.alb-film::after { bottom: 4px; }
.alb-film__run { display: flex; width: max-content; }
.alb-film__frame { flex: none; width: 7.4rem; height: 5.2rem; margin-right: 8px; overflow: hidden; border-radius: 2px; background: #3a2a1a; }
.alb-film__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: sepia(.45) saturate(1.1) contrast(1.05); }
.alb-gallery .inv-gallery { gap: .8rem; }
.alb-gallery .inv-gallery__item { border-radius: 2px; box-shadow: 0 0 0 6px #fffaf0, 0 16px 24px -12px rgb(0 0 0 / .8); }
.alb-gallery .inv-gallery__item:nth-child(odd) { transform: rotate(-1.4deg); }
.alb-gallery .inv-gallery__item:nth-child(even) { transform: rotate(1.4deg); }
.alb-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; }

/* live streaming: a leather card with a stitched edge */
.alb-stream__card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem 1rem; max-width: 24rem; margin: 0 auto; padding: 1.35rem;
    border-radius: 8px; color: var(--inv-background); text-align: left;
    background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, #fff 12%, transparent), transparent 70%), linear-gradient(140deg, var(--inv-primary), var(--inv-deep));
    box-shadow: inset 0 0 0 1px var(--alb-line), 0 20px 30px -18px rgb(0 0 0 / .7);
    outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 45%, transparent); outline-offset: -7px;
}
.alb-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: var(--inv-deep); background: var(--alb-foil); background-size: 220% 100%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-deep) 70%, #000), 0 0 0 4px var(--alb-line); }
.alb-stream__icon .alb-icon { width: 1.65rem; height: 1.65rem; }
.alb-stream__title { margin: 0 0 .1rem; font-family: var(--alb-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; color: #fff; }
.alb-stream__text p { margin: 0; font-size: .86rem; color: var(--alb-cream); }
.alb-stream__text .alb-stream__note { margin-top: .3rem; font-weight: 600; color: var(--inv-shine); }
.alb-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--alb-foil) !important; background-size: 220% 100% !important; font-weight: 600; }

/* RSVP: an old reply card */
.alb-rsvp__card {
    position: relative; max-width: 25rem; margin: 0 auto; padding: 2.4rem 1.15rem 1.5rem; color: var(--inv-text);
    background:
        radial-gradient(120% 70% at 50% 50%, transparent 65%, color-mix(in srgb, var(--inv-soft) 60%, transparent)),
        linear-gradient(170deg, #fffbf2, var(--alb-print));
    box-shadow: 0 22px 40px -24px rgb(0 0 0 / .8);
}
.alb-rsvp__stampbox {
    position: absolute; right: .9rem; top: .9rem; display: grid; place-items: center; width: 2.6rem; height: 3rem;
    border: 1.5px dashed color-mix(in srgb, var(--inv-text) 35%, transparent);
}
.alb-rsvp__stampbox svg { width: 1.1rem; fill: color-mix(in srgb, var(--inv-petal) 65%, transparent); }
.alb-rsvp__kind { position: absolute; left: 1.1rem; top: 1rem; margin: 0; font-family: var(--alb-type); font-size: .72rem; letter-spacing: .14em; color: var(--alb-gold-ink); }
.alb-rsvp__intro { margin: .6rem auto 1.1rem; max-width: 30ch; font-family: var(--alb-book); font-style: italic; font-size: 1.02rem; color: var(--alb-muted); }
.alb-rsvp__sent { margin: .6rem 0 1rem; }
.alb-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.alb-rsvp__check circle { fill: var(--inv-primary); }
.alb-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .alb-rsvp__sent .alb-rsvp__check { animation: alb-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .alb-rsvp__sent .alb-rsvp__check path { animation: alb-draw .45s ease-out .35s both; }
.alb-rsvp__thanks { margin: 0; font-family: var(--alb-script); font-size: 2.2rem; line-height: 1.1; color: var(--alb-title); }
.alb-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--alb-muted); }
.alb-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--alb-title); }

/* gift: airmail envelopes, two per row (odd last across) */
.alb-gift__intro { color: var(--alb-cream) !important; font-family: var(--alb-book); font-style: italic; font-size: 1.04rem; }
.alb-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.3rem; }
.alb-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.alb-gift .inv-gift__account,
.alb-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 1.2rem .7rem 1rem; color: var(--inv-text); border: 6px solid transparent;
    background:
        linear-gradient(170deg, #fffbf2, var(--alb-print)) padding-box,
        repeating-linear-gradient(135deg, var(--inv-primary) 0 9px, #fffaf0 9px 14px, color-mix(in srgb, #2b4f8f 70%, var(--inv-band)) 14px 23px, #fffaf0 23px 28px) border-box;
    box-shadow: 0 18px 30px -20px rgb(0 0 0 / .8);
}
.alb-gift .inv-gift__account p, .alb-gift .inv-gift__address p { margin: 0; }
.alb-gift .inv-gift__bank { font-family: var(--alb-type); font-size: .85rem; color: var(--alb-title); }
.alb-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .3rem; background: #fff; }
.alb-gift .inv-gift__logo img { max-width: 5rem; }
.alb-gift .inv-gift__number { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .98rem; font-weight: 700; letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; color: var(--inv-text); }
.alb-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--alb-muted); overflow-wrap: anywhere; }
.alb-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; }
.alb-gift .inv-gift__address { margin-top: .8rem; font-size: .875rem; }
.alb-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: names between brass hearts in a tooled frame */
.alb-cohosts__list {
    display: flex; flex-direction: column; align-items: center; gap: .55rem; max-width: 22rem; margin: 0 auto; padding: 1.5rem 1rem; list-style: none;
    box-shadow: inset 0 0 0 1px var(--alb-line), inset 0 0 0 5px transparent, inset 0 0 0 6px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
.alb-cohosts__list li { max-width: 26ch; font-family: var(--alb-serif); font-size: 1.18rem; font-weight: 500; line-height: 1.3; color: #fff8ea; }
.alb-cohosts__list li + li::before {
    content: ''; display: block; width: 12px; height: 11px; margin: 0 auto .55rem; background: var(--inv-shine);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1.5 14.4 1.5 7.3A5.3 5.3 0 0 1 12 4.6a5.3 5.3 0 0 1 10.5 2.7C22.5 14.4 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1.5 14.4 1.5 7.3A5.3 5.3 0 0 1 12 4.6a5.3 5.3 0 0 1 10.5 2.7C22.5 14.4 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* contacts: index-card rows with a wax-seal initial */
.alb-contacts__list { display: grid; gap: .75rem; max-width: 24rem; margin: 0 auto; }
.alb-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .6rem .6rem .6rem .7rem;
    background: #fffaf0; text-align: left; box-shadow: 0 8px 14px -10px rgb(60 30 5 / .55), inset 0 0 0 1px rgb(120 80 30 / .14);
}
.alb-contact:nth-child(odd) { transform: rotate(-.5deg); }
.alb-contact__avatar {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 47% 53% 50% 50% / 52% 48% 54% 46%;
    font-family: var(--alb-serif); font-size: 1.25rem; font-weight: 600; color: color-mix(in srgb, var(--alb-wax-1) 60%, #000);
    background: radial-gradient(circle at 38% 30%, var(--alb-wax-3), var(--alb-wax-2) 50%, var(--alb-wax-1));
    text-shadow: 0 1px 0 color-mix(in srgb, var(--alb-wax-3) 60%, transparent); box-shadow: 0 3px 4px rgb(0 0 0 / .3);
}
.alb-contact p { margin: 0; }
.alb-contact__name { font-family: var(--alb-book); font-size: 1.08rem; line-height: 1.3; overflow-wrap: anywhere; color: var(--alb-title); }
.alb-contact__role { font-family: var(--alb-hand); font-size: 1.1rem; line-height: 1.1; color: var(--alb-hand-ink); }
.alb-contact__phone { font-size: .85rem; }
.alb-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 600; }
.alb-contact__button .alb-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol: typed labels */
.alb-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.alb-protocol__list li {
    display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; font-family: var(--alb-type); font-size: .8rem;
    background: #fffaf0; box-shadow: 0 4px 8px -5px rgb(60 30 5 / .5), inset 0 0 0 1px rgb(120 80 30 / .15);
}
.alb-protocol__list .alb-icon { width: 1rem; height: 1rem; color: var(--inv-primary); }
.alb-protocol__note { font-family: var(--alb-book); font-style: italic; font-size: 1rem; color: var(--alb-muted); }

/* vendors: credits written on the back of a photo */
.alb-vendors__list {
    max-width: 24rem; margin: 0 auto; padding: .4rem 1.15rem; list-style: none; transform: rotate(.5deg);
    background: repeating-linear-gradient(180deg, transparent 0 1.6rem, color-mix(in srgb, #4a6a9a 12%, transparent) 1.6rem calc(1.6rem + 1px)), #fffaf0;
    box-shadow: 0 14px 22px -14px rgb(60 30 5 / .55), inset 0 0 0 1px rgb(120 80 30 / .14);
}
.alb-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 0; text-align: left; border-bottom: 1px dashed var(--alb-line); }
.alb-vendor:last-child { border-bottom: 0; }
.alb-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.alb-vendor__role { font-family: var(--alb-type); font-size: .68rem; letter-spacing: .1em; color: var(--alb-gold-ink); }
.alb-vendor__name { font-family: var(--alb-hand); font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: var(--alb-hand-ink); overflow-wrap: anywhere; }
.alb-vendor__link {
    display: inline-flex; align-items: center; gap: .3rem; flex: none; min-height: 2.2rem; padding: .3rem .7rem; border-radius: 999px;
    font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--alb-title); box-shadow: inset 0 0 0 1px var(--alb-line);
}
.alb-vendor__link .alb-icon { width: .95rem; height: .95rem; }

/* closing: compact — the photo melting into the leather, the seal, thanks and the names (above the menu) */
.alb-closing { padding: 2.6rem 1.6rem 5.8rem; }
.alb-closing--photo { padding-top: 0; }
.alb-closing__photo {
    position: relative; z-index: -1; height: min(22rem, calc(var(--inv-screen, 100svh) * .48)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
.alb-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: sepia(.25) saturate(1.05); }
.alb-closing__body { position: relative; }
.alb-closing--photo .alb-closing__body { margin-top: -4.2rem; }
.alb-closing__seal { --seal-w: 4.2rem; margin: 0 auto .5rem; transform: rotate(-8deg); }
.alb-closing__title { margin: 0 0 .6rem; font-family: var(--alb-serif); font-size: 2.15rem; font-weight: 500; line-height: 1.05; color: #fff8ea; }
.alb-closing__title em { font-family: var(--alb-script); font-style: normal; font-weight: 400; font-size: 1.3em; color: var(--inv-shine); }
.alb-closing__message { margin: 0 auto; max-width: 32ch; font-family: var(--alb-book); font-size: 1.02rem; line-height: 1.5; color: var(--alb-cream); }
.alb-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--alb-book); font-size: 1.04rem; font-style: italic; line-height: 1.35; color: var(--inv-shine); }
.alb-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--alb-cream); }
.alb-closing__names { margin: .6rem 0 0; font-family: var(--alb-script); font-size: 2.5rem; line-height: 1.12; padding: 0 .15em .08em; }

/* ---------- 6. forms (shared RSVP + wishes, restyled) ---------- */
.alb-main .inv-form { gap: 1rem; text-align: left; }
.alb-main .inv-form label, .alb-main .inv-form__choices legend { font-size: .82rem; font-weight: 600; color: var(--inv-text); }
.alb-main .inv-form input:not([type=radio]):not([type=checkbox]),
.alb-main .inv-form select,
.alb-main .inv-form textarea {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: 6px;
    font: 400 .95rem/1.4 var(--alb-sans); color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent);
    transition: box-shadow .2s ease;
}
.alb-main .inv-form select {
    appearance: none; padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat;
}
.alb-main .inv-form input:not([type=radio]):focus-visible,
.alb-main .inv-form select:focus-visible,
.alb-main .inv-form textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--inv-primary), 0 0 0 4px color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.alb-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; font-weight: 600; box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent); }
.alb-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; }
.alb-main .inv-form__notice { text-align: center; }

/* the three answers as cards with icons (the radio dot is hidden but still focusable) */
.alb-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.alb-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.alb-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 6px; cursor: pointer; text-align: center;
    font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.alb-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.alb-rsvp .inv-form__choices label::before { content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: var(--inv-soft); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease; }
.alb-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.3rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
    background: currentColor; color: var(--inv-primary); pointer-events: none;
    -webkit-mask: var(--alb-choice-icon) center / contain no-repeat; mask: var(--alb-choice-icon) center / contain no-repeat;
}
.alb-rsvp .inv-form__choices label:nth-of-type(1) { --alb-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.alb-rsvp .inv-form__choices label:nth-of-type(2) { --alb-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); }
.alb-rsvp .inv-form__choices label:nth-of-type(3) { --alb-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8.5 8.8a3.5 3.5 0 1 1 4.9 3.2c-.9.4-1.4 1.1-1.4 2v.5M12 19h.01'/%3E%3C/svg%3E"); }
.alb-rsvp .inv-form__choices label:has(input:checked) { color: #fff; background: var(--inv-primary); transform: translateY(-3px); box-shadow: 0 0 0 2px var(--inv-accent), 0 12px 24px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent); }
.alb-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); transform: scale(1.1); }
.alb-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.alb-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

/* wishes: a guest book */
.alb-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.alb-wishes .inv-form {
    padding: 1.4rem 1.1rem; background: repeating-linear-gradient(180deg, transparent 0 1.9rem, color-mix(in srgb, #4a6a9a 10%, transparent) 1.9rem calc(1.9rem + 1px)), #fffaf0;
    box-shadow: 0 16px 26px -16px rgb(60 30 5 / .55), inset 0 0 0 1px rgb(120 80 30 / .14);
}
.alb-wishes .inv-wishes__list { margin-top: 1.4rem; }
.alb-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: .6rem; background: color-mix(in srgb, var(--inv-soft) 40%, transparent); box-shadow: inset 0 0 0 1px var(--alb-line); }
.alb-wishes .inv-wish { position: relative; padding: .85rem .95rem .75rem; border-radius: 2px; background: #fffaf0; text-align: left; box-shadow: 0 3px 8px rgb(60 30 5 / .12); }
.alb-wishes .inv-wish::before {
    content: ''; position: absolute; left: 50%; top: -.35rem; width: 3rem; height: .75rem; margin-left: -1.5rem; transform: rotate(-3deg);
    background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--inv-petal) 45%, transparent) 0 5px, color-mix(in srgb, var(--inv-shine) 45%, transparent) 5px 10px);
}
.alb-wishes .inv-wish__name { font-family: var(--alb-book); font-size: 1.04rem; color: var(--alb-title); }
.alb-wishes .inv-wish__message { font-family: var(--alb-hand); font-size: 1.2rem; line-height: 1.25; color: var(--alb-hand-ink); }
.alb-wishes .inv-wish__time { font-size: .72rem; color: var(--alb-muted); }

/* ---------- 7. shared components ---------- */
.alb-main .inv-button { font-weight: 600; }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-deep) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-background) 72%, transparent);
    --inv-nav-active: var(--inv-shine);
    font-family: var(--alb-sans);
}

/* ---------- 8. screen sizes ---------- */
/* the cover in px steps per screen height (never svh: Chrome on iPhone sizes it to the whole screen) */
@media (max-height: 800px) {
    .alb-cover { --cover-w: 15.2rem; }
    .alb-cover__names { font-size: 2.55rem; }
}
@media (max-height: 760px) {
    .alb-cover { --cover-w: 14rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
    .alb-cover__names { font-size: 2.45rem; margin-top: .9rem; }
    .alb-cover__quote { font-size: 1rem; margin-top: .45rem; }
    .alb-cover__guest { margin-top: .65rem; }
    .alb-cover__open { margin-top: .75rem; }
}
@media (max-height: 730px) {
    .alb-cover { --cover-w: 13.2rem; }
    .alb-cover__seal { --seal-w: 4rem; }
}
@media (max-height: 680px) {
    .alb-cover { --cover-w: 12rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
    .alb-cover__title { font-size: .66rem; margin-bottom: .45rem; }
    .alb-cover__window { padding: 9px; }
    .alb-cover__names { font-size: 2.3rem; margin-top: .75rem; }
    .alb-cover__plate span { font-size: .86rem; padding-left: 1.3rem; padding-right: 1.3rem; }
    .alb-cover__quote { font-size: .94rem; line-height: 1.26; }
    .alb-cover__guest { padding-top: .3rem; padding-bottom: .35rem; }
    .alb-cover__guest-name { font-size: 1.08rem; }
    .alb-cover__open { min-height: 2.7rem; padding: .55rem 1.6rem; }
    .alb-cover__seal { --seal-w: 3.6rem; right: -1.3rem; bottom: -1.2rem; }
}
@media (max-height: 640px) {
    .alb-cover { --cover-w: 11rem; }
    .alb-cover__names { font-size: 2.15rem; }
    .alb-cover__quote { font-size: .88rem; }
}
@media (max-height: 590px) {
    .alb-cover { --cover-w: 9.4rem; }
    .alb-cover__quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 370px) {
    .alb-cover__names { font-size: 2.15rem; }
    .alb-cover__plate span { font-size: .84rem; padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* wide screens: the phone-width column on the leather */
@media (min-width: 560px) {
    body.alb-body {
        background: radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 70%), var(--inv-deep);
        background-attachment: fixed;
    }
    body.alb-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
        background: var(--alb-grain) 0 0 / 180px 180px;
    }
    .alb-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes alb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes alb-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes alb-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes alb-zoom-out { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes alb-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes alb-sheen { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@keyframes alb-motes { from { background-position: 0 0; } to { background-position: 0 -420px; } }
@keyframes alb-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes alb-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes alb-seal-in { 0% { opacity: 0; transform: rotate(-10deg) scale(1.6); } 60% { opacity: 1; transform: rotate(-10deg) scale(.92); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
@keyframes alb-curl { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes alb-film { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes alb-glint { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes alb-sway-x { 0%, 100% { left: 50%; } 30% { left: 38%; } 70% { left: 62%; } }
@keyframes alb-sway-clip { 0%, 100% { clip-path: inset(0 50% 0 0); } 30% { clip-path: inset(0 62% 0 0); } 70% { clip-path: inset(0 38% 0 0); } }
@keyframes alb-letter-up { from { transform: translateY(2.2rem); } to { transform: none; } }

/* brass foil: a slow moving shine */
html.inv-anim :is(.alb-tone--leather .alb-heading__title em, .alb-tone--linen .alb-heading__title em, .alb-cover__names, .alb-closing__names, .alb-cover__open, .alb-stamp__big) { animation: alb-shine 7s ease-in-out infinite; }

/* cover: the print rises and settles, the seal is pressed on; then the leather lives: a light sweeps, motes drift */
html.inv-anim .alb-cover__window { animation: alb-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .alb-print--cover .alb-print__photo { animation: alb-zoom-out 1.3s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .alb-cover__seal { animation: alb-seal-in .7s cubic-bezier(.3, 1.3, .5, 1) .75s both; }
html.inv-anim .alb-cover__sheen { animation: alb-sheen 9s ease-in-out 1.5s infinite; }
html.inv-anim .alb-cover::after { animation: alb-motes 22s linear infinite; }

/* the tap marker: rings ping outward, the hand taps */
html.inv-anim .alb-tap__ring { animation: alb-ping 1.8s ease-out infinite; }
html.inv-anim .alb-tap__ring--late { animation-delay: .9s; }
html.inv-anim .alb-tap__hand { animation: alb-tap 1.2s ease-in-out infinite; }
html:not(.inv-anim) .alb-tap__ring { opacity: .6; }

/* rings, compare, album corner, film */
html.inv-anim .alb-rings__gem { animation: alb-glint 2.6s ease-in-out infinite; }
html.inv-anim .alb-compare:not(.is-touched) .alb-compare__handle { animation: alb-sway-x 3.6s ease-in-out 1s infinite; }
html.inv-anim .alb-compare:not(.is-touched) .alb-compare__then { animation: alb-sway-clip 3.6s ease-in-out 1s infinite; }
html.inv-anim .alb-book:not(.is-touched) .alb-book__fold { animation: alb-curl 1.8s ease-in-out infinite; }
html.inv-anim .alb-film__run { animation: alb-film 46s linear infinite; }
html:not(.inv-anim) .alb-leaf, html:not(.inv-anim) .alb-leaf__shade { transition: none; }

/* the letter rises out of its envelope as it scrolls into view (the default, without support, is the finished state) */
@supports (animation-timeline: view()) {
    html.inv-anim .alb-message__letter { animation: alb-letter-up linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    html.inv-anim .alb-rundown__list::before { animation: alb-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
}
@keyframes alb-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- 10. intro scene "Album Dibuka" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.alb-scene-grain { position: absolute; inset: 0; background: var(--alb-grain) 0 0 / 180px 180px; opacity: .55; mix-blend-mode: multiply; }
/* the open album page */
.alb-scene-page {
    position: absolute; inset: 0; border-radius: 3px 8px 8px 3px;
    background: linear-gradient(90deg, rgb(70 40 10 / .3), transparent 1.6rem), radial-gradient(120% 80% at 60% 50%, transparent 60%, color-mix(in srgb, var(--inv-soft) 80%, transparent)), var(--alb-paper);
    box-shadow: 0 0 0 7px var(--alb-leather), 0 0 0 8px var(--alb-line), 0 30px 50px -20px rgb(0 0 0 / .8);
}
.alb-scene-page__holes { position: absolute; left: .55rem; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; }
.alb-scene-page__holes i { display: block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--alb-corner); box-shadow: 0 0 0 2px var(--inv-accent); }
.alb-scene-page__slot { position: absolute; left: 14%; right: 14%; top: 8.6%; height: 75.8%; box-shadow: inset 0 0 0 1px rgb(120 80 30 / .18); }
/* three pages fluttering over (CSS, timed to the 6600 ms scene) */
.alb-scene-flutter { position: absolute; inset: 0; perspective: 1400px; }
.alb-scene-flutter span {
    position: absolute; inset: 0; transform-origin: left center; border-radius: 3px 8px 8px 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: linear-gradient(90deg, rgb(70 40 10 / .28), transparent 1.6rem), color-mix(in srgb, var(--alb-paper) 92%, #b08850);
    box-shadow: 0 1px 3px rgb(0 0 0 / .3);
}
.inv-intro.is-playing .alb-scene-flutter span { animation: alb-scene-turn .8s cubic-bezier(.45, .05, .3, 1) both; }
.inv-intro.is-playing .alb-scene-flutter span:nth-child(1) { animation-delay: 1.75s; }
.inv-intro.is-playing .alb-scene-flutter span:nth-child(2) { animation-delay: 1.45s; }
.inv-intro.is-playing .alb-scene-flutter span:nth-child(3) { animation-delay: 1.15s; }
@keyframes alb-scene-turn { from { transform: rotateY(0); opacity: 1; } 85% { opacity: 1; } to { transform: rotateY(-175deg); opacity: 0; } }
/* the print sliding onto the page */
.alb-scene-photo { position: absolute; inset: 0; filter: drop-shadow(0 12px 16px rgb(40 15 0 / .5)); }
.alb-scene-photo__paper { position: absolute; inset: 0; padding: 8px; clip-path: var(--alb-deckle); background: linear-gradient(160deg, #fffaf0, var(--alb-print)); }
.alb-scene-photo__img {
    display: grid; place-items: center; width: 100%; height: 100%; background: center 24% / cover no-repeat, radial-gradient(circle, color-mix(in srgb, var(--inv-primary) 60%, #fff), var(--inv-deep));
    box-shadow: inset 0 0 22px rgb(90 50 10 / .3);
}
.alb-scene-photo__img b { font-family: var(--alb-script); font-weight: 400; font-size: 3rem; color: #fff8ea; }
.alb-scene-corners { position: absolute; inset: 0; }
.alb-scene-corners .alb-corner { --corner: 16%; }
/* the front board swinging open in 3D */
.alb-scene-board { position: absolute; inset: -7px; perspective: 1500px; }
.alb-scene-board__leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; }
.inv-intro.is-playing .alb-scene-board__leaf { animation: alb-scene-board 1.5s cubic-bezier(.5, .05, .3, 1) .45s both; }
@keyframes alb-scene-board { from { transform: rotateY(0); } 80% { opacity: 1; } to { transform: rotateY(-172deg); opacity: 0; } }
.alb-scene-board__front, .alb-scene-board__inside { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.alb-scene-board__front {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--inv-deep) 70%, #000) 0 1rem, transparent 1rem),
        radial-gradient(80% 60% at 50% 40%, color-mix(in srgb, var(--inv-primary) 90%, #fff 4%), var(--alb-leather));
    box-shadow: inset 0 0 0 1px var(--alb-line), 0 20px 40px -14px rgb(0 0 0 / .8);
}
.alb-scene-board__front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--alb-grain) 0 0 / 180px 180px; opacity: .5; mix-blend-mode: multiply; }
.alb-scene-board__tooling {
    position: absolute; inset: 1rem 1rem 1rem 1.9rem; border: 1.6px solid color-mix(in srgb, var(--inv-accent) 85%, transparent);
    box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 45%, transparent);
    outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 34%, transparent); outline-offset: -12px;
}
.alb-scene-board__seal { position: absolute; left: 50%; top: 50%; width: 3.4rem; margin: -1.6rem 0 0 -1.2rem; fill: var(--alb-gold-2); filter: drop-shadow(0 1px 0 rgb(0 0 0 / .5)); }
/* its inside: a marbled endpaper */
.alb-scene-board__inside {
    transform: rotateY(180deg);
    background:
        radial-gradient(40% 18% at 30% 20%, color-mix(in srgb, var(--inv-primary) 50%, transparent), transparent 70%),
        radial-gradient(36% 16% at 70% 45%, color-mix(in srgb, var(--inv-band) 55%, transparent), transparent 70%),
        radial-gradient(42% 18% at 35% 75%, color-mix(in srgb, var(--inv-accent) 45%, transparent), transparent 70%),
        repeating-radial-gradient(circle at 60% 30%, color-mix(in srgb, var(--inv-soft) 80%, #fff) 0 6px, color-mix(in srgb, var(--inv-soft) 60%, var(--inv-primary)) 6px 7px),
        var(--inv-soft);
    box-shadow: inset 0 0 0 7px var(--alb-leather);
}
.alb-scene-stamp { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; }
.alb-scene-stamp .alb-stamp { --stamp-w: min(100cqw, 80cqh); filter: drop-shadow(0 8px 10px rgb(0 0 0 / .5)); }
.alb-scene-stamp__mark { position: absolute; left: -70%; top: 34%; width: 120%; color: var(--inv-shine); opacity: .6; }
.alb-scene-pressed { position: absolute; inset: 0; display: grid; place-items: center; }
.alb-scene-pressed .alb-pressed { width: 100%; height: 100%; }
/* the name card: a pasted label with a strip of washi tape */
body.alb-body .inv-intro--scene .inv-scene__card {
    top: 74%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 1.35rem 1.2rem 1.1rem; border-radius: 0;
    background: linear-gradient(170deg, #fffbf2, var(--alb-print));
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    box-shadow: inset 0 0 0 6px #fffbf2, inset 0 0 0 7px var(--alb-line), inset 0 0 0 10px #fffbf2, inset 0 0 0 10.8px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
body.alb-body .inv-scene__card .inv-intro__label { font-family: var(--alb-type); font-size: .7rem; letter-spacing: .14em; text-transform: none; color: var(--alb-gold-ink); }
body.alb-body .inv-scene__card .inv-intro__names { color: var(--alb-title); line-height: 1.12; overflow-wrap: anywhere; }
body.alb-body .inv-scene__card .inv-intro__rule { height: 1px; width: 3rem; background: var(--inv-accent); }
body.alb-body .inv-scene__card .inv-intro__date { font-family: var(--alb-book); font-style: italic; font-size: 1rem; color: var(--alb-muted); white-space: nowrap; }
