/* =============================================================
   ALEMBIC — Science Forge Theme
   Alchemy-inspired science publication design
   ============================================================= */

/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Alchemy palette — alchemical gold */
  --forge-amber:      #B8860B;
  --forge-amber-dark: #8B6914;
  --forge-amber-glow: #D4920D;
  --forge-gold:       #C99A2E;
  --forge-gold-light: #E8B84A;

  /* Structure */
  --forge-ink:        #0E0C0B;
  --forge-obsidian:   #16130F;
  --forge-char:       #231F1A;
  --forge-ash:        #3A342C;

  /* Parchment surface */
  --forge-parchment:  #F8F3EA;
  --forge-cream:      #FBF8F2;
  --forge-linen:      #EDE5D5;
  --forge-border:     #DDD3C2;

  /* Text */
  --forge-text:       #1C1A18;
  --forge-muted:      #6B6257;
  --forge-dim:        #9B8F83;

  /* Typography */
  --font-display:     'Fraunces', Georgia, serif;
  --font-body:        'Inter', -apple-system, sans-serif;
  --font-mono:        'Space Mono', monospace;

  /* Layout */
  --max-width:        1200px;
  --content-width:    780px;
  --header-height:    56px;
  --gutter:           clamp(16px, 3vw, 32px);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--forge-text);
  background: var(--forge-parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--forge-amber); }

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--forge-ink);
  border-bottom: 1px solid var(--forge-ash);
  display: flex;
  align-items: center;
}

.site-header__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  position: relative;
}

.site-logo__mark svg {
  width: 32px;
  height: 32px;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-logo__name span {
  color: var(--forge-amber-glow);
}

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item a {
  display: block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav__item a:hover {
  color: var(--forge-gold-light);
}

/* Topics dropdown */
.nav-topics-trigger {
  position: relative;
}

.nav-topics-trigger > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-topics-trigger > a::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.nav-topics-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--forge-char);
  border: 1px solid var(--forge-ash);
  border-radius: 6px;
  min-width: 200px;
  padding: 6px;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
}

.nav-topics-trigger:hover .nav-topics-dropdown {
  display: block;
}

.nav-topics-dropdown li a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.8);
}

.nav-topics-dropdown li a:hover {
  background: var(--forge-ash);
  color: var(--forge-gold-light);
}

/* Subscribe button */
.header-subscribe {
  margin-left: 16px;
  padding: 7px 18px;
  background: var(--forge-amber-glow);
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  transition: background 0.15s !important;
}

.header-subscribe:hover {
  background: var(--forge-amber) !important;
  color: #fff !important;
}

/* Search button */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.nav-search-btn:hover {
  color: var(--forge-gold-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
  color: #fff;
}

/* --- Section: Field Bar --- */
.field-bar {
  background: var(--forge-cream);
  border-bottom: 1px solid var(--forge-border);
}

.field-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.field-bar__inner::-webkit-scrollbar { display: none; }

.field-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--forge-muted);
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.field-pill:hover, .field-pill.active {
  color: var(--forge-amber);
  border-bottom-color: var(--forge-amber);
}

/* --- Homepage Layout --- */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Feature Post */
.feature-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 40px 0 20px;
  background: var(--forge-ink);
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.feature-post__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-post__image-wrap {
  position: relative;
  overflow: hidden;
}

.feature-post__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,12,11,0.2) 0%, rgba(196,82,10,0.08) 100%);
}

.feature-post__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(160deg, var(--forge-char) 0%, var(--forge-obsidian) 100%);
  position: relative;
}

.feature-post__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--forge-amber-glow), var(--forge-gold));
}

.feature-post__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-post__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forge-gold-light);
  padding: 3px 10px;
  border: 1px solid rgba(240,185,58,0.4);
  border-radius: 3px;
}

.feature-post__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-post__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}

.feature-post__excerpt {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-post__author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.feature-post__author-name {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.feature-post__date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.feature-post__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forge-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* --- Post Grid --- */
.posts-section {
  margin: 20px 0 60px;
}

.posts-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--forge-border);
}

.posts-section__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forge-muted);
}

.posts-section__line {
  flex: 1;
  height: 1px;
  background: var(--forge-border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Post Card */
.post-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--forge-border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: var(--forge-amber-glow);
}

.post-card__image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--forge-linen);
  position: relative;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__image {
  transform: scale(1.04);
}

.post-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--forge-linen), var(--forge-border));
}

.post-card__no-image svg {
  width: 40px;
  height: 40px;
  opacity: 0.2;
}

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__field {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forge-amber);
  margin-bottom: 8px;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--forge-text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: 0.85rem;
  color: var(--forge-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--forge-linen);
}

.post-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-card__meta {
  font-size: 0.78rem;
  color: var(--forge-dim);
  line-height: 1.3;
}

.post-card__author {
  font-weight: 500;
  color: var(--forge-muted);
}

/* --- Newsletter CTA --- */
.newsletter-cta {
  margin: 0 0 60px;
  padding: 60px var(--gutter);
  background: var(--forge-ink);
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forge-amber-glow), var(--forge-gold), var(--forge-amber-glow));
}

.newsletter-cta::after {
  content: '◇';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.04;
  line-height: 1;
}

.newsletter-cta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forge-gold-light);
  margin-bottom: 14px;
}

.newsletter-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.newsletter-cta__subline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.newsletter-form__input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: background 0.15s;
}

.newsletter-form__input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form__input:focus { background: rgba(255,255,255,0.12); }

.newsletter-form__btn {
  padding: 14px 22px;
  background: var(--forge-amber-glow);
  border: none;
  border-radius: 0 5px 5px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.newsletter-form__btn:hover { background: var(--forge-amber); }

/* --- Post Article Page --- */
.post-header {
  background: var(--forge-ink);
  padding: 60px var(--gutter) 50px;
  margin-bottom: 0;
  position: relative;
}

.post-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--forge-ash), transparent);
}

.post-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.post-header__field {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forge-gold-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-header__field::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--forge-gold-light);
}

.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.post-header__excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 30px;
  font-style: italic;
}

.post-header__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.post-header__author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}

.post-header__author-meta {
  line-height: 1.3;
}

.post-header__author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.post-header__date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Feature image */
.post-feature-image {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.post-feature-caption {
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--forge-dim);
  padding: 10px var(--gutter);
  background: var(--forge-cream);
  border-bottom: 1px solid var(--forge-border);
}

/* Article content */
.post-content {
  max-width: var(--content-width);
  margin: 50px auto 80px;
  padding: 0 var(--gutter);
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--forge-text);
  margin-bottom: 1.5em;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forge-text);
  margin: 2.5em 0 0.75em;
  line-height: 1.25;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forge-text);
  margin: 2em 0 0.6em;
}

.post-content a {
  color: var(--forge-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196,82,10,0.4);
  transition: text-decoration-color 0.15s;
}

.post-content a:hover {
  text-decoration-color: var(--forge-amber);
}

.post-content blockquote {
  border-left: 3px solid var(--forge-amber-glow);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--forge-cream);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forge-muted);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--forge-linen);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--forge-amber-dark);
}

.post-content em.byline {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--forge-muted);
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--forge-linen);
}

/* Author box */
.post-author-box {
  max-width: var(--content-width);
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
}

.post-author-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--forge-cream);
  border: 1px solid var(--forge-border);
  border-radius: 8px;
  border-left: 4px solid var(--forge-amber-glow);
}

.post-author-card__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--forge-border);
}

.post-author-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forge-text);
  margin-bottom: 4px;
}

.post-author-card__name a {
  color: inherit;
}
.post-author-card__name a:hover { color: var(--forge-amber); }

.post-author-card__bio {
  font-size: 0.88rem;
  color: var(--forge-muted);
  line-height: 1.55;
}

/* --- Page (About, Writers) --- */
.page-header {
  background: var(--forge-ink);
  padding: 70px var(--gutter) 60px;
  text-align: center;
  position: relative;
}

.page-header__alembic {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.7;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.page-header__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

/* Decorative rule */
.alchemy-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--forge-dim);
}

.alchemy-rule::before, .alchemy-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--forge-border);
}

.alchemy-rule__symbol {
  font-size: 1.2rem;
  opacity: 0.6;
}

/* About page content */
.about-content {
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 var(--gutter);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--forge-text);
  margin-bottom: 1.5em;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--forge-text);
  margin: 2.5em 0 0.75em;
}

.about-content a {
  color: var(--forge-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stats strip */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--forge-border);
  border: 1px solid var(--forge-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 40px 0;
}

.about-stats__item {
  background: var(--forge-cream);
  padding: 28px 24px;
  text-align: center;
}

.about-stats__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forge-amber);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stats__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forge-muted);
}

/* Fields manifest */
.fields-manifest {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.field-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--forge-cream);
  border: 1px solid var(--forge-border);
  border-radius: 6px;
}

.field-entry__glyph {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.field-entry__name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forge-text);
  margin-bottom: 2px;
}

.field-entry__desc {
  font-size: 0.82rem;
  color: var(--forge-muted);
  line-height: 1.4;
}

/* --- Authors Page / Author Profile --- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 50px auto 80px;
  padding: 0 var(--gutter);
}

.author-card {
  background: #fff;
  border: 1px solid var(--forge-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.author-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: var(--forge-amber-glow);
}

.author-card__header {
  background: linear-gradient(135deg, var(--forge-char), var(--forge-ash));
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
}

.author-card__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--forge-amber-glow), transparent);
}

.author-card__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  margin: 0 auto 14px;
}

.author-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.author-card__byline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  line-height: 1.4;
}

.author-card__body {
  padding: 20px 24px;
}

.author-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.author-card__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forge-amber);
  padding: 3px 8px;
  border: 1px solid rgba(196,82,10,0.3);
  border-radius: 3px;
}

.author-card__count {
  font-size: 0.82rem;
  color: var(--forge-dim);
}

/* Author detail page */
.author-profile {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.author-profile__hero {
  background: linear-gradient(135deg, var(--forge-char), var(--forge-obsidian));
  border-radius: 8px;
  padding: 50px;
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 40px 0 50px;
  position: relative;
  overflow: hidden;
}

.author-profile__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forge-amber-glow), var(--forge-gold));
}

.author-profile__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.author-profile__name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.author-profile__bio {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 600px;
}

/* Tag page */
.tag-header {
  background: linear-gradient(135deg, var(--forge-char), var(--forge-obsidian));
  padding: 60px var(--gutter) 50px;
  position: relative;
}

.tag-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forge-amber-glow), var(--forge-gold), transparent);
}

.tag-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tag-header__glyph {
  font-size: 2.5rem;
  margin-bottom: 14px;
  line-height: 1;
}

.tag-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.tag-header__count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* --- About Page --- */
.about-section {
  padding: 70px var(--gutter);
  border-bottom: 1px solid var(--forge-border);
}

.about-section--dark {
  background: var(--forge-ink);
  color: var(--forge-parchment);
}

.about-section--dark .about-section__heading {
  color: #fff;
}

.about-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--forge-char);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--forge-text);
  margin: 0 0 1.2em;
}

.about-section--dark p {
  color: rgba(255,255,255,0.75);
}

.about-section a {
  color: var(--forge-amber-glow);
  text-decoration: none;
  border-bottom: 1px solid rgba(229,115,32,0.4);
}

.about-section a:hover {
  border-bottom-color: var(--forge-amber-glow);
}

.about-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .about-principles { grid-template-columns: 1fr; }
}

.about-principle {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 20px;
}

.about-principle__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forge-gold);
  margin-bottom: 8px;
}

.about-principle__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* --- Site Footer --- */
.site-footer {
  background: var(--forge-ink);
  border-top: 1px solid var(--forge-ash);
  padding: 50px var(--gutter) 30px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--forge-ash);
}

.site-footer__brand {
  max-width: 300px;
}

.site-footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  margin-top: 12px;
  font-style: italic;
}

.site-footer__nav {
  display: flex;
  gap: 60px;
}

.site-footer__nav-group h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.site-footer__nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav-group a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.site-footer__nav-group a:hover { color: var(--forge-gold-light); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.site-footer__powered {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.page-wrapper {
  min-height: calc(100vh - var(--header-height));
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-post {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .feature-post__image-wrap {
    aspect-ratio: 16/8;
  }
  .feature-post__body {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 52px;
  }

  .site-nav__list {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--forge-ink);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    z-index: 90;
    overflow-y: auto;
  }

  .site-nav__list.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-subscribe {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .authors-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .fields-manifest {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    flex-direction: column;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    border-radius: 6px;
    overflow: visible;
  }

  .newsletter-form__input,
  .newsletter-form__btn {
    border-radius: 5px;
    width: 100%;
  }

  .newsletter-form__input {
    border-right: 1px solid rgba(255,255,255,0.15);
  }

  .author-profile__hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
}

/* --- Post Content Byline --- */
.post-content-byline {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  font-size: 0.88rem;
  color: var(--forge-muted);
  border-bottom: 1px solid var(--forge-linen);
}

.post-content-byline__author,
.post-content-byline__tag {
  color: var(--forge-amber);
  text-decoration: none;
  font-weight: 500;
}

.post-content-byline__author:hover,
.post-content-byline__tag:hover {
  text-decoration: underline;
}

/* --- Post Card Link Styles --- */
.post-card__field {
  display: inline-block;
  text-decoration: none;
}

.post-card__field:hover {
  color: var(--forge-amber-dark);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--forge-amber);
}

.post-card__author-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.post-card__author-link:hover .post-card__author {
  color: var(--forge-amber);
}

/* --- Feature Post Link Styles --- */
.feature-post__tag-link,
.feature-post__author-link {
  color: inherit;
  text-decoration: none;
}

.feature-post__tag-link:hover,
.feature-post__author-link:hover {
  text-decoration: underline;
}

/* --- Page Header Hero Variant --- */
.page-header--hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Author Card Full Variant (Our Writers) --- */
.authors-grid--full {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.author-card--full .author-card__body {
  padding: 24px;
}

.author-card__bio {
  font-size: 0.88rem;
  color: var(--forge-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-card__beat {
  font-size: 0.82rem;
  color: var(--forge-dim);
  margin-bottom: 8px;
}

.author-card__beat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forge-amber);
}

/* --- About Section Subheading --- */
.about-section__subheading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2em 0 0.75em;
  color: var(--forge-char);
}

.about-section--dark .about-section__subheading {
  color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
  .authors-grid--full {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* --- Koenig Editor Required Classes --- */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
  max-width: 1200px;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
}

.kg-image-card img {
  max-width: 100%;
  height: auto;
}

.kg-image-card figcaption {
  font-size: 0.8rem;
  color: var(--forge-dim);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Bookmark card */
.kg-bookmark-card {
  border: 1px solid var(--forge-border);
  border-radius: 6px;
  overflow: hidden;
  margin: 2em 0;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 16px 20px;
}

.kg-bookmark-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--forge-text);
}

.kg-bookmark-description {
  font-size: 0.85rem;
  color: var(--forge-muted);
}

.kg-bookmark-thumbnail {
  width: 140px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Call-out card */
.kg-callout-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--forge-cream);
  border: 1px solid var(--forge-border);
  border-radius: 6px;
  border-left: 4px solid var(--forge-amber-glow);
  margin: 2em 0;
}

.kg-callout-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.kg-callout-text {
  font-size: 0.95rem;
  color: var(--forge-muted);
  line-height: 1.55;
}

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--forge-border);
  border-radius: 6px;
  margin: 2em 0;
  overflow: hidden;
}

.kg-toggle-heading-text {
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--forge-cream);
}

.kg-toggle-content {
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--forge-muted);
}
