:root {
    --ink: #211d18;
    --muted: #756d62;
    --gold: #8a5b12;
    --line: #ded7cc;
    --paper: #fbfaf7;
    --warm: #f5ead1;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* CABEÇALHO */

.hero {
    width: calc(100% - 2rem);
    max-width: 1060px;
    margin: 0 auto;
    padding: 7.5rem 1rem 5rem;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    width: 100%;
}

.eyebrow {
    margin: 0 0 1.5rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-title {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.hero-title-line {
    display: block;
}

.hero-title-line-wide {
    white-space: nowrap;
}

.hero-intro {
    width: 100%;
    max-width: 780px;
    margin: 2.8rem 0 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.55;
}

.hero-intro-line {
    display: block;
}

/* LISTA DE FRASES */

.phrase-list {
    width: calc(100% - 2rem);
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1rem;
}

.phrase {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 150px;
    gap: 1.8rem;
    padding: 3.2rem 0;
    border-bottom: 1px solid var(--line);
    transition: transform 0.25s ease;
}

.rank {
    padding-top: 0.35rem;
    color: #aaa196;
    font-family: var(--serif);
    font-size: 1rem;
}

.phrase-content {
    min-width: 0;
}

.phrase blockquote {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.22;
    overflow-wrap: break-word;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    line-height: 1.5;
    text-transform: uppercase;
}

.meta span + span::before {
    content: "·";
    margin-right: 0.75rem;
}

/* BOTÕES */

.actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

.vote-button,
.linkedin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    gap: 0.55rem;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.vote-button:hover,
.vote-button.is-voted {
    border-color: var(--gold);
    background: var(--warm);
    color: #5e3a07;
}

.vote-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.linkedin-link:hover {
    border-color: var(--ink);
}

.linkedin-link.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* RODAPÉ */

.site-footer {
    width: calc(100% - 2rem);
    max-width: 1060px;
    margin: 0 auto;
    padding: 2.8rem 1rem 7rem;
    color: var(--muted);
    font-family: var(--serif);
}

.site-motto {
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-style: italic;
    line-height: 1.35;
}

/* AVISO DE VOTO */

.toast {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1000;
    max-width: 330px;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: var(--ink);
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 820px) {
    .hero {
        padding-top: 5.5rem;
        padding-bottom: 4rem;
    }

    .hero-intro {
        margin-top: 2.3rem;
        font-size: 1.2rem;
    }

    .phrase blockquote {
        font-size: 2rem;
    }
}

/* CELULAR */

@media (max-width: 640px) {
    .hero {
        width: 100%;
        padding: 4.5rem 1.25rem 3.5rem;
    }

    .eyebrow {
        margin-bottom: 1.25rem;
        font-size: 0.69rem;
        letter-spacing: 0.17em;
    }

    .hero-title {
        font-size: clamp(2.8rem, 12vw, 3.8rem);
        line-height: 0.94;
    }

    .hero-intro {
        max-width: 100%;
        margin-top: 2rem;
        font-size: 1.12rem;
        line-height: 1.55;
    }

    .hero-intro-line {
        display: block;
        margin-bottom: 0.2rem;
    }

    .phrase-list {
        width: 100%;
        padding: 0 1.25rem;
    }

    .phrase {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 0.85rem;
        padding: 2.4rem 0;
    }

    .rank {
        font-size: 0.88rem;
    }

    .phrase blockquote {
        font-size: 1.7rem;
        line-height: 1.25;
    }

    .meta {
        font-size: 0.66rem;
    }

    .actions {
        grid-column: 2;
        flex-direction: row;
    }

    .actions > * {
        flex: 1;
    }

    .site-footer {
        width: 100%;
        padding: 2.5rem 1.25rem 5rem;
    }

    .site-motto {
        font-size: 1.65rem;
    }
}

/* CELULARES ESTREITOS */

@media (max-width: 560px) {
    .hero-title-line-wide {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-intro {
        font-size: 1.06rem;
    }

    .phrase {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .phrase blockquote {
        font-size: 1.48rem;
    }

    .actions {
        flex-direction: column;
    }

    .vote-button,
    .linkedin-link {
        width: 100%;
    }

    .site-motto {
        font-size: 1.45rem;
    }

    .toast {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* NOVO RODAPÉ COM COMPARTILHAMENTO E CONTATO */

.site-footer {
    width: calc(100% - 2rem);
    max-width: 1060px;
    margin: 0 auto;
    padding: 3.2rem 1rem 7rem;
    color: var(--muted);
    font-family: var(--serif);
}

.footer-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    padding-bottom: 3.2rem;
    border-bottom: 1px solid var(--line);
}

.footer-group {
    min-width: 0;
}

.footer-kicker {
    margin: 0 0 1.1rem;
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.72rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    gap: 0.55rem;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.footer-button:hover {
    border-color: var(--gold);
    background: var(--warm);
    color: #5e3a07;
    transform: translateY(-1px);
}

.footer-button-primary {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.footer-button-primary:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: #ffffff;
}

.footer-button.is-copied {
    border-color: var(--gold);
    background: var(--warm);
    color: #5e3a07;
}

.site-motto {
    margin: 2.8rem 0 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-style: italic;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .site-footer {
        width: 100%;
        padding: 2.8rem 1.25rem 5rem;
    }

    .footer-tools {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        padding-bottom: 2.6rem;
    }

    .footer-actions {
        gap: 0.65rem;
    }

    .site-motto {
        margin-top: 2.4rem;
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .footer-actions {
        flex-direction: column;
    }

    .footer-button {
        width: 100%;
    }

    .site-motto {
        font-size: 1.45rem;
    }
}

/* CORREÇÃO DOS BOTÕES E ÍCONES DO RODAPÉ */

.footer-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.7rem !important;
}

.footer-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 46px !important;
    padding: 0.72rem 1rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--ink) !important;
    font-family: var(--sans) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    gap: 0.55rem !important;
    cursor: pointer !important;
}

.footer-button svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
}

.footer-button-primary {
    border-color: var(--ink) !important;
    background: var(--ink) !important;
    color: var(--paper) !important;
}

.footer-button:hover {
    border-color: var(--gold) !important;
    background: var(--warm) !important;
    color: #5e3a07 !important;
    text-decoration: none !important;
}

.footer-button-primary:hover {
    border-color: var(--gold) !important;
    background: var(--gold) !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .footer-actions {
        flex-direction: column !important;
    }

    .footer-button {
        width: 100% !important;
    }
}

/* MICROANIMAÇÕES DO VOTO */

.vote-button > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
}

.vote-count {
    min-width: 1ch;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}