/* =============================================================
   PDC Journal — Main Stylesheet
   Brand: #141f36 navy | #fa263a red | #fcfcfc light
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ─── RESET & ROOT ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #141f36;
  --red:       #fa263a;
  --bg:        #f7f6f2;
  --white:     #ffffff;
  --mid:       #e8e6e0;
  --muted:     rgba(20,31,54,0.45);
  --max:       1180px;
  --pad:       clamp(20px, 5vw, 60px);
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --radius:    2px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ─── HEADER ────────────────────────────────────────────────── */
.pj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
}

.pj-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo / wordmark */
.pj-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.pj-logo__main {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pj-logo__sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Nav */
.pj-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.pj-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.pj-nav a:hover,
.pj-nav a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.pj-nav .pj-nav__cta a {
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
  border-bottom: none;
  transition: opacity 0.2s;
}

.pj-nav .pj-nav__cta a:hover {
  opacity: 0.85;
}

/* Mobile burger */
.pj-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.pj-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .pj-burger { display: flex; }

  .pj-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .pj-nav.open { display: flex; }

  .pj-nav li { width: 100%; }

  .pj-nav a {
    display: block;
    padding: 12px var(--pad);
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .pj-nav a:hover {
    border-left-color: var(--red);
    background: rgba(255,255,255,0.05);
  }
}

/* ─── HERO BANNER (homepage / archive) ─────────────────────── */
.pj-hero {
  background: var(--navy);
  padding: 72px var(--pad) 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(250,38,58,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.pj-hero__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.pj-hero__title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
}

.pj-hero__title em {
  font-style: italic;
  color: var(--red);
}

.pj-hero__desc {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Decorative line */
.pj-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--red);
}

/* ─── BLOG GRID ─────────────────────────────────────────────── */
.pj-blog-section {
  padding: 72px 0 100px;
}

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

@media (max-width: 1024px) {
  .pj-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pj-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Featured first post — full width */
.pj-grid .pj-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  box-shadow: 0 4px 32px rgba(20,31,54,0.08);
}

.pj-grid .pj-card:first-child .pj-card__image-wrap {
  aspect-ratio: auto;
  min-height: 380px;
}

.pj-grid .pj-card:first-child .pj-card__body {
  padding: 48px 48px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pj-grid .pj-card:first-child .pj-card__title {
  font-size: 30px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .pj-grid .pj-card:first-child {
    grid-template-columns: 1fr;
  }
  .pj-grid .pj-card:first-child .pj-card__image-wrap {
    min-height: 260px;
  }
  .pj-grid .pj-card:first-child .pj-card__body {
    padding: 28px 24px;
  }
}

/* ─── CARD ──────────────────────────────────────────────────── */
.pj-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20,31,54,0.12);
}

.pj-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.pj-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--mid);
}

.pj-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.pj-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4d0c8 0%, #e8e6e0 100%);
}

.pj-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}

.pj-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pj-card__meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.pj-card__meta::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.pj-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.pj-card:hover .pj-card__title { color: var(--red); }

.pj-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
}

.pj-card__read {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}

.pj-card:hover .pj-card__read { gap: 10px; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pj-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.pj-pagination .page-numbers {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 18px;
  border: 1.5px solid var(--mid);
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.pj-pagination .page-numbers:hover,
.pj-pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ─── SINGLE POST ────────────────────────────────────────────── */
.pj-post-hero {
  position: relative;
  background: var(--navy);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.pj-post-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.pj-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,31,54,0.95) 0%, rgba(20,31,54,0.3) 60%, transparent 100%);
}

.pj-post-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad) 52px;
  width: 100%;
}

.pj-post-hero__cat {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.pj-post-hero__title {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 24px;
}

.pj-post-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}

.pj-post-hero__meta strong {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* Article body */
.pj-article {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px var(--pad) 80px;
}

.pj-article p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--navy);
  margin-bottom: 28px;
}

.pj-article h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin: 60px 0 20px;
  padding-top: 8px;
  border-top: 3px solid var(--red);
}

.pj-article h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 44px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pj-article h3::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.pj-article h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 36px 0 10px;
}

.pj-article strong { font-weight: 700; }

.pj-article em {
  font-style: italic;
  font-family: var(--serif);
}

.pj-article a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pj-article blockquote {
  border-left: 4px solid var(--red);
  background: rgba(20,31,54,0.04);
  margin: 44px 0;
  padding: 24px 28px;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
}

.pj-article blockquote p { font-size: inherit; line-height: inherit; margin: 0; }

.pj-article ul, .pj-article ol {
  margin: 0 0 28px 24px;
  padding: 0;
}

.pj-article li {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.7;
}

.pj-article img {
  width: 100%;
  height: auto;
  margin: 44px 0;
}

.pj-article hr {
  border: none;
  border-top: 1px solid var(--mid);
  margin: 52px 0;
}

.pj-article .wp-block-image figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: -32px;
  margin-bottom: 44px;
  font-style: italic;
}

/* Tags */
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--mid);
}

.pj-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1.5px solid var(--mid);
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.pj-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Share */
.pj-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.pj-share__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pj-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--mid);
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
}

.pj-share__btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Post navigation */
.pj-post-nav {
  background: var(--navy);
  padding: 0;
}

.pj-post-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .pj-post-nav__inner { grid-template-columns: 1fr; }
}

.pj-post-nav__item {
  padding: 36px var(--pad);
  text-decoration: none;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}

.pj-post-nav__item:last-child { border-right: none; text-align: right; }
.pj-post-nav__item:hover { background: rgba(255,255,255,0.05); }

.pj-post-nav__dir {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.pj-post-nav__title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  color: rgba(255,255,255,0.85);
}

/* Back to blog */
.pj-back {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px var(--pad) 0;
}

.pj-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: gap 0.2s;
}

.pj-back a:hover { gap: 12px; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.pj-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 0;
  margin-top: 80px;
}

.pj-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .pj-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.pj-footer__brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.pj-footer__brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.pj-footer__brand-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
  margin-bottom: 24px;
}

.pj-footer__main-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  transition: all 0.2s;
}

.pj-footer__main-link:hover {
  background: var(--red);
  border-color: var(--red);
}

.pj-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.pj-footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pj-footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.pj-footer__nav a:hover { color: var(--white); }

.pj-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

.pj-footer__bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.pj-footer__bottom a:hover { color: var(--white); }

/* ─── ARCHIVE / CATEGORY HEADER ─────────────────────────────── */
.pj-archive-header {
  background: var(--navy);
  padding: 52px var(--pad) 44px;
  text-align: center;
}

.pj-archive-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.pj-archive-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
}

/* ─── 404 ────────────────────────────────────────────────────── */
.pj-404 {
  text-align: center;
  padding: 120px var(--pad);
}

.pj-404__code {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 700;
  color: var(--mid);
  line-height: 1;
  margin-bottom: 16px;
}

.pj-404 h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.pj-404 p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ─── SEARCH FORM ────────────────────────────────────────────── */
.pj-search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.pj-search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--mid);
  border-right: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  outline: none;
}

.pj-search-form input:focus { border-color: var(--navy); }

.pj-search-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pj-search-form button:hover { opacity: 0.85; }

/* ─── UTILITIES ──────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; font-style: italic; }
