/*
Theme Name: TheSojourner
Author: The Sojourner
Description: A quiet editorial WordPress theme for essays, stories, notes, books, and long-form reading, with a complete magazine-style homepage in either Reading mode.
Version: 1.1.1
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thesojourner
Domain Path: /languages
Tags: blog, one-column, custom-logo, custom-menu, editor-style, featured-images, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --paper: #f4f0e7;
  --paper-deep: #ece6da;
  --ink: #191918;
  --muted: #6b685f;
  --rule: #cfc7b9;
  --accent: #5f6958;
  --accent-soft: #dfe3da;
  --max: 1180px;
  --reading: 720px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 18px 50px rgba(37,31,22,.08);
}

html[data-theme="dark"] {
  --paper: #171713;
  --paper-deep: #201f19;
  --ink: #f1ecdf;
  --muted: #aaa597;
  --rule: #3d3a32;
  --accent: #aeb9a2;
  --accent-soft: #292e27;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input { font: inherit; }
::selection { background: var(--accent-soft); }

.skip-link { position: fixed; top: .8rem; left: .8rem; transform: translateY(-160%); background: var(--ink); color: var(--paper); padding: .6rem .9rem; z-index: 100; }
.skip-link:focus { transform: translateY(0); }
.top-rule { height: 4px; background: var(--ink); }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header { min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-bottom: 1px solid var(--rule); }
.compact-header { min-height: 84px; }
.brand { display: inline-flex; flex-direction: column; width: max-content; text-decoration: none; line-height: .92; letter-spacing: .03em; }
.brand-kicker { font-family: var(--sans); font-size: .58rem; font-weight: 800; letter-spacing: .38em; margin-left: .18em; margin-bottom: .24rem; }
.brand-name { font-family: var(--serif); font-size: 1.34rem; font-weight: 700; letter-spacing: .09em; }
.site-nav { display: flex; gap: 1.45rem; align-items: center; font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.site-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-color: var(--ink); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; }
.icon-button, .nav-toggle { border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 999px; min-width: 38px; height: 38px; cursor: pointer; }
.nav-toggle { display: none; padding-inline: .9rem; width: auto; font-family: var(--sans); font-size: .75rem; }
.subscribe-link { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; padding: .66rem .95rem; border: 1px solid var(--ink); border-radius: 999px; }
.subscribe-link:hover { background: var(--ink); color: var(--paper); }

.eyebrow, .small-label, .story-kicker { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 1rem; }

.hero { min-height: 520px; padding: 7.5rem 0 5.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: end; gap: 4rem; }
.hero-copy { max-width: 830px; }
.hero h1 { font-size: clamp(3.9rem, 8vw, 7.4rem); line-height: .9; margin: 0; letter-spacing: -.045em; font-weight: 500; }
.hero h1 a { text-decoration: none; }
.hero-intro { max-width: 700px; font-size: 1.28rem; color: var(--muted); margin: 2rem 0 0; }
.hero-meta { display: flex; gap: 1.25rem; margin-top: 1.7rem; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero-read { margin-top: 1.5rem; }
.journey-mark { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding-bottom: 1.3rem; }
.journey-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.journey-line { height: 1px; background: var(--rule); }
.journey-arrow { font-family: var(--sans); color: var(--muted); }
.text-link { display: inline-block; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; text-decoration: none; }

.section-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.section-strip a { min-height: 150px; padding: 1.35rem 1.4rem 1.5rem; text-decoration: none; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.section-strip a:last-child { border-right: 0; }
.section-strip span, .section-strip small { font-family: var(--sans); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.section-strip strong { font-size: 1.5rem; font-weight: 500; margin: auto 0 .25rem; }
.section-strip a:hover { background: var(--paper-deep); }

.section { padding: 6rem 0; }
.section-tinted { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2.2rem; }
.section-heading h2, .empty-section h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .95; font-weight: 500; letter-spacing: -.035em; margin: 0; }
.latest-piece { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 2.5rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.latest-number { font-family: var(--sans); font-size: .7rem; color: var(--muted); }
.latest-copy h3 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; letter-spacing: -.025em; margin: .25rem 0 1rem; }
.latest-copy h3 a { text-decoration: none; }
.latest-copy > p:last-child { color: var(--muted); max-width: 680px; margin-bottom: 0; }
.latest-arrow { text-decoration: none; font-size: 2rem; font-family: var(--sans); padding: 1rem; }
.quiet-note { margin: 1.4rem 0 0; color: var(--muted); font-style: italic; }

.empty-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 5rem; align-items: end; }
.empty-section > p { color: var(--muted); max-width: 460px; font-size: 1.08rem; margin: 0; }

.books-section { padding: 6.5rem 0; display: grid; grid-template-columns: 1fr 320px; align-items: center; gap: 6rem; border-top: 1px solid var(--rule); }
.books-copy h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .95; font-weight: 500; letter-spacing: -.035em; margin: 0 0 1.4rem; }
.books-copy p:not(.eyebrow) { max-width: 610px; color: var(--muted); font-size: 1.1rem; }
.book-placeholder { aspect-ratio: .68; background: var(--ink); color: var(--paper); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.book-placeholder span, .book-placeholder small { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.book-placeholder strong { font-size: 2.6rem; line-height: .95; font-weight: 500; }

.subscribe-section { background: var(--ink); color: var(--paper); padding: 5rem 0; }
.subscribe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end; }
.subscribe-inner h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; margin: 0 0 1rem; font-weight: 500; }
.subscribe-inner p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.subscribe-form label { display: block; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.subscribe-row { display: flex; gap: .6rem; }
.subscribe-row input { flex: 1; min-width: 0; background: transparent; color: var(--paper); border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent); padding: .9rem 1rem; border-radius: 0; }
.subscribe-row button { border: 1px solid var(--paper); background: var(--paper); color: var(--ink); padding: .9rem 1.2rem; cursor: pointer; }
.subscribe-form small { display: block; margin-top: .8rem; color: color-mix(in srgb, var(--paper) 55%, transparent); font-family: var(--sans); font-size: .7rem; }

.site-footer { min-height: 170px; padding: 2.5rem 0; display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 3rem; border-top: 1px solid var(--rule); font-family: var(--sans); }
.site-footer strong { font-family: var(--serif); font-size: 1.1rem; }
.site-footer p { margin: .4rem 0 0; color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; gap: 1.2rem; font-size: .75rem; }
.copyright { white-space: nowrap; }

.article-shell { width: min(calc(100% - 40px), 900px); margin: 0 auto; }
.article-header { padding: 6.5rem 0 3.5rem; border-bottom: 1px solid var(--rule); }
.article-header h1 { font-size: clamp(3.2rem, 7vw, 6.1rem); line-height: .92; font-weight: 500; letter-spacing: -.045em; margin: 0 0 1.5rem; }
.article-deck { font-size: 1.28rem; color: var(--muted); max-width: 760px; }
.article-meta { display: flex; gap: 1.5rem; margin-top: 2rem; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.prose { width: min(100%, var(--reading)); margin: 4.5rem auto; font-size: 1.15rem; }
.prose p { margin: 0 0 1.5em; }
.prose .lead { font-size: 1.36rem; line-height: 1.6; }
.prose h2 { font-size: 2.05rem; line-height: 1.15; font-weight: 500; margin: 2.2em 0 .7em; }
.prose blockquote { margin: 2.5rem -3rem; padding: 1rem 2.5rem; border-left: 2px solid var(--ink); font-size: 1.45rem; font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 3.5rem 0; }
.article-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0 6rem; border-top: 1px solid var(--rule); }
.article-signature { display: flex; flex-direction: column; }
.article-next { text-align: right; }
.article-next span { display: block; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.article-next a { font-size: 1.2rem; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; }

.about-shell { width: min(calc(100% - 40px), 1040px); margin: 0 auto; padding: 6.5rem 0; }
.about-shell > h1 { font-size: clamp(3.8rem, 8vw, 7rem); line-height: .86; letter-spacing: -.045em; font-weight: 500; margin: 0 0 4rem; }
.about-grid { display: grid; grid-template-columns: 1.45fr .7fr; gap: 5rem; }
.about-prose { margin: 0; width: 100%; }
.about-facts { border-top: 1px solid var(--ink); }
.about-facts div { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.about-facts span { display: block; font-family: var(--sans); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .3rem; }
.about-facts strong { font-weight: 500; }

.not-found { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.centered-brand { margin-bottom: 5rem; }
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; margin: .3rem 0 1rem; }
.not-found p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: 104px; left: 20px; right: 20px; background: var(--paper); border: 1px solid var(--rule); padding: 1rem; z-index: 50; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .article-nav { position: static; display: none; }
  .subscribe-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 450px; padding-top: 5.5rem; }
  .journey-mark { max-width: 260px; }
  .section-strip { grid-template-columns: repeat(2, 1fr); }
  .section-strip a:nth-child(2) { border-right: 0; }
  .section-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .empty-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .books-section { grid-template-columns: 1fr; }
  .book-placeholder { width: min(100%, 320px); }
  .subscribe-inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell, .article-shell, .about-shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 84px; gap: .8rem; }
  .brand-name { font-size: 1.08rem; }
  .hero { padding: 4.5rem 0 3.8rem; min-height: 410px; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 5rem); }
  .hero-intro { font-size: 1.1rem; }
  .section-strip { grid-template-columns: 1fr; }
  .section-strip a { min-height: 116px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .section-strip a:last-child { border-bottom: 0; }
  .section { padding: 4.5rem 0; }
  .latest-piece { grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; }
  .latest-arrow { display: none; }
  .books-section { padding: 4.5rem 0; gap: 3rem; }
  .subscribe-row { flex-direction: column; }
  .article-header { padding-top: 4.5rem; }
  .article-meta { flex-wrap: wrap; gap: .7rem 1.2rem; }
  .prose { font-size: 1.07rem; margin: 3.5rem auto; }
  .prose blockquote { margin-inline: 0; padding-left: 1.2rem; font-size: 1.28rem; }
  .article-footer { grid-template-columns: 1fr; }
  .article-next { text-align: left; }
}

/* --------------------------------------------------------------------------
   WordPress integration
   These rules extend the original static design without changing its core
   visual system, spacing, typography, or palette.
   -------------------------------------------------------------------------- */

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body.admin-bar .reading-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .reading-progress { top: 46px; } }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--paper);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  height: auto;
  left: .8rem;
  line-height: normal;
  padding: .8rem 1rem;
  top: .8rem;
  width: auto;
  z-index: 100000;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; }
figure { margin-inline: 0; }

.custom-logo-link { display: inline-flex; align-items: center; max-width: 220px; }
.custom-logo { width: auto; max-height: 54px; }

.site-nav { gap: 0; }
.site-nav .menu {
  display: flex;
  gap: 1.45rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .menu-item { margin: 0; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { border-color: var(--ink); }

.header-actions:empty { min-width: 1px; }
.icon-button[aria-pressed="true"] { background: var(--accent-soft); }

.book-placeholder { text-decoration: none; }
.newsletter-link-field {
  flex: 1;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
  color: var(--paper);
  padding: .9rem 1rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subscribe-row .subscribe-button {
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  padding: .9rem 1.2rem;
  text-decoration: none;
  font-family: var(--serif);
}

/* WordPress content and block editor output. */
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose a:not(.wp-element-button) { text-decoration: underline; }
.prose ul,
.prose ol { margin: 0 0 1.5em; padding-inline-start: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose pre,
.prose code,
.prose kbd,
.prose samp { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.prose code { font-size: .9em; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--paper-deep); border: 1px solid var(--rule); }
.prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.prose th,
.prose td { border-bottom: 1px solid var(--rule); padding: .7rem; text-align: left; vertical-align: top; }
.prose figcaption,
.wp-caption-text,
.gallery-caption { color: var(--muted); font-family: var(--sans); font-size: .75rem; margin-top: .6rem; }
.prose .wp-block-image,
.prose .wp-block-gallery,
.prose .wp-block-embed { margin-block: 2.5rem; }
.prose .wp-block-pullquote { border-block: 1px solid var(--rule); padding-block: 2rem; }
.prose .wp-block-pullquote blockquote { border: 0; margin: 0; padding: 0; }
.prose .wp-block-separator { border: 0; height: 1px; background: var(--rule); margin: 3.5rem 0; }
.prose .alignwide { width: min(900px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { clear: both; display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky { }
.bypostauthor > .comment-body { border-left: 2px solid var(--accent); padding-left: 1rem; }

/* Archive, search, pagination and empty states. */
.archive-shell { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 6.5rem 0; }
.archive-header { border-bottom: 1px solid var(--rule); padding-bottom: 3rem; margin-bottom: 1.5rem; }
.archive-header h1 { font-size: clamp(3.2rem, 7vw, 6.1rem); line-height: .92; font-weight: 500; letter-spacing: -.045em; margin: 0; }
.archive-description { color: var(--muted); max-width: 720px; font-size: 1.1rem; margin-top: 1.5rem; }
.archive-description p:last-child { margin-bottom: 0; }
.archive-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; border-bottom: 1px solid var(--rule); padding: 2rem 0; }
.archive-item:first-of-type { border-top: 1px solid var(--ink); }
.archive-item-number,
.archive-item-meta { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.archive-item h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; font-weight: 500; margin: 0 0 .7rem; }
.archive-item h2 a { text-decoration: none; }
.archive-item p { color: var(--muted); margin: 0; max-width: 650px; }
.pagination { margin-top: 3rem; font-family: var(--sans); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.pagination a,
.pagination span { border: 1px solid var(--rule); padding: .55rem .75rem; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-state { padding: 3rem 0; color: var(--muted); }

/* Search. */
.search-form { display: flex; gap: .6rem; margin-top: 2rem; max-width: 620px; }
.search-form label { flex: 1; }
.search-field { width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--rule); padding: .85rem 1rem; }
.search-submit { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: .85rem 1.1rem; cursor: pointer; }

/* Page layouts. */
.page-prose { width: min(100%, var(--reading)); }
.page-prose.prose { margin: 0; }
.about-prose:empty::before { content: none; }

/* Featured images. */
.article-cover { width: min(calc(100% - 40px), 1180px); margin: 3rem auto 0; }
.article-cover img { width: 100%; height: auto; display: block; }

/* Post pagination, tags and comments. */
.page-links { margin: 2rem 0; font-family: var(--sans); }
.post-tags { width: min(100%, var(--reading)); margin: -2rem auto 3.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.post-tags a { border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .7rem; font-family: var(--sans); font-size: .68rem; text-decoration: none; }
.comments-area { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto 6rem; border-top: 1px solid var(--rule); padding-top: 3rem; }
.comments-title,
.comment-reply-title { font-size: 2rem; font-weight: 500; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin-left: 1.5rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.comment-body { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
.comment-meta { font-family: var(--sans); font-size: .75rem; }
.comment-author .avatar { border-radius: 50%; margin-right: .6rem; vertical-align: middle; }
.comment-content { margin-top: 1rem; }
.comment-content a { text-decoration: underline; }
.comment-form label { display: block; font-family: var(--sans); font-size: .75rem; margin-bottom: .35rem; }
.comment-form input:not([type="submit"]),
.comment-form textarea { width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--rule); padding: .8rem; }
.comment-form-cookies-consent label { display: inline; }
.form-submit .submit { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: .75rem 1rem; cursor: pointer; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--sans); }

/* Footer menu integration. */
.footer-links .menu { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }

/* 404 retains the static design while allowing a WordPress search form. */
.not-found .search-form { width: min(100%, 520px); margin: 2rem auto; }

@media (max-width: 900px) {
  .site-nav .menu { flex-direction: column; align-items: stretch; gap: .8rem; }
  .site-nav.open { display: block; }
  .archive-item { grid-template-columns: 44px minmax(0, 1fr); }
  .archive-item-meta { grid-column: 2; }
}

@media (max-width: 620px) {
  .archive-shell { width: min(calc(100% - 28px), 900px); padding: 4.5rem 0; }
  .archive-item { grid-template-columns: 34px minmax(0, 1fr); gap: .8rem; }
  .search-form { flex-direction: column; }
  .alignleft,
  .alignright { float: none; margin: 1.5rem auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* The complete editorial homepage remains visible before newsletter setup. */
.subscribe-form-unconfigured input:disabled,
.subscribe-form-unconfigured button:disabled {
  opacity: .72;
}
.subscribe-form-unconfigured button:disabled { cursor: not-allowed; }

/* Footer defaults and user-assigned links share the original compact row. */
.footer-links { align-items: flex-start; flex-wrap: wrap; }
.footer-links .menu { display: contents; }
.footer-links .menu > li { list-style: none; margin: 0; padding: 0; }

/* Multiple real posts can fill a section without changing the HTML visual language. */
.latest-piece + .latest-piece { border-top: 0; }
.section .pagination { margin-top: 2.5rem; }
