:root {
    --navy: #021E34;
    --navy-soft: #0a1929;
    --navy-panel: #0b1d2f;
    --slate: #1a3352;
    --text: #c8d1de;
    --text-muted: #7589a5;
    --text-dim: #3a4f6e;
    --cream: #f0ece6;
    --cream-soft: #d9d4cc;
    --gold: #d4a843;
    --gold-light: #e8c46a;
    --red: #ef6b6b;
    --font-body: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--navy);
    background-image:
        radial-gradient(ellipse at top, rgba(212, 168, 67, 0.07), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(26, 51, 82, 0.45), transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.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;
}

.letter {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 28px 60px;
}

/* ----- Masthead ----- */
.masthead {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 28px;
    position: relative;
}

.masthead::after {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    background: var(--gold);
    margin: 28px auto 0;
}

.kicker {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0 0 10px;
    color: var(--cream);
    padding-left: 0.18em;
}

.dateline {
    margin: 0;
    color: var(--gold);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

/* ----- Hero ----- */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

article h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin: 0 auto 36px;
    color: var(--cream);
    max-width: 640px;
}

article h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
}

.hero .lead {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-family: var(--font-body);
    font-size: 21px;
    color: var(--cream-soft);
    margin: 0 0 18px;
    line-height: 1.55;
    font-weight: 300;
}

.lead:last-of-type {
    margin-bottom: 36px;
}

/* ----- Ornament ----- */
.ornament {
    text-align: center;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 1em;
    margin: 56px 0;
    opacity: 0.7;
}

/* ----- Block sections ----- */
.block {
    margin: 0 0 72px;
}

.block-num {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: var(--gold);
    margin: 0 0 16px;
    text-transform: uppercase;
    position: relative;
    padding-left: 32px;
}

.block-num::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 1px;
    background: var(--gold);
}

article h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 700;
    margin: 0 0 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--cream);
}

article h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
}

article p {
    margin: 0 0 22px;
    color: var(--text);
    font-weight: 300;
}

article p strong {
    font-weight: 600;
    color: var(--gold);
}

article p em {
    font-style: italic;
    color: var(--cream-soft);
}

.closing-note {
    margin-top: 32px !important;
    padding: 22px 24px;
    border-left: 2px solid var(--gold);
    color: var(--cream-soft);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    background: rgba(212, 168, 67, 0.04);
}

/* ----- Goals (numbered list) ----- */
.goals {
    list-style: none;
    counter-reset: goal;
    padding: 0;
    margin: 0 0 8px;
    border-top: 1px solid rgba(212, 168, 67, 0.18);
}

.goals li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.18);
    color: var(--text);
    font-weight: 300;
}

.goal-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    font-size: 22px;
    line-height: 1.5;
    flex-shrink: 0;
    min-width: 32px;
}

.goal-text {
    flex: 1;
    line-height: 1.65;
}

/* ----- Form panel ----- */
.form-panel {
    margin: 36px 0 8px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-panel--mid {
    margin: 32px 0 56px;
}

.form-panel--final {
    margin-top: 36px;
}

.form-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px;
    text-align: center;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.email-form input[type="email"] {
    font-family: var(--font-body);
    font-size: 17px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--cream);
    border: 1px solid rgba(212, 168, 67, 0.38);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
    font-weight: 400;
}

.email-form input[type="email"]::placeholder {
    color: var(--text-dim);
}

.email-form input[type="email"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.email-form input[type="email"].error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 107, 107, 0.18);
}

.email-form button {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 17px 28px;
    background: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.email-form button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.28);
}

.email-form button:active {
    transform: translateY(1px);
}

.email-form button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 14px 0 0;
    text-align: center;
    letter-spacing: 0.06em;
    font-weight: 400;
}

/* ----- Form note links ----- */
.form-note a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 67, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.form-note a:hover {
    text-decoration-color: var(--gold);
}

/* ----- Legal page ----- */
.legal {
    max-width: 640px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    color: var(--cream);
    text-align: center;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--cream);
    letter-spacing: -0.005em;
}

.legal p {
    margin: 0 0 18px;
    color: var(--text);
    font-weight: 300;
}

.legal p strong,
.legal li strong {
    color: var(--cream);
    font-weight: 600;
}

.legal a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 67, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.legal a:hover {
    text-decoration-color: var(--gold);
    color: var(--gold-light);
}

.legal .updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.legal-data {
    margin: 0 0 18px;
    padding: 22px 24px;
    background: rgba(212, 168, 67, 0.04);
    border-left: 2px solid var(--gold);
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 8px 20px;
    font-size: 16px;
}

.legal-data dt {
    color: var(--gold);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    align-self: center;
}

.legal-data dd {
    margin: 0;
    color: var(--text);
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.legal-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: var(--text);
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 12px;
    height: 1px;
    background: var(--gold);
}

.back-link {
    margin-top: 56px !important;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.kicker-link {
    color: inherit;
    text-decoration: none;
}

.kicker-link:hover {
    color: var(--gold-light);
}

.footer-links {
    margin: 8px 0 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(117, 137, 165, 0.25);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 520px) {
    .legal h2 {
        font-size: 20px;
        margin-top: 40px;
    }
    .legal-data {
        grid-template-columns: 1fr;
        padding: 18px 20px;
    }
    .legal-data dt {
        margin-top: 6px;
    }
}

/* ----- Colophon ----- */
.colophon {
    margin-top: 96px;
    padding-top: 28px;
    border-top: 1px solid rgba(212, 168, 67, 0.18);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.colophon p {
    margin: 4px 0;
}

.disclaimer {
    font-size: 12px;
    font-style: italic;
    color: var(--text-dim);
}

/* ----- Toast ----- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy-soft);
    color: var(--cream);
    border: 1px solid var(--gold);
    padding: 14px 22px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
    z-index: 50;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: var(--red);
    color: var(--red);
}

/* ----- Responsive ----- */
@media (min-width: 600px) {
    .email-form {
        flex-direction: row;
    }
    .email-form input[type="email"] {
        flex: 1;
    }
    .email-form button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 18px;
    }
    .letter {
        padding: 56px 22px 48px;
    }
    .masthead {
        margin-bottom: 48px;
    }
    .hero {
        margin-bottom: 48px;
    }
    .lead {
        font-size: 19px;
    }
    .block {
        margin-bottom: 56px;
    }
    .ornament {
        margin: 40px 0;
    }
    .form-panel {
        padding: 0;
    }
    .goals li {
        gap: 14px;
        padding: 18px 0;
    }
    .goal-num {
        font-size: 19px;
        min-width: 26px;
    }
    .closing-note {
        padding: 18px 20px;
        font-size: 17px;
    }
}
