/* =====================================
   TOKENS - centralized theme config
   Breakpoints: compact 900px, mobile 720px
===================================== */
:root {
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Karla', sans-serif;

    /* Palette */
    --c-cream-100: #f7f3ec;
    --c-cream-rgb: 247, 243, 236;
    --c-sage-200: #d9e2d8;
    --c-sage-700: #465b4a;
    --c-terracotta: #b8522b; /* 4.91:1 against white */
    --c-terracotta-hover: #a8492a;
    --c-espresso: #231a15;
    --c-espresso-muted: #5f5249;
    --c-espresso-soft: #4a3d34;
    --c-white: #ffffff;

    /* Semantic roles */
    --c-primary: var(--c-terracotta);
    --c-primary-hover: var(--c-terracotta-hover);
    --c-secondary: var(--c-sage-200);
    --c-tertiary: var(--c-sage-700);

    --c-bg: var(--c-cream-100);
    --c-ink: var(--c-espresso);
    --c-muted: var(--c-espresso-muted);
    --c-note: var(--c-espresso-soft);
    --c-border: rgba(35, 26, 21, 0.18);

    /* Spacing */
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;

    /* Type scale */
    --text-sm: 14px;
    --text-base: 16px;
    --text-hero: clamp(38px, 4.4vw, 58px);

    /* Radii & elevation */
    --radius-pill: 999px;
    --shadow-lift: 0 6px 16px rgba(35, 26, 21, 0.10);
    --ease: 180ms ease-out;
}

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

body {
    font-family: var(--font-body);
    color: var(--c-ink);
    background: var(--c-bg);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-5) 5%;
    background: var(--c-bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    object-position: 38% center;
    z-index: -2;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(var(--c-cream-rgb), 0.84) 0%,
        rgba(var(--c-cream-rgb), 0.70) 18%,
        rgba(var(--c-cream-rgb), 0.40) 34%,
        rgba(var(--c-cream-rgb), 0.14) 46%,
        rgba(var(--c-cream-rgb), 0.03) 56%,
        rgba(var(--c-cream-rgb), 0) 64%
    );
}

.hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    flex: 1;
    max-width: 540px;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.08;
    color: var(--c-ink);
    margin-bottom: var(--space-2);
}

.hero-copy h1 em {
    color: var(--c-tertiary);
    font-weight: 500;
    font-style: italic;
}

.hero-copy p {
    max-width: 480px;
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--c-muted);
    margin-bottom: var(--space-3);
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: transform var(--ease), background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 4px;
}

.btn-primary {
    background: var(--c-primary);
    color: var(--c-white);
    box-shadow: var(--shadow-lift);
}

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

.btn-quiet {
    color: var(--c-ink);
    border: 1px solid var(--c-border);
    background: var(--c-white);
}

.btn-quiet:hover {
    color: var(--c-tertiary);
    border-color: var(--c-tertiary);
    transform: translateY(-2px);
}

.hero-notes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.hero-notes li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-note);
}

.note-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--c-tertiary);
    background: var(--c-secondary);
    border-radius: 50%;
}

@media (max-width: 900px) {
    .hero {
        min-height: 100svh;
        align-items: flex-start;
    }
    .hero-bg { object-position: 75% center; }
    .hero-scrim {
        background: linear-gradient(
            180deg,
            rgba(var(--c-cream-rgb), 0.90) 0%,
            rgba(var(--c-cream-rgb), 0.82) 26%,
            rgba(var(--c-cream-rgb), 0.58) 40%,
            rgba(var(--c-cream-rgb), 0.26) 52%,
            rgba(var(--c-cream-rgb), 0.07) 64%,
            rgba(var(--c-cream-rgb), 0) 76%
        );
    }
}

@media (max-width: 720px) {
    .hero { padding: var(--space-5) 6%; }
    .hero-copy { max-width: 100%; }
    .hero-copy h1 { font-size: 36px; }
    .hero-copy p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}