/*
Theme Name:  DeliberX Journal
Theme URI:   https://careers.deliberx.com
Author:      K. Modi · DeliberX Editorial
Description: Premium editorial theme for The DeliberX Journal. Cormorant Garamond display, Crimson Pro body, DM Sans UI. Clean, open, Apple-level whitespace.
Version:     1.0
License:     Proprietary
Text Domain: deliberx-journal
*/

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TOKENS ─────────────────────────────────── */
:root {
  --white:        #FAFAF7;
  --ink:          #0C0C0B;
  --ink-muted:    #4A4845;
  --ink-faint:    #9A9690;
  --teal:         #0E4C44;
  --teal-mid:     #1A6B60;
  --teal-light:   #EAF2F0;
  --teal-rule:    #C4D9D5;
  --rule:         #E2DDD7;
  --card:         #FFFFFF;
  --serif-disp:   'Cormorant Garamond', Georgia, serif;
  --serif-body:   'Crimson Pro', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --max:          1200px;
  --pad:          40px;
}

/* ── BASE ────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── LAYOUT HELPERS ──────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ── SITE HEADER ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,250,247,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.site-logo-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.site-logo-text .brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.site-logo-text .sep { width: 1px; height: 16px; background: var(--rule); }
.site-logo-text .sub {
  font-family: var(--serif-disp);
  font-weight: 400;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-muted);
}
.header-right { display: flex; align-items: center; gap: 24px; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink); }
.btn-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--teal);
  padding: 10px 22px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--teal-mid) !important; }

/* ── PILLAR NAV ──────────────────────────────── */
.pillar-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pillar-nav::-webkit-scrollbar { display: none; }
.pillar-nav .wrap {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.pillar-nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 18px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.pillar-nav a:hover { color: var(--ink); }
.pillar-nav a.current-cat,
.pillar-nav a.current-menu-item { color: var(--teal); border-bottom-color: var(--teal); }

/* ── HERO POST ───────────────────────────────── */
.hero-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 56px 0 0;
  border: 1px solid var(--rule);
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.hero-post:hover .hero-img img { transform: scale(1.03); }
.hero-img { aspect-ratio: 4/3; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-content {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--rule);
}
.pillar-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 5px 12px;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--serif-disp);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-excerpt {
  font-family: var(--serif-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 30px;
}
.post-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); flex-shrink: 0; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--teal-rule);
  transition: border-color 0.2s;
}
.read-more:hover { border-bottom-color: var(--teal); color: var(--teal); }
.read-more svg { transition: transform 0.2s; }
.read-more:hover svg { transform: translateX(3px); }

/* ── PAGE LAYOUT ─────────────────────────────── */
.page-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  padding: 56px 0 80px;
}

/* ── SECTION LABEL ───────────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

/* ── ARTICLE GRID ────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 1px;
}
.post-card {
  background: var(--card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.post-card:hover { background: #FEFEFE; }
.card-thumb {
  width: calc(100% + 64px);
  margin: -32px -32px 26px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.04); }
.card-pillar {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--serif-disp);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 12px;
  flex: 1;
}
.card-excerpt {
  font-family: var(--serif-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

/* Wide card variant */
.post-card-wide {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--card);
  border: 1px solid var(--rule);
  margin-bottom: 1px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  overflow: hidden;
}
.post-card-wide:hover { background: #FEFEFE; }
.wide-thumb { aspect-ratio: 4/3; overflow: hidden; }
.wide-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card-wide:hover .wide-thumb img { transform: scale(1.04); }
.wide-body { padding: 36px 40px 36px 36px; display: flex; flex-direction: column; }
.wide-title {
  font-family: var(--serif-disp);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  flex: 1;
}
.wide-excerpt {
  font-family: var(--serif-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar-widget { margin-bottom: 44px; }
.widget-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--rule); }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.cat-list a:hover { color: var(--teal); }
.cat-count {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--white);
  border: 1px solid var(--rule);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.widget-text {
  font-family: var(--serif-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  padding-top: 18px;
}
.sidebar-cta {
  background: var(--teal);
  padding: 28px 24px;
}
.sidebar-cta .cta-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.sidebar-cta .cta-headline {
  font-family: var(--serif-disp);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 20px;
}
.sidebar-cta .cta-btn {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: #fff;
  padding: 12px;
  text-align: center;
  transition: background 0.2s;
}
.sidebar-cta .cta-btn:hover { background: var(--teal-light); }

/* ── SINGLE POST ─────────────────────────────── */
.post-hero { width: 100%; aspect-ratio: 16/7; overflow: hidden; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-header { padding: 56px 0 44px; border-bottom: 1px solid var(--rule); }
.post-title {
  font-family: var(--serif-disp);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 820px;
}
.post-subtitle {
  font-family: var(--serif-body);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 680px;
  margin-bottom: 32px;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 80px;
  padding-top: 52px;
  padding-bottom: 80px;
}
.post-body {
  font-family: var(--serif-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}
.post-body p { margin-bottom: 26px; }
.post-body p:first-of-type::first-letter {
  font-family: var(--serif-disp);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.85;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--teal);
}
.post-body em { font-style: italic; color: var(--ink-muted); }
.post-body strong { font-weight: 500; color: var(--ink); }
.post-body a { color: var(--teal); border-bottom: 1px solid var(--teal-rule); transition: border-color 0.2s; }
.post-body a:hover { border-bottom-color: var(--teal); }
.pull-quote {
  border-left: 2px solid var(--teal);
  margin: 36px 0;
  padding: 6px 0 6px 28px;
}
.pull-quote p {
  font-family: var(--serif-disp);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--teal);
  margin: 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 40px 0;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.ghost-footer {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}
.ghost-footer a { color: var(--teal); border-bottom: 1px solid var(--teal-rule); }

/* ── POST SIDEBAR ────────────────────────────── */
.post-sidebar-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.post-sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-mini-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--teal);
  background: var(--teal-light);
  padding: 5px 12px;
}
.related-list { list-style: none; }
.related-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  font-family: var(--serif-disp);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.15s;
}
.related-list a:hover { color: var(--teal); }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0; background: var(--white); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.footer-link { font-family: var(--sans); font-size: 12px; color: var(--teal); letter-spacing: 0.04em; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  :root { --pad: 24px; }
  .hero-post { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 16/8; }
  .hero-content { padding: 36px; border-left: none; border-top: 1px solid var(--rule); }
  .hero-title { font-size: 28px; }
  .page-content { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .post-card-wide { grid-template-columns: 1fr; }
  .post-title { font-size: 36px; }
}
@media (max-width: 680px) {
  .posts-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .post-title { font-size: 28px; }
  .post-subtitle { font-size: 17px; }
  .post-body { font-size: 18px; }
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── DARK HEADER — exact brand colors ── */
.site-header {
  background: #0f1f1b !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}
.logo-name {
  color: #d9e6e3 !important;
}
.logo-sub {
  color: rgba(217,230,227,0.55) !important;
}
.logo-sep {
  background: rgba(217,230,227,0.25) !important;
}
.nav-link {
  color: rgba(217,230,227,0.6) !important;
}
.nav-link:hover {
  color: #d9e6e3 !important;
}
.cta-btn {
  background: #1db899 !important;
  color: #fff !important;
}
.cta-btn:hover {
  background: #17a386 !important;
}

/* ── PILLAR STRIP ── */
.pillar-strip {
  background: #0a2e26 !important;
  border-bottom: none !important;
}
.pillar-tab {
  color: rgba(217,230,227,0.45) !important;
}
.pillar-tab:hover {
  color: rgba(217,230,227,0.8) !important;
}
.pillar-tab.active {
  color: #1db899 !important;
  border-bottom-color: #1db899 !important;
}
