/* ==========================================================================
   Piros Ász — base.css
   Reset, custom properties, typography, body/html.
   ========================================================================== */

/* Custom Properties */
:root {
    /* Colors */
    --c-bg:          #0C0A0D;
    --c-surface:     #181520;
    --c-surface2:    #211E2A;
    --c-border:      #2A2535;
    --c-text:        #EDE8F0;
    --c-text-dim:    #9590A0;
    --c-accent:      #B83A3A;
    --c-accent-hover:#D04848;
    --c-accent-soft: rgba(184, 58, 58, 0.12);
    --c-gold:        #D4A853;
    --c-white:       #FAF8FC;
    --c-error:       #E05C4D;
    --c-success:     #5CB06E;

    /* Fonts */
    --f-heading: 'Libre Baskerville', Georgia, serif;
    --f-body:    'Source Sans 3', -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;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
}

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

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

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;
    overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
    color: var(--c-white);
}

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
}

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

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

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

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

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

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

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

strong {
    font-weight: 600;
}

/* Eyebrow / Label */
.pa-eyebrow {
    display: block;
    font-family: var(--f-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-accent-hover);
    margin-bottom: var(--s-12);
}

/* Focus visible — accessibility */
:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

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