/* Hallmark · shared.css — system tokens + components
 * genre: modern-minimal · theme: Hum · anchor hue: 258° dark-blue
 */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
    /* ── Color — Hum palette ── */
    --color-paper:       oklch(99%   0.003 258);
    --color-paper-2:     oklch(96%   0.004 258);
    --color-paper-3:     oklch(93%   0.006 258);
    --color-ink:         oklch(20%   0.012 258);
    --color-ink-2:       oklch(44%   0.010 258);
    --color-ink-3:       oklch(62%   0.007 258);
    --color-rule:        oklch(89%   0.005 258);
    --color-rule-2:      oklch(83%   0.007 258);
    --color-accent:      oklch(40%   0.24  258);
    --color-accent-dim:  oklch(33%   0.22  258);
    --color-accent-bg:   oklch(96%   0.008 258);
    --color-accent-ink:  oklch(98.5% 0.003 258);
    --color-accent-2:    oklch(66%   0.18  235);
    --color-accent-3:    oklch(68%   0.24   18);
    --color-focus:       oklch(40%   0.24  258);
    --color-positive:    oklch(52%   0.16  145);
    --color-negative:    oklch(68%   0.24   18);

    /* ── Typography ── */
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body:    "Outfit", system-ui, sans-serif;

    /* ── Spacing — 4pt scale ── */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs:  0.75rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 4.5rem;
    --space-3xl: 7rem;

    /* ── Type scale ── */
    --text-xs:        0.8125rem;
    --text-sm:        0.9375rem;
    --text-base:      1rem;
    --text-md:        1.25rem;
    --text-lg:        1.5625rem;
    --text-xl:        1.9531rem;
    --text-2xl:       2.4414rem;
    --text-3xl:       3.0518rem;
    --text-display:   clamp(2.75rem, 5vw + 1rem, 5.25rem);
    --text-display-s: clamp(1.75rem, 3vw + 0.5rem, 3rem);

    /* ── Motion ── */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:     cubic-bezier(0.7,  0, 0.84, 0);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-micro:   120ms;
    --dur-short:   220ms;
    --dur-long:    420ms;

    /* ── Radius ── */
    --radius-sm:   4px;
    --radius:      8px;
    --radius-lg:   14px;
    --radius-pill: 100px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--color-paper);
    color: var(--color-ink);
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    font-size: 1.0625rem;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Utilities ── */
.tnum { font-variant-numeric: tabular-nums; }

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-display-s);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.018em;
    color: var(--color-ink);
    font-style: normal;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--color-ink-2);
    line-height: 1.75;
    max-width: 55ch;
}

/* ── Keyword highlight — one accent word per heading ── */
.hero-title span,
.page-hero-title span,
.section-title span,
.cta-title span,
.faq-title span {
    color: var(--color-accent);
}

/* ── Emoji icon — bare glyph, no box/background ── */
.emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-style: normal;
    flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-base);
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition:
        background-color var(--dur-micro) var(--ease-out),
        color var(--dur-micro) var(--ease-out),
        border-color var(--dur-micro) var(--ease-out),
        transform var(--dur-micro) var(--ease-out);
}

.btn:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-accent-ink);
    padding: var(--space-xs) var(--space-md);
}
.btn-primary:hover {
    background: var(--color-accent-dim);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-ink);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-rule-2);
}
.btn-outline:hover { border-color: var(--color-ink-2); }

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2xs) var(--space-sm);
    font-size: var(--text-sm);
}

/* ── N5 — Floating pill nav ── */
#navbar {
    position: fixed;
    top: var(--space-md);
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-pill {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    max-width: min(860px, calc(100% - var(--space-lg)));
    width: 100%;
    background: oklch(99% 0.003 258 / 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-pill);
    padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-md);
    box-shadow: 0 2px 24px oklch(20% 0.012 250 / 0.07);
    transition: box-shadow var(--dur-short) var(--ease-out);
}

#navbar.scrolled .nav-pill {
    box-shadow: 0 4px 40px oklch(20% 0.012 250 / 0.13);
}

.logo {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-ink);
    letter-spacing: -0.015em;
    flex-shrink: 0;
}

.logo-accent { color: var(--color-accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    flex: 1;
}

.nav-links a {
    color: var(--color-ink-2);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: color var(--dur-micro) var(--ease-out);
}
.nav-links a:hover { color: var(--color-ink); }
.nav-links a:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-2xs);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-ink);
    border-radius: 2px;
    transition:
        transform var(--dur-short) var(--ease-in-out),
        opacity var(--dur-short) var(--ease-in-out);
}

/* ── Mobile overlay menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-paper);
    z-index: 99;
    padding: 5.5rem var(--space-lg) var(--space-xl);
    flex-direction: column;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--color-ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: var(--text-display-s);
    font-weight: 700;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-rule);
    letter-spacing: -0.015em;
    transition: color var(--dur-micro) var(--ease-out);
}
.mobile-menu a:hover { color: var(--color-accent); }

/* ── Footer — Ft5 Statement ── */
footer {
    padding: var(--space-2xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-rule);
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-ink);
    text-decoration: none;
    letter-spacing: -0.015em;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: var(--text-xs);
    color: var(--color-ink-3);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dur-micro) var(--ease-out);
}
.footer-links a:hover { color: var(--color-ink); }
.footer-links a:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-copy {
    font-size: var(--text-xs);
    color: var(--color-ink-3);
}

/* ── Responsive — 768px ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-pill {
        padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-sm);
        justify-content: space-between;
    }
    .footer-meta { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
    .footer-links { gap: var(--space-md); }
}

/* ── Responsive — 414px ── */
@media (max-width: 414px) {
    .container { padding: 0 var(--space-md); }
    #navbar { top: var(--space-sm); }
    .nav-pill {
        max-width: calc(100% - var(--space-md));
        border-radius: var(--radius-lg);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
