/*
Theme Name:  A Fish Out of Water
Theme URI:   https://fishoutofwater.ca
Author:      Jonathan Tunde-Wright
Author URI:  https://fishoutofwater.ca
Description: Custom editorial theme for fishoutofwater.ca. Two seasonal colour themes (Midnight Amber / Deep Water) switchable via the Customizer. Literary, typographic, imageless homepage with hero, editorial grid, pull quote band, and archive list. Designed for PHP 8.4 / WordPress 6+.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fishoutofwater
Tags:        blog, custom-colors, custom-menu, featured-images, two-columns
*/

/* =====================================================
   GOOGLE FONTS — loaded via functions.php wp_enqueue_style
   Playfair Display | Lora | Cormorant Garamond
   ===================================================== */

/* =====================================================
   THEME COLOUR VARIABLES
   ===================================================== */

[data-theme="amber"] {
  --bg-base:                #1A150F;
  --bg-mid:                 #201912;
  --bg-hero-aside:          #251D14;
  --bg-pullq:               #1E1710;
  --text-primary:           #EDE4CC;
  --text-secondary:         rgba(237,228,204,0.62);
  --text-wayfinding:        rgba(237,228,204,0.48);
  --text-tertiary:          rgba(237,228,204,0.34);
  --text-ghost:             rgba(237,228,204,0.18);
  --accent:                 #C8976B;
  --accent-dim:             rgba(200,151,107,0.45);
  --accent-ghost:           rgba(200,151,107,0.10);
  --rule:                   rgba(237,228,204,0.14);
  --rule-mid:               rgba(237,228,204,0.09);
  --hero-aside-quote-color: rgba(237,228,204,0.72);
}

[data-theme="water"] {
  --bg-base:                #080F18;
  --bg-mid:                 #0B1420;
  --bg-hero-aside:          #0D1828;
  --bg-pullq:               #091320;
  --text-primary:           #D6E8F5;
  --text-secondary:         rgba(214,232,245,0.62);
  --text-wayfinding:        rgba(214,232,245,0.46);
  --text-tertiary:          rgba(214,232,245,0.32);
  --text-ghost:             rgba(214,232,245,0.17);
  --accent:                 #5BA8C8;
  --accent-dim:             rgba(91,168,200,0.42);
  --accent-ghost:           rgba(91,168,200,0.09);
  --rule:                   rgba(214,232,245,0.13);
  --rule-mid:               rgba(214,232,245,0.08);
  --hero-aside-quote-color: rgba(214,232,245,0.70);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.6s ease, color 0.5s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-base);
  border-bottom: 0.5px solid var(--rule);
  transition: background 0.6s, border-color 0.5s;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.site-logo:hover { color: var(--accent); border-color: var(--accent); }

.nav-menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  transition: color 0.25s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a { color: var(--accent); }

.nav-search-toggle {
  background: none;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  cursor: pointer;
  padding: 0;
  transition: color 0.25s;
}
.nav-search-toggle:hover { color: var(--accent); }

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.search-overlay.is-open { display: flex; }
.search-overlay form {
  width: min(600px, 90vw);
  display: flex;
  gap: 0;
}
.search-overlay input[type="search"] {
  flex: 1;
  background: var(--bg-mid);
  border: 0.5px solid var(--rule);
  border-right: none;
  color: var(--text-primary);
  font-family: 'Lora', serif;
  font-size: 18px;
  padding: 1rem 1.5rem;
  outline: none;
  border-radius: 2px 0 0 2px;
}
.search-overlay input[type="search"]::placeholder { color: var(--text-tertiary); }
.search-overlay button[type="submit"] {
  background: var(--accent);
  border: none;
  color: var(--bg-base);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: opacity 0.2s;
}
.search-overlay button[type="submit"]:hover { opacity: 0.85; }
.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.search-close:hover { color: var(--text-primary); }

/* =====================================================
   HOMEPAGE — HERO
   ===================================================== */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 420px;
  border-bottom: 0.5px solid var(--rule);
  max-width: 1400px;
  margin: 0 auto;
  transition: border-color 0.5s;
}

.hero-text {
  padding: 3.75rem 3rem 3rem 2.25rem;
  border-right: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.5s;
}

.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
  transition: color 0.4s;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  transition: color 0.4s;
}

.hero-excerpt {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 2.25rem;
  transition: color 0.4s;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  transition: color 0.4s;
}

.hero-read-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s, opacity 0.2s;
}
.hero-read-link:hover { opacity: 0.75; }

.hero-aside {
  background: var(--bg-hero-aside);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.6s;
}

.aside-accent-bar {
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 2px;
  background: var(--accent);
  opacity: 0.7;
  border-radius: 0 2px 2px 0;
  transition: background 0.4s;
}

.aside-ornament {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 100px;
  font-style: italic;
  color: var(--accent-ghost);
  line-height: 1;
  user-select: none;
  transition: color 0.4s;
}

.aside-pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.6;
  color: var(--hero-aside-quote-color);
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 320px;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}

/* =====================================================
   SECTION LABEL
   ===================================================== */
.section-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 2.25rem;
  border-bottom: 0.5px solid var(--rule);
  max-width: 1400px;
  margin: 0 auto;
  transition: border-color 0.5s;
}

.section-label-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  white-space: nowrap;
  transition: color 0.4s;
}

.section-label-rule {
  flex: 1;
  height: 0.5px;
  background: var(--rule-mid);
  transition: background 0.5s;
}

/* =====================================================
   EDITORIAL GRID (posts 2–4)
   ===================================================== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0.5px solid var(--rule);
  max-width: 1400px;
  margin: 0 auto;
  transition: border-color 0.5s;
}

.editorial-col {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--rule);
  transition: border-color 0.5s;
}
.editorial-col:last-child { border-right: none; }

.post-category-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}

.grid-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  display: block;
  transition: color 0.25s;
}
.grid-post-title:hover { color: var(--accent); }

.grid-post-excerpt {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  transition: color 0.4s;
}

.grid-post-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-wayfinding);
  transition: color 0.4s;
}

/* =====================================================
   PULL QUOTE BAND
   ===================================================== */
.pullquote-band {
  background: var(--bg-pullq);
  border-bottom: 0.5px solid var(--rule);
  padding: 4.5rem 2rem;
  display: flex;
  justify-content: center;
  transition: background 0.6s, border-color 0.5s;
}

.pullquote-inner {
  max-width: 580px;
  text-align: center;
}

.pullquote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.28;
  display: block;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.pullquote-text {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.pullquote-source {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  transition: color 0.4s;
}
.pullquote-source a { color: inherit; border-bottom: 0.5px solid var(--rule); }
.pullquote-source a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* =====================================================
   LITERARY ARCHIVE LIST (posts 5–10)
   ===================================================== */
.literary-list {
  padding: 0 2.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.literary-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 0.5px solid var(--rule-mid);
  transition: border-color 0.5s;
}
.literary-item:last-child { border-bottom: none; }

.literary-number {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-ghost);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
  transition: color 0.4s;
}

.literary-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: block;
  transition: color 0.25s;
}
.literary-post-title:hover { color: var(--accent); }

.literary-post-excerpt {
  font-family: 'Lora', serif;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  opacity: 0.75;
  transition: color 0.4s;
}

.literary-post-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  white-space: nowrap;
  padding-top: 6px;
  transition: color 0.4s;
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-wayfinding);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s;
}

.nav-mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu-drawer {
  display: none;
  background: var(--bg-mid);
  border-bottom: 0.5px solid var(--rule);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu-drawer.is-open {
  max-height: 400px;
  padding: 1rem 0;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 0.5px solid var(--rule-mid);
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-menu a {
  display: block;
  padding: 0.9rem 2.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item a {
  color: var(--accent);
  padding-left: 2.75rem;
}

.mobile-menu-footer {
  padding: 0.75rem 2.25rem 0.25rem;
  border-top: 0.5px solid var(--rule-mid);
  margin-top: 0.5rem;
}

.mobile-search-trigger {
  background: none;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
  transition: color 0.25s;
}
.mobile-search-trigger:hover { color: var(--accent); }

/* =====================================================
   JETPACK SUBSCRIPTION FORM — homepage override
   Forces Jetpack's form to match the theme aesthetic
   ===================================================== */
.subscribe-form .jetpack-subscribe-form,
.subscribe-form form {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.subscribe-form input[type="email"] {
  background: var(--bg-mid);
  border: 0.5px solid var(--rule);
  border-right: none;
  color: var(--text-primary);
  font-family: 'Lora', serif;
  font-size: 13px;
  padding: 0.65rem 1.25rem;
  border-radius: 2px 0 0 2px;
  outline: none;
  width: 240px;
  transition: background 0.5s, border-color 0.3s, color 0.4s;
  -webkit-appearance: none;
}
.subscribe-form input[type="email"]::placeholder { color: var(--text-tertiary); }
.subscribe-form input[type="email"]:focus { border-color: var(--accent-dim); }

.subscribe-form input[type="submit"],
.subscribe-form button[type="submit"] {
  background: var(--accent);
  border: none;
  color: var(--bg-base);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-appearance: none;
}
.subscribe-form input[type="submit"]:hover,
.subscribe-form button[type="submit"]:hover { opacity: 0.85; }

/* Hide any Jetpack labels or extra markup we don't need */
.subscribe-form .subscribe-field label,
.subscribe-form p.subscribe-intro { display: none; }
.subscribe-strip {
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  padding: 3rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  transition: border-color 0.5s;
}

.subscribe-copy-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  transition: color 0.4s;
}

.subscribe-copy-desc {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.4s;
}

.subscribe-form {
  display: flex;
  flex-shrink: 0;
}

.subscribe-input {
  background: var(--bg-mid);
  border: 0.5px solid var(--rule);
  border-right: none;
  color: var(--text-primary);
  font-family: 'Lora', serif;
  font-size: 13px;
  padding: 0.65rem 1.25rem;
  border-radius: 2px 0 0 2px;
  outline: none;
  width: 240px;
  transition: background 0.5s, border-color 0.3s, color 0.4s;
}
.subscribe-input::placeholder { color: var(--text-tertiary); }
.subscribe-input:focus { border-color: var(--accent-dim); }

.subscribe-btn {
  background: var(--accent);
  border: none;
  color: var(--bg-base);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: background 0.4s, opacity 0.2s;
}
.subscribe-btn:hover { opacity: 0.85; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2.25rem 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-top: 0.5px solid var(--rule);
  padding-top: 3rem;
  transition: border-color 0.5s;
}

.footer-site-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}

.footer-tagline {
  font-family: 'Lora', serif;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 260px;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.footer-social-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.footer-social-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color 0.25s;
}
.footer-social-links a:hover { color: var(--accent); }

.footer-col-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  display: block;
  transition: color 0.4s;
}

.footer-link-list { list-style: none; }
.footer-link-list li { margin-bottom: 0.6rem; }
.footer-link-list a {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: color 0.25s, opacity 0.25s;
}
.footer-link-list a:hover { color: var(--accent); opacity: 1; }

.footer-legal {
  grid-column: 1 / -1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  opacity: 0.5;
  padding-top: 2rem;
  border-top: 0.5px solid var(--rule-mid);
  transition: color 0.4s, border-color 0.5s;
}

/* =====================================================
   SINGLE POST PAGE — typographic header
   ===================================================== */
.single-post-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2.25rem 3rem;
  border-bottom: 0.5px solid var(--rule);
  text-align: center;
}

.single-post-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.single-post-category {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s;
}
.single-post-category:hover { opacity: 0.75; }

.single-post-meta-divider {
  color: var(--text-tertiary);
  font-size: 10px;
}

.single-post-date,
.single-post-readtime {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  transition: color 0.4s;
}

.single-post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2rem;
  transition: color 0.4s;
}

.single-post-epigraph {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  transition: color 0.4s;
}

.single-post-header-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  margin: 0 auto;
}

/* Optional featured image — constrained to text column */
.single-featured-image {
  max-width: 660px;
  margin: 3rem auto;
  padding: 0 2.25rem;
}
.single-featured-image img {
  width: 100%;
  border-radius: 3px;
  display: block;
}

.single-post-content {
  max-width: 660px;
  margin: 0 auto;
  padding: 3rem 2.25rem 5rem;
}

/* Post body typography */
.single-post-content p {
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.single-post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 3rem 0 1.25rem;
  transition: color 0.4s;
}

.single-post-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  transition: color 0.4s;
}

.single-post-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 2.5rem 0;
  padding: 0.5rem 0 0.5rem 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.4s, border-color 0.4s;
}

.single-post-content a {
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent-dim);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.single-post-content a:hover { opacity: 0.75; }

/* Post footer */
.single-post-footer {
  max-width: 660px;
  margin: 0 auto;
  padding: 2rem 2.25rem 4rem;
  border-top: 0.5px solid var(--rule);
  transition: border-color 0.5s;
}

.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.single-post-tag-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  border: 0.5px solid var(--rule);
  padding: 4px 12px;
  border-radius: 100px;
  transition: color 0.25s, border-color 0.25s;
}
.single-post-tag-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.post-nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-wayfinding);
  transition: color 0.25s;
}
.post-nav-link span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
  margin-top: 0.4rem;
  transition: color 0.25s;
}
.post-nav-link:hover,
.post-nav-link:hover span { color: var(--accent); }
.post-nav-link.next { text-align: right; }

/* Archive browse link at foot of literary list */
.archive-browse-link {
  padding: 1.75rem 0 0.5rem;
  text-align: right;
}
.archive-browse-link a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.archive-browse-link a:hover { opacity: 0.75; }

/* =====================================================
   COMMENTS
   ===================================================== */
.post-comments-wrap,
#comments {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 2.25rem 5rem;
}

.comments-section,
#comments {
  border-top: 0.5px solid var(--rule);
  padding-top: 3rem;
  transition: border-color 0.5s;
}

.comments-header,
.comment-form-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.comments-label,
#comments h2,
#comments .comments-title,
#respond h3,
#respond .comment-reply-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 9.5px !important;
  font-weight: 300 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--text-wayfinding) !important;
  white-space: nowrap;
  transition: color 0.4s;
  background: none !important;
  padding: 0 !important;
  margin: 0 0 2rem !important;
  border: none !important;
}

/* Hide the default "Leave a Reply" / "Leave a response" duplicate headings */
#respond .comment-reply-title small { display: none; }

.comments-rule {
  flex: 1;
  height: 0.5px;
  background: var(--rule-mid);
  transition: background 0.5s;
}

/* Comment list */
.comments-list,
#comments ol.commentlist,
#comments .commentlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 3rem !important;
}

.fow-comment,
#comments .commentlist li.comment,
#comments .commentlist li {
  padding: 1.75rem 0 !important;
  border-bottom: 0.5px solid var(--rule-mid) !important;
  transition: border-color 0.5s;
  background: none !important;
}
.fow-comment:last-child,
#comments .commentlist li:last-child { border-bottom: none !important; }

/* Nested replies */
.fow-comment .children,
#comments .commentlist li .children {
  list-style: none !important;
  padding-left: 1.5rem !important;
  margin-top: 1rem !important;
  border-left: 1.5px solid var(--rule) !important;
}

.comment-meta,
#comments .comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.comment-author-name,
#comments .comment-author .fn,
#comments .commentlist .comment-author b {
  font-family: 'Playfair Display', serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  transition: color 0.4s;
}
.comment-author-name a,
#comments .comment-author .fn a { color: inherit !important; border: none !important; }

.comment-meta-divider { color: var(--text-tertiary); font-size: 10px; }

.comment-date,
#comments .comment-metadata a,
#comments .commentlist .comment-meta a {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-wayfinding) !important;
  transition: color 0.4s;
}

.comment-awaiting,
#comments .comment-awaiting-moderation {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  font-style: italic !important;
}

.comment-content,
#comments .comment-content,
#comments .commentlist .comment-body {
  font-family: 'Lora', serif !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: var(--text-secondary) !important;
  transition: color 0.4s;
}
.comment-content p,
#comments .comment-content p { margin-bottom: 0.75rem; }

.comment-footer { margin-top: 0.75rem; }

.comment-reply a,
#comments .reply a,
.comment-reply-link {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  border-bottom: 0.5px solid var(--accent-dim) !important;
  padding-bottom: 1px !important;
  transition: opacity 0.2s;
  background: none !important;
}
.comment-reply a:hover,
.comment-reply-link:hover { opacity: 0.75 !important; }

.cancel-reply,
#respond .comment-reply-title small a {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--text-tertiary) !important;
  margin-left: 1rem;
}

/* Logged-in user notice */
#respond .logged-in-as {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
#respond .logged-in-as a { color: var(--accent); border: none; }

/* Comment form */
.comment-form-wrap,
#respond { margin-top: 3rem; }

.comment-form-field,
#respond p { margin-bottom: 1rem !important; }

/* Hide the notification checkboxes — cleaner UX */
#respond .comment-subscription-form,
#respond p.comment-subscription-form { display: none; }

.comment-form-field input[type="text"],
.comment-form-field input[type="email"],
.comment-form-field textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100% !important;
  background: var(--bg-mid) !important;
  border: 0.5px solid var(--rule) !important;
  color: var(--text-primary) !important;
  font-family: 'Lora', serif !important;
  font-size: 14px !important;
  padding: 0.75rem 1rem !important;
  border-radius: 2px !important;
  outline: none !important;
  resize: vertical;
  transition: background 0.5s, border-color 0.3s, color 0.4s;
  -webkit-appearance: none;
  box-shadow: none !important;
}
#respond input[type="text"]::placeholder,
#respond input[type="email"]::placeholder,
#respond textarea::placeholder { color: var(--text-tertiary) !important; }
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond textarea:focus { border-color: var(--accent-dim) !important; }

/* Hide URL field — not needed */
#respond p.comment-form-url { display: none; }

.comment-submit-btn,
#respond input[type="submit"],
#respond #submit {
  background: var(--accent) !important;
  border: none !important;
  color: var(--bg-base) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  padding: 0.75rem 1.75rem !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
}
#respond input[type="submit"]:hover,
#respond #submit:hover { opacity: 0.85 !important; }

/* Responsive */
@media (max-width: 900px) {
  .post-comments-wrap,
  #comments { padding: 0 1.25rem 3rem; }
  .fow-comment .children,
  #comments .commentlist li .children { padding-left: 1rem !important; }
}

/* Style the Jetpack iframe container to sit within theme */
.comment-form-wrap #respond,
#respond.comment-respond {
  margin-top: 0;
}

.comment-form-wrap form#commentform {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

/* Make the Jetpack iframe blend with dark background */
iframe.jetpack_remote_comment,
iframe#jetpack_remote_comment {
  background: transparent !important;
  border: none !important;
  width: 100% !important;
}

/* =====================================================
   ARCHIVE & CATEGORY PAGES
   ===================================================== */
.archive-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2.25rem 0;
  border-bottom: 0.5px solid var(--rule);
  transition: border-color 0.5s;
}

.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.archive-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.25rem;
}

/* =====================================================
   SEARCH RESULTS PAGE
   ===================================================== */
.search-results-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2.25rem 1.5rem;
}
.search-results-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.search-results-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

/* =====================================================
   404 PAGE
   ===================================================== */
.not-found-wrap {
  max-width: 600px;
  margin: 8rem auto;
  padding: 0 2.25rem;
  text-align: center;
}
.not-found-num {
  font-family: 'Playfair Display', serif;
  font-size: 100px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-ghost);
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.not-found-text {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.not-found-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.not-found-link:hover { opacity: 0.75; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text      { animation: fadeUp 0.7s ease both; }
.hero-aside     { animation: fadeUp 0.7s 0.1s ease both; }
.editorial-grid { animation: fadeUp 0.5s 0.2s ease both; }
.pullquote-band { animation: fadeUp 0.5s 0.3s ease both; }
.literary-list  { animation: fadeUp 0.5s 0.35s ease both; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.25rem; }
  .nav-menu { display: none; }
  .nav-search-toggle { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu-drawer { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .hero-text { padding: 2.5rem 1.25rem 2rem; border-right: none; }

  .section-label { padding: 1rem 1.25rem; }

  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-col { border-right: none; border-bottom: 0.5px solid var(--rule); }
  .editorial-col:last-child { border-bottom: none; }

  .literary-list { padding: 0 1.25rem; }
  .literary-item { grid-template-columns: 48px 1fr; }
  .literary-post-date { display: none; }

  .subscribe-strip { flex-direction: column; align-items: flex-start; padding: 2rem 1.25rem; }
  .subscribe-input { width: 200px; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 2rem 1.25rem 3rem; }

  .single-post-header { padding: 3rem 1.25rem 2rem; }
  .single-post-content { padding: 2rem 1.25rem 3rem; }
  .single-featured-image { padding: 0 1.25rem; margin: 2rem auto; }
  .single-post-footer { padding: 1.5rem 1.25rem 3rem; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 28px; }
  .pullquote-text { font-size: 20px; }
  .literary-number { font-size: 28px; }
  .subscribe-form { flex-direction: column; width: 100%; }
  .subscribe-input { width: 100%; border-right: 0.5px solid var(--rule); border-bottom: none; border-radius: 2px 2px 0 0; }
  .subscribe-btn { border-radius: 0 0 2px 2px; }
}
