/* Deeper Truth — typography ---------------------------------------------
 * Stack:
 *   Display:  Fraunces (variable, opsz 9-144, SOFT 0-100, WONK 0-1)
 *   Body:     Newsreader (variable, opsz 6-72)
 *   UI:       Archivo (variable, wdth 62-125)
 *
 * Sizes use fluid clamp() from design-tokens.css. This file owns
 * element-level rules (h1, p, blockquote) and the utility classes for
 * masthead wordmark, drop caps, editorial small caps, etc.
 * ---------------------------------------------------------------------- */

/* Headings use the display serif. Apply opsz via font-variation-settings
 * per-element so each H level lands at its correct optical cut. */

h1, .dt-h1,
h2, .dt-h2,
h3, .dt-h3,
h4, .dt-h4,
h5, .dt-h5,
h6, .dt-h6 {
  font-family: var(--dt-display);
  color: var(--dt-ink);
  margin: 0 0 var(--dt-space-4);
  letter-spacing: var(--dt-tracking-snug);
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}

h1, .dt-h1 {
  font-size: var(--dt-fs-h1);
  font-variation-settings: "opsz" 96, "wght" 700, "SOFT" 20, "WONK" 0;
  letter-spacing: var(--dt-tracking-tight);
}

h2, .dt-h2 {
  font-size: var(--dt-fs-h2);
  font-variation-settings: "opsz" 72, "wght" 700, "SOFT" 20;
}

h3, .dt-h3 {
  font-size: var(--dt-fs-h3);
  font-variation-settings: "opsz" 48, "wght" 700, "SOFT" 25;
}

h4, .dt-h4 {
  font-size: var(--dt-fs-2xl);
  font-variation-settings: "opsz" 36, "wght" 600, "SOFT" 30;
}

h5, .dt-h5 {
  font-size: var(--dt-fs-xl);
  font-variation-settings: "opsz" 24, "wght" 600, "SOFT" 30;
}

h6, .dt-h6 {
  font-size: var(--dt-fs-lg);
  font-variation-settings: "opsz" 18, "wght" 600, "SOFT" 40;
}

/* Body text uses Newsreader for long-form; Archivo for UI / interface. */

p {
  margin: 0 0 var(--dt-space-4);
  color: var(--dt-ink);
  line-height: 1.65;
  font-family: var(--dt-serif);
  font-variation-settings: "opsz" 16;
  font-size: var(--dt-fs-lg);
  text-wrap: pretty;
}

/* Specificity override for Kadence's article content colors.
 * Kadence sets .entry-content p { color: <grey> } at a higher specificity
 * than a bare `p`. These selectors match Kadence exactly and force our
 * readable ink color. */
.entry-content p,
.entry-content li,
.entry-content blockquote,
.content-container .entry-content p,
body.single .entry-content p,
body.page .entry-content p {
  color: var(--dt-ink) !important;
  font-family: var(--dt-serif);
  font-size: var(--dt-fs-lg);
  line-height: 1.7;
}

.entry-content a,
.content-container .entry-content a {
  color: var(--dt-ink-strong);
  text-decoration: underline;
  text-decoration-color: var(--dt-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--dt-accent);
  text-decoration-color: var(--dt-accent);
}

/* Hide Kadence's default meta rows — we render our own byline-strip.php. */
.single .entry-meta,
.single .entry-header .entry-taxonomies,
.single .entry-header .entry-author-style-normal,
.single .entry-header .post-top-meta,
.single .entry-header-style-normal .entry-meta,
.single .entry-hero .entry-meta {
  display: none !important;
}

/* Headings inside .entry-content use our display stack at readable sizes. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--dt-ink-strong);
  font-family: var(--dt-display);
}

/* Single-article hero title sizing (so article pages don't get the
 * hero-sized headline by accident). */
.single .entry-title,
.single h1.entry-title {
  font-family: var(--dt-display);
  font-variation-settings: "opsz" 72, "wght" 700, "SOFT" 15;
  font-size: clamp(1.75rem, 2vw + 1.2rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: var(--dt-tracking-snug);
  color: var(--dt-ink-strong);
}

.dt-ui,
.dt-ui * {
  font-family: var(--dt-sans);
}

a {
  color: var(--dt-ink);
  text-decoration: underline;
  text-decoration-color: var(--dt-rule-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dt-dur-fast) var(--dt-ease),
              text-decoration-color var(--dt-dur-fast) var(--dt-ease);
}

a:hover {
  color: var(--dt-accent);
  text-decoration-color: var(--dt-accent);
}

strong, b {
  font-weight: 700;
  color: var(--dt-ink-strong);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--dt-fs-sm);
  color: var(--dt-ink-muted);
}

blockquote {
  font-family: var(--dt-display);
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 30;
  font-size: var(--dt-fs-h2);
  line-height: 1.15;
  color: var(--dt-ink-strong);
  margin: var(--dt-space-7) 0;
  padding-left: var(--dt-space-5);
  border-left: 3px solid var(--dt-accent);
  font-style: italic;
  letter-spacing: var(--dt-tracking-snug);
}

hr {
  border: 0;
  height: 1px;
  background: var(--dt-rule-strong);
  margin: var(--dt-space-7) 0;
}

/* ----------------------------------------------------------------------
 * Masthead wordmark — "DEEPER TRUTH"
 *
 * Uses Fraunces at opsz 144, SOFT 0 (sharpest terminals), WONK 1 to pick up
 * the more idiosyncratic glyphs. Heavy letterspacing emulates broadsheet
 * nameplate typography.
 * ---------------------------------------------------------------------- */

.dt-wordmark {
  font-family: var(--dt-display);
  font-variation-settings: "opsz" 144, "wght" 800, "SOFT" 0, "WONK" 1;
  font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
  line-height: 0.95;
  letter-spacing: var(--dt-tracking-snug);
  color: var(--dt-ink-strong);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.dt-wordmark--small {
  font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.6rem);
  letter-spacing: var(--dt-tracking-tight);
}

/* ----------------------------------------------------------------------
 * Small caps / eyebrow labels (kickers, beat tags, series markers)
 * Uses Archivo at tight tracking, heavy weight, all-caps.
 * ---------------------------------------------------------------------- */

.dt-kicker {
  font-family: var(--dt-sans);
  font-size: var(--dt-fs-xs);
  font-weight: 700;
  letter-spacing: var(--dt-tracking-wider);
  text-transform: uppercase;
  color: var(--dt-accent);
  display: inline-block;
}

.dt-kicker--muted {
  color: var(--dt-ink-muted);
}

.dt-kicker--amber {
  color: var(--dt-amber);
}

.dt-label {
  font-family: var(--dt-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--dt-tracking-wider);
  text-transform: uppercase;
  color: var(--dt-ink-muted);
}

/* ----------------------------------------------------------------------
 * Drop cap — first-letter treatment, used in hero deks and manifesto.
 * ---------------------------------------------------------------------- */

.dt-dropcap::first-letter {
  font-family: var(--dt-display);
  font-variation-settings: "opsz" 144, "wght" 800, "SOFT" 0;
  font-size: 4.5em;
  line-height: 0.85;
  float: left;
  margin: 0.08em 0.08em -0.05em 0;
  color: var(--dt-accent);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------------
 * Ornamental rule — three small asterisks, used between article sections.
 * ---------------------------------------------------------------------- */

.dt-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin: var(--dt-space-8) 0;
  color: var(--dt-ink-faint);
  font-family: var(--dt-display);
  font-size: 1.2rem;
  letter-spacing: 1em;
  text-align: center;
}

.dt-ornament::before,
.dt-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dt-rule-strong);
  max-width: 80px;
}

/* ----------------------------------------------------------------------
 * Hairline rule with a square endcap (classic newspaper section break).
 * ---------------------------------------------------------------------- */

.dt-rule-hairline {
  border: 0;
  height: 1px;
  background: var(--dt-rule-strong);
  margin: var(--dt-space-6) 0;
  position: relative;
}

.dt-rule-hairline::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--dt-accent);
}

/* ----------------------------------------------------------------------
 * Meta strip utility (date · read-time · byline)
 * ---------------------------------------------------------------------- */

.dt-meta {
  font-family: var(--dt-sans);
  font-size: var(--dt-fs-sm);
  color: var(--dt-ink-muted);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  letter-spacing: 0.01em;
}

.dt-meta .dt-sep {
  color: var(--dt-rule-bold);
  font-weight: 300;
}
