/*
 * The closing page (index.html). The old homepage behind the card is the static copy in /site.
 *
 * Cardo and PT Sans as the page loaded them from Google Fonts (regular, bold and italic; latin and
 * latin-ext), now self-hosted in /fonts.
 */

/* Cardo 400 italic, latin-ext */
@font-face {
    font-family: 'Cardo';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/cardo-400-italic-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cardo 400 italic, latin */
@font-face {
    font-family: 'Cardo';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/cardo-400-italic-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cardo 400, latin-ext */
@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/cardo-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cardo 400, latin */
@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/cardo-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cardo 700, latin-ext */
@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/cardo-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cardo 700, latin */
@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/cardo-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans 400 italic, latin-ext */
@font-face {
    font-family: 'PT Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/pt-sans-400-italic-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* PT Sans 400 italic, latin */
@font-face {
    font-family: 'PT Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/pt-sans-400-italic-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans 400, latin-ext */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/pt-sans-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* PT Sans 400, latin */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/pt-sans-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans 700, latin-ext */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/pt-sans-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* PT Sans 700, latin */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/pt-sans-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tan: #af967d;
    --tan-soft: #d3c3b4;
    --ink: #211515;
    --white: #fff;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html, body { margin: 0; min-height: 100%; }

body {
    background: var(--white);
    color: var(--ink);
    font-family: 'PT Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background: the old homepage itself (static copy), rendered at the visitor's screen size */
.backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.backdrop iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* One overlay blurs and darkens whatever is behind it; fading it in = the site going out of focus */
.backdrop .veil {
    position: absolute;
    inset: 0;
    background: rgba(33, 21, 21, .38);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

/* Card */
.stage {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 16px;
}

.card {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: auto;
    padding: 48px 56px 40px;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 30px 80px rgba(33, 21, 21, .35), 0 2px 8px rgba(33, 21, 21, .12);
    text-align: center;
}

.card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--tan-soft);
    pointer-events: none;
}

.logo {
    margin: 0 0 36px;
}

.logo img {
    display: block;
    width: 200px;
    height: auto;
    margin: 0 auto;
}

/* NL | EN side by side; subgrid keeps heading and each paragraph on the same line in both columns */
.messages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
}

.message {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    padding: 0 40px;
}

.message + .message {
    border-left: 1px solid var(--tan-soft);
}

.message h2 {
    align-self: end;
    margin: 0;
    font-family: 'Cardo', serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: .01em;
    color: var(--ink);
    text-wrap: balance;
}

.message h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 1px;
    margin: 20px auto;
    background: var(--tan);
}

/* Body text: PT Sans like the old site, 30px line height; desktop sizes 1px under the site's */
.message p {
    margin: 0 0 10px;
    font-family: 'PT Sans', sans-serif;
    font-style: italic;
    font-size: 17.5px;
    line-height: 30px;
    text-wrap: pretty;
}

.message p:last-child { margin-bottom: 0; }

/* Follow us */
.follow {
    margin-top: 36px;
}

.follow-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tan);
}

.follow-label::before,
.follow-label::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--tan-soft);
}

.follow-label .dot { margin: 0 .35em; }

.social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tan);
    border-radius: 2px;
    color: var(--tan);
    transition: background-color .2s ease, color .2s ease;
}

.social a:hover,
.social a:focus-visible {
    background: var(--tan);
    color: var(--white);
}

.social a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Entrance: starts once the old site has loaded behind the card (or after 2.5s) */
.js .veil,
.js .card,
.js .follow {
    opacity: 0;
}

.js .card { transform: translateY(14px); }

.is-ready .veil { animation: fade-in 1.2s ease .2s forwards; }

.is-ready .card { animation: rise .9s var(--ease-out) .8s forwards; }

.is-ready .follow { animation: fade-in .8s ease 1.5s forwards; }

@keyframes fade-in {
    to { opacity: 1; }
}

@keyframes rise {
    to { opacity: 1; transform: none; }
}

/* Short laptop screens: tighten so the card still fits */
@media (min-width: 768px) and (max-height: 820px) {
    .stage { padding-block: 16px; }

    .card { padding-block: 36px 32px; }

    .logo { margin-bottom: 28px; }

    .logo img { width: 180px; }

    .message h2::after { margin: 16px auto; }

    .follow { margin-top: 28px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .message p { font-size: 16px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .card { padding-inline: 36px; }

    .logo img { width: 180px; }

    .message { padding: 0 28px; }

    .message h2 { font-size: 22px; }

    .message p { font-size: 16px; }
}

@media (max-width: 767px) {
    .stage { padding: 24px 16px; }

    .card { padding: 40px 28px 32px; }

    .card::before { inset: 8px; }

    .logo { margin-bottom: 32px; }

    .logo img { width: 170px; }

    .messages { display: block; }

    .message {
        display: block;
        padding: 0;
    }

    .message + .message {
        border-left: 0;
        border-top: 1px solid var(--tan-soft);
        margin-top: 32px;
        padding-top: 32px;
    }

    .message h2 { font-size: 22px; }

    .message h2::after { margin: 18px auto; }

    .message p {
        font-size: 16px;
        line-height: 26px;
    }

    .follow { margin-top: 32px; }

    .follow-label { gap: 12px; letter-spacing: 2.5px; }

    .follow-label::before,
    .follow-label::after { width: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .js .veil,
    .js .card,
    .js .follow {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
