/* ==========================================================================
   Alb-negru - chic black & white; photos develop like prints in a darkroom
   Signature: black-and-white photos that fade up from blank paper (the hero on
   load, the others when revealed), film-edge borders and a contact-sheet gallery
   with numbered frames and grease-pencil marks in the single accent colour.
   Palette: --inv-primary (ink), --inv-accent (the only colour), --inv-bg (paper), --inv-text
   ========================================================================== */

.alb-negru {
    --an-line: color-mix(in srgb, var(--inv-text) 85%, var(--inv-bg));
    --an-hair: color-mix(in srgb, var(--inv-text) 16%, var(--inv-bg));
    --an-muted: color-mix(in srgb, var(--inv-text) 62%, var(--inv-bg));
    --an-ink: #0D0D0D;
    --an-paper: #F7F5F0;
    --kit-radius: 0px;
    font-family: var(--inv-font-body);
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
}
.alb-negru h1, .alb-negru h2, .alb-negru h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.alb-negru) :is(h1, h2, h3) { margin: 0; }
.an-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--an-muted); margin: 0 0 14px; }
.an-sticker { display: inline-block; margin: 0 0 14px; font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--inv-accent); }
.an-h2 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.01em; margin-bottom: 30px !important; }
.an-h2--big { font-style: italic; }

/* ---------- Darkroom: prints develop from blank paper ---------- */
.an-develop img { filter: grayscale(1) contrast(1.08); }
.an-develop.kit-reveal img, .an-sheet.kit-reveal img { filter: grayscale(1) brightness(2.4) contrast(.25); opacity: .35; transition: filter 2.6s ease, opacity 1.4s ease; }
.an-develop.is-visible img, .an-sheet.is-visible img { filter: grayscale(1) contrast(1.08); opacity: 1; }
.an-sheet.is-visible a:nth-child(2) img { transition-delay: .25s; }
.an-sheet.is-visible a:nth-child(3) img { transition-delay: .5s; }
.an-sheet.is-visible a:nth-child(4) img { transition-delay: .75s; }
.an-sheet.is-visible a:nth-child(5) img { transition-delay: 1s; }
.an-sheet.is-visible a:nth-child(6) img { transition-delay: 1.25s; }
.is-developing img { animation: an-develop 3.2s ease .3s both; }
@keyframes an-develop { from { filter: grayscale(1) brightness(2.6) contrast(.2); opacity: .3; } to { filter: grayscale(1) contrast(1.08); opacity: 1; } }
html:not(.kit-js) .an-develop img, html:not(.kit-js) .an-sheet img { filter: grayscale(1) contrast(1.08); opacity: 1; }

/* Film edge (sprocket holes + edge print) */
.an-film { position: relative; margin: 0; padding: 26px 12px; background: var(--an-ink); }
.an-film::before, .an-film::after { content: ""; position: absolute; left: 10px; right: 10px; height: 10px; background: repeating-linear-gradient(90deg, var(--an-paper) 0 12px, transparent 12px 22px); border-radius: 2px; opacity: .9; }
.an-film::before { top: 8px; }
.an-film::after { bottom: 8px; }
.an-film-edge { position: absolute; right: 16px; bottom: -22px; font-size: .62rem; font-weight: 600; letter-spacing: .3em; color: var(--an-muted); white-space: nowrap; }
.an-film img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navigation ---------- */
.an-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 18px clamp(16px, 4vw, 44px); display: flex; justify-content: flex-end; }
.an-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 22px; }
.an-nav a { text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-text); padding: 6px 0; }
.an-nav a:hover, .an-nav a.is-current { color: var(--inv-accent); }
.an-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.6rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin-right: auto; }
.an-nav.is-stuck { align-items: center; padding: 8px clamp(16px, 4vw, 44px); background: var(--inv-bg); box-shadow: 0 1px 0 var(--an-line); }
.alb-negru .kit-to-top { border-radius: 0; background: var(--inv-text); color: var(--inv-bg); }
@media (max-width: 899px) {
    .an-nav { padding: 10px 12px; }
    .an-nav .kit-nav-toggle { color: var(--inv-text); font-size: 1.5rem; margin-left: auto; }
    .an-nav .kit-nav-links { display: none; }
    .an-nav.is-open .kit-nav-links { display: flex; flex-direction: column; gap: 12px; position: absolute; top: 56px; left: 12px; right: 12px; padding: 22px; background: var(--inv-bg); border: 1px solid var(--an-line); }
}

/* ---------- Hero ---------- */
.an-hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 100px clamp(20px, 5vw, 64px) 80px; overflow: hidden; }
.an-hero-grid { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 50px; align-items: center; }
@media (min-width: 900px) { .an-hero-grid { grid-template-columns: 1.05fr .95fr; } }
.an-title { font-size: clamp(3.6rem, 9vw, 7.4rem); letter-spacing: -.02em; line-height: .92; }
.an-title::first-line { font-style: normal; }
.an-subtitle { max-width: 470px; margin: 26px 0 0; font-size: 1.1rem; color: var(--an-muted); }
.an-when { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--an-line); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.an-when span + span { color: var(--inv-accent); }
.an-hero-photo { width: min(520px, 100%); margin: 0 auto; rotate: 1.5deg; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .6); }
.an-hero-photo .an-print { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.an-age { position: absolute; right: 1vw; bottom: -4vw; margin: 0; font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(12rem, 34vw, 30rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--inv-text) 22%, var(--inv-bg)); pointer-events: none; }
@media (max-width: 899px) { .an-hero-text { text-align: center; } .an-subtitle { margin-inline: auto; } .an-when { justify-content: center; } }

/* ---------- Sections ---------- */
.an-section { max-width: 1060px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 22px; }
.an-welcome { text-align: center; }
.an-prose { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.an-prose p { margin: 0 0 1em; }
.an-welcome .an-prose p:first-child { font-family: var(--inv-font-heading); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; }

/* Celebrant */
.an-band { border-block: 1px solid var(--an-line); }
.an-band-inner { max-width: 1060px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; }
.an-celebrant-grid { display: grid; gap: 50px; align-items: center; }
@media (min-width: 760px) { .an-celebrant-grid { grid-template-columns: 380px 1fr; gap: 70px; } }
.an-portrait { width: min(380px, 88vw); margin: 0 auto; rotate: -1.5deg; }
.an-portrait img, .an-initial { aspect-ratio: 4 / 5; }
.an-initial { display: grid; place-items: center; background: #222; color: var(--an-paper); font-family: var(--inv-font-heading); font-size: 7rem; }
.an-celebrant p { margin: 0 0 .8em; color: var(--an-muted); }
.an-celebrant .an-h2 { font-style: italic; }

/* Theme: split black / white block */
.an-theme { background: linear-gradient(90deg, var(--an-ink) 50%, var(--an-paper) 50%); }
.an-theme-inner { max-width: 1060px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; text-align: center; mix-blend-mode: difference; color: #fff; }
.an-theme-inner .an-sticker { color: #fff; }
.an-theme .an-h2 { font-size: clamp(3.2rem, 10vw, 7rem); }
@media (max-width: 700px) { .an-theme { background: linear-gradient(180deg, var(--an-ink) 50%, var(--an-paper) 50%); } }

/* Events */
.an-events .an-h2 { text-align: center; }
.an-event-list { border-top: 1px solid var(--an-line); }
.an-event { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 12px 40px; padding: 30px 0; border-bottom: 1px solid var(--an-hair); }
.an-event-time { font-family: var(--inv-font-heading); font-size: clamp(3rem, 7vw, 4.6rem); margin: 0; line-height: .9; }
.an-event h3 { font-size: 2rem; font-style: italic; }
.an-event .an-kicker { margin: 8px 0 0; color: var(--inv-accent); }
.an-event-place { font-weight: 600; margin: 8px 0 0; }
.an-event-notes { color: var(--an-muted); margin: 4px 0 0; }
.alb-negru .kit-event-actions { justify-content: flex-start; margin-top: 14px; }
.alb-negru .kit-button { border-radius: 0; border: 1px solid var(--inv-text); color: var(--inv-text); background: transparent; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.alb-negru .kit-button:hover { background: var(--inv-text); color: var(--inv-bg); }
@media (max-width: 600px) { .an-event { grid-template-columns: 1fr; } }

/* Countdown on an inverted band */
.an-countdown { max-width: none; background: var(--an-ink); color: var(--an-paper); text-align: center; }
.an-countdown .an-kicker { color: color-mix(in srgb, var(--an-paper) 60%, transparent); }
.an-countdown .kit-countdown { max-width: 900px; margin: 10px auto 0; gap: 0; }
.an-countdown .kit-countdown-unit { flex: 1; min-width: 0; padding: 10px 4px; }
.an-countdown .kit-countdown-unit + .kit-countdown-unit { border-left: 1px solid rgba(255, 255, 255, .2); }
.an-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(3rem, 10vw, 6rem); line-height: .9; }
.an-countdown .kit-countdown-label { letter-spacing: .3em; opacity: .6; }
@media (max-width: 420px) { .an-countdown .kit-countdown-label { letter-spacing: .12em; } }

/* Gallery: contact sheet with grease-pencil marks */
.an-gallery .an-h2 { text-align: center; }
.an-sheet { padding: 22px clamp(12px, 3vw, 28px) 30px; background: var(--an-ink); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7); }
.an-sheet.kit-reveal { transform: none; opacity: 1; }
.an-sheet-edge { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: .62rem; font-weight: 600; letter-spacing: .3em; color: #8C8A85; }
.an-frames { counter-reset: frame; grid-template-columns: repeat(2, 1fr); gap: 34px 10px; }
@media (min-width: 760px) { .an-frames { grid-template-columns: repeat(3, 1fr); } }
.an-frames a { position: relative; overflow: visible; aspect-ratio: 3 / 2; border-radius: 0; counter-increment: frame; }
.an-frames a img { border: 2px solid #1E1E1E; }
.an-frames a::before { content: counter(frame) "A"; position: absolute; left: 2px; bottom: -22px; font-size: .64rem; font-weight: 700; letter-spacing: .2em; color: #8C8A85; }
.an-frames a::after { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.an-frames a:nth-child(2)::after { inset: -10px -12px; border: 3px solid var(--inv-accent); border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%; rotate: -4deg; }
.an-frames a:nth-child(4)::after { right: -8px; top: -14px; width: 40px; height: 40px; background: linear-gradient(45deg, transparent 45%, var(--inv-accent) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--inv-accent) 45% 55%, transparent 55%); }
.an-frames a:nth-child(6)::after { right: -4px; bottom: -26px; width: 44px; height: 22px; border-left: 3px solid var(--inv-accent); border-bottom: 3px solid var(--inv-accent); rotate: -45deg; transform-origin: 0 100%; }
.an-frames a:hover img { transform: none; }

/* RSVP */
.an-rsvp-card { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); border: 2px solid var(--inv-text); text-align: center; }
.an-rsvp-card .an-h2 { font-style: italic; }
.alb-negru .inv-rsvp__submit { border-radius: 0; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-bg); }

/* Info */
.an-info .an-h2 { text-align: center; }
.an-info-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--an-line); }
.an-info-item { padding: 24px 24px 24px 0; }
.an-info-item + .an-info-item { padding-left: 24px; border-left: 1px solid var(--an-hair); }
@media (max-width: 760px) { .an-info-item + .an-info-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--an-hair); } }
.an-info-item h3 { font-size: 1.7rem; font-style: italic; margin-bottom: 8px; }
.an-info-item p { margin: 0 0 .5em; color: var(--an-muted); }
.an-faq { max-width: 720px; margin: 44px auto 0; }
.an-faq details { border-bottom: 1px solid var(--an-hair); padding: 16px 0; }
.an-faq summary { cursor: pointer; font-family: var(--inv-font-heading); font-size: 1.4rem; list-style: none; }
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after { content: "+"; float: right; color: var(--inv-accent); }
.an-faq details[open] summary::after { content: "-"; }
.an-faq details p { margin: 8px 0 0; color: var(--an-muted); }

/* Contact */
.an-contact { text-align: center; }
.an-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 70px; }
.an-contact-name { font-family: var(--inv-font-heading); font-size: 2.2rem; font-style: italic; margin: 0 0 4px; }
.an-contact-person a { color: var(--inv-text); font-weight: 600; letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--inv-accent); }

/* Footer */
.an-footer { padding: 80px 22px 60px; text-align: center; background: var(--an-ink); color: var(--an-paper); }
.an-footer-title { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.8rem, 8vw, 5rem); margin: 0 0 12px; line-height: 1; }
.an-footer-message { margin: 0 0 8px; opacity: .8; }
.an-hashtag { color: var(--inv-accent); font-weight: 600; letter-spacing: .1em; margin: 0 0 8px; }
.an-footer .an-kicker { color: rgba(255, 255, 255, .5); }

@media (prefers-reduced-motion: reduce) {
    .is-developing img { animation: none; }
    .an-develop.kit-reveal img, .an-sheet.kit-reveal img { transition: none; filter: grayscale(1); opacity: 1; }
}
