/* ============================================================
   Outlying One — AI Future Stylesheet
   Sharp • Forward-Looking • Builder-Led Clarity
============================================================ */

/* ------------------------------------------------------------
   Base layout and typography
------------------------------------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
    background: #f5f6f8; /* cool, slightly brighter neutral */
    color: #1c1c1c;
    line-height: 1.68;
}

header,
main {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1 {
    font-weight: normal;
    font-size: 2.65rem;
    letter-spacing: 0.045em;
    margin-bottom: 0.6rem;
    color: #26323c; /* deep graphite */
}

h2 {
    font-weight: normal;
    font-size: 1.75rem;
    margin-top: 3rem;
    letter-spacing: 0.03em;
    color: #26323c;
}

h3 {
    font-weight: normal;
    font-size: 1.28rem;
    margin-top: 2rem;
    letter-spacing: 0.02em;
    color: #2f5c9a; /* future blue */
}

/* ------------------------------------------------------------
   Dividers and text column
------------------------------------------------------------ */

.divider {
    margin: 2.7rem 0;
    height: 1px;
    background: #b3b9c1; /* cool grey */
    width: 62%;
}

.text-column {
    max-width: 80ch;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Navigation — minimal, precise, slightly more assertive
------------------------------------------------------------ */

.ai-nav {
    text-align: center;
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: navFade 1.6s ease-out forwards;
    animation-delay: 0.35s;
    font-size: 0.96rem;
    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: #26323c;
    margin: 0 0.35rem;
    opacity: 0.55;
    transition: opacity 0.25s ease, letter-spacing 0.25s ease;
}

.ai-nav a:hover {
    opacity: 0.8;
}

.ai-nav a.active {
    opacity: 1;
    letter-spacing: 0.055em;
    font-weight: 500;
}

.nav-sep {
    margin: 0 0.3rem;
    opacity: 0.45;
    font-size: 0.7rem;
}

/* ------------------------------------------------------------
   Panels and callouts — slightly higher contrast than Foundations
------------------------------------------------------------ */

.panel {
    background: #e9ecf1;
    padding: 1.9rem 1.5rem;
    border-radius: 6px;
    box-shadow: inset 0 0 7px rgba(0,0,0,0.045);
    margin: 2.1rem 0;
}

.code-panel {
    background: #e3e6eb;
    padding: 1.45rem;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.96rem;
    overflow-x: auto;
}

/* ------------------------------------------------------------
   Links and accents
------------------------------------------------------------ */

a {
    color: #2f5c9a; /* future blue */
    text-decoration: none;
    transition: opacity 0.25s ease;
}

a:hover {
    opacity: 0.7;
}

.accent {
    color: #d0a24c; /* future gold */
}

/* ------------------------------------------------------------
   Back link
------------------------------------------------------------ */

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    opacity: 0.7;
    text-decoration: none;
    color: #26323c;
    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 #b3b9c1;
}

.ai-nav-footer a {
    color: #2f5c9a;
    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;
}
