/* =============================================================================
   mcp-weekly theme -- screen.css
   ----------------------------------------------------------------------------
   "Blueprint": schematic / technical. Faint dot-grid paper, square corners,
   hairline rules, monospace caps labels, one violet accent. System fonts only.
   Sans + mono, NO serif anywhere -- that is the deliberate split from the
   sibling tokenlimit.news theme, which is serif-bodied and warm.

   The theme commits to a single light treatment on purpose: the dot-grid paper
   IS the identity, and it has no meaningful dark inversion. There is no
   prefers-color-scheme branch by design.

   Scope:
     - Tokens + reset + base typography
     - Layout primitives (.container)
     - .rule-label -- the recurring mono caps label with a trailing hairline
     - Site chrome (header, footer)
     - Landing page (hero + 4 below-the-fold sections)
     - Post / page / archive / pagination
     - Subscribe form (Ghost Portal-wired)
   ============================================================================= */

/* ----- Tokens ----- */
:root {
    --color-bg: #f7f7f5;           /* paper */
    --color-grid: rgba(17, 17, 17, 0.055);
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-muted: #4a4a4a;
    --color-text-subtle: #6f6f6f;
    --color-rule: #d8d8d2;         /* hairline separators */
    --color-rule-strong: #111111;
    --color-accent: #6d28d9;       /* violet -- single accent */
    --color-accent-hover: #5b21b6;
    --color-accent-ring: rgba(109, 40, 217, 0.22);
    --color-code-bg: #f0f0ec;
    --color-success: #15803d;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;

    --container-narrow: 660px;
    --container-default: 900px;
    --container-wide: 1120px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Square corners are load-bearing for this theme. Kept as a token so a
       future softening is one edit, not a sweep. */
    --radius: 0;

    --label-size: 0.75rem;
    --label-tracking: 0.12em;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* ~17px */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* The dot grid. Fixed attachment would jitter on iOS momentum scroll, so it
       scrolls with the page. */
    background-color: var(--color-bg);
    background-image: radial-gradient(circle at 1px 1px, var(--color-grid) 1px, transparent 0);
    background-size: 24px 24px;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
    transition: color 120ms ease;
}

a:hover,
a:focus-visible {
    color: var(--color-accent);
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 var(--space-4);
}

ul, ol {
    padding-left: 1.25rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--color-rule);
    margin: var(--space-6) 0;
}

/* ----- Layout primitives ----- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container-default);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

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

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

/* =============================================================================
   .rule-label -- the recurring schematic label
   ----------------------------------------------------------------------------
   Mono, uppercase, letterspaced, with a hairline that runs to the end of the
   line: "LATEST . 2026-08-09 ---------------------".

   Implemented with overflow:hidden + a 100%-wide inline-block ::after rather
   than flexbox. Flexbox would promote each inline child (the bare text, the
   <time>, the separator, an <a>) into a separate flex item and insert gaps
   between them; this keeps the label as ordinary inline flow, so the markup can
   carry any mix of text, entities and links.
   ============================================================================= */
.rule-label {
    font-family: var(--font-mono);
    font-size: var(--label-size);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
    color: var(--color-text-subtle);
    margin: 0 0 var(--space-3);
    overflow: hidden;
}

.rule-label::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1px;
    margin-left: var(--space-3);
    background-color: var(--color-rule);
}

.rule-label--accent {
    color: var(--color-accent);
}

.rule-label--accent::after {
    background-color: var(--color-accent);
    opacity: 0.35;
}

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

.rule-label a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ----- Site header ----- */
.site-header {
    border-bottom: 1px solid var(--color-rule-strong);
    background-color: var(--color-bg);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-logo-mark {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 0.25rem 0.4rem;
}

.site-logo-slash {
    color: var(--color-accent);
    padding: 0 0.25rem;
}

.site-logo-name {
    color: var(--color-text);
}

.site-nav {
    display: flex;
    gap: var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
}

.site-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-accent);
}

/* ----- Site footer ----- */
.site-footer {
    border-top: 1px solid var(--color-rule-strong);
    margin-top: var(--space-9);
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.site-footer-inner {
    text-align: center;
}

.site-footer-tagline {
    margin-bottom: var(--space-4);
}

.site-footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
}

.site-footer-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
}

.site-footer-nav a:hover {
    color: var(--color-accent);
}

.site-footer-copyright {
    color: var(--color-text-subtle);
    font-family: var(--font-mono);
    font-size: var(--label-size);
    margin: 0;
}

/* =============================================================================
   LANDING PAGE
   ============================================================================= */

.landing > section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.landing > section + section {
    border-top: 1px solid var(--color-rule);
}

/* ----- Hero ----- */
.hero {
    padding-top: var(--space-8);
}

.hero-inner {
    max-width: var(--container-narrow);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw + 1rem, 3.25rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 1.05;
    margin-bottom: var(--space-5);
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    max-width: 38rem;
}

.hero-latest {
    margin-top: var(--space-8);
    padding: var(--space-5);
    background-color: var(--color-surface);
    border: 1px solid var(--color-rule);
    border-left: 3px solid var(--color-accent);
}

.hero-latest-title {
    font-size: 1.375rem;
    margin-bottom: var(--space-3);
}

.hero-latest-title a {
    text-decoration: none;
}

.hero-latest-title a:hover {
    text-decoration: underline;
}

.hero-latest-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-4);
}

.hero-latest-readmore {
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
    margin: 0;
}

.hero-latest-readmore a {
    text-decoration: none;
    color: var(--color-accent);
}

.hero-latest-readmore a:hover {
    text-decoration: underline;
}

/* ----- Section heading (shared) ----- */
.section-heading {
    font-size: 1.375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-6);
    overflow: hidden;
}

.section-heading::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1px;
    margin-left: var(--space-4);
    background-color: var(--color-rule-strong);
}

/* ----- "What's in each issue" ----- */
.sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--color-rule);
    background-color: var(--color-surface);
}

/* Single hairline between cells rather than doubled borders: each card draws
   only its top edge, and the first in each column suppresses it. */
.section-card {
    padding: var(--space-5);
    border-top: 1px solid var(--color-rule);
}

.section-card:first-child {
    border-top: 0;
}

@media (min-width: 700px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-card:nth-child(2) {
        border-top: 0;
    }

    .section-card:nth-child(even) {
        border-left: 1px solid var(--color-rule);
    }
}

.section-card-index {
    font-family: var(--font-mono);
    font-size: var(--label-size);
    font-weight: 700;
    letter-spacing: var(--label-tracking);
    color: var(--color-accent);
    margin: 0 0 var(--space-3);
}

.section-card-title {
    font-size: 1.0625rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-3);
}

.section-card-body {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ----- Recent issues ----- */
.recent-issues-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.recent-issues-item {
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-rule);
}

.recent-issues-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-issues-title {
    font-size: 1.1875rem;
    margin-bottom: var(--space-3);
}

.recent-issues-title a {
    text-decoration: none;
}

.recent-issues-title a:hover {
    text-decoration: underline;
}

.recent-issues-excerpt {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

.recent-issues-empty {
    color: var(--color-text-muted);
    font-style: italic;
}

.recent-issues-viewall {
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
    margin: 0;
}

.recent-issues-viewall a {
    text-decoration: none;
    color: var(--color-accent);
}

.recent-issues-viewall a:hover {
    text-decoration: underline;
}

/* ----- About ----- */
.about-body {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 38rem;
}

.about-body:last-child {
    margin-bottom: 0;
}

/* ----- Final CTA ----- */
.final-cta {
    background-color: var(--color-surface);
}

.final-cta-inner {
    max-width: var(--container-narrow);
}

.final-cta-heading {
    font-size: 1.625rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-3);
}

.final-cta-body {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

/* =============================================================================
   SUBSCRIBE FORM
   ============================================================================= */

.subscribe-form {
    margin: 0;
}

.subscribe-form-label {
    /* Visually hidden but available to screen readers; the placeholder carries
       the visual cue for sighted users. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.subscribe-form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 520px) {
    .subscribe-form-row {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    /* Butted together into one control block -- the shared edge is a single
       hairline, not two. */
    .subscribe-form-row .subscribe-form-button {
        margin-left: -1px;
    }
}

.subscribe-form-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-rule-strong);
    border-radius: var(--radius);
    transition: box-shadow 120ms ease;
}

.subscribe-form-input::placeholder {
    color: var(--color-text-subtle);
}

.subscribe-form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-ring);
    position: relative;
    z-index: 1;
}

.subscribe-form-button {
    flex: 0 0 auto;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-mono);
    font-size: var(--label-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
    color: #ffffff;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.subscribe-form-button:hover,
.subscribe-form-button:focus-visible {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.subscribe-form-meta {
    margin-top: var(--space-3);
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: var(--label-size);
    color: var(--color-text-subtle);
}

.subscribe-form-success,
.subscribe-form-error {
    margin-top: var(--space-3);
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    display: none; /* revealed by the state rules below */
}

.subscribe-form-success {
    color: var(--color-success);
}

.subscribe-form-error {
    color: #b91c1c;
}

/* ----- Form state -----------------------------------------------------------
   Ghost Portal toggles `loading` / `success` / `error` CLASSES ON THE FORM
   ELEMENT -- verified in portal.min.js: it selects form[data-members-form] and
   calls form.classList.add("loading" | "success" | "error"). It does NOT touch
   the display of the message elements.

   Without these rules the messages above stay display:none forever, so a
   visitor who subscribes sees no spinner, no confirmation and no error --
   success and failure both look like a dead button. That is exactly what both
   newsletters shipped with until 2026-08-06.

   Portal writes its own text into [data-members-error], so the copy in the
   template is a fallback that gets replaced by the real reason. There is no
   equivalent for success: Portal only sets the class, and the theme supplies
   the wording. */
.subscribe-form.success .subscribe-form-success {
    display: block;
}

.subscribe-form.error .subscribe-form-error {
    display: block;
}

/* On success the input is spent -- keep it visible for context but clearly
   inert, so nobody retypes an address that already worked. */
.subscribe-form.success .subscribe-form-row {
    opacity: 0.45;
    pointer-events: none;
}

.subscribe-form.success .subscribe-form-meta {
    display: none;
}

/* pointer-events:none is the double-submit guard -- Portal's request is in
   flight and a second click fires a second magic-link email. */
.subscribe-form.loading .subscribe-form-row {
    pointer-events: none;
}

.subscribe-form.loading .subscribe-form-button {
    opacity: 0.6;
    cursor: wait;
}

/* Mono caps, so the ellipsis reads as a state and not a stutter. Content swap
   rather than a spinner: no animation to jank, and it survives
   prefers-reduced-motion without a second code path. */
.subscribe-form.loading .subscribe-form-button::after {
    content: " ...";
}

/* =============================================================================
   POST / PAGE / ARCHIVE
   ============================================================================= */

.post,
.page {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

.post-header,
.page-header {
    margin-bottom: var(--space-6);
}

.post-tag {
    color: inherit;
    text-decoration: none;
}

.post-title,
.page-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.post-subtitle,
.page-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 38rem;
}

.post-feature-image,
.page-feature-image {
    margin: 0 auto var(--space-7);
}

.post-feature-image img,
.page-feature-image img {
    border: 1px solid var(--color-rule);
}

.post-feature-image figcaption {
    font-family: var(--font-mono);
    font-size: var(--label-size);
    color: var(--color-text-subtle);
    margin-top: var(--space-3);
}

.post-content,
.page-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.post-content h2,
.page-content h2 {
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-rule);
}

.post-content h3,
.page-content h3 {
    font-size: 1.125rem;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.post-content blockquote,
.page-content blockquote {
    border-left: 3px solid var(--color-accent);
    margin-left: 0;
    padding-left: var(--space-5);
    color: var(--color-text-muted);
}

/* Config snippets are the load-bearing content of this newsletter, so the code
   panel is a first-class surface: tinted, bordered, square, and it prints. */
.post-content pre,
.page-content pre {
    background-color: var(--color-code-bg);
    border: 1px solid var(--color-rule);
    border-left: 3px solid var(--color-accent);
    color: var(--color-text);
    padding: var(--space-4);
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-content code,
.page-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--color-code-bg);
    border: 1px solid var(--color-rule);
    padding: 0.05em 0.3em;
}

.post-content pre code,
.page-content pre code {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: inherit;
}

.post-content img,
.page-content img {
    border: 1px solid var(--color-rule);
    margin: var(--space-5) auto;
}

.post-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
    border: 1px solid var(--color-rule);
    padding: var(--space-2) var(--space-3);
    text-align: left;
}

.post-content th,
.page-content th {
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
    background-color: var(--color-code-bg);
}

/* Koenig editor width helpers -- required by Ghost.
   .kg-width-wide : break out of the narrow column to a wider rail.
   .kg-width-full : full viewport width edge-to-edge.
   The viewport-centring trick (margin-left:50% + translateX(-50%)) lets the
   element extend past its parent container without restructuring markup. */
.kg-width-wide {
    position: relative;
    width: min(85vw, var(--container-wide));
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-wide img {
    width: 100%;
    height: auto;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-full img {
    width: 100%;
    height: auto;
}

/* ----- Prev / next issue navigation ----- */
.post-pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-rule);
}

@media (min-width: 700px) {
    .post-pagination {
        grid-template-columns: repeat(2, 1fr);
    }

    /* A next-only post (the oldest issue) must not sit in the left cell. */
    .post-pagination-next:only-child {
        grid-column: 2;
    }
}

.post-pagination-link {
    display: block;
    padding: var(--space-4);
    border: 1px solid var(--color-rule);
    background-color: var(--color-surface);
    text-decoration: none;
}

.post-pagination-link:hover {
    border-color: var(--color-accent);
}

.post-pagination-next {
    text-align: right;
}

.post-pagination-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.post-pagination-title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

/* ----- Related issues ----- */
.post-related {
    margin-top: var(--space-7);
}

.post-related-heading {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-5);
}

.post-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-related-item {
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-rule);
}

.post-related-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-related-title {
    font-size: 1.0625rem;
    margin: 0;
}

.post-related-title a {
    text-decoration: none;
}

.post-related-title a:hover {
    text-decoration: underline;
}

/* ----- Post footer / CTA ----- */
.post-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-rule-strong);
}

.post-author {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-7);
}

.post-cta {
    background-color: var(--color-surface);
    border: 1px solid var(--color-rule-strong);
    padding: var(--space-6);
}

.post-cta-heading {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2);
}

.post-cta-body {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
}

/* ----- Archive (/issues/) ----- */
.archive {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

.archive-header {
    margin-bottom: var(--space-7);
}

.archive-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-3);
}

.archive-subtitle {
    color: var(--color-text-muted);
    margin: 0;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-item {
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-rule);
}

.archive-item:first-child {
    border-top: 1px solid var(--color-rule);
}

.archive-item-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.archive-item-title a {
    text-decoration: none;
}

.archive-item-title a:hover {
    text-decoration: underline;
}

.archive-item-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.archive-empty {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ----- Pagination (Ghost-rendered) ----- */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-rule);
    font-family: var(--font-mono);
    font-size: var(--label-size);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
}

.pagination a {
    text-decoration: none;
    color: var(--color-accent);
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination .page-number {
    color: var(--color-text-subtle);
}

/* =============================================================================
   PRINT
   ============================================================================= */
@media print {
    .site-header,
    .site-footer,
    .subscribe-form,
    .final-cta,
    .post-cta,
    .post-pagination,
    .post-related {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
        background-image: none;
    }

    .post-content pre,
    .page-content pre {
        background: #fff;
        border: 1px solid #999;
    }
}
