:root {
    /* ============ PALETA ============ */
    --white: #ffffff;
    --ivory: #fffbf3;
    --mist: #ecf0ec; /* fundo verde-acinzentado, frio */

    --sage-50: #dfe6e1;
    --sage-200: #a2b3a6;
    --sage-500: #4f6856; /* eucalipto principal */
    --sage-700: #2f4538; /* eucalipto profundo */
    --sage-900: #1f3128; /* verde noturno (um toque mais claro) */

    --gold: #b8924c; /* dourado principal */
    --gold-light: #d7b777;
    --gold-deep: #8c6e36;

    --ink: #14180f;
    --ink-soft: #2a2e22;
    --muted: #555a4e;
    --line: rgba(31, 38, 31, 0.12);
    --line-soft: rgba(31, 38, 31, 0.06);

    --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
    --body: 'Lora', 'Cormorant Garamond', Georgia, serif;

    --read: 640px;
    --grid: 1100px;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background:
        radial-gradient(1200px 800px at 80% -5%, rgba(184, 146, 76, 0.05), transparent 55%),
        radial-gradient(900px 700px at -10% 60%, rgba(122, 138, 95, 0.06), transparent 55%), var(--white);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Paper grain (very subtle SVG noise) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.32  0 0 0 0 0.22  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
main,
.topbar,
footer {
    position: relative;
    z-index: 1;
}
h1,
h2,
h3,
h4 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
img,
svg {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
}
::selection {
    background: var(--sage-500);
    color: var(--white);
}

/* ====================================================== */
/*  Containers                                             */
/* ====================================================== */
.read {
    max-width: var(--read);
    margin: 0 auto;
    padding: 0 22px;
}
.grid {
    max-width: var(--grid);
    margin: 0 auto;
    padding: 0 22px;
}
@media (min-width: 720px) {
    .read,
    .grid {
        padding: 0 32px;
    }
}

/* ====================================================== */
/*  Top bar — minimal e fina                               */
/* ====================================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
    max-width: var(--grid);
    margin: 0 auto;
    padding: 16px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.nav-links {
    display: none;
    gap: 22px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}
.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--gold-deep);
}
.topbar-mono {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1;
}
/* Monograma — SVG com M, R em serifa pesada e & gigante atravessando */
.mono-mark {
    display: inline-block;
    color: var(--sage-900);
    line-height: 0;
}
.mono-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.mono-mark .mono-letter {
    fill: var(--sage-900);
    font-family: 'Tangerine', cursive;
    font-weight: 700;
}
.mono-mark .mono-amp {
    fill: var(--gold-deep);
    font-family: 'Tangerine', cursive;
    font-weight: 700;
}
.topbar-mono .mono-mark {
    width: 70px;
    height: 58px;
}
@media (min-width: 720px) {
    .topbar-mono .mono-mark {
        width: 82px;
        height: 68px;
    }
}
footer .mono .mono-mark {
    width: 180px;
    height: 148px;
}
@media (max-width: 560px) {
    footer .mono .mono-mark {
        width: 140px;
        height: 115px;
    }
}
.topbar-cta {
    justify-self: end;
    color: var(--ink);
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.topbar-cta:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
}
@media (min-width: 920px) {
    .topbar-inner {
        grid-template-columns: auto 1fr auto;
    }
    .nav-links {
        display: flex;
        justify-self: center;
    }
}

/* ====================================================== */
/*  HERO                                                   */
/* ====================================================== */
.hero {
    text-align: center;
    padding: 80px 22px 60px;
    position: relative;
    background-color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 78vh;
}
/* Aquarela como camada full com fade out gradual */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/cerimonia.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 35%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 35%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.55;
    pointer-events: none;
}
.hero > * {
    position: relative;
    z-index: 1;
}
@media (min-width: 720px) {
    .hero {
        padding: 120px 32px 130px;
        min-height: 92vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.hero-roman {
    font-family: var(--body);
    color: var(--ink);
    letter-spacing: 0.35em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-weight: 800;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 14px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(255, 255, 255, 0.85),
        0 0 32px rgba(255, 255, 255, 0.65);
}

.hero-illustration {
    width: 200px;
    height: auto;
    margin: 0 auto 32px;
}
@media (min-width: 720px) {
    .hero-illustration {
        width: 300px;
    }
}

.hero-names {
    font-family: 'Tangerine', 'Allura', cursive;
    font-weight: 700;
    font-size: clamp(80px, 19vw, 200px);
    line-height: 0.95;
    color: var(--sage-900);
    margin: 0;
    letter-spacing: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    text-shadow:
        0 2px 30px rgba(255, 253, 248, 0.95),
        0 0 16px rgba(255, 253, 248, 0.85),
        0 0 6px rgba(255, 253, 248, 0.7);
}
.hero-names .amp {
    font-weight: 400;
    color: var(--gold-deep);
    margin: 0 0.04em;
    font-size: 1.05em;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: var(--gold);
    margin: 28px auto;
}
@media (min-width: 720px) {
    .hero-divider {
        height: 56px;
        margin: 36px auto;
    }
}

/* Data — composição engraved com linhas douradas flanqueando */
.hero-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}
.hd-weekday,
.hd-time {
    font-family: var(--serif);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(16px, 2.2vw, 24px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink);
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 14px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(255, 255, 255, 0.85),
        0 0 32px rgba(255, 255, 255, 0.65);
}
.hd-row {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 24px);
}
.hd-line {
    flex: 0 0 auto;
    width: clamp(28px, 5vw, 56px);
    height: 1px;
    background: var(--gold);
    opacity: 0.85;
}
.hd-main {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(24px, 4.4vw, 38px);
    color: var(--sage-900);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        0 0 6px rgba(255, 253, 248, 0.98),
        0 0 16px rgba(255, 253, 248, 0.85);
}
.hd-main .dot {
    color: var(--gold);
    margin: 0 0.1em;
    font-style: normal;
}
@media (max-width: 560px) {
    .hd-main {
        font-size: 24px;
        letter-spacing: 0.18em;
    }
    .hd-line {
        width: 30px;
    }
    .hd-weekday,
    .hd-time {
        font-size: 16px;
        letter-spacing: 0.22em;
    }
    .hero-date {
        gap: 14px;
    }
}

.hero-loc {
    margin-top: 26px;
    font-family: var(--body);
    font-style: italic;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(255, 253, 248, 0.9);
}
@media (min-width: 720px) {
    .hero-loc {
        font-size: 17px;
        margin-top: 32px;
    }
}

/* ====================================================== */
/*  Chapter — base de cada seção                           */
/* ====================================================== */
.chapter {
    padding: 72px 0;
    position: relative;
}
@media (min-width: 720px) {
    .chapter {
        padding: 110px 0;
    }
}
.chapter.tinted {
    background: var(--mist);
    border-top: 1px solid var(--sage-50);
    border-bottom: 1px solid var(--sage-50);
}
.chapter.dark {
    background: var(--sage-900);
    color: var(--white);
}
.chapter.dark h2 {
    color: var(--white);
}
.chapter.dark .lead {
    color: rgba(255, 255, 255, 0.85);
}
.chapter.dark .roman {
    color: var(--gold-light);
}

.roman {
    font-family: var(--body);
    font-weight: 700;
    color: var(--gold-deep);
    letter-spacing: 0.3em;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 16px;
}

h2 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--sage-900);
    text-align: center;
    font-size: clamp(32px, 7vw, 56px);
    line-height: 1.1;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
    position: relative;
}
h2 em,
h2 .amp {
    font-style: italic;
    color: var(--sage-700);
    font-weight: 600;
}
.chapter.dark h2 em,
.chapter.dark h2 .amp {
    color: var(--gold-light);
}
/* Ornamento florido abaixo dos H2 (gerado por CSS) */
h2::after {
    content: '';
    display: block;
    width: 140px;
    height: 18px;
    margin: 18px auto 0;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 18' fill='none'><path d='M2 9 H55 M85 9 H138' stroke='%23B8924C' stroke-width='.9' stroke-linecap='round'/><circle cx='70' cy='9' r='3.5' fill='none' stroke='%23B8924C' stroke-width='.9'/><circle cx='70' cy='9' r='1.2' fill='%23B8924C'/><circle cx='60' cy='9' r='1' fill='%23B8924C'/><circle cx='80' cy='9' r='1' fill='%23B8924C'/><path d='M48 5 q4 4 0 8' stroke='%234F6856' stroke-width='.8' fill='none' stroke-linecap='round'/><path d='M92 5 q-4 4 0 8' stroke='%234F6856' stroke-width='.8' fill='none' stroke-linecap='round'/></svg>");
}
.chapter.dark h2::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 18' fill='none'><path d='M2 9 H55 M85 9 H138' stroke='%23D7B777' stroke-width='.9' stroke-linecap='round'/><circle cx='70' cy='9' r='3.5' fill='none' stroke='%23D7B777' stroke-width='.9'/><circle cx='70' cy='9' r='1.2' fill='%23D7B777'/><circle cx='60' cy='9' r='1' fill='%23D7B777'/><circle cx='80' cy='9' r='1' fill='%23D7B777'/></svg>");
}

.lead {
    text-align: center;
    color: var(--ink-soft);
    font-family: var(--body);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.65;
}
@media (min-width: 720px) {
    .lead {
        font-size: 18px;
        margin-bottom: 56px;
    }
}

/* divisor floral entre capítulos */
.ch-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 30px;
}
.ch-divider .line {
    flex: 0 0 80px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}
.ch-divider .leaf {
    width: 36px;
    height: 36px;
    color: var(--sage-500);
}

/* ====================================================== */
/*  Welcome / verse                                        */
/* ====================================================== */
.verse {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(19px, 4vw, 26px);
    line-height: 1.55;
    color: var(--sage-900);
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    font-weight: 500;
    position: relative;
    padding: 32px 12px 8px;
}
/* Aspas decorativas ouro grandes */
.verse::before,
.verse::after {
    font-family: var(--serif);
    color: var(--gold);
    opacity: 0.35;
    font-style: italic;
    line-height: 1;
    position: absolute;
    font-size: 90px;
}
.verse::before {
    content: '“';
    top: 8px;
    left: 0;
}
.verse::after {
    content: '”';
    bottom: -28px;
    right: 0;
}
@media (min-width: 720px) {
    .verse::before,
    .verse::after {
        font-size: 130px;
    }
    .verse::before {
        top: 0;
        left: -10px;
    }
    .verse::after {
        bottom: -50px;
        right: -10px;
    }
}
.verse-ref {
    display: inline-block;
    margin-top: 22px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 11px;
    color: var(--gold-deep);
    font-style: normal;
    font-weight: 700;
    font-family: var(--body);
}
.letter {
    text-align: center;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.8;
    max-width: 560px;
    margin: 80px auto 0;
}
/* Drop cap discreta na carta */
.letter.dropcap::first-letter {
    font-family: var(--serif);
    float: left;
    font-size: 4.4em;
    line-height: 0.85;
    margin: 6px 12px -4px 0;
    color: var(--gold-deep);
    font-weight: 500;
    font-style: italic;
}
@media (max-width: 560px) {
    .letter {
        text-align: center;
        margin-top: 60px;
    }
    .letter.dropcap::first-letter {
        float: none;
        display: inline;
        margin: 0;
        font-size: 1.4em;
        vertical-align: -2px;
    }
}
.letter-sign {
    margin-top: 36px;
    font-family: var(--serif);
    font-style: italic;
    color: var(--sage-700);
    font-size: 24px;
    font-weight: 500;
}

/* ====================================================== */
/*  Countdown                                              */
/* ====================================================== */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 580px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}
.cd-cell {
    text-align: center;
    padding: 6px 4px;
    border-right: 1px solid var(--line);
}
.cd-cell:last-child {
    border-right: 0;
}
.cd-num {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(30px, 8vw, 52px);
    color: var(--sage-700);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-lbl {
    margin-top: 10px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--ink-soft);
    text-transform: uppercase;
}

/* ====================================================== */
/*  Big-pair (Cerimônia / Recepção)                        */
/* ====================================================== */
.duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
@media (min-width: 720px) {
    .duo {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .duo > div {
        padding: 10px 40px;
    }
    .duo > div + div {
        border-left: 1px solid var(--line);
    }
}
.duo .kicker {
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-deep);
    margin-bottom: 14px;
}
.duo h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--sage-900);
    margin: 0 0 14px;
    line-height: 1.15;
}
.duo .when {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    color: var(--gold-deep);
    letter-spacing: 0.08em;
    margin: 6px 0 16px;
}
.duo p {
    font-family: var(--body);
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* ====================================================== */
/*  Buttons                                                */
/* ====================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--sage-700);
    color: var(--white);
    border: 1px solid var(--sage-700);
    text-decoration: none;
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.3em;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn:hover {
    background: var(--sage-900);
    border-color: var(--sage-900);
}
.btn.ghost {
    background: transparent;
    color: var(--sage-700);
}
.btn.ghost:hover {
    background: var(--sage-700);
    color: var(--white);
}
.btn.gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}
.btn.gold:hover {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
}
.btn.ghost-gold {
    background: transparent;
    color: var(--gold-deep);
    border-color: var(--gold);
}
.btn.ghost-gold:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn.lg {
    padding: 17px 36px;
    font-size: 12px;
}
.btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ====================================================== */
/*  Venue image (aquarela)                                 */
/* ====================================================== */
.venue-image {
    margin: 32px auto 0;
    max-width: 720px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gold);
    box-shadow: 0 30px 60px -32px rgba(20, 32, 26, 0.32);
    position: relative;
}
.venue-image::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(184, 146, 76, 0.35);
    pointer-events: none;
}
.venue-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
@media (max-width: 560px) {
    .venue-image {
        padding: 8px;
        margin-top: 24px;
    }
    .venue-image::before {
        inset: 3px;
    }
}

/* ====================================================== */
/*  Map                                                    */
/* ====================================================== */
.map {
    margin: 56px auto 0;
    max-width: 900px;
    border: 1px solid var(--line);
    aspect-ratio: 16/9;
}
.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.7) hue-rotate(15deg);
}

/* ====================================================== */
/*  Timeline                                               */
/* ====================================================== */
.timeline {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    counter-reset: tl-counter;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 95px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold) 60%, transparent 100%);
    opacity: 0.55;
}
@media (max-width: 520px) {
    .timeline::before {
        left: 73px;
    }
}

.tl-item {
    position: relative;
    padding-left: 140px;
    padding-bottom: 42px;
    counter-increment: tl-counter;
}
@media (max-width: 520px) {
    .tl-item {
        padding-left: 110px;
        padding-bottom: 32px;
    }
}
.tl-item:last-child {
    padding-bottom: 0;
}
.tl-time {
    position: absolute;
    left: 0;
    top: 4px;
    width: 78px;
    text-align: right;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--sage-700);
    letter-spacing: 0.04em;
}
@media (max-width: 520px) {
    .tl-time {
        width: 56px;
        font-size: 18px;
    }
}
/* Badge numerada dourada (auto via CSS counter) */
.tl-dot {
    position: absolute;
    left: 80px;
    top: -2px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-deep);
    box-shadow: 0 0 0 4px var(--white);
    z-index: 1;
}
.tl-dot::before {
    content: counter(tl-counter, lower-roman);
}
.chapter.tinted .tl-dot {
    box-shadow: 0 0 0 4px var(--mist);
}
@media (max-width: 520px) {
    .tl-dot {
        left: 58px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
.tl-title {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--sage-900);
    font-size: 22px;
    margin: 0 0 6px;
    line-height: 1.2;
}
.tl-desc {
    color: var(--ink-soft);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* ====================================================== */
/*  Manual do Convidado — grid                             */
/* ====================================================== */
.manual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 18px;
    max-width: 760px;
    margin: 0 auto;
    counter-reset: m-counter;
}
@media (min-width: 720px) {
    .manual-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 30px;
    }
}
@media (min-width: 980px) {
    .manual-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 56px 32px;
    }
}
.m-item {
    text-align: center;
    position: relative;
    counter-increment: m-counter;
}
.m-item::before {
    content: counter(m-counter, lower-roman) '.';
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}
.m-icon-wrap {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--white);
    position: relative;
}
.m-icon-wrap::before,
.m-icon-wrap::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.m-icon-wrap::before {
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
}
.m-icon-wrap::after {
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}
.chapter.tinted .m-icon-wrap {
    background: var(--white);
}
.m-icon {
    width: 38px;
    height: 38px;
    color: var(--sage-700);
}
@media (min-width: 720px) {
    .m-icon-wrap {
        width: 88px;
        height: 88px;
    }
    .m-icon {
        width: 44px;
        height: 44px;
    }
}
.m-item h4 {
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}
@media (min-width: 720px) {
    .m-item h4 {
        font-size: 12px;
    }
}

/* ====================================================== */
/*  Dress code — swatches  (não usado, mantido por compat) */
/* ====================================================== */
.swatches {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 30px 0 12px;
}
.sw {
    text-align: center;
}
.sw .ball {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--line);
}
.sw .name {
    margin-top: 12px;
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.rules {
    max-width: 560px;
    margin: 60px auto 0;
    list-style: none;
    padding: 0;
}
.rules li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.65;
}
.rules li:last-child {
    border-bottom: 0;
}
.rules .mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    margin-top: 3px;
}
.rules .yes {
    background: var(--sage-50);
    color: var(--sage-700);
}
.rules .no {
    background: var(--gold-light);
    color: var(--gold-deep);
    opacity: 0.8;
}
.rules strong {
    color: var(--ink);
    font-weight: 700;
}

/* ====================================================== */
/*  Stack (hospedagem)                                     */
/* ====================================================== */
.stack {
    max-width: 600px;
    margin: 0 auto;
}
.stack-item {
    border-top: 1px solid var(--line);
    padding: 30px 0;
}
.stack-item:last-child {
    border-bottom: 1px solid var(--line);
}
.stack-item .kicker {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 8px;
    font-weight: 700;
}
.stack-item h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    color: var(--sage-900);
    margin: 0 0 10px;
}
.stack-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}
.stack-item .meta {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.stack-item .meta a {
    color: var(--sage-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
}
.stack-item .meta a:hover {
    color: var(--gold-deep);
}

/* ====================================================== */
/*  Presentes — duo cards                                  */
/* ====================================================== */
.gifts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 720px) {
    .gifts {
        grid-template-columns: 1fr 1fr;
    }
}
.gift {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 40px 32px;
    text-align: center;
}
.chapter.tinted .gift {
    background: var(--white);
}
.gift .kicker {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 12px;
    font-weight: 700;
}
.gift h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 28px;
    color: var(--sage-900);
    margin: 0 0 14px;
}
.gift p {
    color: var(--ink-soft);
    font-size: 16px;
    margin: 0 0 22px;
    line-height: 1.7;
}
.gift code {
    display: inline-block;
    background: var(--mist);
    border: 1px solid var(--sage-50);
    color: var(--sage-900);
    padding: 8px 14px;
    margin: 6px 0 16px;
    font-family: var(--body);
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* ====================================================== */
/*  Cerimonialista — bloco simples                         */
/* ====================================================== */
.contact {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.contact .name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 32px;
    color: var(--sage-900);
    margin: 8px 0 8px;
}
.contact .role {
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 700;
    margin-bottom: 16px;
}
.contact p {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 28px;
}

/* ====================================================== */
/*  FAQ                                                    */
/* ====================================================== */
.faq {
    max-width: 640px;
    margin: 0 auto;
}
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
}
.faq details:first-of-type {
    border-top: 1px solid var(--line);
}
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--sage-900);
    line-height: 1.3;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: '+';
    color: var(--gold);
    font-size: 26px;
    font-weight: 400;
    transition: transform 0.25s;
    flex-shrink: 0;
    line-height: 1;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* ====================================================== */
/*  RSVP — único bloco escuro, no fim                      */
/* ====================================================== */
.chapter.dark .lead,
.chapter.dark p {
    color: rgba(255, 255, 255, 0.82);
}
.chapter.dark .deadline {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}
.chapter.dark .btn {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}
.chapter.dark .btn:hover {
    background: var(--white);
    color: var(--sage-900);
    border-color: var(--white);
}

/* ====================================================== */
/*  Footer                                                 */
/* ====================================================== */
footer {
    background: var(--white);
    text-align: center;
    padding: 80px 28px 70px;
    border-top: 1px solid var(--line);
}
footer .leaf-decor {
    width: 80px;
    margin: 0 auto 16px;
    color: var(--sage-200);
}
footer .mono {
    margin: 0 auto 4px;
}
footer .mono img {
    width: 110px;
    height: auto;
    margin: 0 auto;
    display: block;
}
footer .date {
    margin-top: 14px;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
footer .with-love {
    margin-top: 18px;
    font-family: var(--serif);
    font-style: italic;
    color: var(--sage-500);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
}
footer .dachshund {
    width: 52px;
    height: auto;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ====================================================== */
/*  MOBILE — fix de overflow agressivo                     */
/* ====================================================== */
@media (max-width: 560px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero {
        padding: 50px 18px 60px;
    }
    .read,
    .grid {
        padding: 0 18px;
    }
    .chapter {
        padding: 60px 0;
    }

    /* Topbar mais compacta */
    .topbar-inner {
        padding: 12px 18px;
        gap: 10px;
    }
    .topbar-mono {
        font-size: 14px;
        letter-spacing: 0.35em;
    }
    .topbar-cta {
        font-size: 10px;
        letter-spacing: 0.18em;
        padding-bottom: 2px;
    }

    /* HERO — nomes em duas linhas, datas verticais */
    .hero-illustration {
        width: 160px;
        margin-bottom: 24px;
    }
    .hero-roman {
        font-size: 11px;
        letter-spacing: 0.25em;
        margin-bottom: 24px;
    }
    .hero-names {
        font-size: clamp(78px, 24vw, 130px);
        line-height: 0.85;
        white-space: normal;
    }
    .hero-names .name1,
    .hero-names .name2 {
        display: block;
    }
    .hero-names .amp {
        display: block;
        font-size: 0.8em;
        line-height: 1;
        margin: 4px 0;
    }
    .hero-divider {
        height: 36px;
        margin: 26px auto;
    }
    .hero-date {
        gap: 10px;
    }
    .hero-loc {
        font-size: 15px;
        margin-top: 20px;
    }

    /* Títulos */
    h2 {
        font-size: 28px !important;
        line-height: 1.15;
    }
    .lead {
        font-size: 16px;
        margin-bottom: 36px;
    }
    .roman {
        font-size: 11px;
        letter-spacing: 0.2em;
    }

    /* Verse */
    .verse {
        font-size: 17px;
        line-height: 1.55;
    }
    .letter {
        font-size: 16px;
    }
    .letter-sign {
        font-size: 18px;
    }

    /* Countdown */
    .countdown {
        padding: 20px 0;
    }
    .cd-num {
        font-size: 28px;
    }
    .cd-lbl {
        font-size: 9px;
        letter-spacing: 0.15em;
        margin-top: 6px;
    }

    /* Duo */
    .duo {
        gap: 40px;
    }
    .duo > div {
        padding: 0;
    }
    .duo h3 {
        font-size: 24px;
    }
    .duo .when {
        font-size: 19px;
    }
    .duo p {
        font-size: 15px;
    }

    /* Timeline */
    .timeline::before {
        left: 56px;
    }
    .tl-item {
        padding-left: 88px;
        padding-bottom: 30px;
    }
    .tl-time {
        width: 48px;
        font-size: 17px;
    }
    .tl-dot {
        left: 51px;
        top: 10px;
        width: 9px;
        height: 9px;
    }
    .tl-title {
        font-size: 18px;
    }
    .tl-desc {
        font-size: 14px;
    }

    /* Dress code */
    .swatches {
        gap: 18px;
    }
    .sw .ball {
        width: 50px;
        height: 50px;
    }
    .sw .name {
        font-size: 10px;
        letter-spacing: 0.15em;
    }
    .rules li {
        font-size: 15px;
        padding: 14px 0;
    }

    /* Stack */
    .stack-item h4 {
        font-size: 22px;
    }
    .stack-item p {
        font-size: 15px;
    }

    /* Gifts */
    .gift {
        padding: 30px 22px;
    }
    .gift h3 {
        font-size: 24px;
    }
    .gift p {
        font-size: 15px;
    }

    /* Contact */
    .contact .name {
        font-size: 24px;
    }

    /* FAQ */
    .faq summary {
        font-size: 17px;
    }
    .faq summary::after {
        font-size: 22px;
    }
    .faq details p {
        font-size: 15px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 10px;
        letter-spacing: 0.22em;
    }
    .btn.lg {
        padding: 14px 24px;
        font-size: 11px;
    }
    .btn-row {
        gap: 10px;
        margin-top: 18px;
    }

    /* Map */
    .map {
        aspect-ratio: 4/3;
        margin-top: 36px;
    }

    /* Footer */
    footer {
        padding: 60px 22px 50px;
    }
    footer .mono img {
        width: 90px;
    }
}

/* tiny screens */
@media (max-width: 360px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 0;
    }
    .cd-cell {
        padding: 12px 4px;
    }
    .cd-cell:nth-child(2) {
        border-right: 0;
    }
    .cd-cell:nth-child(3) {
        border-right: 1px solid var(--line);
        border-top: 1px solid var(--line);
        padding-top: 18px;
    }
    .cd-cell:nth-child(4) {
        border-top: 1px solid var(--line);
        padding-top: 18px;
    }
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}
