/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AURIRA — Base Styles
   Reset, Typography, Global Elements
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--color-ivory);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

/* Page load fade-in */
body {
    animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: var(--lh-tight);
    color: var(--color-ivory);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.display-text {
    font-size: var(--fs-display);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subheading {
    font-family: var(--font-subheading);
    font-size: var(--fs-body-lg);
    font-weight: 300;
    font-style: italic;
    color: var(--color-muted);
    letter-spacing: var(--ls-wide);
}

.accent-text {
    font-family: var(--font-accent);
    color: var(--color-gold);
}

.label-text {
    font-family: var(--font-body);
    font-size: var(--fs-tiny);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    color: var(--color-gold);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-ivory-soft);
    line-height: var(--lh-relaxed);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

ul, ol {
    list-style: none;
}

/* ─── Selection ─── */
::selection {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* ─── Layout ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--dark {
    background-color: var(--color-bg-secondary);
}

/* ─── Gold Divider ─── */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: var(--space-md) auto;
    border: none;
}

.divider--left {
    margin-left: 0;
}

/* ─── Section Header ─── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header__label {
    display: block;
    margin-bottom: var(--space-xs);
}

.section-header__title {
    margin-bottom: var(--space-sm);
}

.section-header__subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Reveal animation class ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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