/*
Theme Name: Dungeon Tales
Theme URI: https://dungeons.weesefamily.ca
Author: Jeffrey Weese
Author URI: https://weesefamily.ca
Description: A dark cartographic WordPress theme for fantasy stories, campaign chronicles, characters, lore, and tabletop role-playing content.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dungeon-tales
Tags: blog, entertainment, dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --ink: #080d0f;
  --slate: #101719;
  --slate-light: #172124;
  --bone: #e9e2d1;
  --bone-soft: #c8c1b2;
  --emerald: #63e58b;
  --emerald-dark: #142b20;
  --copper: #a7744f;
  --copper-dim: #634832;
  --muted: #87908f;
  --border: rgba(167, 116, 79, 0.46);
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Baskerville, Georgia, serif;
  --sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(99, 229, 139, 0.035), transparent 22rem),
    var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
}

::selection {
  background: var(--emerald);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--emerald);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 7.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.2vw;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 13, 15, 0.96), rgba(8, 13, 15, 0.7));
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-seal {
  position: relative;
  width: 4.55rem;
  height: 4.55rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--display);
  font-size: 1.35rem;
}

.brand-seal::before,
.brand-seal::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(167, 116, 79, 0.65);
  border-radius: 50%;
  transform: rotate(45deg);
}

.brand-seal::after {
  inset: -0.33rem 1.8rem;
  border-radius: 0;
  border-width: 0 1px;
}

.brand-seal span {
  position: relative;
  z-index: 1;
}

.brand-name {
  color: var(--bone);
  font-family: "Cinzel", var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.75rem);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3.25rem);
}

.desktop-nav a {
  position: relative;
  padding: 0.8rem 0;
  color: var(--bone-soft);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0.35rem;
  height: 1px;
  background: var(--copper);
  transition: left 180ms ease, right 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  left: 0;
  right: 0;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 3rem;
  height: 3rem;
  display: grid;
  align-content: center;
  gap: 0.34rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  height: 1px;
  background: var(--bone);
}

.mobile-menu nav {
  position: absolute;
  top: 3.7rem;
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  display: grid;
  background: rgba(8, 13, 15, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.45);
}

.mobile-menu nav a {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(167, 116, 79, 0.22);
}

.hero {
  position: relative;
  min-height: 58rem;
  overflow: hidden;
  padding: 13.5rem 4.2vw 9rem;
  isolation: isolate;
  border-bottom: 1px solid var(--copper);
  background: var(--ink);
}

.hero-art {
  position: absolute;
  z-index: -3;
  inset: 4.6rem -5rem 5.5rem 20%;
  background-image: url("/images/arcane-keep-hero.png");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  animation: atlas-drift 22s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(8, 13, 15, 0.97) 27%, rgba(8, 13, 15, 0.5) 52%, rgba(8, 13, 15, 0.06) 78%),
    linear-gradient(180deg, rgba(8, 13, 15, 0.2), transparent 45%, rgba(8, 13, 15, 0.83));
}

.map-grid {
  position: absolute;
  z-index: -1;
  inset: 7.75rem 0 7.5rem;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(167, 116, 79, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 116, 79, 0.4) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, black, transparent 52%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(43rem, 52vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 7.5rem;
  height: 1px;
  background: var(--copper);
}

.eyebrow-line::after {
  content: "✦";
  display: block;
  color: var(--copper);
  font-size: 0.72rem;
  line-height: 0;
  transform: translate(54%, -0.5px);
}

.hero h1 {
  max-width: 42rem;
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(4.6rem, 7.5vw, 8.25rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.78;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 0.16em;
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 2rem 0 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-style: italic;
}

.hero-subtitle span {
  color: var(--copper);
}

.hero-subtitle span::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--muted);
}

.hero-summary {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  color: var(--bone-soft);
  font-family: var(--display);
  font-size: clamp(1.12rem, 1.5vw, 1.36rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  margin-top: 2.1rem;
}

.button {
  min-height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: var(--emerald);
  color: #09110d;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(99, 229, 139, 0.2);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #7cf09c;
  box-shadow: 0 0 2rem rgba(99, 229, 139, 0.18);
}

.text-link {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--bone);
  font-weight: 700;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 38%;
  bottom: 0.2rem;
  height: 1px;
  background: var(--copper);
  transition: right 180ms ease;
}

.text-link:hover::after {
  right: 0;
}

.annotation {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--copper);
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.annotation::before {
  content: "";
  width: 4rem;
  height: 1px;
  background: var(--copper);
}

.annotation-one {
  top: 37%;
  right: 39%;
}

.annotation-two {
  right: 7%;
  bottom: 27%;
}

.archive-rail {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 7.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--copper);
  background: rgba(8, 13, 15, 0.9);
  backdrop-filter: blur(12px);
}

.rail-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem 4vw;
  border-right: 1px solid var(--border);
  transition: background 180ms ease;
}

.rail-card:hover {
  background: rgba(99, 229, 139, 0.045);
}

.rail-medallion {
  width: 3.9rem;
  height: 3.9rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--display);
  font-size: 1.35rem;
}

.rail-card strong,
.rail-card small {
  display: block;
}

.rail-card strong {
  font-family: var(--display);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
}

.rail-card small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.rail-arrow {
  margin-left: auto;
  color: var(--copper);
  opacity: 0;
  transform: translate(-0.5rem, 0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rail-card:hover .rail-arrow {
  opacity: 1;
  transform: none;
}

.chronicle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 62rem) minmax(6rem, 1fr);
  padding: 8rem 0 10rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(167, 116, 79, 0.12) 11% calc(11% + 1px), transparent calc(11% + 1px)),
    var(--slate);
}

.chronicle::before {
  content: "";
  position: absolute;
  width: 38rem;
  height: 38rem;
  right: -18rem;
  top: 18%;
  border: 1px solid rgba(167, 116, 79, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(167, 116, 79, 0.035),
    0 0 0 8rem rgba(167, 116, 79, 0.02);
}

.chapter-marker {
  position: sticky;
  top: 3rem;
  align-self: start;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--copper);
}

.chapter-marker span {
  font-family: var(--display);
  font-size: 1.35rem;
}

.chapter-marker i {
  width: 1px;
  height: 8rem;
  background: linear-gradient(var(--copper), transparent);
}

.chapter-marker small {
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-shell {
  grid-column: 2;
  min-width: 0;
}

.article-header {
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--border);
}

.article-kicker {
  margin: 0 0 1rem;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-header h2 {
  max-width: 58rem;
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-meta span + span::before {
  content: "✦";
  margin-right: 1.5rem;
  color: var(--copper);
}

.article-body {
  max-width: 48rem;
  margin: 4.5rem auto 0;
  color: #d1ccbf;
  font-family: var(--display);
  font-size: clamp(1.16rem, 1.45vw, 1.32rem);
  line-height: 1.85;
}

.article-body p {
  margin: 0 0 1.65rem;
}

.drop-cap::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--copper);
  font-size: 5.2em;
  line-height: 0.74;
}

.article-body blockquote {
  position: relative;
  margin: 4.5rem -3rem;
  padding: 3.2rem 4rem;
  border-block: 1px solid var(--border);
  color: var(--bone);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.article-body blockquote::before {
  content: "✦";
  position: absolute;
  top: -0.7rem;
  left: calc(50% - 1.2rem);
  width: 2.4rem;
  background: var(--slate);
  color: var(--copper);
  font-size: 0.9rem;
  font-style: normal;
}

.article-body h3 {
  margin: 4.7rem 0 1.3rem;
  color: var(--bone);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.lore-panel {
  margin: 4.5rem 0;
  padding: 1.8rem 2rem 2rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(99, 229, 139, 0.035), transparent 45%),
    rgba(8, 13, 15, 0.44);
}

.lore-label {
  margin: 0 0 1.4rem !important;
  color: var(--emerald);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.lore-panel > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lore-panel span {
  color: var(--bone);
  font-size: 1.02rem;
}

.lore-panel small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list a {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(167, 116, 79, 0.35);
  color: var(--bone-soft);
  font-size: 0.7rem;
}

.tag-list a:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.back-to-top {
  flex: 0 0 auto;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 700;
}

.archives {
  padding: 8rem 5vw 9rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(167, 116, 79, 0.09), transparent 23rem),
    var(--ink);
  border-top: 1px solid rgba(167, 116, 79, 0.28);
}

.section-heading {
  max-width: 87rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 3.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.7rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.story-grid {
  max-width: 87rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border: 1px solid var(--border);
}

.story-card {
  position: relative;
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  overflow: hidden;
  border-right: 1px solid var(--border);
  transition: background 200ms ease;
}

.story-card:last-child {
  border-right: 0;
}

.story-card:hover {
  background: var(--slate);
}

.story-index {
  position: absolute;
  top: -2.4rem;
  right: 1rem;
  color: rgba(167, 116, 79, 0.1);
  font-family: var(--display);
  font-size: 9rem;
}

.story-card > p {
  position: relative;
  margin: 0 0 1.7rem;
  color: var(--emerald);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-card h3 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
}

.story-card > span {
  position: relative;
  margin-top: 1.4rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.65;
}

.story-card > a {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--bone);
  font-size: 0.8rem;
  font-weight: 700;
}

.story-card > a b {
  color: var(--copper);
}

.site-footer {
  min-height: 16rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: center;
  gap: 4rem;
  padding: 3.5rem 5vw;
  border-top: 1px solid var(--copper);
  background: #070b0d;
}

.footer-brand .brand-seal {
  width: 3.8rem;
  height: 3.8rem;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-brand small {
  margin-top: 0.25rem;
  color: var(--copper);
  font-family: var(--display);
  font-style: italic;
}

.site-footer > p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  line-height: 1.65;
}

.site-footer > nav {
  display: flex;
  gap: 1.5rem;
  color: var(--bone-soft);
  font-size: 0.75rem;
}

@keyframes atlas-drift {
  from {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.035) translate3d(-0.4%, 0.2%, 0);
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 62rem;
    padding-top: 12.5rem;
  }

  .hero-art {
    inset: 6rem -12rem 6rem 5%;
    opacity: 0.72;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(8, 13, 15, 0.94) 43%, rgba(8, 13, 15, 0.32) 100%),
      linear-gradient(180deg, transparent 40%, var(--ink) 82%);
  }

  .hero-copy {
    width: min(42rem, 75vw);
  }

  .archive-rail {
    grid-template-columns: 1fr;
  }

  .rail-card {
    min-height: 5rem;
    padding-block: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .rail-card:nth-child(n + 2) {
    display: none;
  }

  .annotation {
    display: none;
  }

  .chronicle {
    grid-template-columns: 5rem minmax(0, 1fr) 3rem;
  }

  .article-shell {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 5.5rem;
    padding: 0 1rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-seal {
    width: 3.15rem;
    height: 3.15rem;
    font-size: 1rem;
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .hero {
    min-height: 52rem;
    padding: 9.3rem 1.25rem 7rem;
  }

  .hero-art {
    inset: 5rem -14rem 4rem -4rem;
    background-position: 61% center;
    opacity: 0.54;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(8, 13, 15, 0.92), rgba(8, 13, 15, 0.4)),
      linear-gradient(180deg, rgba(8, 13, 15, 0.1), var(--ink) 80%);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 32rem;
    font-size: clamp(4rem, 17vw, 6rem);
    line-height: 0.83;
  }

  .hero-subtitle {
    display: block;
    margin-top: 1.4rem;
  }

  .hero-subtitle span {
    display: block;
    margin-top: 0.35rem;
  }

  .hero-subtitle span::before {
    display: none;
  }

  .hero-summary {
    max-width: 30rem;
    font-size: 1.06rem;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.7rem;
  }

  .button {
    width: 100%;
  }

  .archive-rail {
    min-height: 6rem;
  }

  .rail-card {
    padding: 0.8rem 1.25rem;
  }

  .rail-medallion {
    width: 3.1rem;
    height: 3.1rem;
  }

  .rail-card strong {
    font-size: 1rem;
  }

  .chronicle {
    display: block;
    padding: 5rem 1.25rem 6rem;
    background: var(--slate);
  }

  .chapter-marker {
    display: none;
  }

  .article-header h2 {
    font-size: clamp(2.6rem, 12vw, 4.3rem);
  }

  .post-meta {
    display: grid;
    gap: 0.45rem;
  }

  .post-meta span + span::before {
    content: "";
    margin: 0;
  }

  .article-body {
    margin-top: 3rem;
    font-size: 1.08rem;
    line-height: 1.75;
  }

  .article-body blockquote {
    margin: 3.5rem 0;
    padding: 2.5rem 1rem;
  }

  .lore-panel {
    padding: 1.5rem;
  }

  .lore-panel > div {
    grid-template-columns: 1fr;
  }

  .article-footer {
    flex-direction: column;
  }

  .archives {
    padding: 5rem 1.25rem 6rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: 22rem;
    padding: 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .story-card:last-child {
    border-bottom: 0;
  }

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

  .site-footer > nav {
    grid-column: 1;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress integration */

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

body:not(.home) .site-header {
  position: relative;
  height: auto;
  min-height: 7.75rem;
  background: rgba(8, 13, 15, 0.98);
}

.site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header .custom-logo {
  width: auto;
  max-width: min(22rem, 48vw);
  height: auto;
  max-height: 5rem;
}

.desktop-nav ul,
.mobile-menu ul,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3.25rem);
}

.desktop-nav li {
  position: relative;
  margin: 0;
}

.desktop-nav .sub-menu {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 50%;
  width: 17rem;
  display: none;
  padding: 0.55rem;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: rgba(8, 13, 15, 0.98);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.45);
}

.desktop-nav li:hover > .sub-menu,
.desktop-nav li:focus-within > .sub-menu {
  display: grid;
}

.desktop-nav .sub-menu a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(167, 116, 79, 0.18);
}

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

.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a {
  color: var(--emerald);
}

.mobile-menu nav {
  padding: 0;
}

.mobile-menu nav a {
  display: block;
}

.mobile-menu .sub-menu {
  background: rgba(167, 116, 79, 0.07);
}

.mobile-menu .sub-menu a {
  padding-left: 2rem;
  color: var(--bone-soft);
}

.hero-title {
  max-width: 44rem;
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(3.9rem, 6.9vw, 7.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-wrap: balance;
}

.hero-art.has-featured-image {
  opacity: 0.82;
  filter: grayscale(0.46) sepia(0.18) contrast(1.08) brightness(0.72);
  background-position: center;
}

.hero-art.has-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 65%, rgba(99, 229, 139, 0.12), transparent 22rem),
    linear-gradient(135deg, transparent, rgba(8, 13, 15, 0.35));
  mix-blend-mode: screen;
}

.hero-category {
  color: inherit;
}

.hero-category:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hero-summary p {
  margin: 0;
}

.post-content {
  overflow-wrap: break-word;
}

.post-content > * {
  max-width: 48rem;
  margin-inline: auto;
}

.post-content > .alignwide {
  width: min(70rem, calc(100vw - 4rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-content img,
.entry-content img,
.wp-caption {
  max-width: 100%;
  height: auto;
}

.post-content figure,
.entry-content figure {
  margin-block: 3.5rem;
}

.post-content figcaption,
.entry-content figcaption,
.wp-caption-text {
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: center;
}

.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.post-content li,
.entry-content li {
  margin-bottom: 0.55rem;
}

.post-content a,
.entry-content a {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(99, 229, 139, 0.45);
  text-underline-offset: 0.2em;
}

.post-content a:hover,
.entry-content a:hover {
  text-decoration-color: currentColor;
}

.post-content table,
.entry-content table {
  width: 100%;
  display: table;
  margin-block: 2.5rem;
  border-collapse: collapse;
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.post-content th,
.post-content td,
.entry-content th,
.entry-content td {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(167, 116, 79, 0.3);
  text-align: left;
  vertical-align: top;
}

.post-content th,
.entry-content th {
  background: rgba(167, 116, 79, 0.12);
  color: var(--bone);
}

.post-content pre,
.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: #070b0d;
  color: var(--bone-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 1.65;
}

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0.8rem;
}

.wp-block-gallery figure {
  margin: 0;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.5rem;
  font-family: var(--sans);
}

.page-links > span,
.page-links a {
  min-width: 2.2rem;
  min-height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  text-decoration: none;
}

.page-links > span {
  border-color: var(--emerald);
  color: var(--emerald);
}

.inner-main {
  min-height: 60vh;
  padding: 6rem 5vw 8rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(99, 229, 139, 0.05), transparent 26rem),
    var(--slate);
}

.inner-shell {
  width: min(74rem, 100%);
  margin: 0 auto;
}

.inner-shell.narrow {
  width: min(54rem, 100%);
}

.inner-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.inner-header h1 {
  max-width: 65rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.inner-header .post-meta {
  margin-top: 1.5rem;
}

.entry-content {
  color: #d1ccbf;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.26rem);
  line-height: 1.82;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-block: 0 1.6rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 3.6rem 0 1.2rem;
  color: var(--bone);
  font-weight: 600;
  line-height: 1.1;
}

.entry-content h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.entry-content h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

.entry-content blockquote {
  margin: 3rem 0;
  padding: 1.8rem 2rem;
  border-left: 2px solid var(--copper);
  background: rgba(8, 13, 15, 0.36);
  color: var(--bone);
  font-size: 1.3em;
  font-style: italic;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.archive-list .story-card {
  min-height: 23rem;
}

.archive-list .story-card:nth-child(3n) {
  border-right: 0;
}

.archive-list .story-card:nth-child(n + 4) {
  border-top: 1px solid var(--border);
}

.story-grid .story-card:nth-child(3n) {
  border-right: 0;
}

.story-grid .story-card:nth-child(n + 4) {
  border-top: 1px solid var(--border);
}

.pagination {
  margin-top: 3rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  min-width: 2.7rem;
  min-height: 2.7rem;
  display: grid;
  place-items: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--bone-soft);
}

.pagination .current,
.pagination a:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.comments-area {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
  font-family: var(--display);
  font-size: 2.2rem;
}

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

.comment-body {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(167, 116, 79, 0.28);
}

.comment-meta {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--bone-soft);
  font-size: 0.78rem;
}

.comment-form input:not([type="submit"]),
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--ink);
  color: var(--bone);
  font: inherit;
}

.comment-form .submit,
.search-form input[type="submit"] {
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  background: var(--emerald);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.no-results {
  padding: 3rem;
  border: 1px solid var(--border);
  background: rgba(8, 13, 15, 0.35);
}

.screen-reader-text {
  position: absolute !important;
  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 {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 1rem;
  clip: auto;
  background: var(--emerald);
  color: var(--ink);
}

.site-footer > nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .desktop-nav > ul {
    display: none;
  }

  .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-list .story-card,
  .archive-list .story-card:nth-child(3n) {
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .archive-list .story-card:nth-child(-n + 2) {
    border-top: 0;
  }

  .archive-list .story-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body:not(.home) .site-header {
    min-height: 5.5rem;
  }

  .hero-title {
    font-size: clamp(3.3rem, 14vw, 5.2rem);
  }

  .inner-main {
    padding: 4rem 1.25rem 6rem;
  }

  .post-content > .alignwide,
  .post-content > .alignfull {
    width: calc(100vw - 1.5rem);
  }

  .archive-list {
    grid-template-columns: 1fr;
  }

  .archive-list .story-card,
  .archive-list .story-card:nth-child(2n),
  .archive-list .story-card:nth-child(3n) {
    border-right: 0;
    border-top: 1px solid var(--border);
  }

  .archive-list .story-card:first-child {
    border-top: 0;
  }

  .story-grid .story-card,
  .story-grid .story-card:nth-child(3n) {
    border-right: 0;
  }

  .story-grid .story-card:nth-child(n + 2) {
    border-top: 1px solid var(--border);
  }

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