/*
Theme Name: Suit × Soul
Theme URI: https://suitxsoul.com
Author: Biron Pickens
Author URI: https://suitxsoul.com
Description: Soul Architecture. The Suit × Soul media and identity platform — structure with spirit, presence without performance. A bespoke classic theme carrying the Suit × Soul design system v1.0.
Version: 1.0.6
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary — © Biron Pickens. All rights reserved.
Text Domain: suitxsoul
Tags: one-column, custom-colors, custom-menu, editor-style, featured-images, translation-ready
*/

/* ==========================================================================
   SUIT × SOUL — DESIGN TOKENS
   Recovered from the live site and reconciled with
   Design System Kit v1.0 (css/tokens/suit-x-soul.css).
   Treatment is locked here on purpose. Content is edited in wp-admin.
   ========================================================================== */

:root {
  /* ---------- FAMILIES ---------- */
  --font-display: "Cormorant Garamond", "Canela", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-caps: "Inter", "Avenir Next", system-ui, sans-serif;

  /* ---------- WEIGHTS ---------- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* ---------- TYPE SCALE (1.250 major third, display-forward) ---------- */
  --text-3xs: 0.6875rem;
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --text-5xl: 4.25rem;
  --text-6xl: 5.5rem;

  /* ---------- LINE HEIGHTS ---------- */
  --leading-tight: 1.04;
  --leading-snug: 1.18;
  --leading-normal: 1.4;
  --leading-relaxed: 1.62;

  /* ---------- LETTER SPACING ---------- */
  --tracking-tighter: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.22em;

  /* ---------- PALETTE ---------- */
  --ink: #0a0a0b;
  --ink-alt: #14141a;
  --bone: #ede7dc;
  --paper: #fbf8f2;
  --paper-warm: #f6f1e8;
  --paper-deep: #efe8da;

  --brass: #a58442;
  --brass-hi: #ba9a55;
  --brass-deep: #8a6e3a;
  --brass-lo: #7a5f2c;
  --gold-pale: #d8c29a;
  --gold-wash: #e8dbc2;

  --text-dark: #2b2621;
  --text-mute: #635c52;
  --text-soft: #a9a29a;
  --text-faint: #6b6457;

  --plum: #5a305f;
  --plum-deep: #3a1e4d;
  --amber: #c07d1e;

  /* ---------- MEASURE + RHYTHM ---------- */
  --measure: 68ch;
  --shell: 1080px;
  --gutter: clamp(24px, 6vw, 72px);
  --section-y: clamp(72px, 11vw, 132px);
}

/* ==========================================================================
   RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  margin: 0;
}

p { margin: 0 0 1.25em; }

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

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-caps);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   PRIMITIVES
   ========================================================================== */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 clamp(20px, 3vw, 30px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.on-dark .eyebrow { color: var(--text-soft); }

.rule {
  height: 1px;
  border: 0;
  background: rgba(138, 108, 51, 0.28);
  margin: 0;
}

.lede {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-mute);
  max-width: 62ch;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--brass);
  border: 1px solid var(--brass);
  color: var(--ink);
  font-family: var(--font-caps);
  font-size: 10.5px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.24s ease, border-color 0.24s ease;
}
.btn:hover, .btn:focus { background: var(--brass-hi); border-color: var(--brass-hi); }

.btn--ghost {
  background: transparent;
  border-color: rgba(43, 38, 33, 0.24);
  color: var(--text-dark);
  padding: 11px 20px;
  font-size: 9.5px;
  letter-spacing: var(--tracking-wider);
}
.btn--ghost:hover, .btn--ghost:focus {
  background: transparent;
  border-color: var(--brass);
  color: var(--brass-lo);
}

.on-dark .btn--ghost {
  border-color: rgba(237, 231, 220, 0.24);
  color: var(--bone);
}
.on-dark .btn--ghost:hover { border-color: var(--brass); color: var(--brass-hi); }

.link-caps {
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 108, 51, 0.5);
  padding-bottom: 5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-caps:hover { color: var(--brass-lo); border-color: var(--brass); }
.on-dark .link-caps:hover { color: var(--brass-hi); }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(237, 231, 220, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-brand img { height: clamp(20px, 2.6vw, 26px); width: auto; }
.site-brand__text {
  font-family: var(--font-caps);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bone);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--bone); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(88px, 15vw, 168px) clamp(72px, 12vw, 128px);
  overflow: hidden;
}
/* The aubergine wash, restored to the original build's geometry.
   It must sit at `inset: 0` and be centred at the TOP of the box (50% 0%).
   An off-centre origin with a negative inset reads fine on a short desktop
   hero, then vanishes on mobile — the headline wraps to three lines, the hero
   grows tall, and the offset carries the glow off the top of the screen. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    92% 66% at 50% 0%,
    rgba(90, 48, 95, 0.46),
    rgba(58, 30, 77, 0.22) 44%,
    transparent 76%
  );
  pointer-events: none;
}
.hero > * { position: relative; }

/* The same wash, quieter, so the Origin and Letter panels carry depth instead
   of reading as flat black. */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    78% 52% at 50% 0%,
    rgba(90, 48, 95, 0.26),
    transparent 70%
  );
  pointer-events: none;
}
.section--dark > * { position: relative; }

.hero__title {
  font-size: clamp(2.6rem, 7vw, var(--text-6xl));
  line-height: var(--leading-tight);
  max-width: 16ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero__lede { color: var(--text-soft); max-width: 58ch; margin: 0; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--bone); }
.section--warm { background: var(--paper-warm); }
.section--deep { background: var(--paper-deep); }

.section__title {
  font-size: clamp(2rem, 4.4vw, var(--text-4xl));
  max-width: 20ch;
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

/* Triad — Language / Perspective / Practice */
.triad {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: clamp(20px, 4vw, 44px);
}
.triad__item { border-top: 1px solid rgba(138, 108, 51, 0.32); padding-top: 22px; }
.triad__term {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: 12px;
}
.triad__def { color: var(--text-mute); font-size: var(--text-sm); margin: 0; }
.on-dark .triad__def { color: var(--text-soft); }

/* Pull quote */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, var(--text-3xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tighter);
  max-width: 24ch;
  margin: clamp(56px, 8vw, 92px) 0 0;
  color: var(--text-dark);
}
.on-dark .pullquote { color: var(--bone); }

/* Origin block */
.origin__body { max-width: var(--measure); }
.origin__body p { font-size: var(--text-lg); color: var(--text-soft); }
.origin__sig {
  margin-top: clamp(32px, 5vw, 48px);
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brass-hi);
}
.origin__sig span { display: block; color: var(--text-soft); margin-top: 6px; }

/* ==========================================================================
   WRITING INDEX
   ========================================================================== */

.writing-list { display: grid; gap: 0; margin-top: clamp(24px, 4vw, 40px); }

.entry-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(43, 38, 33, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background 0.24s ease;
}
.entry-row:last-child { border-bottom: 1px solid rgba(43, 38, 33, 0.12); }
.entry-row:hover { background: rgba(232, 219, 194, 0.28); }
.on-dark .entry-row { border-color: rgba(237, 231, 220, 0.1); }
.on-dark .entry-row:hover { background: rgba(237, 231, 220, 0.04); }

.entry-row__num {
  font-family: var(--font-caps);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wider);
  color: var(--brass);
  padding-top: 8px;
}
/* These are spans — an <a> may not wrap block elements — so display:block is
   not optional. Without it, a short title lets the dek run up beside it. */
.entry-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, var(--text-2xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tighter);
  margin: 0 0 10px;
}
.entry-row__dek {
  display: block;
  color: var(--text-mute);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0 0 14px;
  max-width: 56ch;
}
.on-dark .entry-row__dek { color: var(--text-soft); }
.entry-row__meta {
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.entry-row__meta span:not(:last-child)::after { content: " ·"; color: var(--brass); }
.entry-row__cta {
  align-self: center;
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass-lo);
  white-space: nowrap;
}
.on-dark .entry-row__cta { color: var(--brass-hi); }

@media (max-width: 620px) {
  .entry-row { grid-template-columns: 2.5rem 1fr; }
  .entry-row__cta { display: none; }
}

/* ==========================================================================
   THE LETTER
   ========================================================================== */

.letter { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .letter { grid-template-columns: 1fr 1fr; align-items: center; } }
.letter__title { font-size: clamp(2rem, 4.4vw, var(--text-3xl)); }

/* ==========================================================================
   BRING ME IN — lanes + form
   ========================================================================== */

.lanes { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: clamp(28px, 4vw, 48px); }
.lane { border-top: 1px solid rgba(138, 108, 51, 0.36); padding-top: 24px; }
.lane__num {
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}
.lane__name {
  font-family: var(--font-caps);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lane__copy { color: var(--text-mute); font-size: var(--text-sm); margin: 0; }

.inquiry { margin-top: clamp(40px, 6vw, 64px); max-width: 720px; }
.inquiry__lanes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.inquiry__lane-btn {
  padding: 12px 22px;
  background: transparent;
  border: 1px solid rgba(43, 38, 33, 0.24);
  color: var(--text-mute);
  font-family: var(--font-caps);
  font-size: 9.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.inquiry__lane-btn[aria-pressed="true"] {
  border-color: var(--brass);
  color: var(--ink);
  background: var(--gold-wash);
}

.inquiry__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inquiry__field { display: flex; flex-direction: column; gap: 8px; }
.inquiry__field--wide { grid-column: 1 / -1; }
.inquiry label {
  font-family: var(--font-caps);
  font-size: 9.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-mute);
}
.inquiry input, .inquiry textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid rgba(43, 38, 33, 0.2);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.inquiry input:focus, .inquiry textarea:focus { border-color: var(--brass); outline: none; }
.inquiry textarea { min-height: 150px; resize: vertical; }

/* honeypot — never shown, never focusable */
.inquiry__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.inquiry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.inquiry__note { flex: 1 1 220px; min-width: 0; font-size: var(--text-sm); color: var(--text-mute); margin: 0; }
.inquiry__note[data-state="error"] { color: #8c3b32; }

.inquiry__direct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-top: clamp(28px, 4vw, 36px); }
.inquiry__direct-label {
  font-family: var(--font-caps);
  font-size: 9.5px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ==========================================================================
   SINGLE — the reader
   ========================================================================== */

.reader { background: var(--paper); padding-block: clamp(40px, 7vw, 76px) var(--section-y); }
.reader__back { display: inline-block; margin-bottom: clamp(32px, 5vw, 52px); }

.reader__head { max-width: var(--measure); margin-bottom: clamp(36px, 5vw, 56px); }
.reader__title {
  font-size: clamp(2.2rem, 5.6vw, var(--text-4xl));
  line-height: var(--leading-tight);
  margin-bottom: 18px;
}
.reader__dek {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.reader__meta {
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-faint);
}
.reader__meta span:not(:last-child)::after { content: " ·"; color: var(--brass); }

.prose { max-width: var(--measure); font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.prose > p { margin: 0 0 1.35em; }
.prose h2 {
  font-size: clamp(1.6rem, 3.4vw, var(--text-2xl));
  margin: 2em 0 0.7em;
}
.prose h3 { font-size: var(--text-xl); margin: 1.8em 0 0.6em; }
.prose blockquote {
  margin: 2em 0;
  padding-left: 26px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-mute);
}
.prose a { color: var(--brass-lo); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.35em; }
.prose li { margin-bottom: 0.5em; }
.prose img { margin: 2em 0; }
.prose hr { margin: 2.6em 0; }

.reader__sig {
  margin-top: clamp(40px, 6vw, 60px);
  font-family: var(--font-caps);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-mute);
}

.reader__share, .reader__reply {
  max-width: var(--measure);
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(43, 38, 33, 0.14);
}
.reader__share-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.read-next { background: var(--paper-deep); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--text-soft);
  padding-block: clamp(44px, 6vw, 64px);
  border-top: 1px solid rgba(237, 231, 220, 0.08);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-footer img { height: clamp(38px, 5vw, 52px); width: auto; opacity: 0.9; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.site-footer__links a { text-decoration: none; transition: color 0.2s ease; }
.site-footer__links a:hover { color: var(--bone); }
.site-footer__fine {
  font-family: var(--font-caps);
  font-size: 9.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ==========================================================================
   PAGINATION / ARCHIVE / 404
   ========================================================================== */

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 60px);
  font-family: var(--font-caps);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.pagination .page-numbers {
  padding: 10px 16px;
  border: 1px solid rgba(43, 38, 33, 0.2);
  text-decoration: none;
}
.pagination .page-numbers.current { border-color: var(--brass); color: var(--brass-lo); }

.notfound { padding-block: clamp(96px, 16vw, 180px); text-align: left; }
.notfound__title { font-size: clamp(2.4rem, 6vw, var(--text-4xl)); margin-bottom: 20px; }

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .site-header, .site-footer, .reader__share, .reader__reply, .read-next, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; font-size: 12pt; }
}
