@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800;1,900&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
    --red: #c9272c;
    --yellow: #ffd14a;
    --ink: #202d33;
    --paper: #f9f8f3;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
}
header {
    max-width: 1200px;
    margin: auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dadbd5;
}
.brand {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
}
.brand span {
    background: var(--red);
    color: white;
    padding: 1px 8px;
    margin-left: 4px;
    font-size: 22px;
}
.header-note,
.edition {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}
.edition {
    color: #69716f;
}
main {
    max-width: 1200px;
    margin: auto;
}
.invitation {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    padding: 56px 40px 48px;
    gap: 35px;
    align-items: center;
}
.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    display: block;
}
.eyebrow > span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 7px;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    line-height: 0.98;
    font-weight: 800;
}
h1 {
    font-size: clamp(56px, 6.8vw, 84px);
    margin: 20px 0;
}
em {
    font-style: italic;
    color: var(--red);
}
.intro {
    color: #606b6e;
    margin: 22px 0 0;
}
.age {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: "Barlow Condensed", Impact, sans-serif;
    color: var(--red);
}
.age > strong {
    font-size: 120px;
    line-height: 1;
}
.age > div {
    display: flex;
    flex-direction: column;
}
.age b {
    font-size: 25px;
    letter-spacing: 6px;
}
.age div span {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
}
.description {
    line-height: 1.6;
    margin: 14px 0 22px;
}
.date {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-bottom: 24px;
}
.date > strong {
    font-size: 38px;
    font-family: "Barlow Condensed", Impact, sans-serif;
    border-right: 1px solid #c8ccc7;
    padding-right: 19px;
    line-height: 0.95;
    text-align: center;
}
.date strong span {
    display: block;
    font-size: 19px;
    letter-spacing: 2px;
    margin-top: 5px;
}
.date > div {
    line-height: 1.7;
    font-size: 14px;
}
.button {
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 17px 23px;
    border-radius: 7px;
    font-weight: 700;
    min-height: 54px;
    width: fit-content;
}
.primary {
    background: var(--red);
    color: white;
}
.button span {
    font-size: 23px;
}
.button:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
}
.visual {
    background: #74b7c7;
    border-radius: 100px 100px 12px 12px;
    overflow: hidden;
    box-shadow: 12px 12px 0 #e7e8de;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 490px;
    position: relative;
}
.race-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
    padding: 36px 15px 15px;
}
.visual img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    flex: 1;
}
.visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    background: var(--red);
    color: white;
    gap: 12px;
}
.visual-footer span {
    font-size: 12px;
    letter-spacing: 1px;
}
.visual-footer b {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-style: italic;
    font-size: 28px;
    color: var(--yellow);
}
.checks {
    height: 18px;
    background: repeating-conic-gradient(#263338 0% 25%, #fff 0% 50%) 0 0/18px
        18px;
}
.countdown {
    border-top: 1px solid #d8ddd7;
    border-bottom: 1px solid #d8ddd7;
    margin: 0 40px;
    padding: 32px 0;
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
}
.countdown h2 {
    font-size: 29px;
    margin: 9px 0 0;
}
.timer {
    display: flex;
    gap: 10px;
    align-items: center;
}
.timer div {
    text-align: center;
    min-width: 45px;
}
.timer b {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 39px;
    font-weight: 700;
}
.timer span {
    display: block;
    font-size: 12px;
    color: #626f71;
}
.timer i {
    font-size: 24px;
    font-style: normal;
    color: #94a19f;
}
.text-button {
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
    padding: 12px;
}
.section {
    padding: 70px 40px;
    scroll-margin-top: 10px;
}
.red {
    color: var(--red);
}
.section h2 {
    font-size: 54px;
    margin: 18px 0 25px;
}
.location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}
.location p {
    font-weight: 700;
    margin-bottom: 9px;
}
.location address {
    font-style: normal;
    line-height: 1.8;
    color: #5e6c6e;
}
.sample {
    font-size: 12px;
    color: #657274;
    display: block;
    margin-top: 12px;
}
.location-card {
    border: 1px solid #cfdbd6;
    border-radius: 12px;
    background: #eaf0eb;
    padding: 30px;
    align-self: center;
}
.pin {
    font-size: 42px;
    line-height: 1;
    color: var(--red);
}
h3 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 27px;
    margin: 14px 0;
}
.location-card > p {
    font-weight: 400;
    color: #546265;
}
.dark {
    background: var(--ink);
    color: white;
    margin-top: 22px;
    width: 100%;
}
.location-card p.hint {
    font-size: 12px;
    line-height: 1.5;
    margin: 13px 0 0;
}
.details {
    padding-top: 5px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.detail-grid article {
    border-top: 2px solid var(--ink);
    padding-top: 20px;
}
.number {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 26px;
    color: var(--red);
}
.detail-grid p {
    font-size: 15px;
    line-height: 1.8;
    color: #596669;
    margin: 0;
}
.rsvp {
    position: relative;
    text-align: center;
    background: var(--red);
    color: #fff;
    margin: 0 40px;
    border-radius: 12px;
    overflow: hidden;
    padding: 55px 25px 35px;
}
.rsvp .checks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.rsvp h2 {
    font-size: 72px;
    margin: 22px 0;
}
.rsvp em {
    color: var(--yellow);
}
.rsvp p {
    line-height: 1.8;
}
.yellow {
    background: var(--yellow);
    color: var(--ink);
    margin: 23px auto 14px;
}
.rsvp small {
    font-size: 12px;
    display: block;
    opacity: 0.9;
}
.signoff {
    margin-top: 35px;
    font-size: 14px;
}
.signoff b {
    display: block;
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 27px;
    margin-top: 6px;
}
footer {
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 30px 25px 130px;
    color: #697574;
    line-height: 1.8;
}
footer span {
    font-size: 12px;
    letter-spacing: 0;
}
nav {
    position: fixed;
    z-index: 10;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 5px 35px #182c3330;
    border: 1px solid #e6e8e2;
    border-radius: 16px;
    display: flex;
    max-width: 440px;
    width: calc(100% - 28px);
    padding: 8px;
}
nav a {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    border-radius: 9px;
    padding: 7px 3px;
    font-weight: 600;
}
nav a span {
    font-size: 24px;
    line-height: 1.1;
}
nav a.active {
    color: var(--red);
    background: #fff0eb;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid #128ba2;
    outline-offset: 4px;
}
@media (min-width: 900px) {
    .visual img {
        position: absolute;
        top: 68px;
        bottom: 83px;
        height: calc(100% - 151px);
    }
    .visual-footer {
        margin-top: auto;
        position: relative;
    }
    .checks {
        flex-shrink: 0;
    }
}
@media (max-width: 700px) {
    header {
        padding: 17px 22px;
    }
    .header-note {
        display: none;
    }
    .edition {
        font-size: 11px;
    }
    .invitation {
        padding: 32px 22px 28px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }
    .copy {
        text-align: center;
    }
    h1 {
        font-size: 62px;
        margin: 15px 0;
    }
    .eyebrow {
        font-size: 11px;
        letter-spacing: 1.3px;
    }
    .intro {
        margin-top: 17px;
        font-size: 14px;
    }
    .age {
        justify-content: center;
    }
    .age > strong {
        font-size: 97px;
    }
    .age div span {
        font-size: 44px;
    }
    .age b {
        font-size: 21px;
    }
    .description {
        font-size: 15px;
        margin: 9px 0 20px;
    }
    .date {
        justify-content: center;
        margin-bottom: 20px;
    }
    .primary {
        width: 100%;
        justify-content: center;
    }
    .visual {
        min-height: 0;
        border-radius: 65px 65px 10px 10px;
        box-shadow: 6px 6px 0 #e4e7dc;
    }
    .race-label {
        padding: 22px 15px 10px;
        font-size: 10px;
    }
    .visual img {
        min-height: 0;
        height: 260px;
        object-fit: cover;
    }
    .visual-footer {
        padding: 15px;
    }
    .visual-footer b {
        font-size: 24px;
    }
    .visual-footer span {
        font-size: 10px;
    }
    .countdown {
        margin: 0 22px;
        padding: 28px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        text-align: center;
    }
    .countdown > div:first-child {
        width: 100%;
    }
    .timer {
        gap: 15px;
    }
    .timer b {
        font-size: 43px;
    }
    .text-button {
        width: 100%;
    }
    .section {
        padding: 45px 22px;
    }
    .section h2 {
        font-size: 45px;
    }
    .location {
        grid-template-columns: 1fr;
        gap: 23px;
    }
    .location-card {
        padding: 24px;
    }
    .details {
        padding-top: 8px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .detail-grid article {
        position: relative;
        padding-left: 43px;
        padding-top: 14px;
    }
    .number {
        position: absolute;
        left: 0;
        top: 23px;
    }
    h3 {
        margin-top: 7px;
    }
    .rsvp {
        margin: 0 14px;
        padding: 50px 20px 30px;
    }
    .rsvp h2 {
        font-size: 62px;
    }
    .yellow {
        width: 100%;
        padding: 16px;
        font-size: 14px;
        gap: 10px;
    }
    nav {
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .button:hover {
        transform: none;
    }
}

/* Abertura animada: a imagem entra em cena antes do convite. */
.opening {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    min-height: 100svh;
    overflow: hidden;
    background: #171c22;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px clamp(22px, 6vw, 90px) 70px;
}
.opening-photo {
    position: absolute;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    animation: none;
}
.opening-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.opening-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(90deg, #111b2466, #111b240d 75%),
        linear-gradient(0deg, #111b2477, transparent 65%);
}
.opening-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}
.opening-logo {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-style: italic;
    font-size: 34px;
    font-weight: 900;
}
.opening-logo span {
    background: var(--red);
    padding: 2px 9px;
}
.opening-content {
    margin: 90px 0 65px;
    max-width: 790px;
    animation: opening-rise 0.9s 0.25s both;
}
.opening-kicker {
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--yellow);
}
.opening h1 {
    font-size: clamp(62px, 7.8vw, 112px);
    margin: 22px 0;
    line-height: 1;
}
.opening h1 em {
    color: var(--yellow);
}
.opening-content > p:not(.opening-kicker) {
    max-width: 390px;
    line-height: 1.7;
}
.opening .opening-enter {
    margin: 28px 0 0;
    min-width: 235px;
}
.opening-scroll {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}
.opening-scroll span {
    font-size: 30px;
}
.opening-finish {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background-size: 24px 24px;
}
.music-toggle {
    position: fixed;
    z-index: 20;
    right: 18px;
    top: 18px;
    border: 1px solid #ffffff60;
    border-radius: 30px;
    padding: 12px 16px;
    background: #182831;
    color: white;
    min-height: 44px;
    font-size: 14px;
    box-shadow: 0 3px 18px #0002;
}
.music-toggle:disabled {
    display: none;
}
.music-status {
    position: fixed;
    z-index: 21;
    top: 68px;
    right: 18px;
    max-width: min(300px, calc(100vw - 36px));
    margin: 0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #182831;
    box-shadow: 0 3px 18px #0002;
}
.music-status:not(:empty) {
    padding: 13px;
}
body.at-opening nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 20px);
}
nav {
    transition:
        opacity 0.25s,
        transform 0.25s,
        visibility 0.25s;
}
body.music-ready .opening-top {
    padding-right: 155px;
}
@keyframes car-arrive {
    from {
        transform: translateX(15%) scale(1.08);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}
@keyframes opening-rise {
    from {
        transform: translateY(25px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 700px) {
    .opening {
        padding: 25px 22px 57px;
        min-height: 760px;
        min-height: 100svh;
    }
    .opening-photo {
        inset: 0;
    }
    .opening-photo img {
        object-position: 58% center;
    }
    .opening-shade {
        background: linear-gradient(
            180deg,
            #101d2744,
            #101d2710 35%,
            #101d2755 65%,
            #101d2788 100%
        );
    }
    .opening-top {
        font-size: 12px;
    }
    .opening-content {
        margin: 190px 0 25px;
    }
    .opening h1 {
        font-size: clamp(48px, 12vw, 72px);
    }
    .opening-content > p:not(.opening-kicker) {
        font-size: 15px;
        max-width: 310px;
    }
    .opening .opening-enter {
        width: 100%;
    }
    .opening-kicker {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .opening-scroll {
        margin: 0 auto;
        font-size: 12px;
    }
    body.music-ready .opening-top > span {
        display: none;
    }
    .music-toggle {
        top: 20px;
        right: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .opening-photo,
    .opening-content {
        animation: none;
    }
    nav {
        transition: none;
    }
}

/* Vídeo cobre a abertura inteira, sem imagem de espera. */
.opening-photo {
    background: #171c22;
}

.opening-photo video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.opening-photo video[hidden] {
    display: none;
}

.video-toggle {
    position: absolute;
    right: 22px;
    bottom: 30px;
    background: #182831;
    color: #fff;
    border: 1px solid #ffffff70;
    border-radius: 20px;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 14px;
}

@media (max-width: 700px) {
    .opening-scroll {
        margin-bottom: 48px;
    }

    .video-toggle {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

/* Remove qualquer foto de fundo da abertura. */
.opening,
.opening-photo {
    background-image: none !important;
    background-color: #171c22;
}

.opening-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    animation: none;
}

/* Impede uma imagem antiga de aparecer nesse bloco. */
.opening-photo img {
    display: none !important;
}

.opening-photo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Abertura com, no mínimo, a altura da tela. */
.opening {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

/* O espaço do vídeo acompanha o tamanho da abertura. */
.opening-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Configuração padrão: computador. */
.opening-photo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1);
    transform-origin: center;
}

/* Configuração para celular. */
@media (max-width: 700px) {
    .opening-photo video {
        object-position: 50% center;
        transform: scale(1);
    }
}

SELECT * form 
table
position: absolute 
    where index == '47'
    .opening-photo video 

/* A abertura serve de referência para os controles. */
.opening {
    position: relative;
}

/* O botão acompanha apenas a abertura, saindo ao rolar. */
.opening .music-toggle {
    position: absolute;
    top: 20px;
    right: 18px;
}

/* A mensagem da música também fica dentro da abertura. */
.opening .music-status {
    position: absolute;
    top: 72px;
    right: 18px;
}

/* Remove o menu inferior do convite. */
nav[aria-label="Menu do convite"] {
    display: none !important;
}

/* Esconde o botão de mutar a música. */
#music-toggle {
    display: none !important;
}