/* =========================================================================
   LAVACASCADE — css/base/typography.css
   Headings, body text, links, eyebrows, and the small text utilities.
   Montserrat everywhere; hierarchy comes from size and weight.
   ========================================================================= */

/* =========================================
   HEADINGS
   ========================================= */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text-strong);
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: var(--fs-body); letter-spacing: 0; }

/* Headings end with a lava dot: the brand's signature period. Wrapped by
   lc_dot() in includes/bootstrap.php. */
.dot {
    color: var(--lava-400);
}

/* =========================================
   BODY TEXT
   ========================================= */
p {
    text-wrap: pretty;
}

.lead {
    max-width: 60ch;
    font-size: var(--fs-lead);
    line-height: 1.65;
    color: var(--text-soft);
}

strong,
b {
    font-weight: 600;
    color: var(--text-strong);
}

small {
    font-size: var(--fs-xs);
}

code,
kbd,
.mono {
    font-family: var(--font-mono);
    font-size: 0.92em;
}

/* inline code chips, e.g. mysmp.lavacascade-hosting.com */
code {
    padding: 0.1em 0.4em;
    color: var(--lava-300);
    background: var(--fill-lava);
    border-radius: 6px;
    overflow-wrap: anywhere;
}

/* =========================================
   LINKS
   ========================================= */
a {
    color: var(--lava-300);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color var(--dur-fast) var(--ease);
}

a:hover {
    color: var(--ember-400);
}

/* =========================================
   EYEBROW: small uppercase label above a heading, with a tiny lava block
   in front (a Minecraft block standing in for the brand dot).
   ========================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    background: var(--grad-molten);
    border-radius: 2px;
}

/* =========================================
   ICONS (inline SVG from includes/icons.php). Default size follows the
   text; components set their own where needed.
   ========================================= */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

/* =========================================
   TEXT UTILITIES
   ========================================= */
.text-lava   { color: var(--lava-300); }
.text-ember  { color: var(--ember-400); }
.text-muted  { color: var(--text-muted); }
.text-strong { color: var(--text-strong); }

/* molten gradient text, for one or two words at most */
.text-molten {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* visible only to screen readers */
.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;
}
