/* Tinta (Tema Fase 5, 4 Dec 2026): a letter written by hand in ink. Base layout from cine-seri.css; this file gives
 * the palette (ink black, paper, seal red), the type (Corinthia only large, Jost for everything to be read), an ink
 * wash grade over the photos, and the pieces: the paper cover where a drop of ink spreads into the photo, the
 * brush-written names and their underline, the red seal, ruled sheets, ink-blot portraits, notebook pages joined by
 * drips, the handwritten note, ink-wash numbers, brush strokes, brush-shaped photos, the signature that is written
 * once the RSVP is sent, the lined guest book and the brush laid down at the close. The paper pieces stay paper in
 * both modes. The blot and brush shapes are our own simple paths. */
@font-face { font-family: "Corinthia"; src: url("/frontend/assets/fonts/corinthia-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/frontend/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
    --c-night: #111112; --c-ink: #f1ede4; --c-muted: rgba(241, 237, 228, .8); --c-accent: #ec7d72; /* 6.9:1 on ink black */ --c-accent-ink: #111112;
    --c-line: rgba(241, 237, 228, .3); --c-glass: rgba(17, 17, 18, .7); --c-field: rgba(241, 237, 228, .08);
    --c-veil: rgba(12, 12, 13, .58); --c-shade-top: rgba(12, 12, 13, .82); --c-shade-foot: rgba(12, 12, 13, .92); --c-photo-foot: rgba(12, 12, 13, .95);
    --f-display: "Jost", system-ui, sans-serif; --f-script: "Corinthia", cursive; --f-body: "Jost", system-ui, sans-serif;
    --ct-shine: #ffffff;
    --paper: #f4f1ea; --ink: #141414; --ink-muted: #4a4743; --seal: #a3262b; /* 6.8:1 on paper */
    --rule: repeating-linear-gradient(180deg, transparent 0 1.55rem, rgba(60, 90, 130, .16) 1.55rem calc(1.55rem + 1px));
    --blot-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M52 3c11 1 15 10 25 12s20 9 18 22-1 19 1 28-6 23-19 27-20 7-30 5-22-3-30-12S2 64 4 52s-3-21 3-32S20 6 31 5s12-3 21-2z'/%3E%3C/svg%3E");
    --blot-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M45 4c12-3 22 4 31 9s20 14 20 28-5 18-2 28-8 22-21 25-19 3-30 2-23-6-31-16S1 59 5 47 2 26 11 17s22-10 34-13z'/%3E%3C/svg%3E");
    --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M3 6c10-3 21 2 31-1s22 2 33-1 21 2 30-1l-1 14c2 10-2 21 1 31s-2 22 1 32l-3 13c-10 2-22-3-32 0s-22-2-32 1-20-2-29 1l1-14c-2-10 2-21-1-31s2-22-1-31z'/%3E%3C/svg%3E");
    --stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'%3E%3Cpath d='M2 12C14 5 30 4 50 6s32 0 46 4c2 4 1 9-2 12-16 3-30 1-48 2S12 26 3 22c-2-3-2-7-1-10z'/%3E%3C/svg%3E");
}
:root[data-scheme="light"] {
    --c-night: #f4f1ea; --c-ink: #141414; --c-muted: #4a4743; --c-accent: #a3262b; /* 6.8:1 on paper */ --c-accent-ink: #fffaf3;
    --c-line: rgba(20, 20, 20, .22); --c-glass: rgba(250, 248, 243, .9); --c-field: rgba(255, 255, 255, .75);
    --c-veil: rgba(244, 241, 234, .78); --c-shade-top: rgba(244, 241, 234, .9); --c-shade-foot: rgba(244, 241, 234, .94); --c-photo-foot: rgba(244, 241, 234, .95);
    --ct-shine: #a3262b;
}
.cine-backdrop { background: radial-gradient(120% 80% at 50% 18%, #26262a, #111112 72%); }
.tn-amp { color: var(--c-accent); font-family: var(--f-script); }

/* Ink wash: the photos in soft greys with deep blacks (CSS only; the files are untouched). */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: grayscale(1) contrast(1.15) brightness(.82); }
.cs-sign { background: radial-gradient(60% 40% at 85% 12%, rgba(163, 38, 43, .1), transparent), radial-gradient(70% 50% at 10% 90%, rgba(0, 0, 0, .25), transparent); }

/* The red seal: the couple's initials, square, pressed a little askew. */
.tn-seal { display: inline-grid; place-items: center; width: 3.4rem; aspect-ratio: 1; box-sizing: border-box; border: 3px solid #fff4ef; outline: 2px solid var(--seal);
    background: var(--seal); color: #fff4ef; font: 700 1.1rem/1 var(--f-body); letter-spacing: .08em; rotate: -6deg; }

/* ---- Cover: the drop of ink on paper ---------------------------------------------------------- */
.tn-opening { justify-content: center; align-items: center; gap: 1.1rem; padding-inline: 1.25rem; background: transparent; color: var(--ink); }
.tn-paper { position: fixed; inset: 0; background: radial-gradient(130% 90% at 50% 30%, #faf8f2, var(--paper) 55%, #e7e1d4); }
.tn-cover-art { position: relative; width: min(64vw, 15rem); aspect-ratio: 1; }
.tn-drop { position: absolute; left: 50%; top: 50%; width: .9rem; height: .9rem; margin: -.45rem; border-radius: 50%; background: var(--ink); opacity: 0; }
.tn-bloom { position: absolute; inset: 0; background: var(--cover, radial-gradient(circle, #333, #111)) center 25% / cover; filter: grayscale(1) contrast(1.15);
    -webkit-mask: var(--blot-a) center / 100% 100% no-repeat; mask: var(--blot-a) center / 100% 100% no-repeat; }
@media (prefers-reduced-motion: no-preference) {
    .tn-drop { animation: tn-fall .9s cubic-bezier(.5, 0, .9, .4) .2s both; }
    .tn-bloom { animation: tn-spread 1.4s cubic-bezier(.2, .7, .2, 1) 1s both; }
}
@keyframes tn-fall { 0% { opacity: 1; transform: translateY(-40vh) scaleY(1.6); } 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes tn-spread { from { -webkit-mask-size: 0% 0%; mask-size: 0% 0%; } }
.tn-cover-words, .tn-cover-foot { position: relative; text-align: center; }
.tn-opening .cine-opening-kicker { color: var(--seal); }
.tn-cover-names { margin: .2rem 0 0; color: var(--ink); font: 700 clamp(3.4rem, 16vw, 4.6rem)/1 var(--f-script); text-shadow: none; }
.tn-cover-names .tn-amp { color: var(--seal); }
@media (prefers-reduced-motion: no-preference) {
    .tn-cover-names { animation: tn-write 1.8s cubic-bezier(.45, 0, .4, 1) 1.6s both; }
}
@keyframes tn-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -5% 0 0); } }
.tn-cover-date { margin: .3rem 0 0; color: var(--ink-muted); font: 500 .9rem/1.4 var(--f-body); letter-spacing: .08em; }
.tn-opening .cine-guest-label { color: var(--ink-muted); }
.tn-opening .cine-guest-name { margin-top: .2rem; color: var(--ink); font: 500 clamp(1.4rem, 6.4vw, 1.75rem)/1.25 var(--f-body); text-shadow: none; }
.tn-opening .cine-guest-note { color: var(--ink-muted); text-shadow: none; }
.tn-opening .cine-opening-cta { background: var(--ink); color: var(--paper); }
.tn-opening .cine-opening-cta:focus-visible { outline-color: var(--seal); }
/* On open: the ink floods the sheet, then clears. */
.tn-flood { position: fixed; left: 50%; top: 38%; z-index: 3; width: 30vmax; aspect-ratio: 1; margin: -15vmax; background: var(--ink); pointer-events: none;
    -webkit-mask: var(--blot-b) center / 100% 100% no-repeat; mask: var(--blot-b) center / 100% 100% no-repeat; transform: scale(0); }
.tn-opening.is-closing .tn-flood { animation: tn-flood 1.5s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes tn-flood { 0% { transform: scale(0); opacity: 1; } 50% { transform: scale(6); opacity: 1; } 100% { transform: scale(6); opacity: 0; } }
.tn-opening.is-closing .tn-paper, .tn-opening.is-closing .tn-cover-art, .tn-opening.is-closing .tn-cover-words, .tn-opening.is-closing .tn-cover-foot { animation: tn-gone 0s linear .75s forwards; }
@keyframes tn-gone { to { visibility: hidden; } }
@media (max-height: 40rem) { .tn-opening { justify-content: flex-start; } .tn-cover-art { width: 9rem; } }

/* ---- Home: names written with a brush --------------------------------------------------------- */
.tn-hero .cine-block { text-align: center; margin-inline: auto; }
.tn-hero .tn-seal { margin-bottom: 1.1rem; }
.tn-names { margin: .3rem 0 0; color: var(--c-ink); font: 700 clamp(3.6rem, 17vw, 5.4rem)/.95 var(--f-script); text-wrap: balance; }
.tn-underline { display: block; width: min(16rem, 76%); height: 1rem; margin: .2rem auto 0; overflow: visible; }
.tn-underline path { fill: none; stroke: var(--c-accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.5, 0, .3, 1) .5s; }
.has-reveal .tn-hero [data-reveal]:not(.is-revealed) .tn-underline path { stroke-dashoffset: 1; }
.tn-date { margin-top: 1rem !important; color: var(--c-muted); font: 500 .85rem/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }

/* ---- Shared paper: ruled sheets with a red margin --------------------------------------------- */
.tn-sheet, .tn-page, .tn-note, .tn-reply-sheet, .tn-guestbook .cine-wish-list li {
    background: linear-gradient(90deg, transparent 1.6rem, rgba(163, 38, 43, .4) 1.6rem calc(1.6rem + 1px), transparent calc(1.6rem + 1px)), var(--rule), var(--paper);
    color: var(--ink); text-shadow: none; }

/* ---- Verse ------------------------------------------------------------------------------------ */
.tn-sheet { max-width: 25rem; margin: 0 auto; padding: 2rem 1.3rem 1.6rem 2.4rem; box-sizing: border-box; box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, .35); rotate: -.8deg; }
.tn-sheet .cine-arabic { color: var(--ink); }
.tn-small-title { margin: 0 0 1rem; color: var(--seal); font: 600 .75rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.tn-verse { margin: 0; }
.tn-verse + .tn-verse { margin-top: 1.2rem; }
.tn-verse blockquote { margin: 0; font: 300 clamp(1.08rem, 4.5vw, 1.25rem)/1.55rem var(--f-body); text-wrap: pretty; }
.tn-verse figcaption { margin-top: .8rem; color: var(--ink-muted); font-size: .88rem; letter-spacing: .06em; }
.tn-sheet .cine-lead { margin-top: 1rem; color: var(--ink-muted); }

/* ---- Couple: ink blots ------------------------------------------------------------------------ */
.tn-couple .cine-block { margin-inline: auto; text-align: center; }
.tn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 26rem; margin: 0 auto; }
.tn-person { text-align: center; }
.tn-blot { display: grid; place-items: center; aspect-ratio: 1; background: #2a2a2d; color: var(--c-ink); font: 700 3rem/1 var(--f-script);
    -webkit-mask: var(--blot-a) center / 100% 100% no-repeat; mask: var(--blot-a) center / 100% 100% no-repeat; }
.tn-person:last-child .tn-blot { -webkit-mask-image: var(--blot-b); mask-image: var(--blot-b); }
.tn-blot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.tn-hand { margin-top: .3rem !important; color: var(--c-accent); font: 700 2.6rem/1 var(--f-script); }
.tn-person-name { margin: .2rem 0 0; font: 500 1.02rem/1.3 var(--f-body); }
.tn-role { margin-top: .2rem !important; color: var(--c-muted); font: 600 .75rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.tn-parent { margin-top: .4rem !important; color: var(--c-muted); font-size: .85rem; line-height: 1.5; }
.tn-person .cine-socials { justify-content: center; }

/* ---- Story: notebook pages joined by drips ---------------------------------------------------- */
.tn-page { position: relative; width: min(70vw, 16rem); padding: .9rem .9rem 1.1rem 2.2rem; box-sizing: border-box; box-shadow: 0 .8rem 1.6rem rgba(0, 0, 0, .3); scroll-snap-align: start; }
.tn-page::after { content: ""; position: absolute; left: 100%; top: 2.6rem; width: 1.75rem; height: .5rem; background: var(--c-ink); border-radius: 0 50% 50% 0;
    -webkit-mask: var(--stroke) center / 100% 100% no-repeat; mask: var(--stroke) center / 100% 100% no-repeat; opacity: .8; }
.tn-page:last-child::after { display: none; }
.tn-page-date { margin: 0 0 .6rem !important; color: var(--seal); font: 600 .75rem/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.tn-page-shot { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd8cc; -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }
.tn-page-shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.tn-page h3 { margin: .7rem 0 .3rem; font: 600 1.05rem/1.3 var(--f-body); }
.tn-page p:not(.tn-page-date) { margin: 0 !important; color: var(--ink-muted); font-size: .9rem; line-height: 1.55rem; }

/* ---- Events: a handwritten note --------------------------------------------------------------- */
.tn-note-page .cine-block { margin-inline: auto; text-align: center; }
.tn-note { width: 100%; max-width: 25rem; box-sizing: border-box; margin: 0 auto; padding: .6rem 1.2rem .6rem 2.4rem; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35); rotate: .6deg; }
.tn-event { padding: 1rem 0 1.1rem; }
.tn-event + .tn-event { position: relative; }
.tn-event + .tn-event::before { content: ""; position: absolute; left: 10%; right: 10%; top: -.35rem; height: .7rem; background: var(--ink); opacity: .85;
    -webkit-mask: var(--stroke) center / 100% 100% no-repeat; mask: var(--stroke) center / 100% 100% no-repeat; }
.tn-event h3 { margin: 0; color: var(--ink); font: 700 clamp(2.4rem, 11vw, 2.9rem)/1 var(--f-script); }
.tn-event-date { margin-top: .4rem !important; font-weight: 600; font-size: .95rem; }
.tn-event-time { margin-top: .1rem !important; color: var(--seal); font-weight: 600; font-size: .95rem; }
.tn-event address { margin-top: .6rem; color: var(--ink-muted); font-style: normal; font-size: .9rem; line-height: 1.55; }
.tn-event address strong { display: block; color: var(--ink); }
.tn-event .cine-directions { margin-top: .9rem; border-color: rgba(20, 20, 20, .4); color: var(--ink); }

/* ---- Countdown: numbers on washes of ink ------------------------------------------------------- */
.tn-countdown .cine-block { text-align: center; margin-inline: auto; }
.tn-clock .cine-clock-cells div { border: 0; background: none; }
.tn-clock .cine-clock-cells span { display: grid; place-items: center; aspect-ratio: 1; color: #f7f3ea; font: 300 clamp(1.8rem, 8vw, 2.3rem)/1 var(--f-body); text-shadow: none;
    background: #1d1d1f; -webkit-mask: var(--blot-a) center / 100% 100% no-repeat; mask: var(--blot-a) center / 100% 100% no-repeat; }
.tn-clock .cine-clock-cells div:nth-child(even) span { -webkit-mask-image: var(--blot-b); mask-image: var(--blot-b); }
:root[data-scheme="light"] .tn-clock .cine-clock-cells span { background: #26262a; }
.tn-clock .cine-clock-cells small { margin-top: .4rem; }

/* ---- Dress: brush strokes --------------------------------------------------------------------- */
.tn-washes { display: grid; justify-items: center; gap: .3rem; margin: 0 0 1.4rem; }
.tn-wash { width: 11rem; height: 1.7rem; background: linear-gradient(90deg, rgba(255, 255, 255, .28), transparent 35%, rgba(0, 0, 0, .12) 85%), var(--swatch);
    -webkit-mask: var(--stroke) center / 100% 100% no-repeat; mask: var(--stroke) center / 100% 100% no-repeat; }
.tn-wash:nth-child(even) { width: 9.5rem; translate: .8rem 0; }

/* ---- Gallery: brush-shaped photos ------------------------------------------------------------- */
.tn-gallery .cine-block { margin-inline: auto; text-align: center; }
.tn-gallery-line { color: var(--c-muted); font: 300 1.02rem/1.6 var(--f-body); }
.tn-sketches { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; max-width: 26rem; box-sizing: border-box; margin: 0 auto; padding: 0; list-style: none; }
.tn-sketches li:nth-child(odd) { rotate: -1deg; }
.tn-sketches li:nth-child(even) { rotate: 1.2deg; translate: 0 .6rem; }
.tn-sketch { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #2a2a2d; cursor: zoom-in;
    -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }
.tn-sketch img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.tn-sketch:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -6px; }
.tn-all { align-self: center; margin-top: .6rem; }

/* ---- RSVP: signed once sent ------------------------------------------------------------------- */
.tn-reply-sheet { position: relative; border: 0; border-radius: 0; padding-left: 2.4rem; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35); }
.tn-reply-sheet .cine-kicker { color: var(--seal); }
.tn-reply-sheet .cine-title { color: var(--ink); }
.tn-reply-sheet .cine-lead, .tn-reply-sheet legend, .tn-reply-sheet .cine-field, .tn-reply-sheet .cine-form-status { color: var(--ink-muted); }
.tn-reply-sheet :is(input:not([type=radio]), select, textarea) { border-color: rgba(20, 20, 20, .3); background: #fffdf8; color: var(--ink); }
.tn-reply-sheet .cine-field :is(input, textarea)::placeholder { color: #6e6a64; opacity: 1; }
.tn-reply-sheet .cine-attendance-options label { border-color: rgba(20, 20, 20, .35); color: var(--ink); }
.tn-reply-sheet .cine-attendance-options input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tn-reply-sheet .cine-submit { background: var(--ink); color: var(--paper); }
.tn-sign { display: grid; justify-items: end; margin-top: 1.2rem !important; }
.tn-sign svg { width: 9rem; height: 2.4rem; overflow: visible; border-bottom: 1px solid rgba(20, 20, 20, .45); }
.tn-sign path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.5, 0, .3, 1) .2s; }
.tn-reply:has(form.is-sent) .tn-sign path { stroke-dashoffset: 0; }
.tn-sign span { margin-top: .3rem; color: var(--ink-muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---- Wishes: the lined guest book ------------------------------------------------------------- */
.tn-guestbook .cine-wish-list li { padding-left: 2.4rem; border: 0; border-radius: 0; box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .22); }
.tn-guestbook .cine-wish-list li :is(p, span, small, time) { color: inherit; }

/* ---- Closing: the brush laid down, the seal pressed ------------------------------------------- */
.tn-end .cine-block { text-align: center; margin-inline: auto; }
.tn-brush { display: block; width: 9rem; height: 1.4rem; margin: 0 auto 1.4rem; overflow: visible; rotate: -4deg; }
.tn-brush-handle { stroke: #8a6a44; stroke-width: 5; stroke-linecap: round; }
.tn-brush-ferrule { fill: #9a9590; }
.tn-brush-tip { fill: var(--c-ink); }
.tn-end-names { margin-top: 1.2rem !important; font: 700 clamp(3rem, 14vw, 4rem)/1 var(--f-script); }
.tn-seal-big { width: 4.2rem; margin: 1rem auto .4rem; font-size: 1.35rem; }
@media (prefers-reduced-motion: no-preference) {
    .tn-seal-big { transition: scale .45s cubic-bezier(.3, 1.6, .5, 1) .6s, opacity .2s ease .6s; }
    .has-reveal .tn-end [data-reveal]:not(.is-revealed) .tn-seal-big { opacity: 0; scale: 1.9; }
}
@media (prefers-reduced-motion: reduce) {
    .tn-sign path { transition: none; }
}
/* 4 Dec 2026: the music button over the light paper; playing, it takes the seal red with white ink (AA). */
[data-theme="tinta"] .music-toggle[aria-pressed="true"] { border-color: #a3262b; background: #a3262b; color: #fff; }
