/* Readability — visual access without copy changes */

:root {
    --prose-max: 65ch;
    --prose-size: 1.0625rem;
    --prose-lead-size: 1.125rem;
    --prose-lh: 1.75;
    --text-readable: #d4d8dc;
    --text-readable-muted: #b8bdc2;
}

/* Body copy font — headings stay IBM Plex Sans via existing vars */
body.antialiased,
body.consultancy-home {
    font-family: var(--font-body);
    font-weight: 400;
}

/* Brighter muted text site-wide */
body.antialiased .text-body-muted,
body.consultancy-home .text-body-muted {
    color: var(--text-readable-muted);
}

/* Key phrases — existing words, visual emphasis only */
.text-key {
    color: var(--alabaster);
    font-weight: 500;
}

.text-key-gold {
    color: var(--goldenrod);
    font-weight: 500;
}

/* Lead paragraphs */
body.antialiased .operator-view-lead,
body.consultancy-home .operator-view-lead {
    font-size: var(--prose-lead-size);
    line-height: var(--prose-lh);
    max-width: var(--prose-max);
    color: var(--text-readable);
    font-weight: 400;
    margin-bottom: 1.25rem;
}

/* Secondary body paragraphs in content sections */
body.antialiased main p.text-body-muted,
body.consultancy-home main p.text-body-muted {
    font-size: var(--prose-size);
    line-height: var(--prose-lh);
    max-width: var(--prose-max);
    font-weight: 400;
}

body.antialiased main p.text-body-muted.text-sm,
body.consultancy-home main p.text-body-muted.text-sm {
    font-size: var(--prose-size);
}

/* Lists — minimum comfortable size */
body.antialiased main ul.list-disc li,
body.consultancy-home main ul.list-disc li,
body.antialiased .operator-view-caps li,
body.consultancy-home .operator-view-caps li {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-readable);
    opacity: 1;
}

body.antialiased .operator-view-caps li span,
body.consultancy-home .operator-view-caps li span {
    color: var(--text-readable);
}

/* Dense copy blocks — left rule + subtle panel */
body.antialiased .read-block,
body.consultancy-home .read-block {
    border-left: 3px solid rgba(175, 122, 0, 0.45);
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    background: rgba(10, 18, 32, 0.55);
    border-radius: 0 2px 2px 0;
}

body.antialiased .read-block p + p,
body.consultancy-home .read-block p + p {
    margin-top: 1.25rem;
}

body.antialiased .read-block .operator-view-caps,
body.consultancy-home .read-block .operator-view-caps {
    margin-top: 1.25rem;
}

/* Step cards & feature panels */
body.antialiased main .border p.font-light,
body.consultancy-home main .border p.font-light {
    font-weight: 400;
    font-size: var(--prose-size);
    line-height: var(--prose-lh);
    color: var(--text-readable);
}

body.antialiased main .border p.text-lg,
body.consultancy-home main .border p.text-lg {
    font-size: var(--prose-lead-size);
    line-height: var(--prose-lh);
}

/* About section */
.about-prose .about-lead {
    font-size: clamp(1.375rem, 3.2vw, 2rem);
    line-height: 1.45;
    font-weight: 400;
    max-width: var(--prose-max);
    color: var(--alabaster);
    margin-bottom: 1.5rem;
}

.about-prose .about-body {
    font-size: var(--prose-lead-size);
    line-height: var(--prose-lh);
    font-weight: 400;
    max-width: var(--prose-max);
    margin-bottom: 1.25rem;
}

.about-prose .about-contact {
    font-size: var(--prose-size);
    line-height: var(--prose-lh);
    max-width: var(--prose-max);
    color: var(--text-readable);
    margin-bottom: 1.25rem;
}

.about-prose .about-quote {
    font-size: var(--prose-size);
    line-height: var(--prose-lh);
    max-width: var(--prose-max);
    color: var(--text-readable);
    font-style: italic;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(175, 122, 0, 0.35);
}

/* Hero intro */
.hero-intro-copy p:not(.hero-guarantee) {
    font-size: var(--prose-lead-size);
    line-height: var(--prose-lh);
    font-weight: 400;
    max-width: var(--prose-max);
    color: var(--text-readable-muted);
}

/* Centre intros stay centred but width-limited */
.capability-band-intro .operator-view-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Comfort mode — now the site default */
body.readability-comfort {
    --prose-size: 1.0625rem;
    --prose-lead-size: 1.15rem;
    --prose-lh: 1.62;
    --prose-max: 58ch;
    --text-readable: #e8e6e3;
    --text-readable-muted: #d0d4d8;
}

body.readability-comfort .operator-view-headline,
body.readability-comfort .about-lead {
    letter-spacing: 0.01em;
}

body.readability-comfort main p.text-body-muted,
body.readability-comfort .operator-view-caps li,
body.readability-comfort main ul.list-disc li {
    font-size: 1.0625rem;
    line-height: 1.62;
}

body.readability-comfort .operator-view-lead {
    font-size: 1.15rem;
}

/* ── Mobile: dial comfort sizing back so blocks aren't towering ──
   Comfort mode is tuned for a wide desktop column; on a phone the same
   values make every paragraph much taller. Keep the words, shrink the wall. */
@media (max-width: 640px) {
    body.readability-comfort {
        --prose-size: 0.98rem;
        --prose-lead-size: 1.02rem;
        --prose-lh: 1.5;
    }

    body.readability-comfort main p.text-body-muted,
    body.readability-comfort .operator-view-caps li,
    body.readability-comfort main ul.list-disc li {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    body.readability-comfort .operator-view-lead {
        font-size: 1.02rem;
    }
}

/* ── "Read more" fold for dense copy blocks (all screen sizes) ──
   Collapses tall .read-block panels behind a click/tap. No copy is removed —
   the toggle is added by js/enhancements.js only when a block is tall. */
.read-block.is-collapsible {
    position: relative;
    max-height: 15.5rem;
    overflow: hidden;
}

.read-block.is-collapsible::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5rem;
    background: linear-gradient(to bottom, rgba(10, 18, 32, 0), rgba(10, 18, 32, 0.95));
    pointer-events: none;
}

.read-block.is-expanded {
    max-height: none;
}

.read-block.is-expanded::after {
    display: none;
}

.read-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    min-height: 44px;
    padding: 0.35rem 0;
    background: none;
    border: none;
    color: var(--goldenrod);
    font-family: var(--font-data);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
}

.read-more-toggle:hover {
    color: var(--alabaster);
}

/* On wider screens allow a bit more copy before folding */
@media (min-width: 641px) {
    .read-block.is-collapsible {
        max-height: 18rem;
    }
}
