/* ============================================================
   Our History — About > Our History  (article 720, menu 479)
   Ticket #36248 — built 2026-08-31
   Palette + type from content/override-school.css (.site-2)
   ============================================================ */

.oh-page {
    --oh-primary: #2B3F2B;
    --oh-primary-rgb: 43, 63, 43;
    --oh-secondary: #34603A;
    --oh-ink: #26302a;
    --oh-muted: #5a655c;
    --oh-rule: rgba(43, 63, 43, .18);
    --oh-ease: cubic-bezier(.22, .61, .36, 1);
    --oh-shadow: 0 .55rem 1.4rem rgba(43, 63, 43, .16);

    max-width: 860px;
    margin: 0 auto;
    color: var(--oh-ink);
    font-family: 'Literata', Georgia, 'Times New Roman', serif;
}

/* ---- lede ---------------------------------------------------- */
.oh-page > .oh-lede {
    margin: 0 0 2.4rem;
    padding: 0 0 1.6rem;
    border-bottom: 1px solid var(--oh-rule);
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--oh-primary);
}

/* ---- narrative sections ----------------------------------- */
.oh-page > .oh-section {
    margin: 0 0 2.4rem;
}
.oh-page > .oh-section p {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.75;
}
.oh-page > .oh-section p:last-child {
    margin-bottom: 0;
}

/* ---- figure pairs ---------------------------------------- */
.oh-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin: 0 0 2.6rem;
}
.oh-figures--single {
    grid-template-columns: min(520px, 100%);
    justify-content: center;
}
.oh-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.oh-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--oh-rule);
    box-shadow: var(--oh-shadow);
}
.oh-caption {
    display: block;
    margin-top: .6rem;
    font-size: .92rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--oh-muted);
    text-align: center;
}

@media (max-width: 620px) {
    .oh-figures,
    .oh-figures--single {
        grid-template-columns: 1fr;
    }
}

/* ---- video --------------------------------------------------- */
.oh-video {
    margin: 0 0 1rem;
}
.oh-video .oh-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--oh-rule);
    box-shadow: var(--oh-shadow);
    background: var(--oh-primary);
}
.oh-video .oh-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* no-JS / pre-enhancement fallback: a plain link */
.oh-video > a {
    display: inline-block;
    padding: .7rem 1.15rem;
    background: var(--oh-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

/* ============================================================
   MOTION — everything below is safe to lose
   ============================================================ */

/* colour/shadow hover stays outside the motion query */
.oh-figure img {
    transition: box-shadow .3s var(--oh-ease), transform .35s var(--oh-ease);
}
.oh-figure:hover img,
.oh-figure:focus-within img {
    box-shadow: 0 .9rem 2rem rgba(43, 63, 43, .26);
}
.oh-video > a {
    transition: background .25s var(--oh-ease), transform .25s var(--oh-ease);
}
.oh-video > a:hover {
    background: var(--oh-secondary);
}
.oh-video > a:focus-visible {
    outline: 2px solid var(--oh-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .oh-figure:hover img,
    .oh-figure:focus-within img {
        transform: translateY(-3px) scale(1.02);
    }
    .oh-video > a:hover {
        transform: translateY(-2px);
    }
    .oh-video > a:active {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
    .oh-page > .oh-lede,
    .oh-page > .oh-section,
    .oh-page > .oh-video {
        opacity: 0;
        transform: translateY(1.5rem);
        transition: opacity .7s var(--oh-ease), transform .7s var(--oh-ease);
    }
    .oh-page > .oh-figures {
        opacity: 0;
        transition: opacity .7s var(--oh-ease);
    }
    .oh-page > .oh-figures .oh-figure {
        opacity: 0;
        transform: translateY(1rem);
        transition: opacity .6s var(--oh-ease), transform .35s var(--oh-ease);
    }
    .oh-page > .oh-in,
    .oh-page > .oh-figures.oh-in .oh-figure.oh-in {
        opacity: 1;
        transform: none;
    }
}
