/* ---------------------------------------------------------------------
   Tokens
--------------------------------------------------------------------- */
:root {
    --ink: #0A0E14;
    --paper: #F4EFE4;
    --paper-dim: rgba(244, 239, 228, 0.72);
    --brass: #C9A24B;
    --teal: #4E7C77;
    --line: rgba(244, 239, 228, 0.16);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

a { color: inherit; }

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

/* ---------------------------------------------------------------------
   Nav
--------------------------------------------------------------------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(20px, 5vw, 56px);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.site-nav__mark {
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--paper);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}

.site-nav nav a {
    text-decoration: none;
    margin-left: 28px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.site-nav nav a:hover { opacity: 1; }

/* ---------------------------------------------------------------------
   Hero / home page
--------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,14,20,0.35) 0%, rgba(10,14,20,0.25) 45%, rgba(10,14,20,0.85) 100%);
}

.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 clamp(20px, 6vw, 80px);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 18px;
}

.hero__copy h1 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(48px, 9vw, 108px);
    line-height: 0.98;
    margin: 0 0 20px;
}

.hero__tagline {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--paper-dim);
    max-width: 46ch;
    margin: 0;
}

/* Signup - lower-third caption bar */
.signup {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: clamp(28px, 6vh, 56px);
    transform: translateX(-50%);
    width: min(560px, 92vw);
    text-align: center;
}

#signup-form {
    display: flex;
    align-items: stretch;
    background: rgba(244, 239, 228, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px;
    gap: 6px;
}

#signup-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 18px;
}

#signup-form input[type="email"]::placeholder {
    color: rgba(244, 239, 228, 0.45);
}

#signup-form button {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--brass);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 0 24px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
#signup-form button:hover { background: #ddb861; }
#signup-form button:active { transform: scale(0.97); }
#signup-form button:disabled { opacity: 0.6; cursor: default; }

.hp-field { display: none !important; }

.signup__note {
    margin: 14px 0 0;
    font-size: 12px;
    color: rgba(244, 239, 228, 0.55);
}

.signup__message {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
    color: var(--brass);
}
.signup__message.is-error { color: #E38B7A; }

/* ---------------------------------------------------------------------
   Plain content pages (newsletter explanation, confirm result)
--------------------------------------------------------------------- */
.plain-page {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(140px, 20vh, 200px) clamp(20px, 6vw, 24px) 120px;
}

.plain-page--centered {
    text-align: center;
}

.plain-page h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05;
    margin: 0 0 32px;
}

.plain-page__body p,
.plain-page__body ul {
    font-size: 17px;
    line-height: 1.7;
    color: var(--paper-dim);
}

.plain-page__body h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    margin: 40px 0 12px;
    color: var(--paper);
}

.plain-page__body li { margin-bottom: 8px; }

.cta {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    text-decoration: none;
    border-bottom: 1px solid var(--brass);
    padding-bottom: 2px;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(244, 239, 228, 0.4);
}

.page-home .site-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px;
}

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */
@media (max-width: 640px) {
    .site-nav nav a { margin-left: 16px; }
    #signup-form { flex-direction: column; border-radius: 20px; }
    #signup-form button { padding: 12px; border-radius: 14px; margin-top: 2px; }
    .signup { bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html, body { scroll-behavior: auto; }
}
