/*
Theme Name: Grimoire Chronicle
Theme URI: https://example.com/grimoire-chronicle
Author: Kristopher
Author URI: https://example.com
Description: A dark, ornate personal writing theme for stories, thoughts, journal-style posts, and author blogs. Built around a wax-seal motif, expressive typography, and a tome-styled post grid. Fully responsive with a featured latest post, widget-ready blog areas, and a chronicle sidebar.
Version: 1.3.52
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grimoire-chronicle
Tags: dark, fantasy, blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/
/* ==========================================================================
   The Grimoire Chronicle — grimdark fantasy writing theme
   Token system
   ========================================================================== */

:root {
  --ink: #080711;
  --ink-2: #121024;
  --panel: #181228;
  --moss: #162018;
  --parchment: #f1e8d2;
  --parchment-dim: #c9bddf;
  --ash: #958ca5;
  --wine: #7d274b;
  --wine-bright: #c24f78;
  --brass: #b99054;
  --brass-bright: #dfbf78;
  --arcane: #503178;
  --arcane-bright: #9b74df;
  --arcane-glow: #c6a7ff;
  --twilight: #251446;
  --starlight: #f8eecf;
  --hairline: rgba(223, 191, 120, 0.22);
  --hairline-arcane: rgba(198, 167, 255, 0.28);
  --gc-widget-bg: rgba(18, 16, 36, 0.72);
  --gc-widget-bg-glow: rgba(241, 232, 210, 0.04);
  --gc-widget-border: rgba(223, 191, 120, 0.22);
  --gc-widget-text: #f1e8d2;
  --gc-widget-muted: #c9bddf;
  --gc-widget-padding: 24px;
  --gc-widget-radius: 0;
  --gc-home-widget-columns: 3;

  --gc-archive-content-width: 820px;
  --gc-archive-no-sidebar-content-width: 1120px;
  --gc-archive-sidebar-width: 330px;
  --gc-archive-gap: 56px;
  --gc-archive-card-min: 205px;
  --gc-archive-card-max: 235px;
  --gc-archive-card-bg: rgba(18, 16, 36, 0.78);
  --gc-archive-card-border: rgba(223, 191, 120, 0.24);
  --gc-archive-card-text: #f1e8d2;
  --gc-archive-card-muted: #c9bddf;
  --gc-archive-card-padding: 20px 16px 16px;
  --gc-archive-grid-gap: 42px 48px;

  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Pro', serif;
  --font-meta: 'Jost', sans-serif;

  --radius: 2px;
  --container: 1180px;
  --gc-page-top-space: 70px;
  --gc-page-bottom-space: 100px;
  --gc-regular-page-top-space: 58px;
  --gc-regular-page-bottom-space: 96px;
  --gc-section-heading-top-space: 54px;
  --gc-section-heading-bottom-gap: 36px;

  --gc-header-height: 84px;
  --gc-header-bg: rgba(14, 11, 9, 0.92);
  --gc-header-border: rgba(223, 191, 120, 0.22);
  --gc-header-blur: 6px;
  --gc-menu-gap: 34px;
  --gc-menu-font-size: 13px;
  --gc-menu-text: #c9bddf;
  --gc-menu-active: #dfbf78;
  --gc-brand-mark-size: 34px;
  --gc-brand-name-size: 22px;
  --gc-brand-tagline-size: 10px;
  --gc-dropdown-min-width: 220px;

  --gc-hero-min-height: min(720px, calc(82vh - 84px));
  --gc-hero-padding-top: 72px;
  --gc-hero-padding-bottom: 64px;
  --gc-hero-overlay-left: rgba(8, 7, 17, 0.76);
  --gc-hero-overlay-middle: rgba(8, 7, 17, 0.42);
  --gc-hero-overlay-right: rgba(8, 7, 17, 0.64);
  --gc-hero-overlay-bottom: rgba(8, 7, 17, 0.68);

  --gc-post-content-width: 680px;
  --gc-post-content-with-sidebar-width: 860px;
  --gc-post-content-full-width: 900px;
  --gc-post-sidebar-width: 300px;
  --gc-post-layout-gap: 70px;
  --gc-post-panel-bg: rgba(18, 16, 36, 0.72);
  --gc-post-panel-border: rgba(223, 191, 120, 0.18);
  --gc-post-panel-padding: 34px 38px 42px;
  --gc-post-text-size: 20px;
  --gc-post-line-height: 1.78;
  --gc-post-header-top-space: 64px;
  --gc-post-header-bottom-space: 40px;
  --gc-post-layout-top-space: 64px;
  --gc-post-layout-bottom-space: 100px;

  --gc-card-min: 190px;
  --gc-card-max: 230px;
  --gc-card-gap: 30px;
  --gc-card-bg: #181228;
  --gc-card-border: rgba(223, 191, 120, 0.22);
  --gc-card-text: #f1e8d2;
  --gc-card-muted: #c9bddf;
  --gc-card-padding: 20px 16px 16px;
  --gc-card-thumb-ratio: 16 / 10;
  --gc-card-thumb-max-height: 145px;
  --gc-archive-card-thumb-max-height: 138px;
  --gc-card-thumb-fit: cover;
  --gc-card-thumb-position: center center;

  --gc-featured-padding: 44px;
  --gc-featured-gap: 34px;
  --gc-featured-title-size: 36px;
  --gc-featured-image-max: 460px;
  --gc-featured-title-lines: 3;
  --gc-featured-excerpt-lines: 4;
  --gc-featured-min-height: 520px;
  --gc-featured-overlay-opacity: 0.32;
  --gc-featured-image-position: center center;

  /*
   * HOMEPAGE HERO IMAGE
   * Easy code-editor fallback: change only the URL below to swap the homepage header image.
   * Easier no-code option: WordPress admin -> Appearance -> Customize -> Hero Section -> Hero background image.
   */
  --gc-hero-image: none;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(155, 116, 223, 0.18), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(194, 79, 120, 0.13), transparent 28%),
    radial-gradient(circle at 50% 120%, rgba(80, 49, 120, 0.2), transparent 48%),
    linear-gradient(135deg, #080711 0%, #130d24 44%, #1c0d22 100%),
    var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  padding-top: var(--gc-header-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background-image:
    radial-gradient(circle, rgba(248, 238, 207, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(198, 167, 255, 0.65) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(223, 191, 120, 0.45) 0 1px, transparent 1.7px);
  background-size: 180px 180px, 260px 260px, 340px 340px;
  background-position: 18px 32px, 90px 120px, 190px 70px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.24));
}

.site-header,
.hero,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

body.admin-bar {
  padding-top: calc(var(--gc-header-height) + 32px);
}

body.gc-header-unpinned,
body.admin-bar.gc-header-unpinned {
  padding-top: 0;
}

a { color: var(--brass-bright); text-decoration: none; }
a:hover { color: var(--wine-bright); }
a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--arcane-glow);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 16px;
  top: 12px;
  left: 12px;
  z-index: 1000;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gc-svg-defs {
  position: absolute;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------
   Texture overlay — subtle aged-parchment grain via SVG noise
   -------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Drifting mist layer for the hero — slow, ambient, never distracting */
.mist {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(198, 167, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(194, 79, 120, 0.1), transparent 70%);
  animation: gc-drift 26s ease-in-out infinite alternate;
}

@keyframes gc-drift {
  from { transform: translateX(-2%) translateY(0); }
  to   { transform: translateX(2%) translateY(1.5%); }
}

/* Faint arcane sigil rings behind the hero title */
.sigil-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  pointer-events: none;
  animation: gc-sigil-turn 90s linear infinite;
}

@keyframes gc-sigil-turn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Twinkling spark motes scattered through the hero */
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  color: var(--arcane-glow);
  opacity: 0;
  animation: gc-twinkle 4.5s ease-in-out infinite;
}

.spark-1 { top: 22%; left: 18%; animation-delay: 0s; }
.spark-2 { top: 34%; left: 78%; animation-delay: 1.4s; }
.spark-3 { top: 68%; left: 12%; animation-delay: 2.6s; }
.spark-4 { top: 72%; left: 85%; animation-delay: 0.8s; }
.spark-5 { top: 15%; left: 52%; animation-delay: 3.4s; }

@keyframes gc-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* --------------------------------------------------------------------
   Illuminated-manuscript corner flourishes
   Applied to any panel that wants a framed, hand-illustrated feel.
   -------------------------------------------------------------------- */
.gc-frame { position: relative; }

.gc-frame .corner {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: 0.8;
}

.gc-frame .corner-tl { top: -1px; left: -1px; }
.gc-frame .corner-tr { top: -1px; right: -1px; transform: scaleX(-1); }
.gc-frame .corner-bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.gc-frame .corner-br { bottom: -1px; right: -1px; transform: scale(-1, -1); }

/* Deckle / torn parchment edge along the bottom of card thumbnails */
.tome-thumb {
  display: block;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 92%,
    96% 96%, 91% 91%, 86% 97%, 81% 92%,
    76% 97%, 71% 91%, 66% 96%, 61% 91%,
    56% 97%, 51% 92%, 46% 97%, 41% 91%,
    36% 96%, 31% 91%, 26% 97%, 21% 92%,
    16% 97%, 11% 91%, 6% 96%, 0% 91%
  );
}

/* --------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--gc-header-bg);
  backdrop-filter: blur(var(--gc-header-blur));
  border-bottom: 1px solid var(--gc-header-border);
}

.gc-header-unpinned .site-header {
  position: relative;
  top: auto;
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar.gc-header-unpinned .site-header {
  top: auto;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gc-header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.brand .custom-logo {
  width: var(--gc-brand-mark-size);
  height: var(--gc-brand-mark-size);
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--gc-brand-name-size);
  letter-spacing: 0.06em;
  color: var(--parchment);
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  font-family: var(--font-meta);
  font-size: var(--gc-brand-tagline-size);
  letter-spacing: 0.32em;
  color: var(--brass);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--gc-menu-gap);
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  font-family: var(--font-meta);
  font-size: var(--gc-menu-font-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-menu-text);
  position: relative;
  padding-bottom: 4px;
}

.main-nav .menu-item-has-children > a {
  padding-right: 16px;
}

.main-nav .menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 44%;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.72;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--gc-menu-active); }

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--gc-menu-active);
}

.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--wine-bright);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--wine-bright);
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 120;
  display: grid;
  gap: 0;
  min-width: var(--gc-dropdown-min-width);
  padding: 10px;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at var(--menu-x, 18%) 0%, rgba(132, 82, 199, 0.2), transparent 46%),
    linear-gradient(120deg, transparent 0%, rgba(201, 160, 92, 0.12) 44%, rgba(233, 223, 199, 0.24) 50%, rgba(201, 160, 92, 0.12) 56%, transparent 100%),
    linear-gradient(180deg, rgba(233, 223, 199, 0.045), transparent 46%),
    rgba(14, 11, 9, 0.97);
  background-size: 100% 100%, 260% 100%, 100% 100%, 100% 100%;
  background-position: center, 120% 0, center, center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-position 900ms ease;
  overflow: hidden;
}

.main-nav .sub-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(201, 160, 92, 0.16);
  box-shadow:
    inset 0 0 26px rgba(132, 82, 199, 0.15),
    inset 0 0 1px rgba(233, 223, 199, 0.32);
}

.main-nav .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  background-position: center, -40% 0, center, center;
}

.main-nav .sub-menu li {
  border-bottom: 1px solid var(--hairline);
}

.main-nav .sub-menu li:last-child {
  border-bottom: 0;
}

.main-nav .sub-menu a {
  display: block;
  padding: 11px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.main-nav .sub-menu a::after {
  display: none;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible {
  color: var(--parchment);
  background: linear-gradient(90deg, rgba(132, 82, 199, 0.18), rgba(201, 160, 92, 0.08));
  transform: translateX(3px);
}

.main-nav .sub-menu .sub-menu {
  top: -11px;
  left: calc(100% + 12px);
  transform: translate(8px, 0);
}

.main-nav .sub-menu li:hover > .sub-menu,
.main-nav .sub-menu li:focus-within > .sub-menu {
  transform: translate(0, 0);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--parchment);
  width: 40px; height: 40px;
  cursor: pointer;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: var(--gc-hero-min-height);
  margin-top: -1px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--gc-hero-padding-top) 0 var(--gc-hero-padding-bottom);
  text-align: left;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background-color: #120d25;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--gc-hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--gc-hero-overlay-left), var(--gc-hero-overlay-middle) 42%, var(--gc-hero-overlay-right)),
    linear-gradient(180deg, rgba(8, 7, 17, 0.14), var(--gc-hero-overlay-bottom) 100%),
    radial-gradient(circle at var(--hero-x, 50%) var(--hero-y, 42%), rgba(155, 116, 223, 0.16), transparent 30%);
  pointer-events: none;
}

@keyframes gc-hero-shimmer {
  0%, 18% { background-position: 140% 0, center, center, center; opacity: 0; }
  30%, 48% { opacity: 1; }
  62%, 100% { background-position: -40% 0, center, center, center; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.hero-copy {
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.76);
}

.hero-eyebrow {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--parchment);
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.78), 0 0 38px rgba(155, 116, 223, 0.24);
  animation: gc-flicker 6s ease-in-out infinite;
}

@keyframes gc-flicker {
  0%, 100% { text-shadow: 0 4px 26px rgba(0, 0, 0, 0.78), 0 0 38px rgba(155, 116, 223, 0.22); }
  50% { text-shadow: 0 4px 28px rgba(0, 0, 0, 0.8), 0 0 52px rgba(155, 116, 223, 0.34); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}

.seal-divider {
  width: 52px;
  height: 52px;
  margin: 0 0 30px;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(132, 82, 199, 0.35));
}

.hero h1 em {
  font-style: normal;
  color: var(--wine-bright);
}

.hero p {
  max-width: 560px;
  margin: 0 0 40px;
  color: var(--parchment-dim);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-ghost {
  background: rgba(233, 223, 199, 0.04);
  border-color: var(--hairline-arcane);
}

.btn:hover {
  background: var(--brass);
  color: var(--ink);
}

.btn-solid {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--parchment);
}

.btn-solid:hover {
  background: var(--wine-bright);
  border-color: var(--wine-bright);
  color: var(--parchment);
}

.reader-paths {
  margin: clamp(42px, 7vw, 80px) 0 clamp(48px, 8vw, 92px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--hairline-arcane);
  background:
    radial-gradient(circle at 18% 20%, rgba(155, 116, 223, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(241, 232, 210, 0.055), rgba(80, 49, 120, 0.08)),
    rgba(18, 16, 36, 0.62);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.reader-paths-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.reader-paths-head p,
.reader-path-card span,
.gc-share-panel span {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin: 0;
}

.reader-paths-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  color: var(--parchment);
  margin: 0;
}

.reader-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reader-path-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(223, 191, 120, 0.2);
  color: var(--parchment);
  background:
    linear-gradient(180deg, rgba(241, 232, 210, 0.05), transparent 48%),
    rgba(8, 7, 17, 0.36);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.reader-path-card::after {
  content: '';
  position: absolute;
  inset: auto 22px 18px auto;
  width: 58px;
  height: 1px;
  background: var(--brass);
  opacity: 0.55;
  transform-origin: right center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.reader-path-card:hover {
  transform: translateY(-5px);
  border-color: var(--arcane-bright);
  background:
    radial-gradient(circle at 82% 12%, rgba(155, 116, 223, 0.18), transparent 30%),
    rgba(18, 16, 36, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), 0 0 34px rgba(155, 116, 223, 0.12);
}

.reader-path-card:hover::after {
  opacity: 0.9;
  transform: scaleX(1.3);
}

.reader-path-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.13;
  margin: 0;
}

.reader-path-card p {
  color: var(--parchment-dim);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.reader-path-card strong {
  margin-top: auto;
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.hero-showcase {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(169, 128, 61, 0.22);
  border-radius: 50%;
  animation: gc-orbit 28s linear infinite;
  pointer-events: none;
}

.orbit-ring-two {
  inset: 18%;
  border-color: rgba(132, 82, 199, 0.35);
  animation-duration: 36s;
  animation-direction: reverse;
}

@keyframes gc-orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(1); }
}

.latest-hero-post {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  max-height: 560px;
  margin-left: auto;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(145deg, rgba(233, 223, 199, 0.08), rgba(132, 82, 199, 0.08)),
    rgba(26, 21, 36, 0.86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(233, 223, 199, 0.08);
  overflow: hidden;
  transform: rotate(1.5deg);
  animation: gc-latest-float 7s ease-in-out infinite;
}

.latest-hero-link {
  display: block;
  color: inherit;
}

.latest-hero-media {
  aspect-ratio: 16/10;
  background: linear-gradient(155deg, var(--moss), var(--ink-2));
  border-bottom: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.latest-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-hero-placeholder {
  width: 42%;
  height: 42%;
  opacity: 0.86;
  filter: drop-shadow(0 0 16px rgba(132, 82, 199, 0.32));
}

.latest-hero-body {
  padding: 28px;
}

.latest-hero-body span {
  display: block;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 14px;
}

.latest-hero-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
  color: var(--parchment);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-hero-body p {
  color: var(--parchment-dim);
  font-size: 16px;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-hero-body small {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

@keyframes gc-latest-float {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-14px) rotate(-0.5deg); }
}

.manuscript-stack {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.38));
}

.manuscript-card {
  position: absolute;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(145deg, rgba(233, 223, 199, 0.09), rgba(132, 82, 199, 0.08)),
    rgba(26, 21, 36, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(233, 223, 199, 0.08);
}

.manuscript-card span,
.studio-panel span {
  display: block;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 14px;
}

.manuscript-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--parchment);
}

.manuscript-card-main {
  width: min(390px, 90%);
  min-height: 310px;
  left: 8%;
  top: 16%;
  padding: 34px;
  animation: gc-float-main 7s ease-in-out infinite;
}

.manuscript-card-main strong {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 30px;
}

.manuscript-card-main i {
  display: block;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--brass), transparent);
  opacity: 0.55;
}

.manuscript-card-main i:nth-of-type(2) { width: 78%; }
.manuscript-card-main i:nth-of-type(3) { width: 54%; }

.manuscript-card-note {
  width: 250px;
  right: 4%;
  top: 4%;
  padding: 24px;
  transform: rotate(4deg);
  animation: gc-float-note 8s ease-in-out infinite;
}

.manuscript-card-note strong {
  font-size: 20px;
  line-height: 1.25;
}

.manuscript-card-stat {
  width: 220px;
  right: 10%;
  bottom: 10%;
  padding: 24px;
  animation: gc-float-stat 6.5s ease-in-out infinite;
}

.manuscript-card-stat strong {
  font-size: 26px;
}

@keyframes gc-float-main {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

@keyframes gc-float-note {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(14px) rotate(1deg); }
}

@keyframes gc-float-stat {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

.writer-studio {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 18px;
  padding-top: 70px;
}

.studio-panel {
  border: 1px solid var(--hairline);
  background:
    linear-gradient(135deg, rgba(169, 128, 61, 0.08), rgba(132, 82, 199, 0.08)),
    rgba(26, 21, 36, 0.72);
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.studio-panel::before {
  content: '';
  position: absolute;
  inset: -60% auto auto -40%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(132, 82, 199, 0.24), transparent 62%);
  animation: gc-panel-glow 9s ease-in-out infinite;
}

.studio-panel-large {
  min-height: 240px;
}

.studio-panel h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
  color: var(--parchment);
  margin: 0;
}

.studio-panel strong {
  position: relative;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.35;
  color: var(--parchment);
}

@keyframes gc-panel-glow {
  0%, 100% { transform: translate(0, 0); opacity: 0.55; }
  50% { transform: translate(70px, 40px); opacity: 0.9; }
}

/* --------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 var(--gc-section-heading-bottom-gap);
  padding-top: var(--gc-section-heading-top-space);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.03em;
  color: var(--parchment);
  margin: 0;
}

.section-head h2 span {
  color: var(--arcane-bright);
}

.section-head a {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.section-head-stacked {
  display: block;
}

.archive-description,
.muted-copy {
  color: var(--parchment-dim);
}

.archive-description {
  margin-top: 12px;
  max-width: 640px;
}

.empty-card {
  padding: 40px;
  text-align: center;
}

.link-inherit {
  color: inherit;
}

/* --------------------------------------------------------------------
   Featured post
   -------------------------------------------------------------------- */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
  gap: var(--gc-featured-gap);
  align-items: center;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 22% 18%, rgba(198, 167, 255, 0.15), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(194, 79, 120, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(241, 232, 210, 0.055), rgba(132, 82, 199, 0.055) 38%, transparent 72%),
    rgba(18, 16, 36, 0.84);
  padding: var(--gc-featured-padding);
  overflow: hidden;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(248, 238, 207, 0.08);
  isolation: isolate;
  transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.featured.reveal {
  opacity: 1;
  transform: none;
}

.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(248, 238, 207, 0.11) 38%, transparent 52%),
    radial-gradient(circle at var(--feature-x, 70%) var(--feature-y, 30%), rgba(155, 116, 223, 0.18), transparent 28%);
  background-size: 220% 100%, 100% 100%;
  opacity: 0.72;
  animation: gc-featured-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.featured::after {
  content: '';
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(198, 167, 255, 0.11);
  pointer-events: none;
}

.featured:hover {
  border-color: rgba(198, 167, 255, 0.46);
  transform: translateY(-4px);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.34),
    0 12px 40px rgba(132, 82, 199, 0.14),
    inset 0 1px 0 rgba(248, 238, 207, 0.09);
}

@keyframes gc-featured-sheen {
  0%, 100% { background-position: 130% 0, center; opacity: 0.44; }
  45%, 58% { opacity: 0.82; }
  72% { background-position: -40% 0, center; opacity: 0.38; }
}

.featured-media {
  aspect-ratio: 16/10;
  width: 100%;
  max-width: var(--gc-featured-image-max);
  justify-self: center;
  background:
    linear-gradient(160deg, rgba(22, 32, 24, 0.9), rgba(18, 16, 36, 0.96));
  border: 1px solid rgba(223, 191, 120, 0.32);
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  transform: translateZ(0);
}

.featured-media img,
.tome-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media img {
  display: block;
  object-position: var(--gc-featured-image-position);
  filter: saturate(0.95) contrast(1.04);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.featured:hover .featured-media img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.08);
}

.featured-content {
  max-width: 650px;
  padding: 8px 0;
}

.featured-category {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 14px;
}

.featured h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, var(--gc-featured-title-size));
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--parchment);
  letter-spacing: 0;
  max-width: 780px;
  display: -webkit-box;
  -webkit-line-clamp: var(--gc-featured-title-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured p {
  color: var(--parchment-dim);
  margin: 0 0 24px;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.46;
  max-width: 720px;
  display: -webkit-box;
  -webkit-line-clamp: var(--gc-featured-excerpt-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured .post-meta {
  gap: 16px;
  flex-wrap: wrap;
}

.featured-image-right:not(.featured-style-background):not(.featured-layout-image_top) .featured-media {
  order: 2;
}

.featured-image-right:not(.featured-style-background):not(.featured-layout-image_top) .featured-content {
  order: 1;
}

.featured-style-background {
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: var(--gc-featured-min-height);
  padding: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(198, 167, 255, 0.12), transparent 34%),
    rgba(8, 7, 17, 0.98);
}

.featured-style-background::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 7, 17, var(--gc-featured-overlay-opacity)), rgba(8, 7, 17, 0.12) 48%, rgba(8, 7, 17, var(--gc-featured-overlay-opacity))),
    radial-gradient(circle at 72% 34%, rgba(155, 116, 223, 0.18), transparent 38%);
  animation: none;
  opacity: 1;
}

.featured-style-background::after {
  z-index: 2;
}

.featured-style-background .featured-media {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 72%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
}

.featured-style-background.featured-image-right .featured-media {
  left: auto;
  right: 0;
}

.featured-style-background .featured-media img {
  object-position: var(--gc-featured-image-position);
  filter: saturate(1.02) contrast(1.05);
}

.featured-style-background .featured-content {
  position: relative;
  z-index: 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, 56%);
  max-width: none;
  min-width: min(420px, 100%);
  padding: clamp(34px, 5vw, 70px);
  background:
    linear-gradient(120deg, rgba(12, 9, 24, 0.98), rgba(18, 16, 36, 0.92) 72%, rgba(18, 16, 36, 0.52));
  color: var(--parchment);
  border-right: 1px solid rgba(198, 167, 255, 0.14);
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.42);
}

.featured-style-background .featured-content a {
  pointer-events: auto;
}

.featured-style-background.featured-panel-right .featured-content {
  margin-left: auto;
  background:
    linear-gradient(250deg, rgba(12, 9, 24, 0.98), rgba(18, 16, 36, 0.92) 72%, rgba(18, 16, 36, 0.52));
  border-right: 0;
  border-left: 1px solid rgba(198, 167, 255, 0.14);
  box-shadow: -22px 0 70px rgba(0, 0, 0, 0.42);
}

.featured-style-background h3,
.featured-style-background p,
.featured-style-background .post-meta {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.featured-style-background h3,
.featured-style-background h3 a {
  color: var(--starlight) !important;
}

.featured-style-background p {
  color: var(--parchment) !important;
}

.featured-style-background .post-meta {
  color: var(--parchment-dim) !important;
}

.featured-style-background .featured-category {
  color: var(--brass-bright) !important;
}

.featured-style-background .featured-content * {
  opacity: 1;
}

.featured-layout-image_top {
  grid-template-columns: 1fr;
}

.featured-layout-image_top .featured-media {
  max-width: 100%;
  aspect-ratio: 21/9;
}

.featured-layout-image_top .featured-content {
  max-width: 880px;
}

.featured-layout-compact {
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
  padding: min(var(--gc-featured-padding), 30px);
  gap: min(var(--gc-featured-gap), 28px);
}

.featured-layout-compact .featured-media {
  max-width: min(var(--gc-featured-image-max), 340px);
}

.featured-layout-compact h3 {
  font-size: clamp(26px, 3.3vw, 38px);
}

.featured-layout-compact p {
  font-size: 18px;
  -webkit-line-clamp: 3;
}

.post-meta {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  gap: 18px;
  align-items: center;
}

.post-meta .dot { width: 4px; height: 4px; background: var(--brass); border-radius: 50%; }

/* --------------------------------------------------------------------
   Tome grid (post cards)
   -------------------------------------------------------------------- */
.tome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--gc-card-min), var(--gc-card-max)));
  gap: var(--gc-card-gap);
  align-items: start;
  justify-content: start;
}

.tome-card {
  border: 1px solid var(--gc-card-border);
  background:
    linear-gradient(180deg, rgba(233, 223, 199, 0.035), transparent 42%),
    var(--gc-card-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: var(--gc-card-max);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tome-card:hover {
  border-color: var(--arcane-bright);
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), 0 8px 28px rgba(132, 82, 199, 0.16);
}

.tome-thumb {
  display: block;
  width: 100%;
  aspect-ratio: var(--gc-card-thumb-ratio);
  background: linear-gradient(155deg, var(--moss), var(--ink-2));
  position: relative;
  border-bottom: 1px solid var(--hairline);
  max-height: var(--gc-card-thumb-max-height);
  overflow: hidden;
}

.tome-thumb img,
.tome-thumb .wp-post-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: var(--gc-card-thumb-fit);
  object-position: var(--gc-card-thumb-position);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.tome-card:hover .tome-thumb img {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.05);
}

.tome-thumb .seal-mini { position: absolute; bottom: -14px; left: 18px; width: 30px; height: 30px; }

.tome-body { padding: var(--gc-card-padding); flex: 1; display: flex; flex-direction: column; min-height: 0; }

.tome-category {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.tome-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--gc-card-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tome-card p {
  color: var(--gc-card-muted);
  font-size: 14px;
  line-height: 1.48;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tome-card .post-meta {
  font-size: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.tome-grid.reveal .tome-card {
  opacity: 0;
}

.tome-grid.reveal.is-visible .tome-card {
  animation: gc-card-rise 0.72s ease both;
}

.tome-grid.reveal.is-visible .tome-card:nth-child(2) { animation-delay: 0.08s; }
.tome-grid.reveal.is-visible .tome-card:nth-child(3) { animation-delay: 0.16s; }
.tome-grid.reveal.is-visible .tome-card:nth-child(4) { animation-delay: 0.24s; }
.tome-grid.reveal.is-visible .tome-card:nth-child(5) { animation-delay: 0.32s; }
.tome-grid.reveal.is-visible .tome-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes gc-card-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* --------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------- */
.post-header {
  padding: var(--gc-post-header-top-space) 0 var(--gc-post-header-bottom-space);
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

.post-header .featured-category { justify-content: center; display: flex; }

.post-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.16;
  max-width: 780px;
  margin: 0 auto 24px;
  color: var(--parchment);
}

.post-header .post-meta { justify-content: center; }

.post-layout,
.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--gc-post-sidebar-width);
  gap: var(--gc-post-layout-gap);
  padding: var(--gc-post-layout-top-space) 0 var(--gc-post-layout-bottom-space);
}

.page-layout {
  padding-top: 0;
}

.post-layout-no-sidebar,
.page-layout-no-sidebar {
  display: block;
}

.post-content { max-width: var(--gc-post-content-width); }

.post-layout:not(.post-layout-no-sidebar) .post-content {
  max-width: var(--gc-post-content-with-sidebar-width);
}

.post-layout-no-sidebar .post-content,
.page-layout-no-sidebar .page-content {
  max-width: var(--gc-post-content-full-width);
  margin: 0 auto;
}

.post-sidebar,
.page-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}

.post-template-widgets {
  margin: 0 0 34px;
}

.archive-template-widgets-after {
  margin: 34px 0 0;
}

.post-template-widgets-before-title {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: left;
}

.post-template-widgets .sidebar-widget {
  margin-bottom: 0;
}

.post-template-widgets .sidebar-widget + .sidebar-widget {
  margin-top: 22px;
}

.page-wrap {
  padding-top: var(--gc-page-top-space);
  padding-bottom: var(--gc-page-bottom-space);
}

.page-layout {
  padding-top: var(--gc-regular-page-top-space);
  padding-bottom: var(--gc-regular-page-bottom-space);
}

.blog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.archive-shell-no-sidebar {
  display: block;
}

.archive-shell {
  grid-template-columns: minmax(0, var(--gc-archive-content-width)) var(--gc-archive-sidebar-width);
  gap: var(--gc-archive-gap);
  justify-content: center;
}

.archive-main {
  width: 100%;
}

.archive-shell-no-sidebar .archive-main {
  max-width: var(--gc-archive-no-sidebar-content-width);
  margin: 0 auto;
}

.archive-shell .tome-grid {
  grid-template-columns: repeat(auto-fill, minmax(var(--gc-archive-card-min), var(--gc-archive-card-max)));
  gap: var(--gc-archive-grid-gap);
  justify-content: start;
  align-items: start;
}

.archive-shell .tome-card {
  width: 100%;
  max-width: var(--gc-archive-card-max);
  color: var(--gc-archive-card-text);
  border-color: var(--gc-archive-card-border);
  background:
    linear-gradient(180deg, rgba(241, 232, 210, 0.045), transparent 42%),
    var(--gc-archive-card-bg);
}

.archive-shell .tome-thumb {
  max-height: var(--gc-archive-card-thumb-max-height);
}

.archive-shell .tome-body {
  padding: var(--gc-archive-card-padding);
}

.archive-shell .tome-category {
  margin-bottom: 10px;
}

.archive-shell .tome-card h3,
.archive-shell .tome-card h3 a {
  color: var(--gc-archive-card-text);
}

.archive-shell .tome-card h3 {
  font-size: 17px;
  line-height: 1.26;
  -webkit-line-clamp: 2;
}

.archive-shell .tome-card p,
.archive-shell .tome-card .post-meta {
  color: var(--gc-archive-card-muted);
}

.archive-shell .tome-card p {
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.archive-shell .archive-template-widgets {
  max-width: var(--gc-archive-content-width);
}

.blog-sidebar {
  position: sticky;
  top: 110px;
}

.home-widget-row {
  display: grid;
  grid-template-columns: repeat(var(--gc-home-widget-columns), minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}

.gc-show-edit-regions .gc-editable-region {
  position: relative;
  outline: 1px dashed rgba(198, 167, 255, 0.42);
  outline-offset: 8px;
}

.gc-show-edit-regions .gc-editable-region::before {
  content: attr(data-gc-region);
  position: absolute;
  top: -26px;
  left: 0;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(198, 167, 255, 0.34);
  background: rgba(12, 9, 24, 0.92);
  color: var(--brass-bright);
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-wrap-narrow {
  padding: 64px 32px 100px;
}

.page-content {
  max-width: 680px;
}

.homepage-page-content {
  margin-bottom: 52px;
}

.post-content > .alignwide,
.post-content > .gc-wide,
.post-content .wp-block-html .gc-wide,
.page-content > .alignwide,
.page-content > .gc-wide,
.page-content .wp-block-html .gc-wide {
  width: min(1100px, calc(100vw - 64px));
  max-width: none;
  margin-left: calc(50% - min(550px, calc((100vw - 64px) / 2)));
  margin-right: calc(50% - min(550px, calc((100vw - 64px) / 2)));
}

.post-content > .alignfull,
.post-content > .gc-full,
.post-content .wp-block-html .gc-full,
.page-content > .alignfull,
.page-content > .gc-full,
.page-content .wp-block-html .gc-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-layout:not(.post-layout-no-sidebar) .post-content > .alignwide,
.post-layout:not(.post-layout-no-sidebar) .post-content > .alignfull,
.post-layout:not(.post-layout-no-sidebar) .post-content > .gc-wide,
.post-layout:not(.post-layout-no-sidebar) .post-content > .gc-full,
.post-layout:not(.post-layout-no-sidebar) .post-content .wp-block-html .gc-wide,
.post-layout:not(.post-layout-no-sidebar) .post-content .wp-block-html .gc-full,
.page-layout:not(.page-layout-no-sidebar) .page-content > .alignwide,
.page-layout:not(.page-layout-no-sidebar) .page-content > .alignfull,
.page-layout:not(.page-layout-no-sidebar) .page-content > .gc-wide,
.page-layout:not(.page-layout-no-sidebar) .page-content > .gc-full,
.page-layout:not(.page-layout-no-sidebar) .page-content .wp-block-html .gc-wide,
.page-layout:not(.page-layout-no-sidebar) .page-content .wp-block-html .gc-full {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.post-content > .alignwide,
.post-content > .alignfull,
.post-content > .gc-wide,
.post-content > .gc-full,
.post-content .wp-block-html .gc-wide,
.post-content .wp-block-html .gc-full,
.page-content > .alignwide,
.page-content > .alignfull,
.page-content > .gc-wide,
.page-content > .gc-full,
.page-content .wp-block-html .gc-wide,
.page-content .wp-block-html .gc-full {
  clear: both;
}

.post-content > .alignwide img,
.post-content > .alignfull img,
.post-content > .gc-wide img,
.post-content > .gc-full img,
.post-content .wp-block-html .gc-wide img,
.post-content .wp-block-html .gc-full img,
.post-content .wp-block-html .gc-wide iframe,
.post-content .wp-block-html .gc-full iframe,
.post-content .wp-block-html .gc-wide video,
.post-content .wp-block-html .gc-full video,
.page-content > .alignwide img,
.page-content > .alignfull img,
.page-content > .gc-wide img,
.page-content > .gc-full img,
.page-content .wp-block-html .gc-wide img,
.page-content .wp-block-html .gc-full img,
.page-content .wp-block-html .gc-wide iframe,
.page-content .wp-block-html .gc-full iframe,
.page-content .wp-block-html .gc-wide video,
.page-content .wp-block-html .gc-full video {
  width: 100%;
}

.post-content > .wp-block-html.alignwide,
.post-content > .wp-block-html.alignfull,
.post-content > .wp-block-html.gc-wide,
.post-content > .wp-block-html.gc-full,
.post-content .wp-block-html .gc-wide,
.post-content .wp-block-html .gc-full,
.page-content > .wp-block-html.alignwide,
.page-content > .wp-block-html.alignfull,
.page-content > .wp-block-html.gc-wide,
.page-content > .wp-block-html.gc-full,
.page-content .wp-block-html .gc-wide,
.page-content .wp-block-html .gc-full {
  display: block;
  max-width: none;
}

.post-content > .wp-block-html.alignwide > *,
.post-content > .wp-block-html.alignfull > *,
.post-content > .wp-block-html.gc-wide > *,
.post-content > .wp-block-html.gc-full > *,
.page-content > .wp-block-html.alignwide > *,
.page-content > .wp-block-html.alignfull > *,
.page-content > .wp-block-html.gc-wide > *,
.page-content > .wp-block-html.gc-full > * {
  max-width: 100%;
}

.post-content > .wp-block-html.alignwide > iframe,
.post-content > .wp-block-html.alignfull > iframe,
.post-content > .wp-block-html.gc-wide > iframe,
.post-content > .wp-block-html.gc-full > iframe,
.post-content > .wp-block-html.alignwide > img,
.post-content > .wp-block-html.alignfull > img,
.post-content > .wp-block-html.gc-wide > img,
.post-content > .wp-block-html.gc-full > img,
.post-content > .wp-block-html.alignwide > video,
.post-content > .wp-block-html.alignfull > video,
.post-content > .wp-block-html.gc-wide > video,
.post-content > .wp-block-html.gc-full > video,
.page-content > .wp-block-html.alignwide > iframe,
.page-content > .wp-block-html.alignfull > iframe,
.page-content > .wp-block-html.gc-wide > iframe,
.page-content > .wp-block-html.gc-full > iframe,
.page-content > .wp-block-html.alignwide > img,
.page-content > .wp-block-html.alignfull > img,
.page-content > .wp-block-html.gc-wide > img,
.page-content > .wp-block-html.gc-full > img,
.page-content > .wp-block-html.alignwide > video,
.page-content > .wp-block-html.alignfull > video,
.page-content > .wp-block-html.gc-wide > video,
.page-content > .wp-block-html.gc-full > video {
  width: 100%;
}

.post-content > .wp-block-cover.alignfull,
.page-content > .wp-block-cover.alignfull,
.post-content > .wp-block-group.alignfull,
.page-content > .wp-block-group.alignfull,
.post-content > .wp-block-cover.gc-full,
.page-content > .wp-block-cover.gc-full,
.post-content > .wp-block-group.gc-full,
.page-content > .wp-block-group.gc-full {
  padding-left: max(24px, calc((100vw - var(--container)) / 2 + 32px));
  padding-right: max(24px, calc((100vw - var(--container)) / 2 + 32px));
}

.entry-media {
  margin-bottom: 40px;
  border: 1px solid var(--hairline);
}

.entry-media img {
  width: 100%;
  display: block;
}

.post-tags {
  margin-top: 30px;
  flex-wrap: wrap;
}

.gc-share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 42px 0 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--hairline-arcane);
  background:
    radial-gradient(circle at 12% 20%, rgba(155, 116, 223, 0.18), transparent 34%),
    rgba(18, 16, 36, 0.72);
}

.gc-share-panel h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  color: var(--parchment);
}

.gc-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.gc-related-posts {
  padding-top: 10px;
  padding-bottom: 74px;
}

.gc-related-posts .section-head {
  margin-bottom: 28px;
}

.gc-related-posts .section-head span {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.gc-follow-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 5vw, 46px);
  align-items: center;
  margin: clamp(34px, 6vw, 70px) 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--hairline-arcane);
  background:
    radial-gradient(circle at 12% 18%, rgba(194, 79, 120, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(155, 116, 223, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(241, 232, 210, 0.06), rgba(80, 49, 120, 0.08)),
    rgba(18, 16, 36, 0.78);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(241, 232, 210, 0.06);
  overflow: hidden;
}

.gc-follow-cta-copy span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.gc-follow-cta h2 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.12;
  color: var(--parchment);
}

.gc-follow-cta p {
  max-width: 680px;
  margin: 0;
  color: var(--parchment-dim);
  font-size: 18px;
  line-height: 1.55;
}

.gc-follow-cta-actions {
  display: flex;
  min-width: min(330px, 100%);
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.gc-follow-cta-actions .btn {
  justify-content: center;
  text-align: center;
}

.gc-follow-socials {
  margin-top: 6px;
}

.gc-follow-socials:empty {
  display: none;
}

.comments-wrap {
  max-width: 680px;
  padding-bottom: 80px;
}

.post-content .gc-comments-shortcode {
  max-width: none;
  margin-top: 38px;
  padding-bottom: 0;
}

/* Jetpack Like block: dark-theme wrapper for the otherwise white iframe. */
.post-content div.sharedaddy.sd-like,
.post-content .wp-block-jetpack-like {
  overflow: hidden;
  border: 1px solid var(--gc-widget-border);
  background:
    linear-gradient(180deg, var(--gc-widget-bg-glow), transparent 46%),
    var(--gc-widget-bg);
  padding: 18px;
  color: var(--gc-widget-text);
}

.post-content div.sharedaddy.sd-like h3.sd-title,
.sidebar-widget div.sharedaddy.sd-like h3.sd-title {
  color: var(--gc-widget-text);
}

.post-content div.sharedaddy.sd-like h3.sd-title::before,
.sidebar-widget div.sharedaddy.sd-like h3.sd-title::before {
  border-top-color: rgba(241, 232, 210, 0.42);
}

.post-content .jetpack-likes-widget-wrapper,
.sidebar-widget .jetpack-likes-widget-wrapper {
  min-height: 64px;
  color: var(--gc-widget-text);
  background: transparent;
}

.post-content .likes-widget-placeholder,
.sidebar-widget .likes-widget-placeholder {
  color: var(--gc-widget-text);
  background: transparent;
}

.post-content .jetpack-likes-widget-wrapper iframe,
.sidebar-widget .jetpack-likes-widget-wrapper iframe {
  max-width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  filter: invert(1) hue-rotate(180deg) saturate(0.9) brightness(1.25) contrast(0.95);
  opacity: 0.96;
}

.not-found {
  text-align: center;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.not-found p {
  color: var(--parchment-dim);
  max-width: 520px;
  margin: 0 auto 34px;
}

.post-content p { margin: 0 0 26px; color: var(--parchment); }

.single-post .post-layout {
  align-items: start;
}

.single-post .post-content {
  position: relative;
  padding: var(--gc-post-panel-padding);
  border: 1px solid var(--gc-post-panel-border);
  background:
    linear-gradient(90deg, rgba(223, 191, 120, 0.08), transparent 1px) 0 0 / 100% 100%,
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(198, 167, 255, 0.055) 34px, transparent 35px),
    radial-gradient(circle at 18% 0%, rgba(198, 167, 255, 0.11), transparent 34%),
    linear-gradient(180deg, var(--gc-post-panel-bg), rgba(13, 10, 25, 0.56));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(248, 238, 207, 0.06);
}

.single-post .post-content::before {
  content: 'Written Chronicle';
  display: block;
  margin: 0 0 24px;
  color: var(--brass-bright);
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.single-post .post-content::after {
  content: '';
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(198, 167, 255, 0.08);
}

.single-post .post-content p {
  color: #f1e8d2;
  font-size: var(--gc-post-text-size);
  line-height: var(--gc-post-line-height);
}

.post-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  margin: 46px 0 20px;
  color: var(--parchment);
}

.post-content blockquote {
  border-left: 2px solid var(--arcane-glow);
  margin: 36px 0;
  padding: 4px 0 4px 26px;
  font-style: italic;
  color: var(--parchment-dim);
}

.ornament-divider {
  width: 40px;
  height: 40px;
  margin: 44px auto;
  opacity: 0.75;
  filter: drop-shadow(0 0 8px rgba(132, 82, 199, 0.3));
}

/* Sidebar */
.sidebar-widget { margin-bottom: 44px; }

.home-widget-row .sidebar-widget,
.blog-sidebar .sidebar-widget,
.post-sidebar .sidebar-widget,
.page-sidebar .sidebar-widget,
.post-template-widgets .sidebar-widget,
.page-template-widgets .sidebar-widget,
.archive-template-widgets .sidebar-widget {
  color: var(--gc-widget-text);
  border: 1px solid var(--gc-widget-border);
  border-radius: var(--gc-widget-radius);
  background:
    linear-gradient(180deg, var(--gc-widget-bg-glow), transparent 44%),
    var(--gc-widget-bg);
  padding: var(--gc-widget-padding);
}

.sidebar-widget:has(.wp-block-jetpack-like),
.sidebar-widget:has(div.sharedaddy.sd-like) {
  padding: var(--gc-widget-padding);
}

.sidebar-widget .wp-block-jetpack-like,
.sidebar-widget div.sharedaddy.sd-like {
  border: 0;
  background: transparent;
  padding: 0;
}

.sidebar-widget .wp-block-jetpack-like div.sharedaddy.sd-like {
  overflow: visible;
}

.sidebar-widget h4 {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--gc-widget-border);
  padding-bottom: 12px;
  margin: 0 0 20px;
}

.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

.sidebar-widget a {
  color: var(--gc-widget-muted);
}

.sidebar-widget a:hover {
  color: var(--brass-bright);
}

.sidebar-widget.widget_nav_menu .menu,
.sidebar-widget .wp-block-navigation__container {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget.widget_nav_menu .menu li,
.sidebar-widget .wp-block-navigation-item {
  border-bottom: 1px solid rgba(223, 191, 120, 0.15);
  margin: 0;
}

.sidebar-widget.widget_nav_menu .menu li:last-child,
.sidebar-widget .wp-block-navigation-item:last-child {
  border-bottom: 0;
}

.sidebar-widget.widget_nav_menu .menu a,
.sidebar-widget .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: var(--gc-widget-text);
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-widget.widget_nav_menu .menu a:hover,
.sidebar-widget .wp-block-navigation-item__content:hover {
  color: var(--brass-bright);
}

.sidebar-widget .wp-block-navigation {
  width: 100%;
}

.sidebar-widget .wp-block-navigation .wp-block-navigation__submenu-container {
  position: static;
  width: 100%;
  height: auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding-left: 14px;
}

.sidebar-widget.widget_wpcom_category_cloud a,
.sidebar-widget .wpcom-category-cloud a,
.sidebar-widget .wp-block-wpcom-category-cloud a,
.sidebar-widget .wp-block-jetpack-category-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 8px 8px 0;
  padding: 6px 10px;
  border: 1px solid rgba(223, 191, 120, 0.18);
  background: rgba(241, 232, 210, 0.035);
  color: var(--gc-widget-text);
  font-family: var(--font-meta);
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-widget.widget_wpcom_category_cloud a:hover,
.sidebar-widget .wpcom-category-cloud a:hover,
.sidebar-widget .wp-block-wpcom-category-cloud a:hover,
.sidebar-widget .wp-block-jetpack-category-cloud a:hover {
  border-color: rgba(223, 191, 120, 0.42);
  color: var(--brass-bright);
}

.sidebar-widget input[type="search"],
.sidebar-widget input[type="text"],
.sidebar-widget input[type="email"] {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  color: var(--parchment);
  font: inherit;
  padding: 12px 14px;
}

.sidebar-widget .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.sidebar-widget .wp-block-search__button,
.search-submit {
  border: 1px solid var(--brass);
  background: var(--wine);
  color: var(--parchment);
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 14px;
  cursor: pointer;
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 20% 0%, rgba(132, 82, 199, 0.12), transparent 34%),
    rgba(10, 8, 15, 0.96);
  padding: 60px 0 40px;
  width: 100%;
}

.site-footer > .wrap,
.above-footer-widgets > .wrap {
  max-width: none;
}

.above-footer-widgets {
  border-top: 1px solid var(--hairline);
  padding: 58px 0 0;
  width: 100%;
}

.above-footer-box,
.footer-box {
  border: 1px solid var(--hairline);
  background:
    linear-gradient(135deg, rgba(169, 128, 61, 0.08), rgba(132, 82, 199, 0.06)),
    rgba(26, 21, 36, 0.74);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.above-footer-box {
  padding: 28px;
  margin-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 36px;
}

.footer-grid > div {
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--hairline);
}

.footer-grid > div:last-child {
  border-right: none;
}

.footer-grid h4 {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 20px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: var(--parchment-dim); font-size: 15px; }

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.comments-area {
  margin-top: 20px;
}

.comments-title {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin: 0 0 30px;
}

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

.comment-closed {
  color: var(--parchment-dim);
}

.comment-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--hairline);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px;
}

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--hairline);
    padding: 20px 0;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; padding: 0 32px; }
  .main-nav.is-open li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .main-nav.is-open .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 12px 0 0;
    padding: 0 0 0 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav.is-open .sub-menu::before { display: none; }
  .main-nav.is-open .sub-menu li {
    border-bottom: 0;
    padding: 8px 0;
  }
  .main-nav.is-open .sub-menu a {
    padding: 0;
    white-space: normal;
  }
  .nav-toggle { display: block; }
  .hero {
    min-height: auto;
    padding: 72px 0 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-showcase {
    min-height: 420px;
    order: -1;
  }
  .latest-hero-post {
    margin: 0 auto;
  }
  .blog-shell {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
  .home-widget-row {
    grid-template-columns: 1fr;
  }
  .reader-path-grid {
    grid-template-columns: 1fr;
  }
  .writer-studio {
    grid-template-columns: 1fr;
  }
  .featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .featured-style-background {
    min-height: 420px;
  }
  .featured-style-background .featured-content,
  .featured-style-background.featured-panel-right .featured-content {
    width: 100%;
    margin-left: 0;
    align-self: end;
    background: linear-gradient(180deg, rgba(18, 16, 36, 0), rgba(18, 16, 36, 0.92) 28%, rgba(18, 16, 36, 0.96));
    border-left: 0;
    border-right: 0;
  }
  .featured-media {
    max-width: 100%;
  }
  .featured h3 {
    font-size: clamp(28px, 8vw, 42px);
  }
  .featured p {
    font-size: 18px;
  }
  .tome-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); }
  .tome-card { max-width: 220px; }
  .post-layout,
  .page-layout { grid-template-columns: 1fr; }
  .gc-share-panel {
    grid-template-columns: 1fr;
  }
  .gc-share-actions {
    justify-content: flex-start;
  }
  .gc-follow-cta {
    grid-template-columns: 1fr;
  }
  .gc-follow-cta-actions {
    width: 100%;
  }
  .page-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:nth-child(2n) { border-right: none; }
  .footer-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--hairline); }
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: 130px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .tome-grid { grid-template-columns: minmax(0, 1fr); }
  .tome-card { max-width: 100%; }
  .wrap { padding: 0 20px; }
  .hero {
    padding: 56px 0 52px;
  }
  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }
  .hero-showcase {
    min-height: 330px;
  }
  .manuscript-card-main {
    left: 0;
    top: 16%;
    width: 82%;
    min-height: 240px;
    padding: 24px;
  }
  .manuscript-card-note {
    width: 190px;
    right: 0;
    top: 2%;
  }
  .manuscript-card-stat {
    width: 180px;
    right: 4%;
    bottom: 3%;
  }
  .latest-hero-body {
    padding: 22px;
  }
  .writer-studio {
    padding-top: 42px;
  }
  .studio-panel {
    min-height: 170px;
    padding: 24px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div,
  .footer-grid > div:nth-child(2n),
  .footer-grid > div:nth-child(-n + 2) {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .footer-grid > div:last-child {
    border-bottom: none;
  }
}

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