/* ==========================================================================
   Barlin Games — About page   ·   .ab
   --------------------------------------------------------------------------
   Typographic layout for /about. There is no image rule in this file for a
   reason: the page carries no photography, artwork or illustration, only the
   shared inline icon set. Structure comes from type scale, whitespace and
   hairlines.

   Self-contained — layouts/public has no @stack('styles'), so the sheet is
   linked from the view and must not assume game-ui.css is on the page. Token
   names mirror that file's `.gd` namespace so the two read as one system.
   ========================================================================== */

.ab {
    --ab-red:       #E51B23;
    --ab-red-dark:  #C2151C;
    --ab-red-soft:  rgba(229, 27, 35, .07);
    --ab-red-ring:  rgba(229, 27, 35, .18);

    --ab-ink:       #0F1115;
    --ab-body:      #3A4048;
    --ab-muted:     #6B7280;

    --ab-canvas:    #F6F7F9;
    --ab-surface:   #FFFFFF;
    --ab-line:      #E7EAF0;
    --ab-line-soft: #F0F2F6;

    --ab-r:         12px;
    --ab-ease:      cubic-bezier(.22, .61, .36, 1);

    /* One reading measure for every prose column. In ch so the line length
       stays right when the reader zooms, and so a 4K display widens the
       margins instead of the sentences. */
    --ab-measure:   68ch;

    max-width: var(--bg-w-1180, 1180px);
    margin-inline: auto;
    color: var(--ab-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}
.ab, .ab *, .ab *::before, .ab *::after { box-sizing: border-box; }

/*
 * Light is the designed state, as specified. The dark block keeps parity so a
 * reader who has the site in dark mode is not handed a white sheet — it is not
 * a finished dark design and does not claim to be.
 */
@media (prefers-color-scheme: dark) {
    body:not(.theme-light) .ab {
        --ab-ink: #F3F5F8; --ab-body: #C3C8D2; --ab-muted: #8B93A2;
        --ab-canvas: #0D0F13; --ab-surface: #14171E;
        --ab-line: #242936; --ab-line-soft: #1C212B;
        --ab-red-soft: rgba(229, 27, 35, .14);
    }
}
body.theme-dark .ab {
    --ab-ink: #F3F5F8; --ab-body: #C3C8D2; --ab-muted: #8B93A2;
    --ab-canvas: #0D0F13; --ab-surface: #14171E;
    --ab-line: #242936; --ab-line-soft: #1C212B;
    --ab-red-soft: rgba(229, 27, 35, .14);
}

.ab :focus-visible:not(input):not(textarea):not(select) {
    outline: 2px solid var(--ab-red);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.ab-hero {
    padding: clamp(8px, 2vw, 20px) 0 clamp(30px, 4.4vw, 54px);
    border-bottom: 1px solid var(--ab-line);
    margin-bottom: clamp(34px, 5vw, 62px);
}

.ab-eyebrow {
    margin: 0 0 14px;
    color: var(--ab-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ab-title {
    margin: 0 0 18px;
    color: var(--ab-ink);
    font-size: clamp(32px, 5.4vw, 56px);
    line-height: 1.05;
    letter-spacing: -.028em;
    font-weight: 800;
}
.ab-title__accent { color: var(--ab-red); }

.ab-lede {
    margin: 0;
    max-width: 62ch;
    color: var(--ab-body);
    font-size: clamp(15px, 1.2vw, 17.5px);
    line-height: 1.68;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.ab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    /* 46px tall: a comfortable touch target without being a slab. */
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--ab-line);
    border-radius: 10px;
    background: var(--ab-surface);
    color: var(--ab-ink);
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .2s var(--ab-ease), color .2s var(--ab-ease),
                background-color .2s var(--ab-ease), transform .2s var(--ab-ease);
}
.ab-btn:hover { border-color: #D3D8E2; color: var(--ab-ink); transform: translateY(-1px); }

.ab-btn--primary {
    border-color: var(--ab-red);
    background: var(--ab-red);
    color: #fff;
}
.ab-btn--primary:hover {
    border-color: var(--ab-red-dark);
    background: var(--ab-red-dark);
    color: #fff;
}
.ab-btn svg { flex: none; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.ab-sec { margin-bottom: clamp(38px, 5.4vw, 72px); }

.ab-h2 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--ab-ink);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}
/* A short red rule under each heading — the section marker used across the
   site, in place of a heavier band or a coloured panel. */
.ab-h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--ab-red);
}

.ab-sec__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}
.ab-sec__head .ab-h2 { margin-bottom: 22px; }

.ab-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: var(--ab-red);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: gap .2s var(--ab-ease), color .2s var(--ab-ease);
}
.ab-more:hover { gap: 11px; color: var(--ab-red-dark); }
.ab-more svg { flex: none; }

/* ── Editorial two-column prose ─────────────────────────────────────────── */

.ab-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px 48px;
}
.ab-split p {
    margin: 0;
    max-width: var(--ab-measure);
    font-size: 15.5px;
    line-height: 1.72;
}
@media (min-width: 860px) {
    .ab-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* A hairline between the columns rather than a card around each. */
    .ab-split p + p { padding-left: 48px; border-left: 1px solid var(--ab-line); }
}

.ab-prose {
    margin: 0;
    max-width: var(--ab-measure);
    font-size: 15.5px;
    line-height: 1.72;
}

/* ── Card grids ─────────────────────────────────────────────────────────── */

.ab-grid {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) { .ab-grid--3, .ab-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ab-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ab-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ab-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-r);
    background: var(--ab-surface);
    transition: border-color .22s var(--ab-ease), transform .22s var(--ab-ease);
}
.ab-card:hover { border-color: #D8DCE6; transform: translateY(-2px); }
.ab-card--tight { padding: 18px; }

.ab-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 10px;
    background: var(--ab-red-soft);
    color: var(--ab-red);
}
.ab-card__body { min-width: 0; }

.ab-card__title {
    margin: 0 0 6px;
    color: var(--ab-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.ab-card p {
    margin: 0;
    color: var(--ab-body);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Approach: prose beside a checklist ─────────────────────────────────── */

.ab-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px 56px;
}
@media (min-width: 900px) {
    .ab-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .ab-checks { padding-left: 56px; border-left: 1px solid var(--ab-line); }
}

.ab-checks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ab-checks li { display: flex; align-items: flex-start; gap: 13px; }

.ab-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 1px;
    border-radius: 999px;
    background: var(--ab-red);
    color: #fff;
}

.ab-check__title {
    margin: 0 0 4px;
    color: var(--ab-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}
.ab-checks p {
    margin: 0;
    color: var(--ab-body);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Coverage tiles ─────────────────────────────────────────────────────── */

.ab-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px)  { .ab-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ab-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.ab-tile { display: flex; }
.ab-tile__in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 22px 14px;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-r);
    background: var(--ab-surface);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: border-color .22s var(--ab-ease), transform .22s var(--ab-ease);
}
a.ab-tile__in:hover { border-color: var(--ab-red-ring); transform: translateY(-2px); }
a.ab-tile__in:hover .ab-tile__title { color: var(--ab-red); }

.ab-tile__icon { color: var(--ab-red); }
.ab-tile__title {
    margin: 0;
    color: var(--ab-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    transition: color .2s var(--ab-ease);
}
.ab-tile p {
    margin: 0;
    color: var(--ab-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ── Closing CTA ────────────────────────────────────────────────────────── */

.ab-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px 40px;
    padding: clamp(24px, 3.4vw, 38px);
    border: 1px solid var(--ab-line);
    border-radius: 16px;
    /* A very light tint, not a dark band and not a gradient panel. */
    background: var(--ab-canvas);
    margin-bottom: 8px;
}
.ab-cta__text { min-width: 0; flex: 1 1 380px; }
.ab-cta .ab-h2 { margin-bottom: 16px; }
.ab-cta p {
    margin: 0;
    max-width: 62ch;
    color: var(--ab-body);
    font-size: 15px;
    line-height: 1.65;
}
.ab-cta .ab-actions { margin-top: 0; }

/* ── Motion ─────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .ab *, .ab *::before, .ab *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
}

/* ── Host page reset ────────────────────────────────────────────────────── */
/*
 * layouts/public wraps every CMS page body in .card > .card-body. This page
 * draws its own surfaces, so the wrapper's panel is flattened here rather than
 * by editing shared layout markup — every other page keeps its card.
 */
body.about-page #content-box > .card {
    border: 0;
    background: none;
    box-shadow: none;
}
body.about-page #content-box > .card > .card-body { padding: 0; }
body.about-page #content-box { margin-bottom: 0 !important; }
