/**
 * Typography — Aqua Source Boise
 * All type styles. No hardcoded values — tokens only.
 *
 * @author Fudo
 * @date   2026-05-01
 * @package aquasource
 */

/* ── Headings ────────────────────────────────────────────────────────────── */

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

h2 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    color: var(--color-text);
}

h4 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-normal);
    color: var(--color-text);
}

h5 {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-normal);
    color: var(--color-text);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-normal);
    color: var(--color-text);
}

/* ── Body Text ───────────────────────────────────────────────────────────── */

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-soft);
    margin-bottom: var(--space-4);
}

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

/* ── Links ───────────────────────────────────────────────────────────────── */

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

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

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── Lists ───────────────────────────────────────────────────────────────── */

.content-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.content-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-text-soft);
    line-height: var(--leading-normal);
}

.content-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background-color: var(--teal);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M16.707 5.293a1 1 0 00-1.414 0L8 12.586 4.707 9.293a1 1 0 00-1.414 1.414l4 4a1 1 0 001.414 0l8-8a1 1 0 000-1.414z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    margin-top: 2px;
}

/* ── Inverse text (on dark backgrounds) ─────────────────────────────────── */

.text-inverse h1,
.text-inverse h2,
.text-inverse h3,
.text-inverse h4,
.text-inverse h5,
.text-inverse h6 {
    color: #ffffff;
}

.text-inverse p {
    color: var(--footer-text-dim);
}

.text-inverse a {
    color: var(--blue-100);
}

.text-inverse a:hover {
    color: var(--orange);
}

/* ── Utility Classes ─────────────────────────────────────────────────────── */

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

.text-muted   { color: var(--color-text-muted); }
.text-soft    { color: var(--color-text-soft); }
.text-accent  { color: var(--color-accent); }
.text-teal    { color: var(--teal); }
.text-white   { color: #ffffff; }

.font-bold     { font-weight: var(--weight-bold); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-medium   { font-weight: var(--weight-medium); }

/* ── 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;
}
