/* ----------------------------------------------------
   FO Brand Variables
---------------------------------------------------- */
:root {
    --fo-sand: #E7D9C4;
    --fo-charcoal: #1A1A1A;
    --fo-ink-blue: #2F3E4E;
    --fo-soft-graphite: #C8C8C8;
    --fo-warm-white: #FAF8F5;
    --fo-font-serif: 'PT Serif', serif;
}

/* ----------------------------------------------------
   Base Typography
---------------------------------------------------- */
body {
    font-family: var(--fo-font-serif);
    background-color: var(--fo-warm-white);
    color: var(--fo-charcoal);
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fo-font-serif);
    color: var(--fo-ink-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--fo-ink-blue);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ----------------------------------------------------
   Layout Helpers
---------------------------------------------------- */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Optional subtle divider */
.divider {
    border-bottom: 1px solid var(--fo-soft-graphite);
    margin: 2rem 0;
}

/* Buttons (Bootstrap override) */
.btn-primary {
    background-color: var(--fo-ink-blue);
    border-color: var(--fo-ink-blue);
}

    .btn-primary:hover {
        background-color: var(--fo-charcoal);
        border-color: var(--fo-charcoal);
    }

/* ---------------------------------------------------------
   FO Article Mode — Typography + Layout
   --------------------------------------------------------- */

.fo-article-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

    /* Typography: print-adjacent serif for article reading */
    .fo-article-container,
    .fo-article-container p,
    .fo-article-container li {
        font-family: "Georgia", "Times New Roman", serif;
        font-size: 1.05rem;
        line-height: 1.6;
        color: #222;
    }

/* Title block */
.fo-article-header {
    margin-bottom: 1.5rem;
}

.fo-article-section-label {
    font-style: normal;
}

.fo-article-section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 0.5rem;
    font-family: inherit; /* keep serif */
}

.fo-article-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.25;
    font-family: inherit; /* serif */
}

.fo-article-date {
    color: #888;
    font-size: 0.9rem;
}

/* Author intro */
.fo-article-author-intro {
    margin-bottom: 2.5rem;
}

/* Article body */
.fo-article-body p {
    margin-bottom: 1.4rem;
}

/* Principled tail */
.fo-article-tail {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--fo-sand);
    border-radius: 6px;
    font-size: 0.95rem;
}

.fo-article-tail-link {
    color: inherit;
    text-decoration: underline;
}

/* Other articles list */
.fo-recent-articles {
    margin-top: 4rem;
}

.fo-recent-list {
    list-style: none;
    padding-left: 0;
}

    .fo-recent-list li {
        margin-bottom: 1.5rem;
    }

.fo-recent-link {
    color: #222;
    text-decoration: none;
}

.fo-recent-summary {
    color: #777;
    font-size: 0.9rem;
}

selfcheck {
    display: block;
    border-left: 2px solid var(--fo-soft-graphite);
    margin: 2rem 0;
    padding-left: 1rem;
    font-family: var(--fo-font-serif);
    color: var(--fo-charcoal);
    font-size: 0.95rem;
    line-height: 1.6;
}

quote {
    display: block;
    border-left: 2px solid var(--fo-soft-graphite);
    margin: 1.5rem 0;
    padding-left: 1rem;
    font-family: var(--fo-font-serif);
    color: var(--fo-charcoal);
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   FO Footnotes
   --------------------------------------------------------- */

.fo-footnote {
    font-family: var(--fo-font-serif);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fo-charcoal);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fo-soft-graphite);
}

.fo-footnote-item {
    margin-bottom: 0.75rem;
    text-indent: -1.2rem; /* hanging indent */
    padding-left: 1.2rem;
}

.fo-footnote-ref {
    font-family: var(--fo-font-serif);
    font-size: 0.75rem;
    color: var(--fo-ink-blue);
    vertical-align: super;
    line-height: 0;
    margin-left: 2px;
}

.fo-footnote-backlink {
    color: var(--fo-ink-blue);
    text-decoration: none;
}