/**
 * base.css — design tokens, typography, global resets, button styles.
 * Part of: GP Garden House child theme
 */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
    --gh-color-primary:        #2e5339;
    --gh-color-primary-light:  #3d6e4a;
    --gh-color-primary-dark:   #1e3a26;
    --gh-color-primary-pale:   #eaf2ec;
    --gh-color-accent:         #c8a96e;
    --gh-color-accent-light:   #e0c99a;
    --gh-color-bg:             #ffffff;
    --gh-color-bg-alt:         #f7f4ef;
    --gh-color-bg-dark:        #2e5339;
    --gh-color-text:           #2c2c2c;
    --gh-color-text-light:     #555555;
    --gh-color-text-muted:     #888888;
    --gh-color-border:         #d8d5cf;
    --gh-color-white:          #ffffff;
    --gh-color-black:          #000000;

    --gh-font-heading:  'Georgia', 'Times New Roman', serif;
    --gh-font-body:     'Open Sans', 'Segoe UI', system-ui, sans-serif;
    --gh-font-mono:     'Courier New', Courier, monospace;

    --gh-font-size-base:  1rem;
    --gh-font-size-sm:    0.875rem;
    --gh-font-size-lg:    1.125rem;
    --gh-font-size-xl:    1.375rem;
    --gh-font-size-2xl:   1.75rem;
    --gh-font-size-3xl:   2.25rem;
    --gh-font-size-4xl:   3rem;

    --gh-font-weight-normal:  400;
    --gh-font-weight-medium:  500;
    --gh-font-weight-semibold: 600;
    --gh-font-weight-bold:    700;

    --gh-line-height-tight:   1.2;
    --gh-line-height-snug:    1.4;
    --gh-line-height-normal:  1.6;
    --gh-line-height-relaxed: 1.8;

    --gh-radius-sm:   4px;
    --gh-radius-md:   8px;
    --gh-radius-lg:   16px;
    --gh-radius-full: 9999px;

    --gh-shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --gh-shadow-md:  0 4px 12px rgba(0,0,0,.12);
    --gh-shadow-lg:  0 8px 24px rgba(0,0,0,.16);

    --gh-transition: 200ms ease;

    --gh-space-1:  0.25rem;
    --gh-space-2:  0.5rem;
    --gh-space-3:  0.75rem;
    --gh-space-4:  1rem;
    --gh-space-5:  1.25rem;
    --gh-space-6:  1.5rem;
    --gh-space-8:  2rem;
    --gh-space-10: 2.5rem;
    --gh-space-12: 3rem;
    --gh-space-16: 4rem;
    --gh-space-20: 5rem;
    --gh-space-24: 6rem;
}

/* ── Base reset ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gh-font-body);
    font-size: var(--gh-font-size-base);
    font-weight: var(--gh-font-weight-normal);
    color: var(--gh-color-text);
    background-color: var(--gh-color-bg);
    line-height: var(--gh-line-height-normal);
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gh-color-primary);
    text-decoration: underline;
    transition: color var(--gh-transition);
}
a:hover,
a:focus { color: var(--gh-color-primary-dark); }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading);
    font-weight: var(--gh-font-weight-bold);
    line-height: var(--gh-line-height-tight);
    color: var(--gh-color-text);
    margin-top: 0;
    margin-bottom: var(--gh-space-4);
}
h1 { font-size: clamp(2rem, 5vw, var(--gh-font-size-4xl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--gh-font-size-3xl)); }
h3 { font-size: clamp(1.125rem, 2.5vw, var(--gh-font-size-2xl)); }
h4 { font-size: var(--gh-font-size-xl); }
h5 { font-size: var(--gh-font-size-lg); }
h6 { font-size: var(--gh-font-size-base); }

p {
    margin-top: 0;
    margin-bottom: var(--gh-space-4);
    line-height: var(--gh-line-height-relaxed);
}

ul, ol { margin-top: 0; margin-bottom: var(--gh-space-4); }
figure { margin: 0; }

address { font-style: normal; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.gh-btn {
    display: inline-block;
    padding: var(--gh-space-3) var(--gh-space-8);
    font-family: var(--gh-font-body);
    font-size: var(--gh-font-size-base);
    font-weight: var(--gh-font-weight-semibold);
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--gh-radius-sm);
    cursor: pointer;
    transition: background-color var(--gh-transition), color var(--gh-transition), border-color var(--gh-transition);
    border: 2px solid transparent;
}
.gh-btn:focus-visible { outline: 3px solid var(--gh-color-accent); outline-offset: 2px; }

.gh-btn--primary {
    background-color: var(--gh-color-primary);
    color: var(--gh-color-white);
    border-color: var(--gh-color-primary);
}
.gh-btn--primary:hover,
.gh-btn--primary:focus {
    background-color: var(--gh-color-primary-dark);
    border-color: var(--gh-color-primary-dark);
    color: var(--gh-color-white);
}

.gh-btn--outline {
    background-color: transparent;
    color: var(--gh-color-primary);
    border-color: var(--gh-color-primary);
}
.gh-btn--outline:hover,
.gh-btn--outline:focus {
    background-color: var(--gh-color-primary);
    color: var(--gh-color-white);
}

.gh-btn--light {
    background-color: var(--gh-color-white);
    color: var(--gh-color-primary-dark);
    border-color: var(--gh-color-white);
}
.gh-btn--light:hover,
.gh-btn--light:focus {
    background-color: var(--gh-color-bg-alt);
    color: var(--gh-color-primary-dark);
}

/* ── Screen-reader-only ─────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}
