/*
 * Dark Atlas - Base
 * Reset, global typography, body defaults.
 * Depends on: tokens.css
 */

/* =========================================================
   RESET
   ========================================================= */

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

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

body {
    background-color: var(--bg-base);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: var(--text-2xl); /* 15px - body text */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--text-primary);
}

ul,
ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

input,
textarea,
select {
    font: inherit;
    background: var(--bg-surface);
    color: var(--text-body);
    border: 1px solid var(--border-default);
}

/* =========================================================
   TYPOGRAPHY DEFAULTS
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 { font-size: var(--text-h1); }    /* 48px */
h2 { font-size: var(--text-6xl); }   /* 28px */
h3 { font-size: var(--text-5xl); }   /* 22px */
h4 { font-size: var(--text-4xl); }   /* 18px */
h5 { font-size: var(--text-3xl); }   /* 16px */
h6 { font-size: var(--text-2xl); }   /* 15px */

p {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    line-height: 1.7;
    color: var(--text-body);
}

/* Article body content */
.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content h2 {
    font-size: var(--text-3xl); /* 16px - matches design section heading scale */
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.4em;
    line-height: 1.6;
}

.entry-content a {
    color: var(--accent-amber);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--text-primary);
}

.entry-content blockquote {
    border-left: 3px solid var(--border-default);
    padding-left: 1em;
    margin: 1.5em 0;
    color: var(--text-secondary);
    font-style: italic;
}

.entry-content code {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    padding: 2px 5px;
}

.entry-content pre {
    background: var(--bg-sunken);
    border: 1px solid var(--border-default);
    padding: 1em;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
}

/* =========================================================
   UTILITY
   ========================================================= */

/* Screen-reader only - used for breadcrumb SEO (Option A pattern) */
.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;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent-amber);
    outline-offset: 2px;
}

/* =========================================================
   SCROLLBAR (subtle, dark-mode)
   ========================================================= */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-ghost);
}
