/* Making new color pallet from what we alr have and so that the theme change remains relevant */
.paper {
    --ink: var(--text-color);
    --rule: color-mix(in srgb, var(--text-color) 35%, transparent);
    --rule-strong: color-mix(in srgb, var(--text-color) 70%, transparent);
    --muted: color-mix(in srgb, var(--text-color) 70%, var(--bg-color));

    overflow-y: auto;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    min-height: 100vh;
}

.paper a {
    color: inherit;
    text-decoration: none;
}

.masthead {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 0;
    text-align: center;
}

.masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;

    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}

.mast-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mast-link:hover {
    text-decoration: underline;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--ink);

    font-size: 1.4rem;
    cursor: pointer;
    display: inline-flex;
}

.nameplate {
    display: block;
    font-family: "UnifrakturMaguntia", "Playfair Display", Georgia, serif;
    font-size: clamp(2.6rem, 9vw, 6rem);
    line-height: 1.15;
    padding: 12px 0 6px;
}

.mast-rule {
    border-top: 4px double var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    padding: 6px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.paper-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 8px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;

    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.kicker i {
    font-size: 8rem;
    color: var(--ink);
}

.byline {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 10px;
}

.front {
    columns: 3 280px;
    column-gap: 40px;
    column-rule: 1px solid var(--rule);
}

.front-item {
    display: block;
    break-inside: avoid;

    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--rule);
}

.front-headline {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.front-latest {
    margin-top: 6px;
    font-size: 1.05rem;
}

.front-excerpt {
    margin-top: 6px;
    color: var(--muted);
}

.front-item:hover h2,
.lead:hover h2,
.story:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.lead {
    display: block;
    text-align: center;

    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 4px double var(--rule-strong);
}

.lead .kicker {
    justify-content: center;
}

.lead-headline {
    font-family: "Playfair Display", Georgia, Serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 4rem);
    
    max-width: 18ch;
    margin: 0 auto;
}

.lead-excerpt {
    font-style: italic;
    font-size: 1.2rem;

    max-width: 60ch;
    margin: 14px auto 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.crumbs a,
.crumbs .here {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.crumbs a:hover {
    text-decoration: underline;
    color: var(--ink);
}

.crumbs .here {
    color: var(--ink);
    font-weight: 600;
}

.columns {
    columns: 3 240px;
    column-gap: 36px;
    column-rule: 1px solid var(--rule);
}

.story {
    display: block;
    break-inside: avoid;

    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

.story-headline {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.45rem;
}

.story-excerpt {
    margin-top: 6px;
    color: var(--muted);
}

.article {
    max-width: 1000ch;
    margin: 0 auto;
}

.article-head {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}

.article-headline {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.article-body {
    font-size: 1.15rem;
}

.article-body > * + * {
    margin-top: 1em;
}

.article-body > p:first-of-type::first-letter {
    float: left;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 900;
    font-size: 4.4em;
    padding-left: 8px;

    line-height: 0.8;
}

.article-body h2,
.article-body h3 {
    font-family: "Playfair Display", Georgia, serif;
    margin-top: 1.6em;
}

.article-body a {
    text-decoration: underline;
}

.article-body ul,
.article-body ol {
    padding-left: 1.4em;
}

.article-body img {
    max-width: 100%;
}

.article-body blockquote {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    text-align: center;

    padding: 18px 0;
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
}

.article-body pre {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 14px;
    overflow-x: auto;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
}

.article-body th,
.article-body td {
    border-bottom: 1px solid var(--rule);
    padding: 8px;
    text-align: left;
}

.back {
    display: block;
    text-align: center;
    margin-top: 40px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--muted);
}

.back:hover {
    color: var(--ink);
    text-decoration: underline;
}

.paper-foot {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    border-top: 4px double var(--rule-strong);
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;

    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted);
}

.paper-foot a:hover {
    text-decoration: underline;
}