/* Static ORION reading pages reuse the site's palette without the circuit camera. */
.project-page {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    font: 16px/1.7 var(--font-mono);
    overflow-wrap: anywhere;
}

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

.project-page a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(143, 243, 255, .5);
    color: var(--text-secondary);
    background: var(--bg-main);
    text-underline-offset: .25em;
    touch-action: manipulation;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.project-page a:hover,
.project-page a:focus-visible {
    color: var(--text-primary);
    background: var(--bg-highlight);
    border-color: var(--reactor-bright);
}

.project-page :focus-visible {
    outline: 3px solid var(--reactor-bright);
    outline-offset: 4px;
}

.project-skip {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    transform: translateY(-200%);
}

.project-skip:focus {
    transform: none;
}

.project-site-header,
.project-page main,
.project-footer {
    width: min(1152px, calc(100% - 32px));
    margin: 0 auto;
}

.project-site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(143, 243, 255, .25);
}

.project-site-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.project-heading {
    padding: 32px 0;
}

.project-page h1 {
    margin: 8px 0 16px;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .12em;
}

.project-page h2 {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
}

.project-page h3 {
    margin: 24px 0 12px;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
}

.project-page h4 {
    margin: 8px 0;
    font-size: 16px;
}

.project-page p {
    max-width: 72ch;
}

.project-code,
.project-page dt,
.project-evidence,
.project-resources span {
    font-size: 13px;
    color: var(--text-secondary);
}

.project-code {
    letter-spacing: .15em;
}

.project-meta,
.project-technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px 24px;
}

.project-meta dd,
.project-definitions dd {
    margin: 6px 0 0;
}

.project-record-note {
    padding-left: 16px;
    border-left: 2px solid var(--reactor);
}

.project-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.project-section {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-panel);
    border: 1px solid rgba(143, 243, 255, .25);
    scroll-margin-top: 16px;
}

.project-definitions > div {
    padding: 12px 0;
    border-bottom: 1px solid rgba(143, 243, 255, .15);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.project-gallery figure {
    margin: 0;
}

.project-gallery a {
    display: block;
    padding: 0;
}

.project-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
}

.project-gallery figcaption {
    margin-top: 12px;
    font-size: 14px;
}

.project-milestones {
    padding-left: 24px;
}

.project-milestones li {
    margin-bottom: 24px;
    padding-left: 8px;
}

.project-missing {
    color: var(--text-secondary);
}

.project-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.project-resources span {
    display: block;
    margin-top: 8px;
}

.project-footer {
    padding: 0 0 32px;
}

@media (max-width: 600px) {
    .project-section {
        padding: 20px 16px;
    }

    .project-contents {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-page *,
    .project-page *::before,
    .project-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
