/* ==========================================================================
   Klavertroef — Base: Reset, Custom Properties, Typography
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--c-accent-hover);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

/* ----- Custom Properties ----- */
:root {
    /* Colors — olive-tinted warm palette */
    --c-bg:           #161814;
    --c-surface:      #1E211C;
    --c-surface2:     #272A24;
    --c-border:       #353830;
    --c-text:         #E4E2D9;
    --c-text-dim:     #9B9888;
    --c-accent:       #7B8F6A;
    --c-accent-hover: #8FA37B;
    --c-accent-sec:   #A4896B;
    --c-special:      #2A3326;
    --c-white:        #F5F3ED;
    --c-error:        #C45B4A;
    --c-success:      #6A9E5B;

    /* Fonts */
    --f-heading: 'Lora', Georgia, serif;
    --f-body:    'Work Sans', -apple-system, sans-serif;

    /* Spacing (8px grid) */
    --s-4:   0.25rem;
    --s-8:   0.5rem;
    --s-12:  0.75rem;
    --s-16:  1rem;
    --s-24:  1.5rem;
    --s-32:  2rem;
    --s-40:  2.5rem;
    --s-48:  3rem;
    --s-64:  4rem;
    --s-80:  5rem;
    --s-96:  6rem;
    --s-120: 7.5rem;

    /* Transitions */
    --ease: cubic-bezier(0.33, 1, 0.68, 1);
    --dur:  320ms;

    /* Layout */
    --max-w:    1160px;
    --header-h: 62px;

    /* Border radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--c-white);
}

h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw + 0.25rem, 2.25rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p + p {
    margin-top: var(--s-16);
}

strong {
    font-weight: 600;
}

/* Labels */
.label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-text-dim);
}

/* Selection */
::selection {
    background-color: var(--c-accent);
    color: var(--c-bg);
}
