/* base.css — reset, custom properties, typography */

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

:root {
    /* Colors */
    --c-bg:           #0D0B0B;
    --c-surface:      #171413;
    --c-surface2:     #201C1A;
    --c-border:       #2E2925;
    --c-text:         #EBE6E0;
    --c-text-dim:     #998F85;
    --c-accent:       #2A3F6B;
    --c-accent-hover: #3D5A96;
    --c-accent-soft:  rgba(42, 63, 107, 0.12);
    --c-gold:         #C9A95C;
    --c-white:        #FAF7F3;
    --c-error:        #E05C4D;
    --c-success:      #5CB06E;

    /* Fonts */
    --f-heading: 'Vollkorn', Georgia, serif;
    --f-body:    'Karla', -apple-system, BlinkMacSystemFont, 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.25, 0.46, 0.45, 0.94);
    --dur:  300ms;

    /* Layout */
    --max-w:    1200px;
    --header-h: 64px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--s-16));
}

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

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

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: var(--s-24);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: var(--s-16);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    margin-bottom: var(--s-12);
}

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

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

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

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

ul, ol {
    padding-left: var(--s-24);
}

li {
    margin-bottom: var(--s-8);
}

strong {
    font-weight: 600;
}

::selection {
    background: var(--c-accent);
    color: var(--c-white);
}
