/* ---------------------------------------------------------------
   Maria Portugal Terracota · Coming Soon
   Standalone page. No build step, no external requests:
   background, logo and fonts all live in ./assets.
   Brand rule: flat colour only, no gradients or glow.
--------------------------------------------------------------- */

/* Fonts (latin subset, copied from the main site build) */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/fraunces-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/fraunces-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/hanken-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/hanken-500.woff2') format('woff2');
}

/* Brand tokens */
:root {
    --paper: #f4eee3;
    --ink: #1a1a1a;
    --soot: #2a2622;
    --terracotta: #b5613b;

    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--soot);
    color: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background image + flat veil */
.bg {
    position: fixed;
    inset: 0;
    background-color: var(--soot);
    background-image: url('assets/bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.veil {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.72);
}

/* Content */
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 44rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.logo {
    display: block;
    width: clamp(88px, 17vw, 140px);
    height: auto;
    margin: 0 auto;
}

.eyebrow {
    margin: 1.75rem 0 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(244, 238, 227, 0.92);
}

.title {
    margin: 0.75rem 0 0;
    font-family: var(--display);
    font-size: clamp(2.25rem, 11vw, 5.5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--paper);
}

.rule {
    width: 3rem;
    height: 2px;
    margin: 1.75rem auto 0;
    background-color: var(--terracotta);
}

.lede {
    margin: 1.75rem auto 0;
    max-width: 34ch;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.65;
    color: rgba(244, 238, 227, 0.92);
}

.contact {
    margin: 2.5rem 0 0;
    font-size: 1rem;
    line-height: 2;
    color: rgba(244, 238, 227, 0.92);
}

.contact a {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.28em;
    text-decoration-color: rgba(244, 238, 227, 0.5);
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.contact a:hover,
.contact a:focus-visible {
    color: var(--paper);
    text-decoration-color: var(--terracotta);
}

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

.dot {
    margin: 0 0.6rem;
    color: rgba(244, 238, 227, 0.55);
}

/* Entrance */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page > * {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page > .logo { animation-delay: 0.05s; }
.page > .eyebrow { animation-delay: 0.15s; }
.page > .title { animation-delay: 0.22s; }
.page > .rule { animation-delay: 0.3s; }
.page > .lede { animation-delay: 0.36s; }
.page > .contact { animation-delay: 0.44s; }

/* Motion is fail-safe: content rests visible */
@media (prefers-reduced-motion: reduce) {
    .page > * {
        animation: none;
    }

    .contact a {
        transition: none;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .page {
        padding: 2.5rem 1.25rem;
    }

    .dot {
        display: none;
    }

    .contact a {
        display: block;
    }
}

/* Short landscape screens */
@media (max-height: 560px) and (orientation: landscape) {
    .logo {
        width: clamp(64px, 10vw, 88px);
    }

    .eyebrow {
        margin-top: 1rem;
    }

    .rule,
    .lede {
        margin-top: 1rem;
    }

    .contact {
        margin-top: 1.5rem;
    }
}
