/* ============================================================
   Outlying One — AI Foundations Stylesheet
   Cool • Architectural • Engineering Clarity
============================================================ */

/* ------------------------------------------------------------
   Base layout and typography
------------------------------------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
    background: #f2f4f7; /* cool neutral */
    color: #1f1f1f;
    line-height: 1.65;
}

header,
main {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1 {
    font-weight: normal;
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    color: #2f3b45; /* graphite */
}

h2 {
    font-weight: normal;
    font-size: 1.7rem;
    margin-top: 3rem;
    letter-spacing: 0.03em;
    color: #2f3b45;
}

h3 {
    font-weight: normal;
    font-size: 1.25rem;
    margin-top: 2rem;
    letter-spacing: 0.02em;
    color: #3a5f8f; /* engineering blue */
}

/* ------------------------------------------------------------
   Dividers and text column
------------------------------------------------------------ */

.divider {
    margin: 2.5rem 0;
    height: 1px;
    background: #b8bec6; /* cool grey */
    width: 60%;
}

.text-column {
    max-width: 80ch;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Navigation — minimal, precise
------------------------------------------------------------ */

.ai-nav {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: navFade 1.8s ease-out forwards;
    animation-delay: 0.4s;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

@keyframes navFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-nav a {
    text-decoration: none;
    color: #2f3b45;
    margin: 0 0.35rem;
    opacity: 0.55;
    transition: opacity 0.25s ease, letter-spacing 0.25s ease;
}

.ai-nav a:hover {
    opacity: 0.75;
}

.ai-nav a.active {
    opacity: 1;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.nav-sep {
    margin: 0 0.3rem;
    opacity: 0.45;
    font-size: 0.7rem;
}

/* ------------------------------------------------------------
   Panels and callouts
------------------------------------------------------------ */

.panel {
    background: #e8ebef;
    padding: 1.8rem 1.4rem;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.04);
    margin: 2rem 0;
}

.code-panel {
    background: #e2e5e9;
    padding: 1.4rem;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    overflow-x: auto;
}

/* ------------------------------------------------------------
   Links and accents
------------------------------------------------------------ */

a {
    color: #3a5f8f;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

a:hover {
    opacity: 0.7;
}

.accent {
    color: #c8a45a; /* energy-aware gold */
}

/* ------------------------------------------------------------
   Back link
------------------------------------------------------------ */

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    opacity: 0.7;
    text-decoration: none;
    color: #2f3b45;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 1;
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #4a4f55;
}

/* ------------------------------------------------------------
   Colophon line
------------------------------------------------------------ */

.colophon-line {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: #4a4f55;
}

/* ------------------------------------------------------------
   Previous / Next footer navigation
------------------------------------------------------------ */
.ai-nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #b8bec6;
    max-width: 42rem;  
    margin-left: auto;
    margin-right: auto;
}

.ai-nav-footer a {
    color: #3a5f8f;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: opacity 0.25s ease;
}

.ai-nav-footer a:hover {
    opacity: 0.7;
}

.ai-nav-prev {
    text-align: left;
}

.ai-nav-next {
    text-align: right;
    margin-left: auto;
}
