/* ============================================================
   DomEx TradLink — Global Styles
   main.css = design tokens + reset + page shell
   ============================================================ */

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

:root {
    /* Cream/gold palette (matches existing DomEx design system) */
    --cream:        #faf7f2;
    --cream-dark:   #f3ede2;
    --cream-mid:    #ede4d3;
    --cream-deep:   #e2d5bf;

    --gold:         #a07830;
    --gold-mid:     #c49540;
    --gold-light:   #d4aa55;
    --gold-pale:    #f0e4c0;
    --gold-vlight:  #faf3e0;

    --ink:          #1a1410;
    --ink-mid:      #2e2418;
    --ink-soft:     #4a3c2e;

    --text-body:    #5a4e3e;
    --text-muted:   #8a7a65;
    --text-hint:    #b0a090;

    --border:       #d8cbb8;
    --border-light: #e8dfd0;
    --white:        #ffffff;

    --shadow:       rgba(100, 80, 50, 0.08);
    --shadow-md:    rgba(100, 80, 50, 0.12);

    /* Typography */
    --font-serif:   'Cormorant Garamond', serif;
    --font-sans:    'Outfit', sans-serif;
    --font-mono:    'DM Mono', monospace;

    /* Shell heights — used to offset the main content area */
    --header-h:     92px;
    --footer-h:     112px;

    /* Container width */
    --container:    1280px;
    --gutter:       2rem;
}

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;

    /* Reserve space for sticky header + footer */
    padding-top: var(--header-h);
    padding-bottom: var(--footer-h);
    min-height: 100vh;
}

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

/* Scrollbar */
::-webkit-scrollbar         { width: 6px; }
::-webkit-scrollbar-track   { background: var(--cream-dark); }
::-webkit-scrollbar-thumb   { background: var(--gold-mid); border-radius: 3px; }

/* Page shell: main content area */
.site-main {
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

/* Reusable container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Reusable section spacing */
.section {
    padding: 6rem var(--gutter);
}
.section--cream      { background: var(--cream); }
.section--cream-dark { background: var(--cream-dark); }
.section--ink        { background: var(--ink); color: var(--white); }

/* Section heading helpers */
.eyebrow {
    display: flex; align-items: center; gap: 0.8rem;
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: ''; width: 28px; height: 1px; background: var(--gold);
}
.eyebrow span {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold); font-weight: 500;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    max-width: 640px;
    letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }

.section-body {
    color: var(--text-body);
    max-width: 560px;
    margin-top: 1.2rem;
    line-height: 1.85;
    font-weight: 300;
    font-size: 0.97rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border-radius: 2px;
}
.btn--primary {
    background: var(--ink);
    color: var(--gold-light);
}
.btn--primary:hover { background: var(--gold); color: var(--ink); }

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--gold {
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Mobile shell adjustments */
@media (max-width: 900px) {
    :root {
        --header-h: 72px;
        --footer-h: 140px;
        --gutter:   1.25rem;
    }
    .section { padding: 4rem var(--gutter); }
}
