/* ============================================================
   TRN — Sacred Transmission Theme
   The Remnant Network · theremnantnetwork.com
   Design System: "Digital Cathedral"
   ============================================================ */

/* ----- TOKENS ----- */
:root {
  /* Palette */
  --obsidian:       #0E0E0E;
  --obsidian-light: #161616;
  --obsidian-mid:   #1E1E1E;
  --sacred-red:     #FF5545;
  --sacred-red-dim: #c0000a;
  --soft-pink:      #FFB4AA;
  --vhs-cyan:       #00E5FF;
  --phosphor-gold:  #FFCC00;
  --bone:           #E5E2E1;
  --ash:            #9A9897;
  --smoke:          #454646;

  /* Typography */
  --font-serif:  'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:   'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  /* Spacing */
  --sp-2:  0.125rem;
  --sp-4:  0.25rem;
  --sp-8:  0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-96: 6rem;

  /* Layout */
  --max-w:   1280px;
  --gutter:  clamp(1rem, 4vw, 3rem);
  --header-h: 56px;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--obsidian); color: var(--soft-pink); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.trn-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 85, 69, 0.15);
}

.trn-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left group: logo + nav */
.trn-header__left {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
}

/* Right group: search + signal */
.trn-header__right {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.trn-header__signal {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sacred-red);
  flex-shrink: 0;
  animation: pulse-signal 2s ease-in-out infinite;
}

@keyframes pulse-signal {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--sacred-red); }
  50% { opacity: 0.4; box-shadow: none; }
}

.trn-header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  transition: opacity 0.2s;
}
.trn-header__logo:hover { opacity: 0.8; }

.trn-header__logo-mark {
  font-size: 1.25rem;
  color: var(--sacred-red);
  line-height: 1;
}

.trn-header__logo-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sacred-red);
}

.trn-header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
}

.trn-header__link {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft-pink);
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
  display: none;
}
.trn-header__link:hover { color: var(--sacred-red); opacity: 1; font-style: italic; }
.trn-header__link.is-active {
  color: var(--sacred-red);
  opacity: 1;
  border-bottom: 1px solid var(--sacred-red);
  padding-bottom: 2px;
}

@media (min-width: 768px) {
  .trn-header__link { display: block; }
}

.trn-header__search-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  color: var(--ash);
  background: var(--obsidian-mid);
  border: none;
  border-bottom: 1px solid rgba(255, 180, 170, 0.15);
  padding: 4px 14px 4px 10px;
  transition: color 0.2s, border-color 0.2s;
}
.trn-header__search-btn:hover {
  color: var(--sacred-red);
  border-bottom-color: rgba(255, 85, 69, 0.35);
}
.trn-header__search-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.trn-header__search-btn:hover .trn-header__search-label {
  opacity: 0.85;
}

/* Header scroll state */
.trn-header.is-scrolled {
  border-bottom-color: rgba(255, 85, 69, 0.25);
}

/* ----- TICKER ----- */
.trn-ticker {
  border-top: 1px solid rgba(255, 85, 69, 0.08);
  overflow: hidden;
  height: 28px;
}

.trn-ticker__track {
  display: flex;
  gap: var(--sp-48);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding: 4px 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trn-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  flex-shrink: 0;
  transition: color 0.2s;
}
.trn-ticker__item:hover { color: var(--sacred-red); }

.trn-ticker__tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sacred-red);
  background: rgba(255, 85, 69, 0.1);
  padding: 1px 6px;
  border-radius: 2px;
}

.trn-ticker__title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ash);
}

/* ============================================================
   HERO SECTION (first section after header)
   ============================================================ */
.trn-section--hero {
  padding-top: calc(var(--header-h) + 28px + var(--sp-48));
}

/* ============================================================
   SECTIONS
   ============================================================ */
.trn-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-64) var(--gutter);
}

.trn-section__header {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  margin-bottom: var(--sp-32);
}

.trn-section__rule {
  flex: 1;
  height: 1px;
  background: var(--smoke);
}

.trn-section__label {
  display: flex;
  align-items: baseline;
  gap: var(--sp-12);
}

.trn-section__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}

.trn-section__count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ash);
  background: rgba(255, 85, 69, 0.08);
  padding: 1px 6px;
  border-radius: 2px;
}

.trn-section__explore {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sacred-red);
  transition: opacity 0.2s;
  white-space: nowrap;
  margin-left: auto;
}
.trn-section__explore:hover { opacity: 0.7; }

/* Category section variant */
.trn-section--category .trn-section__header {
  border-bottom: 1px solid var(--smoke);
  padding-bottom: var(--sp-12);
}

.trn-section--category .trn-section__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================
   MAGAZINE GRID
   ============================================================ */
.trn-magazine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--smoke);
  border: 1px solid var(--smoke);
}

.trn-magazine-grid .trn-card {
  background: var(--obsidian);
  border: none;
}

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

@media (min-width: 900px) {
  .trn-magazine-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero card — first item spans 2 cols + 2 rows, full-bleed image with overlay */
  .trn-magazine-grid .trn-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__link {
    position: relative;
    height: 100%;
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__image {
    position: absolute;
    inset: 0;
    aspect-ratio: unset;
    height: 100%;
    width: 100%;
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: saturate(0.45) contrast(1.15);
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,14,14,0.94) 0%, rgba(14,14,14,0.45) 55%, transparent 100%);
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: var(--sp-48);
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__tag {
    font-size: 0.7rem;
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: var(--sp-16);
    color: var(--bone);
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__excerpt {
    -webkit-line-clamp: 4;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--soft-pink);
  }
  .trn-magazine-grid .trn-card:nth-child(1) .trn-card__date {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: var(--ash);
  }
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.trn-carousel {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
}
.trn-carousel::-webkit-scrollbar { display: none; }

.trn-carousel__track {
  display: flex;
  gap: var(--sp-24);
}

.trn-carousel .trn-card {
  min-width: 280px;
  max-width: 340px;
  flex-shrink: 0;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.trn-card {
  background: var(--obsidian-light);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: background 0.3s;
}
.trn-card:hover {
  background: var(--obsidian-mid);
}

.trn-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trn-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--obsidian-mid);
}
.trn-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.35) contrast(1.1);
  transition: filter 0.4s, transform 0.4s;
}
.trn-card:hover .trn-card__image img {
  filter: saturate(0.6) contrast(1.15);
  transform: scale(1.03);
}

.trn-card__body {
  padding: var(--sp-24);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.trn-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-12);
}

.trn-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sacred-red);
}

.trn-card__reading {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--smoke);
  letter-spacing: 0.05em;
}

.trn-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--bone);
  margin-bottom: var(--sp-12);
  transition: color 0.2s;
}
.trn-card:hover .trn-card__title {
  color: var(--sacred-red);
}

.trn-card__excerpt {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--soft-pink);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trn-card__date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--smoke);
  letter-spacing: 0.05em;
  margin-top: var(--sp-16);
  padding-top: var(--sp-12);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================
   SIGNAL CLOUD (Tags)
   ============================================================ */
.trn-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.trn-cloud__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--smoke);
  color: var(--ash);
  transition: all 0.2s;
}
.trn-cloud__tag:hover {
  border-color: var(--sacred-red);
  color: var(--sacred-red);
  background: rgba(255, 85, 69, 0.06);
}

.trn-cloud__count {
  font-size: 0.55rem;
  opacity: 0.5;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.trn-article {
  padding-top: calc(var(--header-h) + 28px);
}

.trn-article__header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-32) var(--gutter) 0;
}

.trn-article__meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-32);
}

.trn-article__back {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ash);
  transition: color 0.2s;
}
.trn-article__back:hover { color: var(--sacred-red); }

.trn-article__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sacred-red);
  background: rgba(255, 85, 69, 0.1);
  padding: 3px 10px;
  border: 1px solid rgba(255, 85, 69, 0.2);
}

.trn-article__headline {
  max-width: 800px;
}

.trn-article__transmission {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  margin-bottom: var(--sp-16);
}

.trn-article__tx-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--sacred-red);
  background: rgba(255, 85, 69, 0.08);
  padding: 2px 8px;
}

.trn-article__tx-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--smoke);
}

.trn-article__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: var(--sp-16);
}

.trn-article__title em,
.trn-article__title .t-accent {
  color: var(--sacred-red);
  font-style: italic;
}

.trn-article__subtitle {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ash);
  max-width: 600px;
  margin-bottom: var(--sp-24);
}

.trn-article__byline {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--smoke);
  margin-bottom: var(--sp-32);
}

.trn-article__sep { color: var(--smoke); }

/* ----- FEATURE IMAGE ----- */
.trn-article__feature {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto var(--sp-48);
  overflow: hidden;
}
.trn-article__feature img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  filter: saturate(0.3) contrast(1.15);
}

.trn-article__feature-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
}

.trn-article__feature figcaption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--smoke);
  padding: var(--sp-8) var(--gutter);
}

/* ----- SIDEBAR + CONTENT LAYOUT ----- */
.trn-article__layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-48);
}

@media (min-width: 900px) {
  .trn-article__layout {
    grid-template-columns: 200px 1fr;
  }
}

/* ----- SIDEBAR METADATA ----- */
.trn-article__sidebar {
  order: 2;
}

@media (min-width: 900px) {
  .trn-article__sidebar {
    order: -1;
    position: sticky;
    top: calc(var(--header-h) + 28px + var(--sp-32));
    align-self: start;
  }
}

.trn-article__metadata {
  border: 1px solid var(--smoke);
  padding: var(--sp-16);
  margin-bottom: var(--sp-24);
}

.trn-article__data-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trn-article__data-row:last-child { border-bottom: none; }

.trn-article__data-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}

.trn-article__data-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--soft-pink);
}

.trn-article__tags-block {
  border: 1px solid var(--smoke);
  padding: var(--sp-16);
}

.trn-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.trn-article__inline-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}
.trn-article__inline-tag:hover {
  color: var(--sacred-red);
  border-color: var(--sacred-red);
}

/* ============================================================
   GHOST CONTENT (gh-content)
   ============================================================ */
.trn-article__content {
  max-width: 680px;
}

.gh-content {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--soft-pink);
}

.gh-content > * + * {
  margin-top: 1.5em;
}

.gh-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bone);
  margin-top: 2.5em;
}

.gh-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bone);
  margin-top: 2em;
}

.gh-content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone);
}

.gh-content a {
  color: var(--sacred-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.gh-content a:hover { opacity: 0.7; }

.gh-content strong { color: var(--bone); }
.gh-content em { font-style: italic; }

.gh-content blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--bone);
  border-left: 3px solid var(--sacred-red);
  padding-left: var(--sp-24);
  margin: 2em 0;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--smoke);
  margin: 3em 0;
}

.gh-content pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  background: var(--obsidian-mid);
  border: 1px solid var(--smoke);
  padding: var(--sp-24);
  overflow-x: auto;
}

.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--obsidian-mid);
  padding: 2px 6px;
  border-radius: 2px;
}

.gh-content pre code {
  background: none;
  padding: 0;
}

.gh-content figure { margin: 2.5em 0; }

.gh-content figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--smoke);
  text-align: center;
  margin-top: var(--sp-8);
}

.gh-content img {
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
  filter: saturate(0.4) contrast(1.1);
  transition: filter 0.3s;
}
.gh-content .kg-image-card:hover img,
.gh-content .kg-gallery-image:hover img {
  filter: saturate(0.7) contrast(1.1);
}

.gh-content .kg-width-wide {
  margin-left: calc(-1 * var(--sp-48));
  margin-right: calc(-1 * var(--sp-48));
}

.gh-content .kg-width-full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.gh-content .kg-callout-card {
  background: var(--obsidian-mid);
  border: 1px solid var(--smoke);
  border-left: 3px solid var(--sacred-red);
  padding: var(--sp-24);
}

.gh-content .kg-bookmark-card {
  border: 1px solid var(--smoke);
  background: var(--obsidian-light);
}

.gh-content .kg-bookmark-title { color: var(--bone); }
.gh-content .kg-bookmark-description { color: var(--ash); }
.gh-content .kg-bookmark-metadata { color: var(--smoke); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.trn-related {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-64) var(--gutter);
  border-top: 1px solid var(--smoke);
}

.trn-related__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--bone);
  margin-bottom: var(--sp-32);
}

.trn-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-24);
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.trn-archive {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px + var(--sp-48)) var(--gutter) var(--sp-48);
}

.trn-archive__header {
  margin-bottom: var(--sp-48);
}

.trn-archive__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  margin-bottom: var(--sp-12);
}

.trn-archive__signal {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--sacred-red);
  background: rgba(255, 85, 69, 0.1);
  padding: 2px 8px;
}

.trn-archive__count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ash);
}

.trn-archive__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  color: var(--bone);
}

.trn-archive__desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ash);
  margin-top: var(--sp-12);
  max-width: 600px;
}

.trn-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-24);
}

/* ============================================================
   STATIC PAGE
   ============================================================ */
.trn-page {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px + var(--sp-48)) var(--gutter) var(--sp-64);
}

.trn-page__header {
  margin-bottom: var(--sp-48);
}

.trn-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--bone);
}

.trn-page__feature {
  margin-bottom: var(--sp-48);
  overflow: hidden;
}
.trn-page__feature img {
  filter: saturate(0.3) contrast(1.15);
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.trn-error {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
}

.trn-error__inner {
  text-align: center;
}

.trn-error__code {
  font-family: var(--font-mono);
  font-size: 8rem;
  font-weight: 700;
  color: var(--sacred-red);
  line-height: 1;
  opacity: 0.3;
}

.trn-error__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--bone);
  margin: var(--sp-16) 0;
}

.trn-error__message {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ash);
  margin-bottom: var(--sp-32);
}

/* ============================================================
   FOOTER
   ============================================================ */
.trn-footer {
  border-top: 1px solid var(--smoke);
  margin-top: var(--sp-96);
}

.trn-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-64) var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-48);
}

@media (min-width: 768px) {
  .trn-footer__inner {
    grid-template-columns: 1fr auto;
  }
}

.trn-footer__mark {
  font-size: 2rem;
  color: var(--sacred-red);
  display: block;
  margin-bottom: var(--sp-16);
}

.trn-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash);
  line-height: 1.8;
  margin-bottom: var(--sp-16);
}

.trn-footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ash);
}

.trn-footer__links {
  display: flex;
  gap: var(--sp-64);
}

.trn-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.trn-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sacred-red);
  margin-bottom: var(--sp-8);
}

.trn-footer__col a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash);
  transition: color 0.2s;
}
.trn-footer__col a:hover { color: var(--sacred-red); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  max-width: var(--max-w);
  margin: var(--sp-48) auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-24);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--smoke);
}

.pagination a {
  color: var(--sacred-red);
  transition: opacity 0.2s;
}
.pagination a:hover { opacity: 0.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .trn-magazine-grid {
    grid-template-columns: 1fr;
  }

  .trn-footer__links {
    flex-direction: column;
    gap: var(--sp-32);
  }

  .trn-article__layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SELECTION / SCROLL
   ============================================================ */
::selection {
  background: var(--sacred-red);
  color: var(--obsidian);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--smoke);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sacred-red);
}
