/* ==========================================================================
   Dubbelbluf — base.css
   Reset, CSS custom properties, typography, color palette.
   ========================================================================== */

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

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

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%;
    height: auto;
}

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;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

fieldset {
    border: none;
}

/* CSS Custom Properties */
:root {
    /* Colors */
    --c-bg:           #121110;
    --c-surface:      #1E1C1A;
    --c-surface2:     #2A2725;
    --c-border:       #3A3634;
    --c-text:         #EDE8E2;
    --c-text-dim:     #A09890;
    --c-accent:       #C7673C;
    --c-accent-hover: #D4784E;
    --c-accent-sec:   #8B5E3C;
    --c-special:      #2C3E2E;
    --c-white:        #FAF7F4;
    --c-error:        #D94B3A;
    --c-success:      #5A9E6B;

    /* Fonts */
    --f-heading: 'Playfair Display', Georgia, serif;
    --f-body:    'Inter', -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;

    /* Border Radius */
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   16px;
    --r-pill: 100px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur:  300ms;

    /* Layout */
    --max-w:    1140px;
    --header-h: 60px;
}

/* 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.125rem);
    margin-bottom: var(--s-24);
}

h3 {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    margin-bottom: var(--s-16);
}

h4 {
    font-size: 1.125rem;
    margin-bottom: var(--s-12);
}

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

p:last-child {
    margin-bottom: 0;
}

/* Label style */
.label {
    font-family: var(--f-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-accent);
}

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

/* Hidden attribute support (for tab panels, etc.) */
[hidden] {
    display: none !important;
}

/* reCAPTCHA badge hidden via CSS */
.grecaptcha-badge {
    visibility: hidden !important;
}
