/*
 * Audacia — Global Design System
 * White/editorial theme. Syne + DM Sans + Instrument Serif.
 * Every page links this file; page-specific overrides go inline.
 */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── DESIGN TOKENS ── */
:root {
    /* Backgrounds */
    --bg: #FDFCFA;
    --bg-warm: #F5F2ED;
    --bg-card: #FFFFFF;
    --bg-elevated: #FAF8F5;
    --bg-dark-accent: #1A1A1A;

    /* Text */
    --text: #1A1A1A;
    --text-secondary: #4A4540;
    --text-muted: #7A756F;
    --text-dim: #A09A94;
    --text-on-dark: #F5F0EB;
    --text-on-accent: #1A1A1A;

    /* Brand accent — gold tuned for white backgrounds */
    --accent: #B8943F;
    --accent-hover: #A07E2E;
    --accent-light: #C9A96E;
    --accent-pale: #E8D5B0;
    --accent-wash: rgba(184, 148, 63, 0.08);
    --accent-border: rgba(184, 148, 63, 0.25);

    /* Semantic */
    --coral: #C4725A;
    --success: #5A8A6A;

    /* Borders & lines */
    --border: rgba(26, 26, 26, 0.10);
    --border-strong: rgba(26, 26, 26, 0.18);
    --line: rgba(26, 26, 26, 0.06);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.10);

    /* Typography scale — bumped for editorial weight */
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-serif: 'Instrument Serif', serif;

    --text-xs: 14px;
    --text-sm: 16px;
    --text-base: 20px;
    --text-lg: 24px;
    --text-xl: 30px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 128px;

    /* Layout */
    --max-width: 1240px;
    --content-width: 780px;
}

/* ── BASE ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAVIGATION ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.site-nav .nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

.site-nav .nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.site-nav .nav-links a {
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
    color: var(--accent);
}

.site-nav .nav-cta {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
}

.site-nav .nav-cta:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* ── SECTION SHARED ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--accent);
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 18px 48px;
    background: var(--text);
    color: var(--bg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--text-on-accent);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 17px 36px;
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-wash);
}

.btn-accent {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 18px 48px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ── EMAIL / WAITLIST FORM ── */
.email-form {
    display: flex;
    max-width: 520px;
    gap: 0;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-strong);
    border-right: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s ease;
}

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

.email-form input[type="email"]:focus {
    border-color: var(--accent);
}

.email-form button {
    padding: 18px 32px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.email-form button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
}

.email-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── FOOTER ── */
.site-footer {
    padding: 64px 48px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}

.site-footer .footer-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

.site-footer .footer-links {
    display: flex;
    gap: 28px;
}

.site-footer .footer-links a {
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.site-footer .footer-links a:hover {
    color: var(--accent);
}

.site-footer .footer-copy {
    font-size: 14px;
    color: var(--text-dim);
}

/* ── ARTICLE LAYOUT (blogs) ── */
.article-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.article-category {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.article-wrapper h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.article-wrapper h1 em {
    color: var(--accent);
    font-style: normal;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-meta-author {
    font-size: 15px;
    color: var(--text-muted);
}

.article-meta-author strong {
    color: var(--accent);
    font-weight: 600;
}

.article-meta-divider {
    width: 1px;
    height: 16px;
    background: var(--border-strong);
}

.article-meta-date {
    font-size: 14px;
    color: var(--text-muted);
}

.article-body {
    font-size: 22px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.article-body p {
    margin-bottom: 28px;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    margin-top: 56px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

.article-body em {
    color: var(--accent);
    font-style: italic;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.article-body a:hover {
    text-decoration-color: var(--accent);
}

.article-pull-quote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 32px;
    margin: 52px 0;
}

.article-pull-quote p {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin: 0;
}

.article-cta-block {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: 48px;
    margin: 56px 0;
    text-align: center;
}

.article-cta-block h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.article-cta-block p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-cta-btn {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    padding: 16px 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-cta-btn:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* ── INLINE WAITLIST CTA (mid-article email form) ── */
.article-waitlist-cta {
    background: var(--bg-dark-accent);
    color: var(--text-on-dark);
    padding: 44px 48px;
    margin: 56px 0;
    text-align: center;
}

.article-waitlist-cta .awc-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 14px;
    display: block;
}

.article-waitlist-cta h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-waitlist-cta p {
    font-size: 16px;
    color: rgba(245, 240, 235, 0.65);
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-waitlist-cta .awc-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
}

.article-waitlist-cta .awc-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--font-body);
    border: none;
    background: rgba(255,255,255,0.10);
    color: var(--text-on-dark);
    outline: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-right: none;
}

.article-waitlist-cta .awc-input::placeholder {
    color: rgba(245, 240, 235, 0.40);
}

.article-waitlist-cta .awc-btn {
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-display);
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.article-waitlist-cta .awc-btn:hover {
    background: var(--accent-hover);
}

.article-waitlist-cta .awc-msg {
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}

.article-waitlist-cta .awc-msg.success {
    color: #8FC99A;
}

.article-waitlist-cta .awc-msg.error {
    color: #E8856A;
}

/* ── STICKY BOTTOM BANNER ── */
.sticky-waitlist-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-dark-accent);
    color: var(--text-on-dark);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(184, 148, 63, 0.30);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sticky-waitlist-bar.visible {
    transform: translateY(0);
}

.sticky-waitlist-bar .swb-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(245, 240, 235, 0.90);
    letter-spacing: 0.2px;
}

.sticky-waitlist-bar .swb-text strong {
    color: var(--accent-light);
}

.sticky-waitlist-bar .swb-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-display);
    white-space: nowrap;
    transition: background 0.2s;
}

.sticky-waitlist-bar .swb-cta:hover {
    background: var(--accent-hover);
}

.sticky-waitlist-bar .swb-dismiss {
    background: none;
    border: none;
    color: rgba(245, 240, 235, 0.40);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.sticky-waitlist-bar .swb-dismiss:hover {
    color: rgba(245, 240, 235, 0.80);
}

@media (max-width: 768px) {
    .article-waitlist-cta {
        padding: 32px 20px;
    }

    .article-waitlist-cta .awc-form {
        flex-direction: column;
    }

    .article-waitlist-cta .awc-input {
        border-right: 1px solid rgba(255,255,255,0.18);
        border-bottom: none;
    }

    .article-waitlist-cta .awc-btn {
        padding: 14px;
    }

    .sticky-waitlist-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .sticky-waitlist-bar .swb-text {
        font-size: 13px;
        flex: 1;
    }
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.article-tag {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-weight: 500;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    transition: color 0.2s;
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .site-nav {
        padding: 0 20px;
        height: 64px;
    }

    .site-nav .nav-links {
        display: none;
    }

    .site-nav .nav-cta {
        padding: 10px 20px;
        font-size: 13px;
    }

    .email-form {
        flex-direction: column;
        gap: 12px;
    }

    .email-form input[type="email"] {
        border-right: 1.5px solid var(--border-strong);
    }

    .email-form button {
        padding: 16px;
    }

    .site-footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 48px 24px;
    }

    .site-footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-wrapper {
        padding: 100px 20px 64px;
    }

    .article-body {
        font-size: 18px;
    }

    .article-body h2 {
        font-size: 28px;
    }

    .article-pull-quote p {
        font-size: 22px;
    }

    .article-cta-block {
        padding: 32px 20px;
    }

    /* Article inline waitlist CTA — mobile */
    .article-waitlist-cta {
        padding: 32px 24px;
    }

    .awc-form {
        flex-direction: column;
        gap: 10px;
    }

    .awc-input {
        border-right: 1.5px solid #444;
        min-width: unset;
    }

    /* Sticky bar — mobile */
    .sticky-waitlist-bar {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
        text-align: center;
    }
}

/* ── ARTICLE INLINE WAITLIST CTA ── */

.article-waitlist-cta {
    background: #1A1A1A;
    color: #fff;
    border-radius: 4px;
    padding: 40px 48px;
    margin: 48px 0;
    border-left: 4px solid #B8943F;
}

.awc-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #B8943F;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
}

.article-waitlist-cta h3 {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.article-waitlist-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
    line-height: 1.6;
}

.awc-form {
    display: flex;
    gap: 0;
    max-width: 460px;
}

.awc-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border: 1.5px solid #444;
    border-right: none;
    border-radius: 3px 0 0 3px;
    background: #111;
    color: #fff;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    min-width: 0;
}

.awc-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.awc-input:focus {
    border-color: #B8943F;
}

.awc-btn {
    padding: 14px 24px;
    background: #B8943F;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.awc-btn:hover:not(:disabled) {
    background: #a07c30;
}

.awc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.awc-msg {
    margin-top: 10px;
    font-size: 14px;
    min-height: 18px;
    font-family: 'DM Sans', sans-serif;
}

.awc-msg.success {
    color: #5cba7d;
}

.awc-msg.error {
    color: #e06060;
}

/* ── STICKY BOTTOM WAITLIST BAR ── */

.sticky-waitlist-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #1A1A1A;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 32px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    border-top: 2px solid #B8943F;
}

.sticky-waitlist-bar.visible {
    transform: translateY(0);
}

.swb-text {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.swb-cta {
    padding: 10px 22px;
    background: #B8943F;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.swb-cta:hover {
    background: #a07c30;
}

.swb-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.swb-dismiss:hover {
    color: rgba(255,255,255,0.8);
}
