/* ==============================================
   DESIGN TOKENS
   ============================================== */

:root {
    /* Colors */
    --color-red:          #e8442a;
    --color-red-dark:     #d13d25;
    --color-red-bg:       rgba(232, 68, 42, 0.1);
    --color-dark:         #1a1a2e;
    --color-dark-mid:     #2d2d4e;
    --color-bg:           #f0eeeb;
    --color-dot:          #b0aca6;
    --color-card:         #fffef9;
    --color-text:         #1a1a2e;
    --color-muted:        #6b6b6b;
    --color-subtle:       #55534e;
    --color-green:        #4ade80;
    --color-border:       rgba(0, 0, 0, 0.08);
    --color-border-dim:   rgba(0, 0, 0, 0.07);
    --color-border-light: rgba(0, 0, 0, 0.06);
    --color-shadow:       rgba(0, 0, 0, 0.07);

    /* Shared tokens also used by luma.css */
    --color-callout-bg:   #f5f3ef;
    --color-callout-text: #444444;
    --color-text-body:    #4a4a5a;
    --color-text-muted2:  #888888;
    --color-text-meta:    #777777;

    /* Typography */
    --font-body:  'Outfit', sans-serif;
    --font-serif: 'DM Serif Display', 'Outfit', serif;
    --font-hand:  'Caveat', cursive;

    /* Type scale */
    --fs-xs:   11px;  /* tags, badges, labels, eyebrows */
    --fs-base: 16px;  /* body text, prose, buttons, inputs, nav links */
    --fs-lg:   18px;  /* nav name, arrows, signoffs */
    --fs-xl:   20px;  /* featured card titles */

    /* Layout */
    --max-width: 1160px;
}

/* ==============================================
   RESET & BASE
   ============================================== */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: radial-gradient(circle, var(--color-dot) 1px, transparent 1px);
    background-size: 24px 24px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==============================================
   SHARED UTILITIES
   ============================================== */

/* Centered content container used by all sections */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Small uppercase label above section headings */
.section-eyebrow {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 0.6rem;
}

/* Large serif section title */
.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-heading em {
    font-style: italic;
    color: var(--color-red);
}

/* Subtitle / sub-description below heading */
.section-subtitle {
    font-size: var(--fs-base);
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 480px;
}

/* ==============================================
   STICKY FLOATING NAVIGATION BAR
   ============================================== */

/* Outer wrapper: sticky positioning, full width */
.nav-wrapper {
    position: sticky;
    top: 20px;
    z-index: 1000;
    max-width: var(--max-width);
    width: calc(100% - 4rem);
    margin: 20px auto 0;
    pointer-events: none;
}

/* The pill itself */
.nav-pill {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    background: var(--color-dark);
    border-radius: 100px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.07);
    pointer-events: all;
    box-sizing: border-box;
}

/* Left: name */
.nav-name {
    font-family: var(--font-hand);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Right group: links + CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Links group */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Individual links */
.nav-link {
    font-size: var(--fs-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 100px;
    padding: 7px 12px;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
}

/* Active state (set by IntersectionObserver) */
.nav-link.is-active {
    color: #ffffff;
}

/* CTA button */
.nav-cta {
    background: var(--color-red);
    color: #ffffff;
    border-radius: 100px;
    padding: 9px 20px;
    font-size: var(--fs-base);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.nav-cta:hover {
    background: var(--color-red-dark);
    transform: translateY(-1px);
}

/* ---- Responsive: hide links on small screens ---- */
@media (max-width: 640px) {
    .nav-wrapper {
        width: calc(100% - 2rem);
    }

    .nav-links,
    .nav-divider {
        display: none;
    }

    .nav-pill {
        padding: 6px 6px 6px 16px;
    }
}

/* ==============================================
   SITE FOOTER
   ============================================== */

.site-footer {
    background-color: var(--color-dark);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 48px;
    text-align: center;
}

.site-footer-text {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.25);
}
