/*
Theme Name: Coinpric
Theme URI: https://coinpric.com/
Author: Coinpric
Description: Purpose-built theme for Coinpric — live crypto prices, market news and analysis. Graphite + paper + electric cyan "market tape" design system. Classic PHP templating; all components namespaced cp-.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.2
License: Proprietary
Text Domain: coinpric
Tags: news, cryptocurrency
*/

/* ============================================================
   SELF-HOSTED FONTS
   Self-hosted on purpose: a hardened CSP (font-src 'self') blocks Google Fonts,
   and a CDN font is a render-blocking third party we do not control.
   ============================================================ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   DESIGN TOKENS  (components reference variables ONLY — never a raw hex)
   ============================================================ */
:root {
  --bg:           #F7F8F8;
  --surface:      #EEF1F2;
  --card:         #FFFFFF;
  --line:         #DDE3E5;
  --ink:          #16181D;
  --muted:        #5B6670;
  --brand:        #0891B2;
  --brand-deep:   #164E63;
  --brand-bright: #06B6D4;
  --brand-soft:   #CFFAFE;
  --up:           #059669;
  --up-soft:      #D1FAE5;
  --down:         #E11D48;
  --down-soft:    #FFE4E6;
  --amber:        #D97706;

  /* Permanently-dark chrome (status bar, footer). These must NOT flip with the
     theme: using --ink as a background inverts them in dark mode and makes the
     text unreadable. Keep them constant in both themes. */
  --chrome-bg:    #16181D;
  --chrome-fg:    #F7F8F8;
  --chrome-mute:  #8B979F;
  --chrome-line:  #2A3238;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --col:  720px;
  --r:    4px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

:root[data-theme="dark"] {
  --bg:      #0D1013;
  --surface: #171B1F;
  --card:    #171B1F;
  --line:    #2A3238;
  --ink:     #F7F8F8;
  --muted:   #9AA5AD;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #0D1013;
    --surface: #171B1F;
    --card:    #171B1F;
    --line:    #2A3238;
    --ink:     #F7F8F8;
    --muted:   #9AA5AD;
  }
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-braces against 375px overflow */
}
img, svg, video { max-width: 100%; height: auto; }
/* Form controls must never set their own width from cols/size attributes —
   WordPress's default comment textarea ships cols="45", which overflowed the
   viewport at 375px. */
input, textarea, select, button { max-width: 100%; box-sizing: border-box; font-family: inherit; }
textarea { width: 100%; resize: vertical; }
iframe, embed, object { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
/* Scope hover underline so it never bleeds onto whole-card links */
a:not(.cp-cardlink):not(.cp-btn):not(.cp-chip):hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.021em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.14; }
h2 { font-size: clamp(21px, 2.6vw, 24px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p  { margin: 0 0 1.15em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.cp-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.cp-col  { max-width: var(--col); }
.cp-skip { position: absolute; left: -9999px; }
.cp-skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--card); padding: 10px 14px; border: 1px solid var(--line); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Every figure is mono + tabular so digits never jitter */
.cp-num, .cp-price, .cp-stat b, .cp-delta { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* House signature: mono uppercase eyebrow above a tight headline */
.cp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.cp-eyebrow--brand { color: var(--brand); }

/* ============================================================
   WORDMARK
   ============================================================ */
.cp-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.cp-logo:hover { text-decoration: none; }
.cp-logo b { font-weight: 800; color: var(--brand); }
.cp-logo .cp-mark { flex: 0 0 auto; }

/* ============================================================
   TOP STATUS BAR + HEADER
   ============================================================ */
.cp-status {
  background: var(--chrome-bg);
  color: var(--chrome-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--chrome-line);
}
.cp-status .cp-wrap { display: flex; align-items: center; gap: 16px; min-height: 34px; flex-wrap: wrap; }
.cp-status time { color: var(--chrome-mute); }
.cp-status a { color: var(--chrome-fg); }
.cp-status__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
/* Status tape: live majors, mono + tabular so digits never jitter */
.cp-tape { min-width: 0; overflow: hidden; }
.cp-tape__in { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cp-tape__in::-webkit-scrollbar { display: none; }
.cp-tape__i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-tape__i b { color: var(--chrome-mute); font-weight: 500; letter-spacing: .06em; }
/* Price flash on a live update */
.cp-flash-up   { animation: cp-fu .4s var(--ease); }
.cp-flash-down { animation: cp-fd .4s var(--ease); }
@keyframes cp-fu { 0% { background: color-mix(in srgb, var(--up) 45%, transparent); } 100% { background: transparent; } }
@keyframes cp-fd { 0% { background: color-mix(in srgb, var(--down) 45%, transparent); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cp-flash-up, .cp-flash-down { animation: none; } }
@media (max-width: 700px) { .cp-tape { display: none; } }

/* Live pulse dot — shown only next to a module that actually refreshes */
.cp-pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-bright); }
.cp-pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-bright); animation: cp-pulse 2.2s var(--ease) infinite;
}
@keyframes cp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cp-pulse::before { animation: none; } }

.cp-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.cp-head .cp-wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.cp-nav { margin-left: auto; }
.cp-nav ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.cp-nav a { color: var(--ink); font-size: 14px; font-weight: 500; }
.cp-nav a:hover { color: var(--brand); }
.cp-nav .current-menu-item > a { color: var(--brand); }
.cp-head__cta { display: inline-flex; }
.cp-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .cp-nav { display: none; width: 100%; margin: 0; order: 3; }
  .cp-nav.is-open { display: block; padding-bottom: 12px; }
  .cp-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .cp-nav li { border-top: 1px solid var(--line); }
  .cp-nav a { display: block; padding: 11px 2px; }
  .cp-burger { display: inline-flex; }
  .cp-head .cp-wrap { flex-wrap: wrap; }
  .cp-head__cta { display: none; }
}

/* ============================================================
   MASTHEAD / SECTION HEADER — layered depth, no raster images
   ============================================================ */
.cp-masthead { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.cp-masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 18% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
}
.cp-masthead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(to right, color-mix(in srgb, var(--brand) 12%, transparent) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--brand) 12%, transparent) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(75% 100% at 20% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(75% 100% at 20% 0%, #000 0%, transparent 75%);
}
.cp-masthead > * { position: relative; }
.cp-masthead h1 { margin: 0 0 8px; }
.cp-masthead p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ============================================================
   HERO — latest article, two columns
   ============================================================ */
.cp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; padding: 8px 0 4px; }
.cp-hero__body { min-width: 0; }
.cp-hero h1 { font-size: clamp(29px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.028em; margin: 0 0 16px; }
.cp-hero h1 a { color: var(--ink); }
.cp-hero h1 a:hover { color: var(--brand-deep); text-decoration: none; }
.cp-hero__stand { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 54ch; }

/* Byline: local initial avatar — never Gravatar, which would be an external
   request and would break the site's zero-third-party property. */
.cp-hero__by { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.cp-byavatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
:root[data-theme="dark"] .cp-byavatar,
.cp-byavatar { border: 1px solid var(--line); }
.cp-hero__who { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.cp-hero__who a { color: var(--ink); }
.cp-hero__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* display:block matters — aspect-ratio is silently ignored on an inline element,
   which stretches the image to the container height. */
.cp-hero__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.cp-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-hero__media .cp-ph { position: absolute; inset: 0; }

@media (max-width: 900px) {
  .cp-hero { grid-template-columns: 1fr; gap: 24px; }
  /* Text first on mobile: keeps the LCP a cheap text node. */
  .cp-hero__body { order: 1; }
  .cp-hero__figure { order: 2; }
  .cp-hero__media { aspect-ratio: 16 / 9; }
}

/* ============================================================
   CARDS
   ============================================================ */
.cp-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.cp-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 24px 48px -32px rgba(8,145,178,.45); }
@media (prefers-reduced-motion: reduce) { .cp-card:hover { transform: none; } }
.cp-card__media { display: block; aspect-ratio: 3 / 2; background: var(--surface); position: relative; overflow: hidden; }
.cp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cp-card__title { font-size: 17px; line-height: 1.32; margin: 0; }
.cp-card__title a { color: var(--ink); }
.cp-card__title a:hover { color: var(--brand); }
.cp-card__meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; margin-top: auto; }

/* Missing-media placeholder — never a stock photo, never a blank grey box */
.cp-ph { position: relative; display: grid; place-items: center; background: linear-gradient(150deg, #16181D, #23282F); }
.cp-ph::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background:
    repeating-linear-gradient(to right, rgba(8,145,178,.5) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, rgba(8,145,178,.5) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent 78%);
}
.cp-ph__mark { position: relative; color: #F7F8F8; font-weight: 700; letter-spacing: -.03em; font-size: 20px; }
.cp-ph__mark b { color: var(--brand-bright); font-weight: 800; }
.cp-ph__rule { position: absolute; bottom: 0; left: 0; height: 3px; width: 46%; background: var(--brand); }

/* ============================================================
   CHIPS / BADGES / BUTTONS
   ============================================================ */
.cp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; border: 1px solid var(--line); color: var(--muted); background: var(--card);
}
.cp-chip--cat { color: #fff; border-color: transparent; background: var(--brand); }
.cp-chip--sponsored { color: #fff; border-color: transparent; background: var(--amber); }
.cp-chip--stale { color: #fff; border-color: transparent; background: var(--amber); }

.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: var(--r);
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  transition: background .18s var(--ease), border-color .18s var(--ease);
  cursor: pointer;
}
.cp-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; color: #fff; }
.cp-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cp-btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--brand); }

/* ============================================================
   PRICE SEMANTICS  (colour used ONLY for price movement)
   ============================================================ */
.cp-delta { font-weight: 600; }
.cp-up   { color: var(--up); }
.cp-down { color: var(--down); }
.cp-flat { color: var(--muted); }

/* ============================================================
   SKELETON (transient loading only — never a fabricated value)
   ============================================================ */
.cp-sk { position: relative; overflow: hidden; background: var(--surface); border-radius: 2px; color: transparent !important; }
.cp-sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 12%, transparent), transparent);
  animation: cp-sh 1.35s infinite;
}
@keyframes cp-sh { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .cp-sk::after { animation: none; } }

/* ============================================================
   ARTICLE
   ============================================================ */
.cp-article { padding-top: 28px; padding-bottom: 48px; }
.cp-article__head { max-width: var(--col); }
.cp-article__standfirst { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.cp-byline { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; max-width: var(--col); }
.cp-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cp-byline__who { font-size: 14px; font-weight: 600; }
.cp-byline__when { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.cp-prose { max-width: var(--col); }
.cp-prose h2 { margin-top: 1.7em; }
.cp-prose h3 { margin-top: 1.4em; }
.cp-prose img { border-radius: var(--r); }
.cp-prose blockquote { margin: 1.5em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--brand); color: var(--muted); font-size: 19px; }
.cp-prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface); padding: 2px 5px; border-radius: 2px; }
.cp-prose figure { margin: 1.6em 0; }
.cp-prose figcaption { font-size: 13px; color: var(--muted); margin-top: 7px; }
/* Wide content must scroll in its own box, never the page body */
.cp-prose table, .cp-scroll { display: block; max-width: 100%; overflow-x: auto; }

/* Article furniture: TL;DR, key takeaways, sources (spec 5.1) */
.cp-tldr { border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--surface); border-radius: var(--r); padding: 14px 16px; margin: 0 0 24px; max-width: var(--col); }
.cp-tldr h2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; font-weight: 500; }
.cp-tldr p { margin: 0; font-size: 16px; line-height: 1.6; }
.cp-takeaways { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 14px 16px 16px; margin: 28px 0; max-width: var(--col); }
.cp-takeaways h2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
.cp-takeaways ul { margin: 0; padding-left: 20px; }
.cp-takeaways li { margin-bottom: 7px; font-size: 15.5px; line-height: 1.55; }
.cp-takeaways li:last-child { margin-bottom: 0; }
.cp-sources { border-top: 1px solid var(--line); padding-top: 14px; margin: 30px 0 0; max-width: var(--col); }
.cp-sources h2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.cp-sources ul { margin: 0; padding-left: 20px; }
.cp-sources li { font-size: 14px; color: var(--muted); margin-bottom: 5px; line-height: 1.5; }
.cp-figures { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; max-width: var(--col); }
.cp-figures th, .cp-figures td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.cp-figures th:first-child, .cp-figures td:first-child { text-align: left; }
.cp-figures thead th { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cp-figures td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* YMYL + disclosure blocks */
.cp-note { border: 1px solid var(--line); border-left: 3px solid var(--amber); background: var(--surface); padding: 12px 14px; border-radius: var(--r); font-size: 14px; color: var(--muted); margin: 0 0 20px; max-width: var(--col); }
.cp-note strong { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.cp-foot { background: var(--chrome-bg); color: #C6CFD5; margin-top: 56px; font-size: 14px; }
.cp-foot a { color: #C6CFD5; }
.cp-foot a:hover { color: var(--brand-bright); }
.cp-foot__top { display: grid; gap: 30px; grid-template-columns: 1.5fr repeat(3, 1fr); padding: 40px 0 32px; }
@media (max-width: 900px) { .cp-foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cp-foot__top { grid-template-columns: 1fr; } }
.cp-foot .cp-logo { color: var(--chrome-fg); }
.cp-foot h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--chrome-mute); margin: 0 0 12px; font-weight: 500; }
.cp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-foot__blurb { color: var(--chrome-mute); max-width: 42ch; margin: 12px 0 16px; font-size: 13.5px; line-height: 1.6; }
.cp-foot__social { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 4px; padding: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.cp-foot__bar { border-top: 1px solid var(--chrome-line); padding: 16px 0 26px; display: grid; gap: 10px; }
.cp-foot__ymyl { font-size: 12.5px; color: var(--chrome-mute); line-height: 1.6; max-width: 92ch; }
.cp-foot__copy { font-family: var(--font-mono); font-size: 12px; color: var(--chrome-mute); letter-spacing: .02em; }

/* ============================================================
   COMMENTS
   ============================================================ */
.cp-comments { max-width: var(--col); margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.cp-comments h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.cp-comments ol { list-style: none; margin: 0 0 24px; padding: 0; }
.cp-comments .comment { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 13px 15px; margin-bottom: 12px; }
.cp-comments .comment .children { list-style: none; margin: 12px 0 0 18px; padding: 0; }
.cp-comments .comment-author { font-weight: 600; font-size: 14.5px; }
.cp-comments .comment-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.cp-comments p { font-size: 15px; }
.cp-cform { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 16px; }
.cp-cform label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.cp-cform input[type=text], .cp-cform input[type=email], .cp-cform input[type=url], .cp-cform textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; margin-bottom: 12px; }
.cp-cform .form-submit { margin: 0; }
.cp-cform .comment-notes, .cp-cform .comment-form-cookies-consent { font-size: 12.5px; color: var(--muted); }
.cp-cform .comment-form-cookies-consent input { width: auto; margin-right: 6px; }

/* ============================================================
   PAGINATION / MISC
   ============================================================ */
.cp-pag { display: flex; gap: 8px; flex-wrap: wrap; padding: 30px 0; }
.cp-pag .page-numbers { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.cp-pag .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.cp-empty { padding: 60px 0; color: var(--muted); }
/* Vertical only: this class shares an element with .cp-wrap, and a padding
   shorthand here would zero .cp-wrap's horizontal gutter (text ran flush to the
   viewport edge on every section, worst on mobile). */
.cp-section { padding-top: 34px; padding-bottom: 34px; }
.cp-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.cp-section__head h2 { margin: 0; }
.cp-section__more { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
