/*
|--------------------------------------------------------------------------
| Maria Portugal Terracota / Vasicol: maintenance page
|--------------------------------------------------------------------------
| Standalone, no build step, no external requests. Design tokens mirror
| resources/css/app.css so the holding page reads as the same brand.
| Flat colour only: no gradients, no glass, no glow.
*/

/* ---------------------------------------------------------------- fonts -- */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fraunces-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2190-2193;
}

@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/hanken-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2190-2193;
}

@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/hanken-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2190-2193;
}

/* --------------------------------------------------------------- tokens -- */

:root {
    --font-display: 'Fraunces', ui-serif, Georgia, serif;
    --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

    --paper: #f4eee3;
    --bone: #faf6ee;
    --ink: #1a1a1a;
    --soot: #2a2622;
    --terracotta: #b5613b;
    --ochre: #e1b239;
    --clay: #c9a98a;

    --hairline: rgba(244, 238, 227, 0.22);
    --soft: rgba(244, 238, 227, 0.72);
}

/* ---------------------------------------------------------------- reset -- */

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

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

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--soot);
    color: var(--paper);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* `hidden` must beat the layout display values set further down (the countdown
   is a grid), or the zeroed ticker survives its own switch-off. */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.35s ease, border-color 0.35s ease;
}

::selection {
    background: var(--terracotta);
    color: var(--bone);
}

:focus-visible {
    outline: 2px solid var(--ochre);
    outline-offset: 4px;
}

/* -------------------------------------------------------------- backdrop -- */

.backdrop,
.scrim,
.grain {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.backdrop {
    background-image: url('../img/barro.jpg');
    background-size: cover;
    /* The plate is a portrait shot: bias the crop upward so the potter's
       hands and the pot stay in frame on wide, short viewports. */
    background-position: 50% 38%;
    background-repeat: no-repeat;
}

.scrim {
    background-color: rgba(20, 17, 14, 0.7);
}

/* Fine film grain, matching the .grain overlay on the live site. */
.grain {
    opacity: 0.16;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ page -- */

.page {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 3rem 0;
}

.shell {
    width: 100%;
    max-width: 62rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    text-align: center;
}

/* -------------------------------------------------------------- masthead -- */

.masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.seal {
    width: 104px;
    height: auto;
}

.eyebrow {
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clay);
}

.eyebrow span { padding-inline: 0.35rem; }

/* ------------------------------------------------------------- headline -- */

.display {
    margin-top: 2.2rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6.4vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--bone);
}

.lead {
    margin-top: 1.5rem;
    margin-inline: auto;
    max-width: 38rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--soft);
}

/* Keep the launch date on one line: it is the one thing a visitor scans for. */
.lead strong {
    font-weight: 500;
    color: var(--ochre);
    white-space: nowrap;
}

.lead-alt {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(244, 238, 227, 0.72);
}

.lead-alt strong { color: rgba(225, 178, 57, 0.9); }

/* ------------------------------------------------------------ countdown -- */

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.5rem;
    margin-inline: auto;
    max-width: 44rem;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.5rem 0.5rem 1.25rem;
    background-color: rgba(250, 246, 238, 0.06);
    border: 1px solid var(--hairline);
}

.value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.2vw, 3.25rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--bone);
}

.label {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clay);
}

.label .sep {
    opacity: 0.55;
    padding-inline: 0.15rem;
}

/* ------------------------------------------------------ launched state -- */

.done { margin-top: 3rem; }

.done-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
    line-height: 1.1;
    color: var(--bone);
}

.done-alt {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(244, 238, 227, 0.62);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    background-color: var(--bone);
    color: var(--ink);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--ochre);
    color: var(--ink);
}

/* ---------------------------------------------------------------- foot -- */

.foot {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hairline);
}

.contact,
.social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--soft);
}

.contact a:hover,
.contact a:focus-visible { color: var(--ochre); }

.social {
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.social a {
    border-bottom: 1px solid rgba(201, 169, 138, 0.45);
    padding-bottom: 2px;
    color: var(--clay);
}

.social a:hover,
.social a:focus-visible {
    color: var(--ochre);
    border-color: var(--ochre);
}

.colophon {
    margin-top: 1.75rem;
}

.fine {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(244, 238, 227, 0.78);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 40rem) {
    .page { padding: 2.5rem 0; }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .unit { padding: 1.25rem 0.5rem 1rem; }

    /* The full lockup is long: let the tracking breathe less so it never wraps. */
    .eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; }

    .label { font-size: 0.58rem; letter-spacing: 0.14em; }

    .backdrop { background-position: 50% 30%; }

    .contact { flex-direction: column; gap: 0.4rem; }
}

/* Short landscape phones: keep everything reachable without a cramped hero. */
@media (max-height: 34rem) {
    .display { margin-top: 1.5rem; }
    .countdown { margin-top: 1.75rem; }
    .foot { margin-top: 2.25rem; padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}
