/* =========================================================
   Variables
========================================================= */

:root {
    /* COLORS */
    --background: #f7f3ea;

    --masthead: #2E2927;
    --motto: #8C7863;

    --text: #030303;

    --muted: #6F6A61;

    --article-title: #4C4340;
    --article-subtitle: #7A6A58;
    --article-text: #2E2927;
    --article-quote: #6F6A61; 

    --meta-area: #7A746D;
    --footer-copyright: #6F6A61;

    --rule: #c9c0b2;
 
    --accent: #A36E6E;
    --accent-bronze: #7A6A58;

    --hover: #BE8686;

    /* SIZING */
    --max-width: 820px;

    /* FONT SIZES */
    --font-small-x: 0.9rem;    
    --font-small: 0.97rem;
    --font-medium: 1rem;
    --font-large: 1.1rem;
    --font-large-x: 1.6rem;

    /* May be Unused or Unneeded: Verify before deleting */
    --intro-min: 0.92rem;
    --intro-fluid: 2.2vw;
    --intro-max: 1.05rem;

    /* Add Extra Space Above or Below a Container */
    --extra-space: 20px;
}

/* =========================================================
   Foundational Building Blocks
========================================================= */

* {
    box-sizing: border-box;
}

.work-in-progress {
    display: none;
}

.muted {
    color: var(--muted);
}

.nbsp {
    white-space: nowrap;
}

.pointer {
    cursor: auto;
    user-select: none;
}

html {
    min-height: 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 26px 24px;
}

.page-container {
    min-height: 100vh;
    padding: 56px 24px;
}

body {
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    top: -0.4em;
    vertical-align: baseline;
}

li {
    color: var(--article-text);
}

p {
    margin: 0 0 1.25em;
    color: var(--article-text)
}

p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Extra Spacing
========================================================= */

.space-above {
    padding-top: var(--extra-space);
}

.space-below {
    padding-bottom: var(--extra-space);
}

/* =========================================================
   Footnotes
========================================================= */

.footnote-poem {
    font-style: italic;
    color: var(--muted);
    padding-left: 2.5rem;
    padding-top: 0.3rem;
}

.footnote-ref {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    text-decoration: none;
    font-size: 0.8em;
}

.footnotes-list {
    padding-left: 1.5em;
}

.footnote-item {
    margin-bottom: 1.25em;
    line-height: 1.6;
}

.footnote-backlink,
.footnote-backlink:visited {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    margin-left: 0.4em;
}

.footnote-backlink:hover {
    color: var(--hover);
    border-bottom-color: var(--hover);
}

/* =========================================================
   Masthead
========================================================= */

.brand-seal {
    margin: 0 auto 18px;
    line-height: 0;
}

.brand-seal img {
    display: block;
    width: clamp(140px, 13vw, 150px);
    height: auto;
    margin: 0 auto;
    opacity: 0.88;
}

.date {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: var(--font-small-x);
}

h1 {
    margin: 0;
    line-height: 0.95;
    color: var(--text);
    color: var(--masthead);
    font-weight: 400;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.025em;
    font-size: clamp(3.35rem, 10vw, 6.25rem);
}

header {
    text-align: center;
}

.interior-masthead {
    margin: 0;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--masthead);
}

/* =========================================================
   Home Page Masthead and Interior Page Mastheads
========================================================= */

.masthead-divider {
    position: relative;
    height: 1px; 
    margin: 0 0 3em;
}

.masthead-divider::before,
.masthead-divider::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--rule);
}

.masthead-divider::before {
    top: 2px;
}

.masthead-divider::after {
    top: 4px;
}

.interior-masthead a,
.interior-masthead a:visited {
    color: inherit;
    text-decoration: none;
}

.interior-masthead a:hover {
    color: inherit;
    text-decoration: none;
}

.interior-masthead a:focus-visible {
    outline: 1px solid var(--rule);
    outline-offset: 0.2em;
}

.motto {
    margin: 20px auto 0;
    max-width: 620px;
    color: var(--accent);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--motto);
}

.rule {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 0 auto 28px;
}

.rule.bottom {
    margin: 30px auto 22px;
}

/* =========================================================
   Body
========================================================= */

.scansion-line {
    padding-left: 2.5em;
}

.dedication {
    color: var(--muted);
    text-align: center;
    font-style: italic;
    line-height: 1.5em;
    padding-top: 1em;
}

.contact-email {
    margin-top: 2em;
    text-align: center;
}

.contact-email a,
.contact-email a:visited {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.contact-email a:hover {
    color: var(--hover);
    border-bottom-color: var(--hover);
}

.interior-content {
    max-width: 680px;
    margin: 0 auto;
}

.interior-page {
    align-items: flex-start;
    padding: 32px;
}

.intro {
    font-size: 17px;
}

main {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    color: var(--accent-bronze);
    margin: 0 0 1.5em;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 24px;
}

.page-title-with-subtitle {
    margin-bottom: 0.25em;
}

.section-subtitle {
    color: var(--muted);
    opacity: 0.78;
    font-variant: small-caps;
    letter-spacing: 0.09em;
    font-size: 18px;
}

.section-subtitle::before {
    color: var(--rule);
    font-variant: normal;
    letter-spacing: normal;
    opacity: 1;
}

.section-subtitle-stacked {
    text-align: center;
    display: block;
}

.section-divider {
    color: var(--accent-bronze);
    margin-top: 1.3rem;
    margin-bottom: 1.8rem;
    text-align: center;
    letter-spacing: 0.85em;
    opacity: 0.65;
    font-size: 0.78rem;
}

/* =========================================================
   Article Pages
========================================================= */

.article-tagline {
    color: var(--article-title);
    letter-spacing: 0.025rem;
    line-height: 1.6rem;
    padding-top: 0.2rem;
    margin-bottom: 0.65rem;
    margin-right: 1rem;
    font-style: italic;
    font-size: 18px;
}

.article-title {
    color: var(--article-title);
    padding-top: 0.85em;
    margin-bottom: 0.3rem;
    text-align: center;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.045rem;
    font-size: 27px;
}

.article-date {
    color: var(--accent-bronze);
    margin: 0 0 0.4em;
    text-align: center;
    font-size: 16.5px;
}

.article-author {
    color: var(--accent-bronze);
    margin: 1.5rem 0 0.3em;
    text-align: center;
    font-style: italic;
    font-size: 17px;
    letter-spacing: 0.035em;
}

.article-author::before {
    content: "By ";
}

.article-subtitle {
    color: var(--article-subtitle);
    margin-bottom: 0.4rem;
    margin-right: 2.5rem;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.04em;
    line-height: 1.2em;
    font-size: 22px;
}

.article-meta {
    margin-top: 0.1em;
    border-top: none;
    letter-spacing: 0.04em;
    font-size: 16px;
}

.article-info {
    color: var(--meta-area);
    text-align: left;
}

.article-info p {
    color: var(--meta-area);
    margin: 0;
    line-height: 1.4;
    font-size: 16px;
}

.article-info p::before {
    color: var(--meta-area);
    font-size: inherit;
}

.article-version::before,
.poem-author::before,
.article-provenance::before {
    color: var(--meta-area);
    font-size: inherit;
}

.article-version::before {
    content: "Version ";
}

.poem-author::before {
    content: "Author: ";
}

.article-provenance::before {
    content: "Provenance Token: ";
}

/* Article Divider */

.article-divider,
.article-divider-inset {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
    margin-bottom: 3em;
}

.article-divider-inset {
    margin-bottom: 1em;
}

.article-divider-line {
    width: 80px;
    height: 0.8px;
    background-color: var(--muted);
    opacity: 0.65;
}

.article-divider-diamond {
    width: 6px;
    height: 6px;
    margin: 0 14px;
    background-color: var(--muted);
    transform: rotate(45deg);
    opacity: 0.85;
}

/* Article Tags */

.article-tags,
.article-tags div {
    margin-top: 1.75em;
    text-align: left;
    line-height: 1.4;
}

p.article-tags-title {
    margin: 0;
    line-height: 1.4;
}

p.article-tags-title {
    text-align: left;
}

.article-tag-list {
    margin: 0;
    text-align: left;
    line-height: 1.4;
}

.article-tag {
    color: var(--meta-area);
    white-space: nowrap;
}

.article-tag:not(:last-child)::after {
    content: " |";
    color: var(--muted);
}

/* Styles for Long-Form Articles */

.article-section-title {
    color: var(--text);
    margin: 3.5em 0 0.35em;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
}

.article-section-subtitle {
    margin: 0 0 2em;
    text-align: center;
    font-style: italic;
    color: var(--muted);
    font-size: 1rem;
}

.article-quote {
    max-width: 42rem;
    margin: 0 auto 1.275em;
    padding-left: 2rem;
    padding-right: 2rem;
    line-height: 1.6;
    font-style: italic;
    font-size: 16.75px;
}

.article-quote p {
    color: var(--article-quote);
}

.article-quote-source {
    display: block;
    font-style: italic;
    margin-top: 0.75em;
}

/* =========================================================
   Footer
========================================================= */

.footer-current {
    color: var(--muted);
    opacity: 0.75;
    cursor: default;
    text-decoration: none;
    margin: 0;
    padding: 0;
    display: inline;
    font-size: 16px;
}

.footer-nav {
    color: var(--accent);
    margin-top: 44px;
    padding-top: 24px;
    text-decoration: none;
    border-top: 1px solid var(--rule);
    text-align: center;
    letter-spacing: 0.04em;
    font-size: 16px;
}

.footer-nav a,
.footer-nav a:visited {
    color: var(--accent);
    text-decoration: inherit;
    border-bottom: 1px solid var(--accent);
}

.footer-nav a:hover {
    color: var(--hover);
    text-decoration: inherit;
    border-bottom-color: var(--hover);
}

.footer-copyright {
    color: var(--footer-copyright);
    border-top: 1em;
    text-align: center;
    opacity: 0.7;
    font-size: 16px;
}

.footer-separator {
    margin: 0 0.5em;
    color: var(--muted);
}

/* =========================================================
   Lightbox Feature
========================================================= */

.lightbox-image {
    cursor: pointer;
}

.lightbox-modal {
    padding: 0.5rem;
    border: 1px solid var(--rule);
    background: rgba(248, 244, 232, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    max-width: 90vw;
    max-height: 88vh;
    overflow: hidden;
    box-sizing: border-box;
}

.lightbox-modal::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.lightbox-modal img {
    display: block;
    max-width: calc(90vw - 1rem);
    max-height: calc(88vh - 1rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;

    width: 2rem;
    height: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 2px solid #d89b00;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #000;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    padding-left: 1px;
}

.lightbox-close:focus {
    outline: none;
}

.lightbox-close:hover {
    background: #fff;
}

@media (max-width: 640px) {
    .lightbox-modal {
        max-width: 94vw;
        max-height: 86vh;
        padding: 0.4rem;
    }

    .lightbox-modal img {
        max-width: calc(94vw - 0.8rem);
        max-height: calc(86vh - 0.8rem);
    }
}

/* =========================================================
   Download Links
========================================================= */

.download-link a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.download-link a:hover {
    color: var(--hover);
    border-bottom-color: var(--hover);
}

/* =========================================================
   Home Page Styles
========================================================= */

.home-footer-nav {
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;
}

.home-index-heading {
    margin: 2em auto 2em;
    text-align: center;
}

.home-index-heading h2 {
    margin: 0.25em auto 0.25em auto;
    color: var(--accent);
    color: var(--accent-bronze);
    font-variant: small-caps;
    letter-spacing: 0.10em;
    font-weight: 500;
    font-size: var(--font-large-x);
}

.home-index-heading-rule {
    position: relative;
    width: 38%;
    height: 6px;
    margin: 0 auto;
}

.home-index-heading-rule::before,
.home-index-heading-rule::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--rule);
}

.home-index-heading-rule::before {
    top: 1px;
}

.home-index-heading-rule::after {
    top: 4px;
}

.home-entry {
    margin: 1.3rem 0 1.3em 0;
}

.home-entry p:first-child {
    margin-top: 0;
}


.home-entry p:last-child {
    margin-bottom: 0;
}


/* Shared .home-entry-* and .chamber-entry-* styles */

.home-entry-title,
.home-entry-title a,
.home-entry-title a:visited,
.chamber-entry-title,
.chamber-entry-title a,
.chamber-entry-title a:visited,
.link-list-item,
.link-list-item a,
.link-list-item a:visited {
    color: var(--accent);
    margin-bottom: 0.35em;
    margin-top: 1.6em;
    text-align: left;
    letter-spacing: 0.032rem;
    font-weight: 500;
    font-size: 19px;
}

.link-list-item {
    margin-top: 0.7em;
}

.home-entry-title a,
.chamber-entry-title a,
.link-list-item a {
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.home-entry-title a:hover,
.chamber-entry-title a:hover,
.link-list-item a:hover {
    color: var(--hover);
    border-bottom-color: var(--hover);
}

.home-entry-subtitle,
.chamber-entry-subtitle {
    margin-top: 0.18rem;
    margin-bottom: 0.12rem;
    color: var(--muted);
    opacity: 0.78; 
    text-align: left;
    font-variant: small-caps;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    line-height: 1.45;
    font-size: 17px;
}

.chamber-entry-subtitle {
    line-height: 1.25;
    margin-right: 5em;
}

.home-entry-description,
.chamber-entry-description {
    margin: 0 0 0.25em;
    max-width: 34rem;
    font-weight: 400;
    font-size: 18px;
}

/* =========================================================
   Dormant & Draft-Mode Styles
========================================================= */

.home-entry-dormant,
.chamber-entry-dormant {
    opacity: 0.6;
}

.home-entry-dormant .home-entry-title,
.chamber-entry-dormant .chamber-entry-title {
    color: var(--text);
    font-weight: 500;
}

.home-entry-dormant .home-entry-subtitle,
.home-entry-dormant .chamber-entry-subtitle {
    opacity: 0.9;
}

.draft-mode {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* =========================================================
   Easter Egg
========================================================= */

.ee-trigger {
    position: relative;
    display: inline-block;
}

.ee-logo-default,
.ee-logo-easter-egg {
    display: block;
    height: 100px;
    width: 100px;
    margin-bottom: 1rem;
}

.ee-logo-easter-egg {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1000ms ease-in-out;
}

.easter-egg-active .ee-logo-easter-egg {
    opacity: 1;
}

.motto {
    position: relative;
}

.ee-motto-default,
.ee-motto-easter-egg {
    transition: opacity 1000ms ease-in-out;
}

.ee-motto-easter-egg {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.easter-egg-active .ee-motto-default {
    opacity: 0;
}

.easter-egg-active .ee-motto-easter-egg {
    opacity: 1;
}

.motto {
    position: relative;
}

.motto-default,
.motto-easter-egg {
    transition: opacity 1000ms ease-in-out;
}

.motto-easter-egg {
    position: absolute;
    inset: 0;
    opacity: 0;
}

body.easter-egg-active .motto .motto-default {
    opacity: 0;
}

body.easter-egg-active .motto .motto-easter-egg {
    opacity: 1;
}

#masthead-logo-trigger.easter-egg-active ~ .motto .motto-default {
    opacity: 0;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 640px) {
    body {
        font-size: 17px;
        line-height: 1.6;
    }

    .page {
        align-items: flex-start;
        padding: 42px 20px;
        margin-left: 0;
        margin-right: 0;
    }

    header {
        margin-bottom: 12px;
    }

    .rule {
        margin-bottom: 24px;
    }

    .rule.bottom {
        margin-top: 26px;
    }
}