/* The Spurs Truth — full rebuild: editorial tabloid design */

:root {
  --navy: #10193f;
  --navy-2: #1a2657;
  --ink: #121319;
  --ink-2: #3a3c47;
  --muted: #6b6e7d;
  --paper: #faf9f4;
  --white: #ffffff;
  --line: #e5e2d6;
  --red: #cf1b34;
  --red-dark: #9e1428;
  --red-soft: #fdecee;
  --shadow-sm: 0 1px 2px rgba(16, 25, 63, .08), 0 1px 3px rgba(16, 25, 63, .06);
  --shadow-md: 0 6px 14px rgba(16, 25, 63, .10), 0 16px 32px rgba(16, 25, 63, .12);
  --radius: 4px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0a0f26; --navy-2: #131c47;
    --paper: #0c0e16; --white: #12141f;
    --line: #262a3d; --ink: #eceffb; --ink-2: #c3c6da; --muted: #888ca3;
    --red: #ff4d63; --red-dark: #ff7a8a; --red-soft: #26131a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 16px rgba(0,0,0,.4), 0 16px 34px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.68;
  color: var(--ink-2); background: var(--paper); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.home-wide { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; font-weight: 700; }
.skip:focus { left: 0; }

/* ---------- masthead ---------- */
.masthead { background: var(--navy); border-bottom: 3px solid var(--red); }
.masthead .wrap-wide { padding-top: 1rem; padding-bottom: 1rem; }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand-badge {
  width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-badge svg path { fill: var(--navy); }
.brand-badge svg { display: block; }
.brand-name { font-family: var(--display); font-weight: 400; font-size: 1.32rem; letter-spacing: .015em; text-transform: uppercase; color: #fff; }
.brand-name small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-top: .1rem; }
.mast-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mast-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; font-weight: 700; }
.mast-nav a:hover { color: #fff; }
.mast-follow {
  display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4); padding: .38rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none;
}
.mast-follow:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- ticker ---------- */
.ticker { background: var(--red); color: #fff; }
.ticker .home-wide { display: flex; align-items: center; gap: .8rem; padding-top: .55rem; padding-bottom: .55rem; }
.ticker .tag { font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; background: #fff; color: var(--red); padding: .18rem .55rem; border-radius: 3px; flex: none; }
.ticker a { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker a:hover { text-decoration: underline; }

/* ---------- homepage hero ---------- */
.home-hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.4rem; align-items: start;
  padding: 2.6rem 0 2.2rem; border-bottom: 1px solid var(--line);
}
.home-hero .eyebrow {
  display: inline-block; color: #fff; background: var(--navy); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 3px; margin: 0 0 .9rem;
}
.home-hero h1 {
  font-family: var(--display); font-size: clamp(2.1rem, 1.4rem + 3vw, 3.2rem); line-height: 1.02;
  font-weight: 400; margin: 0 0 .9rem; color: var(--ink); text-transform: uppercase; letter-spacing: .002em;
}
.home-hero p.lede { font-size: 1.1rem; color: var(--ink-2); margin: 0; max-width: 32rem; }
.home-hero .hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 4/5; }
.home-hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.byline-row { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.byline-row img { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid var(--red); object-fit: cover; }
.byline-row .who { font-size: .84rem; color: var(--muted); }
.byline-row .who strong { color: var(--ink); display: block; font-size: .92rem; }

@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.8rem 0 1.6rem; }
  .home-hero .hero-photo { aspect-ratio: 16/9; order: -1; }
}

/* ---------- crumb ---------- */
.crumb { font-size: .84rem; color: var(--muted); margin: 1.3rem auto 0; max-width: 46rem; padding: 0 1.25rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }
.crumb span { margin: 0 .3rem; opacity: .55; }

/* ---------- typography ---------- */
main { padding: 2rem 0 4rem; }
h1 { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); line-height: 1.06; font-weight: 400; color: var(--ink); margin: 0 0 1rem; text-transform: uppercase; }
h2 { font-size: 1.3rem; line-height: 1.3; font-weight: 800; color: var(--ink); margin: 2.3rem 0 .75rem; }
h3 { font-size: 1.06rem; font-weight: 700; color: var(--ink); margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.15rem; }
a { color: var(--navy-2); text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 2px; font-weight: 600; }
a:hover { color: var(--red-dark); }
strong { color: var(--ink); font-weight: 700; }
ul, ol { padding-left: 1.35rem; margin: 0 0 1.15rem; }
li { margin-bottom: .55rem; }
li::marker { color: var(--red); font-weight: 700; }
blockquote { border-left: 4px solid var(--red); margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; color: var(--ink); font-style: italic; font-size: 1.06rem; }

.kicker { display: inline-block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--red); padding: .3rem .7rem; border-radius: 3px; margin: 0 0 .9rem; }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }

.post-byline { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.post-byline img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.post-byline .meta strong { display: block; color: var(--ink); font-size: .96rem; }
.post-byline .meta span { color: var(--muted); font-size: .84rem; }

figure.hero-img { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
figure.hero-img img { width: 100%; height: auto; display: block; }
figure.hero-img figcaption { font-size: .78rem; color: var(--muted); padding: .5rem .1rem 0; }

/* ---------- post list (homepage) ---------- */
.postlist { list-style: none; padding: 0; margin: 0 0 2.4rem; border-top: 2px solid var(--ink); }
.postrow { border-bottom: 1px solid var(--line); }
.postrow a.pc-link { display: grid; grid-template-columns: 2.6rem 5.5rem 1fr; gap: 1.1rem; align-items: center; padding: 1.15rem 0; text-decoration: none; color: inherit; }
.postrow .pc-num { font-family: var(--display); font-size: 1.5rem; color: var(--red); text-align: right; }
.postrow .pc-img { width: 5.5rem; height: 5.5rem; border-radius: var(--radius); overflow: hidden; background: var(--navy); flex: none; }
.postrow .pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postrow .pc-body { min-width: 0; }
.postrow .pc-date { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .3rem; }
.postrow h3 { font-family: var(--display); font-weight: 400; margin: 0 0 .3rem; font-size: 1.18rem; line-height: 1.18; text-transform: uppercase; color: var(--ink); }
.postrow p { font-size: .9rem; color: var(--muted); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.postrow a.pc-link:hover h3 { color: var(--red-dark); }
.postrow:first-child a.pc-link { padding-top: 1.3rem; }

@media (max-width: 560px) {
  .postrow a.pc-link { grid-template-columns: 1.6rem 4rem 1fr; gap: .8rem; }
  .postrow .pc-num { font-size: 1.2rem; }
  .postrow .pc-img { width: 4rem; height: 4rem; }
  .postrow h3 { font-size: 1.02rem; }
  .postrow p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 0; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .86rem; }

/* ---------- X embeds ---------- */
.x-feed { margin: 1.6rem 0 2.4rem; }
.x-feed .twitter-tweet { margin: 0 auto 1.2rem !important; }

/* ---------- sidebar / about card ---------- */
.about-card {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  margin: 2.2rem 0; box-shadow: var(--shadow-sm);
}
.about-card img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); flex: none; }
.about-card h3 { margin: 0 0 .3rem; }
.about-card p { margin: 0 0 .6rem; font-size: .92rem; }
.about-card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--navy); color: #fff;
  border: 0; border-radius: 999px; padding: .68rem 1.35rem; font-family: inherit; font-size: .94rem;
  font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn.gold { background: var(--red); color: #fff; }
.btn.gold:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--paper); color: var(--navy); }

.tool { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; margin: 2rem 0; box-shadow: var(--shadow-md); }
.tool h2 { margin-top: 0; font-size: 1.18rem; }

/* ---------- toc / related ---------- */
.toc {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 1.8rem 0; box-shadow: var(--shadow-sm);
}
.toc p { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--navy); margin: 0 0 .6rem; }
.toc ul { list-style: none; padding-left: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.toc li { margin-bottom: .4rem; break-inside: avoid; }
.toc a { font-size: .92rem; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.toc a:hover { color: var(--red-dark); text-decoration: underline; }

.related { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.6rem; }
.related h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 .9rem; font-weight: 700; }
.related ul { display: grid; gap: .55rem; list-style: none; padding-left: 0; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.related li { margin: 0; }
.related a { font-size: .93rem; text-decoration: none; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 3rem; border-top: 3px solid var(--red); }
footer .wrap { padding: 2.2rem 1.25rem; font-size: .87rem; }
footer p { margin: 0 0 .7rem; max-width: 40rem; }
footer strong { color: #fff; }
footer a { color: rgba(255,255,255,.88); }
footer a:hover { color: var(--red); }
.footlinks { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; }
.footlinks a { text-decoration: none; font-weight: 600; }
.footlinks a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .about-card { flex-direction: column; }
  .brand-name small { display: none; }
  .mast-nav { order: 3; width: 100%; justify-content: center; gap: 1rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.15); }
  .mast-follow span { display: none; }
  .mast-follow { padding: .5rem .65rem; }
  .ticker a { white-space: normal; }
}

@media print {
  .masthead, .ticker, footer, .related, .no-print { display: none; }
  body { background: #fff; color: #000; }
}
