/**
 * Base — Reset, tipografia fondamentale, elementi globali
 * Cristina Mazzitelli Interior Design Studio
 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    hanging-punctuation: first last;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--text-base);
    line-height: var(--lh-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Accessibilità focus ──────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-magenta);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Skip link accessibilità */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: var(--z-cursor);
    padding: var(--space-3) var(--space-6);
    background: var(--color-anthracite);
    color: var(--color-ivory);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ── Tipografia ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--color-anthracite);
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-3xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-2xl)); }
h3 { font-size: clamp(1.25rem, 2vw, var(--text-xl)); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }

p {
    line-height: var(--lh-relaxed);
    color: var(--color-text-secondary);
}

/* Label in stile editoriale */
.label,
.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.section-number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 300;
    color: var(--color-border);
    line-height: 1;
    letter-spacing: var(--ls-tight);
    user-select: none;
    pointer-events: none;
}

/* Quote tipografiche */
blockquote,
.quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    color: var(--color-anthracite);
    position: relative;
}

.quote--large {
    font-size: clamp(1.75rem, 4vw, var(--text-3xl));
}

/* ── Link ─────────────────────────────────────────────────────────────────── */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
    color: var(--color-magenta);
}

/* ── Immagini ─────────────────────────────────────────────────────────────── */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Liste ────────────────────────────────────────────────────────────────── */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* ── Form base ────────────────────────────────────────────────────────────── */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* ── Utilità visive ───────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Divider decorativo */
.divider {
    width: 48px;
    height: 1px;
    background: var(--color-magenta);
    border: none;
    margin: var(--space-6) 0;
}

.divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* Accento colorato per label */
.accent { color: var(--color-magenta); }
.accent--lavender { color: var(--color-lavender-dark); }
.accent--lime     { color: var(--color-lime-dark); }
.accent--aqua     { color: var(--color-aqua-dark); }
