/* about.css - the About page.
 *
 * v7 "Mission Control" (Oct 2026): the page reads as a run of numbered
 * console sections (01 Who we are, 02 Operations ...), each with a small
 * plate label over a left-aligned Michroma heading.
 *   - Lead: the welcome on the left, a "comms panel" of the three links on
 *     the right (the shared .dash-tile links from css/tiles.css, restyled
 *     here and ONLY inside .about-page, so other pages' tiles are untouched).
 *   - What we do: three console modules with a round dial and an Ops code.
 *   - What we're about: a strip of three lit status lamps.
 *   - Try us out: the weekly event on an amber CRT, the details beside it.
 *   - About Star Citizen: heading and referral code left, prose right.
 * Colours are the v7 tokens only (css/root.css), so Night shift and High
 * contrast follow by themselves.
 */

.about-page {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--page-w);
    margin: 0 auto;
    padding: 0.5rem var(--gutter) clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2.6rem, 5vw, 4rem);
}

.about-page h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    text-align: left;
}

.about-page p {
    line-height: 1.6;
}

/* The numbered plate over every section heading. */
.about-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.7rem;
}

.about-kicker-no {
    text-shadow: none;   /* 26 Oct 2026: a theme glow under small text on a solid plate lowers its contrast (axe) */
    display: inline-grid;
    place-items: center;
    min-width: 2.4em;
    height: 1.9em;
    padding: 0 0.5em;
    box-sizing: border-box;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: var(--solid);
    color: var(--on-solid);
    letter-spacing: 0.08em;
}

.about-head {
    margin-bottom: 1.4rem;
}

/* ------------------------------------------------------------- Lead */

.about-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.about-lead-copy {
    padding-top: 0.4rem;
}

.about-page .about-lead-title {
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
    line-height: 1.12;
    text-transform: none;
}

.about-lead-text {
    max-width: 44ch;
    margin: 1.1rem 0 0;
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    color: var(--ink-2);
}

.about-lead-text strong {
    color: var(--ink);
}

/* The comms panel: one console part holding the three links. */
.about-comms {
    position: relative;
    padding: 1.6rem 1rem 1rem;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: 0 0 0 transparent;
    overflow: hidden;
}

.about-comms-plate {
    margin: 0 0 0.6rem 0.3rem;
}

/* tiles.css restyled for this page only. */
.about-page .about-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.about-page .dash-tile {
    min-height: 0;
    gap: 0.9rem;
    padding: 0.75rem 0.9rem;
    background: var(--sheet-2);
    border: 2px solid transparent;
    border-radius: 0;
    color: var(--ink);
    box-shadow: none;
    transform: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.about-page .dash-tile:hover,
.about-page .dash-tile:focus-visible {
    background: var(--sheet);
    border-color: var(--rule);
    box-shadow: none;
    transform: none;
}

.about-page .dash-tile:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.about-page .dash-tile-icon {
    width: 46px;
    height: 46px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-size: 1.15rem;
}

.about-page .dash-tile-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.about-page .dash-tile-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
}

.about-page .dash-tile-text {
    font-size: 0.93rem;
    color: var(--ink-2);
}

.about-page .dash-tile-go {
    color: var(--ink-2);
    opacity: 1;
}

/* ------------------------------------------------------- What we do */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.about-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.2rem 1.25rem 1.1rem;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: 0 0 0 transparent;
}

.about-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

/* A round instrument dial with the icon in it. */
.about-card-dial {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 0;
    background: var(--sheet-3);
    border: 1px solid var(--rule);
    box-shadow: inset 0 0 0 5px var(--sheet);
    color: var(--ink);
    font-size: 1.2rem;
}

.about-card-code {
    color: var(--ink-3);
}

.about-page .about-card h3 {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    font-weight: 500;
}

.about-card p {
    margin: 0;
    color: var(--ink-2);
}

/* Where each kind of thing happens on the site, as small pill switches
   pinned to the bottom so they line up across the row. */
.about-card .about-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--rule-soft);
}

.about-card-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.2rem 0.85rem;
    box-sizing: border-box;
    background: var(--sheet-2);
    border: 1px solid var(--rule);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
}

.about-card-links a:hover,
.about-card-links a:focus-visible {
    background: var(--solid);
    color: var(--on-solid);
}

.about-card .about-card-links i {
    font-size: 0.6rem;
}

/* ------------------------------------------------------- Point lists */

/* list-style none + a Font Awesome mark. Block, not flex: a flex
   container makes every text run its own box, so a <strong> would drift
   away from the words round it. The hanging indent keeps a wrapped line
   under the text, not under the icon. */
.about-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.about-points li {
    display: block;
    padding-left: 1.9rem;
    text-indent: -1.9rem;
    text-align: left;
}

.about-points li i {
    display: inline-block;
    width: 1.2rem;
    margin-right: 0.7rem;
    text-indent: 0;
    color: var(--link);
}

/* What we're about: a strip of three status lamps. */
.about-page .about-lamps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: 0 0 0 transparent;
    overflow: hidden;
}

.about-page .about-lamps li {
    position: relative;
    display: block;
    padding: 1.1rem 1.25rem 1.2rem 1.25rem;
    text-indent: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink);
}

.about-page .about-lamps li + li {
    border-left: 1px solid var(--rule-soft);
}

.about-page .about-lamps li i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 0 0.75rem;
    border-radius: 0;
    border: 1px solid var(--rule);
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 0 0 4px var(--sheet-3);
    font-size: 1rem;
}

.about-page .about-lamps li:nth-child(1) i { background: var(--s1); }
.about-page .about-lamps li:nth-child(2) i { background: var(--s2); }
.about-page .about-lamps li:nth-child(3) i { background: var(--s3); color: var(--on-accent); }

.theme-alt .about-page .about-lamps li:nth-child(3) i,
.theme-contrast .about-page .about-lamps li:nth-child(3) i {
    color: var(--on-accent);
}

/* ------------------------------------------------------ Try us out */

.about-callout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: stretch;
    padding: clamp(1.4rem, 3vw, 2rem);
    padding-top: clamp(1.4rem, 3vw, 2rem);   /* 6.66: no stripe band along the top (Matt) */
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: 0 0 0 transparent;
    overflow: hidden;
    scroll-margin-top: 1rem;
}

.about-callout-screen {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.about-callout-plate {
    margin: 0;
}

.about-crt {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px;
    padding: 1.2rem 1.4rem;
    font-size: clamp(3.4rem, 7vw, 5.2rem);
    letter-spacing: 0.04em;
}

.about-crt small {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}

.about-crt small + small {
    margin-top: 0.1rem;
}

.about-callout-body {
    min-width: 0;
}

.about-callout-body h2 {
    margin-bottom: 0.8rem;
}

.about-callout-body > p {
    max-width: 62ch;
    margin: 0 0 0.9rem;
}

.about-callout-body .about-points {
    margin: 0 0 1rem;
}

.about-contact {
    padding-top: 0.9rem;
    border-top: 1px solid var(--rule-soft);
    color: var(--ink-2);
}

.about-callout-body > p.about-contact {
    margin-bottom: 0;
}

.about-contact strong {
    color: var(--ink);
}

/* ------------------------------------------------- About Star Citizen */

.about-prose {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: start;
}

.about-prose-head {
    margin: 0;
}

.about-prose-text p {
    max-width: 68ch;
    margin: 0 0 1rem;
    color: var(--ink);
}

.about-prose-text p:first-child {
    margin-top: 2.1rem;
}

.about-referral {
    margin-top: 1.4rem;
    padding: 1rem 1.1rem 1.1rem;
    background: var(--sheet-2);
    border: 1px solid var(--rule);
    border-radius: 0;
}

.about-referral p {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: var(--ink-2);
}

.about-referral p.v7-plate {
    margin-bottom: 0.4rem;
    font-size: 0.66rem;
    color: var(--ink);
}

/* The referral code as a pill switch. */
.about-page a.about-refcode {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--control-h);
    padding: 0.3rem 1.1rem;
    box-sizing: border-box;
    background: var(--solid);
    color: var(--on-solid);
    border: 1px solid var(--rule);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.about-page a.about-refcode:hover,
.about-page a.about-refcode:focus-visible {
    background: var(--solid-hi);
    color: var(--on-solid);
}

.about-refcode i {
    font-size: 0.75em;
}

/* --------------------------------------------------- Narrow screens */

@media (max-width: 980px) {
    .about-lead,
    .about-callout,
    .about-prose {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-prose-text p:first-child {
        margin-top: 0;
    }

    .about-crt {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .about-grid,
    .about-page .about-lamps {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-page .about-lamps li {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 0.9rem;
        padding: 0.9rem 1rem;
    }

    .about-page .about-lamps li i {
        margin: 0;
    }

    .about-page .about-lamps li + li {
        border-left: 0;
        border-top: 1px solid var(--rule-soft);
    }

    .about-comms {
        padding: 1.4rem 0.7rem 0.7rem;
    }

    .about-crt {
        font-size: 3.4rem;
    }
}

/* Picture band on a phone: root.css sets the title at 3rem, which is too
   wide in Michroma for a long word ("OFFICERS", "SPECIAL THANKS") at 390px.
   Scoped here until the shared rule is changed. */
@media (max-width: 560px) {
    main .bg-container:not(.bg-home) .bg-container-text h1 {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
        overflow-wrap: anywhere;
    }

    main .bg-container:not(.bg-home) .bg-container-text p {
        font-size: 0.68rem;
    }
}
