/*
Theme Name: PsyJournal Child
Theme URI: https://psyjournal.org
Description: Child theme for PsyJournal layout on top of Blogsy.
Author: OpenClaw
Template: blogsy
Version: 1.0.0
Text Domain: psyjournal-child
*/

:root {
  --psy-blue: #9e2a2b;
  --psy-dark: #1f2937;
  --psy-text: #57534e;
  --psy-bg: #fdfcf9;
  --psy-accent: #9e2a2b;
  --psy-marker: #fef08a;
}

body {
  background-color: var(--psy-bg);
  color: var(--psy-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.pj-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.pj-header {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-top: 6px solid var(--psy-dark);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.pj-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pj-brand-title {
  color: var(--psy-dark);
  font-family: Lora, Georgia, serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.pj-brand-org {
  color: var(--psy-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-left: 4px;
  transform: translateY(-10px);
  display: inline-block;
}

.pj-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}

@media (min-width: 1024px) {
  .pj-layout { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 44px; }
}

.pj-hero h1 {
  font-family: Lora, Georgia, serif;
  color: var(--psy-dark);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.pj-hero p { font-size: 20px; line-height: 1.6; margin: 0; }

.pj-section-title {
  font-family: Lora, Georgia, serif;
  color: var(--psy-dark);
  font-size: 30px;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
  margin: 26px 0 18px;
}

.pj-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.02);
  margin-bottom: 24px;
}

.pj-card-body { padding: 22px; }
.pj-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #9ca3af; margin-bottom: 10px; display:block; }
.pj-card h2 { margin: 0 0 12px; font-family: Lora, Georgia, serif; font-size: 33px; line-height: 1.2; color: var(--psy-dark); }
.pj-card p { margin: 0 0 12px; font-family: Lora, Georgia, serif; font-size: 21px; line-height: 1.65; }

.pj-highlight {
  background: linear-gradient(104deg, transparent 0%, rgba(254,240,138,.8) 2%, rgba(254,240,138,1) 92%, transparent 100%);
  padding: .1em .2em;
  border-radius: 3px;
  font-weight: 500;
  color: #111827;
}

.pj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-tag { background: #f3f4f6; color: #4b5563; font-size: 12px; padding: 4px 10px; border-radius: 8px; text-decoration: none; }

.pj-side-box { background:#fff; border:1px solid #f0f0f0; border-radius:16px; padding:18px; margin-bottom:20px; }

.pj-btn { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:10px 18px; text-decoration:none; font-weight:600; }
.pj-btn-dark { background:var(--psy-dark); color:#fff; }
.pj-btn-soft { background:#f8fafc; color:#6b7280; border:1px solid #e5e7eb; }

/* Shared card styles used across home + archives + taxonomy + author pages */
.highlight{background:linear-gradient(104deg,transparent 0%,rgba(254,240,138,.8) 2%,rgba(254,240,138,1) 92%,transparent 100%);padding:.1em .2em;border-radius:3px;color:#111827}
.badge-day{background:#9e2a2b}
.badge-week{background:#556b2f}
.badge-month{background:#1f2937}
.content-type-label{font-family:Inter,sans-serif;font-size:.65rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:#78716c;margin-bottom:.75rem;display:block}
.fadeout-mask{position:absolute;left:0;right:0;bottom:0;height:64px;background:linear-gradient(to top,#fff,transparent);pointer-events:none}
.art-stripe{filter:grayscale(20%) contrast(110%);mix-blend-mode:multiply}
.pj-strip{height:160px;position:relative;overflow:hidden;background:#f5f5f4}
.pj-strip img{width:100%;height:100%;object-fit:cover}
.pj-strip::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.16),transparent)}

@media (max-width:390px){
  .pj-card-body-compact{padding:14px !important;}
  .pj-card-title{font-size:1.55rem !important;line-height:1.25 !important;margin-bottom:.65rem !important;}
  .pj-card-excerpt{font-size:1rem !important;line-height:1.55 !important;}
  .content-type-label{font-size:.6rem !important;letter-spacing:.08em !important;}
  .pj-strip{height:128px !important;}
}

@media (min-width:391px) and (max-width:430px){
  .pj-card-body-compact{padding:16px !important;}
  .pj-card-title{font-size:1.72rem !important;line-height:1.28 !important;margin-bottom:.72rem !important;}
  .pj-card-excerpt{font-size:1.05rem !important;line-height:1.58 !important;}
  .pj-strip{height:136px !important;}
}

@media (max-width:390px){
  .pj-mobile-hero-title{font-size:2rem !important;line-height:1.2 !important;}
  .pj-mobile-hero-subtitle{font-size:1.02rem !important;line-height:1.55 !important;}
  .pj-mobile-page-title{font-size:1.75rem !important;line-height:1.25 !important;}
}

@media (min-width:391px) and (max-width:430px){
  .pj-mobile-hero-title{font-size:2.2rem !important;line-height:1.2 !important;}
  .pj-mobile-hero-subtitle{font-size:1.08rem !important;line-height:1.6 !important;}
  .pj-mobile-page-title{font-size:1.9rem !important;line-height:1.27 !important;}
}
