*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --ink: #111010;
    --ink-faint: #c0bbb0;
    --ink-mid: #7a756a;
    --dot-off: #e8e4dc;
    --dot-on: #8a7f6f;
    --dot-size: 18px;
    --dot-gap: 10px;
    --col-gap: 22px;
    --group-gap: 40px;
    --bar-height: 44px;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    color: var(--ink);
    font-family: "EB Garamond", Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) 2rem 0;
    height: calc(var(--bar-height) + env(safe-area-inset-top, 0px));
    background-color: var(--white);
}

.nav-icon-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}


.nav-logo {
    display: inline-block;
    width: 100px; /* Largura da sua imagem */
    height: 100px; /* Altura da sua imagem */
    margin-top: 50px;
    background-image: url('../../extm/img/png/mz.png');
    background-size: contain;
    background-repeat: no-repeat;
    text-indent: -9999px; /* Esconde o texto "Morza" mantendo a acessibilidade */
}

.nav-link,
.nav-gallery {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-logo:hover,
.nav-link:hover,
.nav-gallery:hover {
    color: var(--ink);
}

.nav-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
}

.stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clock-labels {
    display: flex;
    align-items: center;
}

.clock-label-group {
    display: flex;
    justify-content: center;
}

.col-label-roman {
    width: calc(var(--dot-size) * 2 + var(--col-gap));
    text-align: center;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ink-mid);
}

.sep-spacer {
    width: calc(var(--group-gap) * 2 + 4px);
}

.clock {
    display: flex;
    align-items: center;
}

.clock-group {
    display: flex;
    gap: var(--col-gap);
}

.clock-group + .sep-group {
    margin-left: var(--group-gap);
}
.sep-group + .clock-group {
    margin-left: var(--group-gap);
}

.col {
    display: flex;
    flex-direction: column;
    gap: var(--dot-gap);
}

.dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background-color: var(--dot-off);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.dot.on {
    background-color: var(--dot-on);
    box-shadow: 0 0 0 3px rgba(138, 127, 111, 0.15);
}

.sep-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-self: center;
}

.sep-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--ink-faint);
}

.quote-block {
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.quote-rule {
    width: 32px;
    height: 1px;
    background: var(--ink-faint);
    margin: 0 auto 1.5rem;
}

.quote-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink-mid);
    letter-spacing: 0.01em;
}

.quote-em {
    font-style: italic;
    font-weight: 600;
}

.footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem env(safe-area-inset-bottom, 0px);
    height: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
    background-color: var(--white);
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.footer-legal-icon[role="note"] {
    cursor: default;
}

.footer-legal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mid);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.footer-legal-icon:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.footer-sep {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    color: var(--ink-faint);
    user-select: none;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mid);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.footer-icon:hover {
    opacity: 1;
}

.footer-icon svg {
    width: 13px;
    height: 13px;
    fill: var(--ink-mid);
}

@media (max-width: 480px) {
    :root {
        --dot-size: 14px;
        --dot-gap: 8px;
        --col-gap: 16px;
        --group-gap: 28px;
    }
    .quote-text {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }
}
