@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg-0: #150c1a;
    --bg-1: #1f1329;
    --ink: #f7f1f5;
    --muted: #c9b9cd;
    --muted-strong: #ddccdf;
    --rose: #e3a8a0;
    --gold: #d9a866;
    --wine: #a5486f;
    --teal: #4f8b8a;
    --teal-bright: #7fc4c1;
    --line: rgba(247, 241, 245, 0.14);
    --card-bg: rgba(247, 241, 245, 0.06);
    --card-bg-hover: rgba(247, 241, 245, 0.1);
}

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

html { scroll-behavior: smooth; }

body, html {
    margin: 0; padding: 0;
    background: var(--bg-0);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Background layers ─────────────────────────────────────────── */

.bg-base {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(165, 72, 111, 0.28), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(79, 139, 138, 0.18), transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(217, 168, 102, 0.10), transparent 65%),
        var(--bg-0);
}

#strand-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    display: block;
}

/* ── Nav ────────────────────────────────────────────────────────── */

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    background: rgba(21, 12, 26, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.wordmark span {
    color: var(--rose);
    font-style: italic;
    font-weight: 500;
}

.nav-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--gold));
    color: #1a0f1f;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(217, 168, 102, 0.35);
    outline: none;
}

@media (max-width: 650px) {
    nav { padding: 16px 5vw; }
    .wordmark { font-size: 1.1rem; }
    .nav-link { padding: 8px 16px; font-size: 0.8rem; }
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 2;
    padding: 12vh 6vw 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.hero h1 em {
    font-style: italic;
    color: var(--rose);
}

.hero p.lede {
    margin-top: 28px;
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted-strong);
}

.hero-meta {
    margin-top: 34px;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

@media (max-width: 480px) {
    .hero { padding: 10vh 5vw 7vh; }
    .hero p.lede { font-size: 1rem; }
}

/* ── Cards ──────────────────────────────────────────────────────── */

.cards-section {
    position: relative;
    z-index: 2;
    padding: 4vh 6vw 10vh;
    max-width: 1180px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 46px;
    color: var(--ink);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 38px 35px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
.card:hover {
    transform: translateY(-6px);
    background: var(--card-bg-hover);
    border-color: rgba(247, 241, 245, 0.28);
}

.card .mark {
    width: 38px;
    height: 3px;
    border-radius: 3px;
    margin-bottom: 22px;
}
.card:nth-child(1) .mark { background: var(--rose); }
.card:nth-child(2) .mark { background: var(--gold); }
.card:nth-child(3) .mark { background: var(--teal); }
.card:nth-child(4) .mark { background: var(--wine); }

.card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.22rem;
    margin-bottom: 14px;
    color: var(--ink);
}

.card p {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--muted-strong);
}

@media (max-width: 480px) {
    .cards-section { padding: 2vh 5vw 7vh; }
    .card { padding: 30px 26px; }
}

/* ── CTA / Signal line ─────────────────────────────────────────── */

.cta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10vh 6vw 14vh;
    max-width: 640px;
    margin: 0 auto;
}

.signal-status {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--teal-bright);
    font-weight: 700;
    margin-bottom: 26px;
}

.signal-cta {
    display: inline-block;
    padding: 18px 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--gold));
    color: #1a0f1f;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 14px 40px rgba(217, 168, 102, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 48px rgba(217, 168, 102, 0.4);
    outline: none;
}

.signal-sub {
    margin-top: 22px;
    font-size: 0.86rem;
    color: var(--muted);
}

@media (max-width: 480px) {
    .cta { padding: 7vh 5vw 10vh; }
    .signal-cta { padding: 16px 32px; font-size: 0.96rem; width: 100%; }
}

/* ── Footer (markup injected via SSI, styling only) ──────────────── */

footer {
    position: relative;
    z-index: 10;
    background: var(--bg-0);
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 30px;
    padding-bottom: 40px;
    font-size: 0.85rem;
}
footer div {
    color: var(--muted);
}
footer div:first-child {
    margin-bottom: 6px;
    color: var(--muted-strong);
}

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