/* ==========================================================================
   Perceptions (blog) — Greg T Meyers
   Self-contained: shared site chrome (copied from aphorisms.css) + page styles.
   Reuses the same images: header-wood.png, body-wood.jpg, title-plate.png.
   (If you later want one shared chrome file, I can split this into site.css.)
   ========================================================================== */

:root{
  --wood-dark:#2a1a0e; --gold:#c9a24b; --gold-soft:#d8b968;
  --parchment:#efe2c0; --parchment-2:#e7d7af; --ink:#3a2410; --ink-soft:#7a5a30;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'EB Garamond', Georgia, 'Times New Roman', serif;
  color:var(--parchment);
  background-color:var(--wood-dark);
  background-image:url("../images/body-wood.jpg"); background-repeat:repeat;
  min-height:100vh;
}

/* ---- header / nav ---- */
.site-header{
  position:relative; height:120px;
  background:url("../images/header-wood.png") repeat-x center top;
  background-size:auto 100%;
  box-shadow:0 6px 18px rgba(0,0,0,.5);
}
.header-inner{
  max-width:1180px; margin:0 auto; height:100%;
  display:flex; align-items:center; justify-content:space-between; padding:0 30px 26px;
}
.brand{ font-size:2rem; letter-spacing:.06em; color:var(--parchment); text-decoration:none; text-shadow:0 1px 2px rgba(0,0,0,.6); }
.main-nav a{ color:#d9c6a3; text-decoration:none; margin-left:28px; font-size:1.15rem; letter-spacing:.03em; padding-bottom:4px; transition:color .2s; }
.main-nav a:hover{ color:#fff; }
.main-nav a.active{ color:var(--gold-soft); border-bottom:2px solid var(--gold); }
@media (max-width:640px){
  .site-header{ height:92px; } .header-inner{ padding-bottom:20px; } .brand{ font-size:1.5rem; }
}

/* ---- page title ---- */
.page-title{ text-align:center; padding:14px 20px 22px; }
.title-plate{
  width:560px; max-width:92%; aspect-ratio:2626 / 289; margin:0 auto;
  background:url("../images/title-plate.png") no-repeat center center; background-size:contain;
  display:flex; align-items:center; justify-content:center;
}
.title-plate span{ font-size:1.3rem; letter-spacing:.36em; text-transform:uppercase; color:var(--gold-soft); padding-left:.36em; }
.subtitle{ margin:6px 0 0; font-size:1.3rem; font-style:italic; color:#cdb98f; }

/* ---- panel ---- */
.parchment-panel{
  max-width:1180px; margin:10px auto 60px; padding:30px 34px 44px;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(160deg, var(--parchment) 0%, var(--parchment-2) 100%);
  border-radius:4px; box-shadow:0 12px 40px rgba(0,0,0,.55); color:var(--ink);
}

/* ============ TOOLBAR: tabs + search ============ */
.perc-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:26px;
}
.perc-tabs{ display:flex; gap:28px; flex-wrap:wrap; }
.perc-tabs a{
  color:var(--ink); text-decoration:none; font-size:1.12rem;
  padding-bottom:4px; transition:color .2s;
}
.perc-tabs a:hover{ color:var(--ink-soft); }
.perc-tabs a.active{ color:var(--ink); border-bottom:2px solid var(--gold); }

.perc-search{ position:relative; }
.perc-search .fa{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  color:var(--ink-soft); font-size:.95rem; pointer-events:none;
}
.perc-search input{
  font-family:inherit; font-size:1rem; color:var(--ink);
  padding:9px 14px 9px 34px; width:260px; max-width:100%;
  background-color:#f1e4c2; border:1px solid var(--ink-soft); border-radius:3px;
}
.perc-search input::placeholder{ color:#9a7c4e; }
.perc-search input:focus{ outline:none; border-color:var(--ink); }

/* ============ FEATURED ESSAY ============ */
.featured{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:34px; align-items:center;
}
.featured .ph-img{ aspect-ratio:16 / 11; }      /* empty placeholder only */
.featured-media{ display:block; }
/* big image: fit within bounds, cap height, never crop or stretch */
.featured-img{ display:block; max-width:100%; max-height:420px; width:auto; height:auto; border-radius:3px; }
.featured-label{
  font-size:.82rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink-soft); font-weight:600; margin-bottom:8px;
}
.featured h2{
  font-size:2.6rem; line-height:1.08; margin:0 0 16px; font-weight:600; color:var(--ink);
}
.featured .excerpt{ font-size:1.22rem; line-height:1.5; margin:0 0 22px; color:#4a3115; }
.read-link{
  font-size:1.1rem; color:var(--ink); text-decoration:none; border-bottom:1px solid transparent;
}
.read-link:hover{ border-bottom-color:var(--ink); }

/* ============ DIVIDER + MORE ============ */
.perc-divider{ border:0; border-top:1px solid rgba(122,90,48,.35); margin:40px 0 26px; }
.more-head{ font-size:1.9rem; font-weight:600; margin:0 0 22px; color:var(--ink); }

.perc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:860px){ .perc-grid{ grid-template-columns:1fr; } }
.post-card{ text-decoration:none; color:var(--ink); display:block; }
.post-card .ph-img{ aspect-ratio:16 / 10; margin-bottom:14px; }   /* empty placeholder only */
/* grid thumbnail: uniform height, whole image shown (no crop), letterboxed on a soft matte */
.post-card .card-img{ display:block; width:100%; height:200px; object-fit:contain;
  background:#f2e8cf; border:1px solid rgba(122,90,48,.22); border-radius:3px; margin-bottom:14px; }
.post-card h3{ font-size:1.5rem; font-weight:500; line-height:1.2; margin:0; color:var(--ink); transition:color .2s; }
.post-card:hover h3{ color:var(--ink-soft); }

.more-link{ display:inline-block; margin-top:34px; font-size:1.05rem; color:var(--ink); text-decoration:underline; }

/* ============ IMAGE PLACEHOLDER ============ */
/* Replace .ph-img divs with <img> once real featured images exist. */
.ph-img{
  display:block; width:100%; border-radius:3px;
  background:
    linear-gradient(135deg, #b89a6a 0%, #8a6a3f 55%, #5e4425 100%);
  position:relative; overflow:hidden;
}
img.ph-img{ object-fit:cover; }
.ph-img::after{
  content:"\f03e"; font-family:FontAwesome; /* picture icon */
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.4); font-size:2rem;
}

/* ============ RESPONSIVE FEATURED ============ */
@media (max-width:860px){
  .featured{ grid-template-columns:1fr; gap:20px; }
  .featured h2{ font-size:2.1rem; }
}

/* ============ SINGLE POST (reading pane) ============ */
.article{ max-width:820px; margin:0 auto; }
.article .back{ display:inline-block; margin-bottom:18px; color:var(--ink-soft); text-decoration:none; font-size:1rem; }
.article .back:hover{ color:var(--ink); }
.article-cat{ font-size:.82rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; }
.article h1{
  font-size:2.9rem; line-height:1.08; font-weight:600; color:var(--ink);
  margin:8px 0 14px;
}
.article-meta{ font-size:1rem; color:var(--ink-soft); margin-bottom:26px; }
.article-meta .dot{ margin:0 8px; opacity:.6; }
.article-hero{ display:block; max-width:100%; max-height:70vh; width:auto; height:auto; margin:0 auto 30px; border-radius:3px; }
.article-body{ font-size:1.22rem; line-height:1.72; color:#3f2a12; }
/* WYSIWYG spacing: match the Quill editor exactly. Paragraphs carry no auto
   margin, so a single Enter = a tight new paragraph and a blank line (an empty
   <p><br></p>) = exactly one empty row — what you see in the editor is what the
   post shows. Author controls spacing with blank lines, no compounding gaps. */
.article-body p{ margin:0; }
.article-body p:has(> br:only-child),
.article-body p:empty{ margin:0; }
/* drop cap on the opening paragraph — swap the font-family to change the style
   (alternatives: 'IM Fell English SC', 'Cormorant Garamond', 'Playfair Display', 'UnifrakturMaguntia') */
.article-body > p:first-of-type::first-letter{
  float:left;
  font-family:'Cinzel Decorative', Georgia, serif;
  font-weight:700;
  font-size:4.4em;
  line-height:.72;
  padding:.02em .12em 0 0;
  color:#9c7b22;
}
.article-body h2{ font-size:1.9rem; font-weight:600; margin:.9em 0 .3em; color:var(--ink); }
.article-body h3{ font-size:1.45rem; font-weight:600; margin:.9em 0 .3em; color:var(--ink); }
.article-body blockquote{
  margin:1.6em 0; padding:0; border:0;
  text-align:center; font-style:italic;
  font-size:1.3em;            /* ~1.3x the body text */
  line-height:1.5; color:var(--ink-soft);
}
@media (min-width:768px){
  /* contain width with ~1in margins each side on larger screens */
  .article-body blockquote{ margin-left:1in; margin-right:1in; }
}
.article-body a{ color:#8a6a1f; }
.article-body img{ max-width:100%; height:auto; border-radius:3px; margin:1.2em 0; }
.article-foot{ margin-top:40px; padding-top:22px; border-top:1px solid rgba(122,90,48,.35); }
@media (max-width:640px){ .article h1{ font-size:2.1rem; } }
/* Footer styles now live inside footer.php (self-contained include). */
