/* Cross Link Partners — Design System
   Brand: #000 black / #E01C24 red / #FFFFFF white / Arial Bold */

:root {
  --clp-black: #000000;
  --clp-red: #E01C24;
  --clp-white: #FFFFFF;
  --clp-gray-muted: #B4B4B9;
  --clp-gray-faint: #6E6E73;
  --clp-divider: #1f1f23;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--clp-black);
  color: var(--clp-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }

.clp-h1 { font-size: 96px; line-height: 0.98; letter-spacing: -0.02em; font-weight: 700; }
.clp-h2 { font-size: 56px; line-height: 1.02; letter-spacing: -0.015em; font-weight: 700; }
.clp-h3 { font-size: 32px; line-height: 1.1;  letter-spacing: -0.01em;  font-weight: 700; }
.clp-body { font-size: 16px; line-height: 1.55; color: #d8d8dc; margin: 0; }
.clp-meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clp-gray-faint); }
.clp-accent { color: var(--clp-red); }

/* ── Brand tick (32×3 red bar above section labels) ── */
.clp-tick {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--clp-red);
  margin-bottom: 14px;
}

/* ── Eyebrow label ── */
.clp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clp-white);
}
.clp-eyebrow .label { color: var(--clp-red); margin-left: 6px; }

/* ── Section label block ── */
.clp-section-label { display: flex; flex-direction: column; gap: 0; }

/* ── CTA button ── */
.clp-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--clp-red);
  color: #fff;
  border: 0;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
}
.clp-cta:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }

.clp-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #fff;
  border: 1px solid #2a2a2e;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s;
}
.clp-cta-ghost:hover { border-color: #fff; }

/* ── Divider ── */
.clp-rule { height: 1px; background: var(--clp-divider); border: 0; margin: 0; }

/* ── Image placeholder ── */
.clp-ph {
  position: relative;
  background-color: #0a0a0c;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.025) 0 2px,
    transparent 2px 14px
  );
  border: 1px solid #1a1a1d;
  overflow: hidden;
}
.clp-ph::after {
  content: attr(data-label);
  position: absolute; left: 12px; top: 12px;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--clp-gray-faint);
  text-transform: uppercase;
}

/* ── Arrow SVG ── */
.clp-arrow {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

/* ── Nav links ── */
.clp-nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B4B4B9;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color .2s;
}
.clp-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #E01C24;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.clp-nav-link:hover { color: #fff; }
.clp-nav-link:hover::after { transform: scaleX(1); }
.clp-nav-link.is-active { color: #fff; }
.clp-nav-link.is-active::after { transform: scaleX(1); }

/* ── Footer links ── */
.clp-footer-link {
  font-size: 14px;
  color: #d8d8dc;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
  display: inline-block;
}
.clp-footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #E01C24;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.clp-footer-link:hover { color: #fff; }
.clp-footer-link:hover::after { transform: scaleX(1); }

/* ── Scroll to top ── */
.clp-scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--clp-red); color: #fff;
  border: 0; cursor: pointer; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.clp-scroll-top.visible { opacity: 1; pointer-events: auto; }
.clp-scroll-top:hover { opacity: 0.9; }

/* ── Mobile nav drawer ── */
.clp-mobile-menu {
  position: fixed; inset: 0;
  background: #000;
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.clp-mobile-menu.open { transform: translateY(0); }
.clp-mobile-menu nav {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  gap: 4px;
}
.clp-mobile-menu nav a {
  font-size: 36px; font-weight: 700; letter-spacing: -0.01em;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1d;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.clp-mobile-menu nav a .num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: #6E6E73;
}
.clp-mobile-menu nav a.active { color: var(--clp-red); }
body.menu-open { overflow: hidden; }

/* ── Legal pages ── */
.clp-legal-wrap { max-width: 800px; padding: 64px 64px 100px; }
.clp-legal-section { margin-top: 56px; padding-top: 56px; border-top: 1px solid #1a1a1d; }
.clp-legal-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.clp-legal-h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; color: #fff; }
.clp-legal-h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #E01C24; margin: 28px 0 10px; }
.clp-legal-p { font-size: 15px; line-height: 1.7; color: #B4B4B9; margin-bottom: 14px; }
.clp-legal-p:last-child { margin-bottom: 0; }
.clp-legal-p a { color: #fff; border-bottom: 1px solid #3a3a3e; transition: border-color .15s; }
.clp-legal-p a:hover { border-color: #E01C24; }
.clp-legal-ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.clp-legal-ul li { font-size: 15px; line-height: 1.6; color: #B4B4B9; padding-left: 20px; position: relative; }
.clp-legal-ul li::before { content: '—'; position: absolute; left: 0; color: #E01C24; font-weight: 700; }
.clp-legal-box { background: #0a0a0c; border: 1px solid #1a1a1d; border-left: 3px solid #E01C24; padding: 20px 24px; margin: 24px 0; }
.clp-legal-box p { font-size: 14px; line-height: 1.65; color: #B4B4B9; margin: 0; }
.clp-legal-date { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6E6E73; margin-top: 48px; padding-top: 24px; border-top: 1px solid #1a1a1d; }

/* ── Blog listing ── */
.clp-posts-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:2px; margin-top:2px; }
.clp-post-card { background:#0a0a0c; border:1px solid #111; display:flex; flex-direction:column; overflow:hidden; transition:border-color .2s; position:relative; }
.clp-post-card:hover { border-color:#2a2a2e; }
.clp-post-card::after { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:#E01C24; transform:scaleX(0); transform-origin:left; transition:transform .3s; }
.clp-post-card:hover::after { transform:scaleX(1); }
.clp-post-card-thumb { aspect-ratio:16/8; overflow:hidden; background:#111; }
.clp-post-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; filter:brightness(.85); }
.clp-post-card:hover .clp-post-card-thumb img { transform:scale(1.04); }
.clp-post-card-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#0e0e11 0%,#1a1a1d 100%); }
.clp-post-card-body { padding:28px 28px 32px; display:flex; flex-direction:column; gap:12px; flex:1; }
.clp-post-card-meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.clp-post-card-cat { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#E01C24; background:rgba(224,28,36,.1); border:1px solid rgba(224,28,36,.25); padding:3px 10px; border-radius:2px; }
.clp-post-card-date { font-size:11px; color:#6E6E73; letter-spacing:.04em; }
.clp-post-card-title { font-size:20px; font-weight:700; letter-spacing:-.02em; line-height:1.25; color:#fff; }
.clp-post-card-excerpt { font-size:14px; line-height:1.6; color:#B4B4B9; flex:1; }
.clp-post-card-link { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#E01C24; margin-top:8px; transition:gap .15s; }
.clp-post-card-link:hover { gap:14px; }
.clp-post-card-link svg { transition:transform .15s; }
.clp-post-card:hover .clp-post-card-link svg { transform:translateX(3px); }

/* pagination */
.clp-pagination { display:flex; justify-content:center; align-items:center; gap:6px; padding:48px 0; }
.clp-pagination a, .clp-pagination span { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; font-size:13px; font-weight:700; color:#6E6E73; border:1px solid #1a1a1d; border-radius:4px; transition:all .15s; }
.clp-pagination a:hover { border-color:#fff; color:#fff; }
.clp-pagination .current { background:#E01C24; border-color:#E01C24; color:#fff; }

/* archive header */
.clp-archive-label { display:inline-flex; align-items:center; gap:8px; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#E01C24; background:rgba(224,28,36,.1); border:1px solid rgba(224,28,36,.2); padding:5px 12px; border-radius:2px; margin-bottom:20px; }

/* ── Single post ── */
.clp-single-hero-img { width:100%; aspect-ratio:21/8; object-fit:cover; display:block; filter:brightness(.75); }
.clp-single-wrap { max-width:800px; margin:0 auto; padding:64px 64px 100px; }
.clp-single-meta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:32px; }
.clp-single-cat { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#E01C24; background:rgba(224,28,36,.1); border:1px solid rgba(224,28,36,.25); padding:4px 12px; border-radius:2px; }
.clp-single-date { font-size:12px; color:#6E6E73; letter-spacing:.04em; }
.clp-single-author { font-size:12px; color:#6E6E73; }
.clp-single-title { font-size:42px; font-weight:800; letter-spacing:-.025em; line-height:1.12; margin-bottom:40px; }
.clp-single-divider { border:none; border-top:1px solid #1a1a1d; margin:48px 0; }

/* post content rich text */
.clp-post-content { font-size:17px; line-height:1.75; color:#d8d8dc; }
.clp-post-content p { margin:0 0 24px; }
.clp-post-content h2 { font-size:26px; font-weight:800; letter-spacing:-.02em; color:#fff; margin:48px 0 16px; }
.clp-post-content h3 { font-size:20px; font-weight:700; color:#fff; margin:36px 0 12px; }
.clp-post-content h4 { font-size:16px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:#E01C24; margin:28px 0 10px; }
.clp-post-content strong { color:#fff; font-weight:700; }
.clp-post-content em { font-style:italic; color:#B4B4B9; }
.clp-post-content a { color:#fff; border-bottom:1px solid #3a3a3e; transition:border-color .15s; }
.clp-post-content a:hover { border-color:#E01C24; }
.clp-post-content ul, .clp-post-content ol { margin:0 0 24px; padding-left:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.clp-post-content ul li, .clp-post-content ol li { padding-left:24px; position:relative; color:#B4B4B9; }
.clp-post-content ul li::before { content:'—'; position:absolute; left:0; color:#E01C24; font-weight:700; }
.clp-post-content ol { counter-reset:clp-ol; }
.clp-post-content ol li::before { counter-increment:clp-ol; content:counter(clp-ol)'.'; position:absolute; left:0; color:#E01C24; font-weight:700; font-size:13px; }
.clp-post-content blockquote { border-left:3px solid #E01C24; margin:36px 0; padding:20px 24px; background:#0a0a0c; }
.clp-post-content blockquote p { font-size:18px; font-style:italic; color:#fff; margin:0; line-height:1.6; }
.clp-post-content img { width:100%; border-radius:4px; margin:8px 0 24px; }
.clp-post-content code { font-family:monospace; font-size:.9em; background:#111; padding:2px 6px; border-radius:3px; color:#E01C24; }
.clp-post-content pre { background:#0a0a0c; border:1px solid #1a1a1d; padding:20px 24px; border-radius:4px; overflow-x:auto; margin:0 0 24px; }
.clp-post-content pre code { background:none; padding:0; color:#d8d8dc; }
.clp-post-content hr { border:none; border-top:1px solid #1a1a1d; margin:40px 0; }

/* post nav prev/next */
.clp-post-nav { display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-top:2px; }
.clp-post-nav-item { background:#0a0a0c; border:1px solid #1a1a1d; padding:24px 28px; transition:border-color .2s; display:flex; flex-direction:column; gap:6px; }
.clp-post-nav-item:hover { border-color:#2a2a2e; }
.clp-post-nav-item.next { text-align:right; align-items:flex-end; }
.clp-post-nav-label { font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#6E6E73; }
.clp-post-nav-title { font-size:15px; font-weight:700; color:#fff; line-height:1.3; }

/* ── Responsive type ── */
@media (max-width: 900px) {
  .clp-h1 { font-size: 44px; line-height: 1.02; }
  .clp-h2 { font-size: 32px; line-height: 1.05; }
  .clp-h3 { font-size: 22px; }
  .clp-cta { padding: 14px 22px; font-size: 13px; }
  .clp-body { font-size: 15px; }
  .clp-legal-wrap { padding: 40px 24px 80px; }
  .clp-posts-grid { grid-template-columns: 1fr; }
  .clp-post-card-body { padding: 20px 20px 24px; }
  .clp-post-card-title { font-size: 18px; }
  .clp-single-wrap { padding: 40px 24px 80px; }
  .clp-single-title { font-size: 28px; }
  .clp-post-content { font-size: 16px; }
  .clp-post-content h2 { font-size: 22px; }
  .clp-post-nav { grid-template-columns: 1fr; }
}
