/*
 * assets/css/base.css
 * ─────────────────────────────────────────────────────────────────────────────
 * Reset, base typography, and utility animations.
 * Contains NO colours, NO layout – those live in theme-*.css and layout.css.
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── Reset ───────────────────────────────────────────────────────────────── */

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    font-size: 1.0625rem;   /* 17px – a small step up from the browser default 16px */
    line-height: 1.75;      /* slightly more breathing room to match the larger size */
    font-weight: 300;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: var(--font-body);
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.1rem; }

p {
    line-height: 1.7;
}

em {
    font-style: italic;
}

/* ── Animations ──────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Applied by IntersectionObserver in main.js */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Applied to the hero block directly */
.animate-hero {
    animation: fadeInUp 1s ease-out;
}

/* ── Responsive typography ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
    h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
}
