/*
Theme Name: Leadership Ledger
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A dark, instrument-panel-styled leadership portfolio theme. Post strategic initiatives, team development stories, cross-functional wins, and thought leadership as regular WordPress posts, tagged by category. Includes a Testimonials post type for endorsements, and a Customizer panel for the leadership summary (philosophy, values, approach, and stats).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leadership-ledger
*/

/* ==========================================================================
   LEADERSHIP LEDGER — design tokens
   Direction: an instrument panel for a delivery leader — precise, legible,
   built for scanning many engagements at once. Dark console surface,
   mono readouts for data, serif for the human voice (philosophy, stories).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* color */
  --ink: #10151c;
  --panel: #1a222c;
  --panel-raised: #212b37;
  --hairline: #2b3644;
  --hairline-bright: #3a4b5c;
  --text: #edeeec;
  --text-muted: #8fa0ac;
  --text-faint: #5c6a76;
  --signal: #e3a857;      /* amber — primary accent, results/impact */
  --signal-dim: #7a5a30;
  --teal: #5fa8a0;        /* secondary accent — people/culture content */
  --teal-dim: #34524d;
  --danger-quiet: #b5654f;

  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Source Serif 4', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --rail-width: 248px;
  --content-max: 880px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---- layout shell ---- */

.shell {
  display: grid;
  grid-template-columns: var(--rail-width) 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--hairline);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.rail__id {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.rail__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 6px;
}

.rail__title {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--signal);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.rail nav { display: flex; flex-direction: column; gap: 2px; }

.rail nav a {
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
  padding: 9px 10px;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rail nav a:hover { color: var(--text); background: var(--panel); }

.rail nav a.is-active {
  color: var(--signal);
  border-left-color: var(--signal);
  background: var(--panel);
}

.rail__footer {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.7;
}

.main {
  padding: 56px 64px 120px;
  max-width: 1080px;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 20px 24px;
  }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
  .main { padding: 36px 24px 80px; }
}

/* ---- instrument strip (signature element) ---- */
/* A horizontal readout of the portfolio's live stats, styled like a
   panel gauge row — ticks, mono digits, quiet dividers. Appears at the
   top of list pages so every section opens on evidence, not adjectives. */

.strip {
  display: flex;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--panel);
}

.strip__cell {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--hairline);
  position: relative;
}

.strip__cell:last-child { border-right: none; }

.strip__cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hairline-bright) 0 4px, transparent 4px 8px);
}

.strip__value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--signal);
  line-height: 1.1;
}

.strip__label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ---- typography ---- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

h1.page-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.page-dek {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 8px;
}

h2.section-head {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 56px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

h2.section-head:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

h2.section-head .code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 400;
}

p { margin: 0 0 16px; }

.lede { font-size: 19px; color: var(--text); max-width: 680px; }

/* ---- philosophy / values (home) ---- */

.philosophy-block {
  font-size: 20px;
  line-height: 1.7;
  max-width: 700px;
  color: var(--text);
  margin-bottom: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0 8px;
}

.value-card {
  background: var(--panel);
  padding: 22px 20px;
}

.value-card__title {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 8px;
}

.value-card__body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.approach-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  counter-reset: approach;
}

.approach-list li {
  counter-increment: approach;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.approach-list li:last-child { border-bottom: 1px solid var(--hairline); }

.approach-list li::before {
  content: counter(approach, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 14px;
  padding-top: 2px;
}

.approach-list strong { color: var(--text); font-family: var(--display); font-weight: 600; }
.approach-list span.desc { display: block; color: var(--text-muted); margin-top: 4px; font-size: 15px; }

/* ---- card list (case studies / stories / thought leadership) ---- */

.card-list { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }

.card {
  background: var(--panel);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

a.card:hover { background: var(--panel-raised); }

.card__code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 3px;
}

.card__body { min-width: 0; }

.card__title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.card__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.card__summary { color: var(--text-muted); font-size: 15px; max-width: 60ch; }

.card__tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border: 1px solid var(--hairline-bright);
  border-radius: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag--amber { color: var(--signal); border-color: var(--signal-dim); }
.tag--teal { color: var(--teal); border-color: var(--teal-dim); }

/* ---- filter chips (posts.html) ---- */

.filter-bar { margin-bottom: 32px; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--hairline-bright);
  background: var(--panel);
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover { color: var(--text); border-color: var(--text-faint); }

.chip.is-active {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
  font-weight: 500;
}

.chip--ghost { font-size: 11.5px; padding: 5px 12px; }

.chip--ghost.is-active { background: var(--teal); border-color: var(--teal); color: var(--ink); }

.card__status {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  height: fit-content;
}

.status-delivered { color: var(--signal); border: 1px solid var(--signal-dim); }
.status-ongoing { color: var(--teal); border: 1px solid var(--teal-dim); }

@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; }
  .card__status { justify-self: start; }
}

/* ---- case study detail ---- */

.detail-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin: 28px 0 40px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.detail-meta__item .k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.detail-meta__item .v { font-family: var(--mono); font-size: 14px; color: var(--text); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin: 20px 0 8px;
  overflow: hidden;
}

.result-cell { background: var(--panel); padding: 18px 20px; }

.result-cell .value {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--signal);
  font-weight: 500;
}

.result-cell .label { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
}

.back-link:hover { color: var(--signal); }

/* ---- testimonials ---- */

.testimonial {
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 1px;
}

.testimonial__quote {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

.testimonial__attribution {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.testimonial__attribution strong { color: var(--teal); font-style: normal; }

/* ---- empty state ---- */

.empty-state {
  border: 1px dashed var(--hairline-bright);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---- home hero ---- */

.hero {
  padding-bottom: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.hero__thesis {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--text);
}

.hero__thesis em {
  font-style: normal;
  color: var(--signal);
}

/* ==========================================================================
   WordPress-specific additions
   ========================================================================== */

/* Free-form post body (the_content) inside single.php — mirrors .lede
   styling so block-editor content matches the rest of the design. */
.lede-content {
  font-size: 18px;
  color: var(--text);
  max-width: 700px;
  line-height: 1.7;
}

.lede-content p { margin: 0 0 18px; }
.lede-content a { color: var(--signal); text-decoration: underline; }
.lede-content ul, .lede-content ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-muted); }
.lede-content li { margin-bottom: 8px; }
.lede-content h2, .lede-content h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 14px;
}
.lede-content blockquote {
  border-left: 2px solid var(--signal);
  margin: 20px 0;
  padding: 4px 0 4px 20px;
  color: var(--text-muted);
  font-style: italic;
}
.lede-content img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }
.lede-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 3px;
}
.lede-content pre {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
}

/* WordPress core alignment classes, in case block editor content uses them */
.alignleft { float: left; margin: 4px 20px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 20px; }
.aligncenter { display: block; margin: 12px auto; }
.wp-caption-text { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* Screen-reader text (WordPress requires this for accessibility, e.g. skip links) */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto; height: auto;
  clip: auto;
  background: var(--panel);
  padding: 8px 12px;
  color: var(--signal);
}

/* Pagination (used on category/tag archives if post count grows) */
.ll-pagination {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
}
.ll-pagination a, .ll-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--hairline-bright);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
}
.ll-pagination a:hover { color: var(--signal); border-color: var(--signal-dim); }
.ll-pagination .current { color: var(--signal); border-color: var(--signal-dim); }

/* Comments (native WordPress comment form, kept minimal and off by default
   unless a post has comments enabled) */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.comments-area h2 { font-family: var(--display); font-size: 20px; font-weight: 600; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.comment-list .comment-author { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.comment-list .comment-content p { color: var(--text-muted); font-size: 15px; }
.comment-respond input, .comment-respond textarea {
  background: var(--panel);
  border: 1px solid var(--hairline-bright);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--body);
  width: 100%;
  max-width: 480px;
  margin-bottom: 12px;
}
.comment-respond textarea { max-width: 100%; }
.comment-respond input[type="submit"] {
  width: auto;
  background: var(--signal);
  color: var(--ink);
  border: none;
  font-family: var(--mono);
  font-weight: 500;
  cursor: pointer;
}
