/* QUISI V1 — intentionally restrained. */

:root {
    --ink: #161616;
    --muted: #777773;
    --hairline: #8c8c87;
    --paper: #ffffff;
    --question-font: Georgia, "Times New Roman", serif;
    --body-font: Inter, Arial, sans-serif;
    --logo-font: "Castoro Titling", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    font-family: var(--body-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.page-shell {
    width: min(100% - 36px, 860px);
    margin: 0 auto;
    padding: clamp(42px, 7vw, 86px) 0 34px;
}

.masthead {
    text-align: center;
    margin-bottom: clamp(38px, 6vw, 68px);
}

.brand {
    display: inline-block;
    color: var(--ink);
    font-family: var(--logo-font);
    font-size: clamp(4.25rem, 11vw, 7.25rem);
    font-weight: 400;
    line-height: .82;
    letter-spacing: .045em;
    text-decoration: none;
    transform: scaleY(1.08);
    transform-origin: center;
    white-space: nowrap;
}

.quisi-stage {
    width: min(100%, 650px);
    margin: 0 auto;
}

.quisi-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 4px solid var(--ink);
    background: var(--paper);
    display: grid;
    place-items: center;
    padding: clamp(26px, 6vw, 58px);
}

.quisi-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--hairline);
    pointer-events: none;
}

.quisi-card__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
}

.quisi-card h1 {
    margin: 0 0 clamp(24px, 4vw, 38px);
    font-family: var(--question-font);
    font-size: clamp(1.75rem, 5.3vw, 3.05rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.018em;
}

.quisi-card p {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: .002em;
    color: #2d2d2b;
}

.date-nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--muted);
}

.date-nav time {
    justify-self: center;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .19em;
    text-transform: uppercase;
    white-space: nowrap;
}

.date-nav__slot {
    display: grid;
    place-items: center;
    min-height: 44px;
}

.date-nav a,
.date-nav__disabled {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    line-height: 1;
    text-decoration: none;
}

.date-nav a {
    color: var(--ink);
    transition: transform 140ms ease, opacity 140ms ease;
}

.date-nav a:hover {
    transform: translateX(-2px);
}

.date-nav__slot--right a:hover {
    transform: translateX(2px);
}

.date-nav__disabled {
    color: #d4d4d0;
}

.subscribe {
    width: min(100%, 650px);
    margin: clamp(58px, 9vw, 96px) auto 0;
    text-align: center;
    padding-top: 36px;
    border-top: 1px solid #deded9;
}

.subscribe h2 {
    margin: 0;
    font-family: var(--question-font);
    font-size: clamp(1.65rem, 3.6vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -.012em;
}

.subscribe > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

.subscribe__form {
    width: min(100%, 470px);
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--ink);
}

.subscribe__form input[type="email"] {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    padding: 13px 4px 12px;
}

.subscribe__form input[type="email"]::placeholder {
    color: #aaa9a4;
}

.subscribe__form button {
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 13px 4px 12px 18px;
    font: 600 .72rem/1 var(--body-font);
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
}

.subscribe__message {
    margin-top: 24px !important;
    color: var(--ink) !important;
    font-weight: 500;
}

.subscribe__error {
    margin-top: 12px !important;
    color: #7d2525 !important;
}

.footer {
    width: min(100%, 650px);
    margin: 72px auto 0;
    padding-top: 20px;
    border-top: 1px solid #efefeb;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #9a9994;
    font-size: .66rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 24px, 860px);
        padding-top: 38px;
    }

    .masthead {
        margin-bottom: 36px;
    }

    .brand {
        font-size: clamp(4rem, 22vw, 5.4rem);
        letter-spacing: .035em;
    }

    .quisi-card {
        padding: 34px;
        border-width: 3px;
    }

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

    .quisi-card h1 {
        font-size: clamp(1.6rem, 7.5vw, 2.15rem);
        margin-bottom: 22px;
    }

    .quisi-card p {
        font-size: clamp(.94rem, 3.9vw, 1.05rem);
        line-height: 1.6;
    }

    .date-nav {
        margin-top: 14px;
    }

    .date-nav time {
        font-size: .66rem;
        letter-spacing: .13em;
    }

    .subscribe {
        margin-top: 58px;
    }

    .footer {
        margin-top: 58px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 390px) {
    .quisi-card {
        aspect-ratio: auto;
        min-height: calc(100vw - 24px);
        padding: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
