/* ==========================================================================
   VLab-4000 — Typography
   ========================================================================== */

/* -------------------------------------------------------------------------
   Base body
------------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* -------------------------------------------------------------------------
   Headings — Montserrat Bold
------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-h1);
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
}

h2 {
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    letter-spacing: -0.015em;
}

h4 {
    font-size: var(--text-h4);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.01em;
}

h5 {
    font-size: var(--text-h5);
    font-weight: var(--weight-semibold);
    letter-spacing: 0;
}

h6 {
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-500);
}

/* -------------------------------------------------------------------------
   Body text
------------------------------------------------------------------------- */
p {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    color: var(--color-text);
    max-width: 72ch;
}

p + p {
    margin-top: var(--space-16);
}

.lead,
.text-lead {
    font-size: var(--text-large);
    font-weight: var(--weight-regular);
    line-height: var(--leading-loose);
    color: var(--ink-700);
}

.text-large  { font-size: var(--text-large); }
.text-small  { font-size: var(--text-small); }
.text-micro  { font-size: var(--text-micro); }

/* -------------------------------------------------------------------------
   Links
------------------------------------------------------------------------- */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:visited {
    color: var(--color-primary);
}

/* Inline link within body text */
.prose a,
p a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(217, 4, 41, 0.4);
}

.prose a:hover,
p a:hover {
    text-decoration-color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   Lists
------------------------------------------------------------------------- */
ul,
ol {
    padding-left: var(--space-24);
    line-height: var(--leading-normal);
}

ul { list-style-type: disc; }
ol { list-style-type: decimal; }

li {
    margin-bottom: var(--space-8);
}

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

/* Unstyled list */
.list-none {
    list-style: none;
    padding-left: 0;
}

/* Check-mark list */
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    padding-left: var(--space-28, 1.75rem);
    position: relative;
}

.list-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--color-success);
    border-bottom: 2px solid var(--color-success);
    transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Monospace / Data Emphasis
------------------------------------------------------------------------- */
.mono,
.data-value,
code,
kbd,
samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Inline code */
:not(pre) > code {
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    border: 1px solid var(--color-border);
}

/* Data/metric emphasis */
.data-value {
    font-family: var(--font-mono);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

/* Keyboard shortcut */
kbd {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    padding: 0.1em 0.4em;
    font-size: 0.8em;
}

/* Code block */
pre {
    background-color: var(--ink-900);
    color: var(--color-clean-slate);
    padding: var(--space-24);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: var(--text-small);
    line-height: 1.7;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

/* -------------------------------------------------------------------------
   Blockquote
------------------------------------------------------------------------- */
blockquote {
    border-left: 4px solid var(--color-accent);
    margin: var(--space-32) 0;
    padding: var(--space-16) var(--space-24);
    background-color: var(--color-accent-subtle);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
    font-size: var(--text-large);
    font-style: italic;
    color: var(--ink-700);
    margin: 0;
}

blockquote cite {
    display: block;
    margin-top: var(--space-12);
    font-size: var(--text-small);
    font-style: normal;
    color: var(--ink-300);
}

/* -------------------------------------------------------------------------
   Horizontal rule
------------------------------------------------------------------------- */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-48) 0;
}

/* -------------------------------------------------------------------------
   Label / Overline / Eyebrow text
------------------------------------------------------------------------- */
.label,
.eyebrow,
.overline {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.label--blue { color: var(--color-primary); }
.label--muted { color: var(--ink-300); }

/* -------------------------------------------------------------------------
   Strong & emphasis
------------------------------------------------------------------------- */
strong, b { font-weight: var(--weight-semibold); }
em, i      { font-style: italic; }
mark {
    background-color: rgba(251, 133, 0, 0.2);
    color: var(--color-text);
    padding: 0 0.2em;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Section title compound
------------------------------------------------------------------------- */
.section-title {
    margin-bottom: var(--space-48);
}

.section-title__eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-12);
}

.section-title__heading {
    font-size: var(--text-h2);
    font-weight: var(--weight-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--space-16);
}

.section-title__sub {
    font-size: var(--text-large);
    color: var(--ink-500);
    max-width: 60ch;
    line-height: var(--leading-loose);
}

.section-title--centered {
    text-align: center;
}

.section-title--centered .section-title__sub {
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------
   Prose block (rich text content)
------------------------------------------------------------------------- */
.prose {
    max-width: 72ch;
    line-height: var(--leading-normal);
}

.prose h2 { margin-top: var(--space-48); margin-bottom: var(--space-16); }
.prose h3 { margin-top: var(--space-32); margin-bottom: var(--space-12); }
.prose h4 { margin-top: var(--space-24); margin-bottom: var(--space-8); }
.prose p  { margin-bottom: var(--space-16); }
.prose ul,
.prose ol { margin-bottom: var(--space-16); }
.prose blockquote { margin: var(--space-32) 0; }
.prose img {
    border-radius: var(--radius-md);
    margin: var(--space-32) 0;
}
