/*
Theme Name: Ordinary AI Labs
Description: Corporate site theme for Ordinary AI Labs - a fictional frontier AI research company in the I Was Unsupervised universe.
Author: Ordinary AI Labs
Version: 1.0.0
*/

/* ===== Brand tokens ===== */

:root {
    --charcoal: #0D0F12;
    --steel: #2B2E33;
    --ivory: #F2F2F0;
    --paper: #FFFFFF;
    --gold: #C9A15A;
    --signal: #2A7BFF;
    --line: #DEDEDA;
    --muted: #6A6D73;

    --font-display: 'Sora', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --wrap: 1120px;
    --prose: 68ch;
}

/* ===== Reset ===== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

.ord-skip {
    position: absolute;
    left: -9999px;
}

.ord-skip:focus {
    left: 16px;
    top: 16px;
    z-index: 200;
    background: var(--charcoal);
    color: var(--ivory);
    padding: 10px 16px;
    text-decoration: none;
}

/* ===== Layout ===== */

.ord-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

.ord-section {
    padding: 88px 0;
}

.ord-section + .ord-section {
    padding-top: 0;
}

.ord-prose {
    max-width: var(--prose);
}

.ord-prose h2 {
    font-size: 30px;
    margin: 56px 0 18px;
}

.ord-prose h3 {
    font-size: 21px;
    margin: 40px 0 12px;
}

.ord-prose h2:first-child,
.ord-prose h3:first-child {
    margin-top: 0;
}

.ord-prose a {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.ord-prose a:hover {
    text-decoration-color: var(--charcoal);
}

.ord-prose ul {
    list-style: none;
    margin: 0 0 1.2em;
}

.ord-prose ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.ord-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 1px;
    background: var(--gold);
}

/* ===== Header ===== */

.ord-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.ord-header-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ord-logo { text-decoration: none; }

.ord-logo img {
    max-height: 34px;
    width: auto;
}

.ord-logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.ord-logo-sub {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 0.22em;
}

.ord-nav-list {
    display: flex;
    gap: 30px;
}

.ord-nav-list a {
    font-size: 15px;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

.ord-nav-list a:hover {
    border-bottom-color: var(--gold);
}

@media (max-width: 720px) {
    .ord-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .ord-nav-list {
        gap: 20px;
        flex-wrap: wrap;
    }
}

/* ===== Hero ===== */

.ord-hero {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 132px 0 116px;
}

.ord-hero-title {
    font-size: clamp(44px, 7vw, 86px);
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.ord-hero-text {
    max-width: 56ch;
    font-size: 19px;
    color: #C9CACC;
}

.ord-hero-actions {
    margin-top: 38px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ord-btn {
    display: inline-block;
    background: var(--ivory);
    color: var(--charcoal);
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.ord-btn:hover { background: var(--gold); }

.ord-btn-quiet {
    background: transparent;
    color: var(--ivory);
    box-shadow: inset 0 0 0 1px #4A4D52;
}

.ord-btn-quiet:hover {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold);
}

/* ===== Standing facts band ===== */

.ord-facts {
    background: var(--ivory);
    padding: 44px 0;
}

.ord-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.ord-fact-value {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}

.ord-fact-label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

@media (max-width: 760px) {
    .ord-facts-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Section headings ===== */

.ord-section-title {
    font-size: 30px;
    margin-bottom: 28px;
}

.ord-more {
    margin-top: 26px;
}

.ord-more a {
    font-size: 15px;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

.ord-empty {
    color: var(--muted);
}

/* ===== Page headers ===== */

.ord-page-header {
    padding: 72px 0 44px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 52px;
}

.ord-page-title {
    font-size: clamp(32px, 4.4vw, 50px);
    letter-spacing: -0.015em;
    max-width: 22ch;
}

.ord-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ord-meta-sep {
    width: 14px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.ord-article,
.ord-page {
    padding-bottom: 96px;
}

/* ===== Newsroom list ===== */

.ord-news-list {
    border-top: 1px solid var(--line);
}

.ord-news-item {
    border-bottom: 1px solid var(--line);
}

.ord-news-link {
    display: block;
    padding: 26px 0;
    text-decoration: none;
}

.ord-news-link:hover .ord-news-title {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

.ord-news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 7px;
}

.ord-news-cat {
    color: var(--gold);
}

.ord-news-title {
    display: block;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 40ch;
}

.ord-news-excerpt {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 16px;
    max-width: 62ch;
}

.ord-news-list-full {
    margin-bottom: 44px;
}

/* ===== Leadership ===== */

.ord-leadership {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 52px 44px;
    margin: 12px 0 8px;
}

.ord-person-portrait {
    margin-bottom: 18px;
    background: var(--ivory);
}

.ord-person-portrait img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ord-person-portrait-lead {
    max-width: 320px;
    margin-bottom: 36px;
}

.ord-person-name {
    font-size: 21px;
}

.ord-person-role {
    color: var(--gold);
    font-size: 14px;
    margin: 5px 0 12px;
}

.ord-person-bio {
    font-size: 16px;
    color: var(--steel);
    max-width: 46ch;
}

@media (max-width: 760px) {
    .ord-leadership { grid-template-columns: 1fr; gap: 44px; }
}

/* ===== Pagination ===== */

.ord-pagination {
    padding-bottom: 80px;
}

.ord-pagination .page-numbers {
    display: inline-block;
    padding: 8px 13px;
    font-size: 15px;
    text-decoration: none;
    color: var(--muted);
}

.ord-pagination .page-numbers.current {
    color: var(--charcoal);
    box-shadow: inset 0 -1px 0 var(--gold);
}

/* ===== Footer ===== */

.ord-footer {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 64px 0 34px;
    margin-top: 40px;
}

.ord-footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    border-bottom: 1px solid #23262B;
}

.ord-footer-tagline {
    color: var(--gold);
    font-size: 15px;
    margin-top: 12px;
}

.ord-footer-list {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.ord-footer-list a {
    font-size: 15px;
    color: #C9CACC;
    text-decoration: none;
}

.ord-footer-list a:hover { color: var(--gold); }

.ord-footer-legal {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 26px 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8A8D93;
}

.ord-footer-legal p { margin: 0; }

.ord-fiction a {
    color: #8A8D93;
    text-decoration: underline;
    text-decoration-color: #4A4D52;
    text-underline-offset: 3px;
}

.ord-fiction a:hover { color: var(--gold); }
