/*
 * Base comum das seis opções da página "em construção".
 * Sistema cromático da Orva: 60 off-white, 30 preto tinta, 10 vermelho — o vermelho decide.
 * Ao escolher uma opção, este arquivo é incorporado nela e a página vira um HTML só.
 */

:root {
    --paper: #e8e2d6;
    --paper-deep: #d9d1c2;
    --ink: #121013;
    --ink-soft: rgba(18, 16, 19, 0.7);
    --line: rgba(18, 16, 19, 0.16);
    --signal: #fa3f20;

    --pad-x: clamp(16px, 4vw, 64px);
    --pad-y: clamp(20px, 3.2vw, 48px);
    --h1: clamp(3rem, 8.2vw, 9rem);

    --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --text: 'Geist', ui-sans-serif, system-ui, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --paper: #121013;
        --paper-deep: #1d1a1e;
        --ink: #e8e2d6;
        --ink-soft: rgba(232, 226, 214, 0.68);
        --line: rgba(232, 226, 214, 0.16);
        color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: var(--signal);
    color: #e8e2d6;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 4px;
    border-radius: 2px;
}

.page {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: var(--pad-y) var(--pad-x);
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

.top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    display: block;
    width: auto;
    height: clamp(22px, 2.1vw, 30px);
    aspect-ratio: 3021 / 817;
}

.status,
.caption,
.mono {
    font-family: var(--mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.status,
.caption {
    margin: 0;
}

.manifest {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: var(--h1);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.manifest .line {
    display: block;
}

.lead {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
    line-height: 1.5;
    text-wrap: pretty;
}

.contact {
    margin: 1.25rem 0 0;
    color: var(--ink-soft);
}

.contact a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.28em;
    transition:
        text-decoration-thickness 0.2s ease,
        text-underline-offset 0.2s ease;
}

.contact a:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.foot {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.foot p {
    margin: 0;
}

@media (max-width: 599px) {
    .foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .foot .caption {
        text-align: left;
    }
}

.hint-touch {
    display: none;
}

@media (hover: none) {
    .hint-hover {
        display: none;
    }
    .hint-touch {
        display: inline;
    }
}

/* ---------- entrada: um momento só, o texto entra em foco ---------- */

@keyframes focus-in {
    from {
        opacity: 0;
        filter: blur(16px);
        transform: translateY(0.05em);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.js .reveal,
.js .fade {
    opacity: 0;
}

.js.ready .reveal {
    animation: focus-in 1.15s cubic-bezier(0.2, 0.7, 0.1, 1) var(--delay, 0s) both;
}

.js.ready .fade {
    animation: appear 0.8s ease var(--delay, 0s) both;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .fade,
    .js.ready .reveal,
    .js.ready .fade {
        opacity: 1;
        animation: none;
    }
}
