/* Courtroom Time — the video edit look: beige board, polaroids, record cards,
   Anton headlines, Courier Prime type, red numbers, yellow highlighter. */
:root {
  color-scheme: light;
  --board: #d3c6a8;
  --board-2: #c4b593;
  --board-3: #b5a47f;
  --white: #fbfaf5;
  --sheet: #f6f2e7;
  --ink: #1b1b1b;
  --ink-2: #3a3226;
  --muted: #5e5546;
  --red: #c8102e;
  --yellow: #ffe14a;
  --strip: #efe08a;
  --line: rgba(27, 27, 27, 0.14);
  --wrap: 1180px;
  --title: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --type: 'Courier Prime', 'Courier New', monospace;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 22px 40px -18px rgba(40, 30, 10, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--board);
  /* the faint screen grid from the video boards */
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .28), transparent 60%),
    radial-gradient(ellipse at center, transparent 55%, rgba(60, 45, 20, .22) 100%),
    repeating-linear-gradient(0deg, rgba(60, 45, 20, .045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(60, 45, 20, .035) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 99; font-family: var(--type); }
.skip:focus { left: 16px; }

/* ── Header: the black record bar ─────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font: 400 22px/1 var(--title); letter-spacing: .04em; text-transform: uppercase; }
.head-right { display: flex; align-items: center; gap: 14px; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: #cfc8b8; font: 700 13.5px/1 var(--type); letter-spacing: .16em; text-transform: uppercase; padding: 10px 12px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--white); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--yellow); }
.icons { display: flex; align-items: center; gap: 6px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #cfc8b8; border: 1px solid #3d3d3d; transition: color .2s, border-color .2s; }
.icon-link svg { display: block; }
.icon-link.yt:hover { color: #ff3b30; border-color: #ff3b30; }
.icon-link.sp:hover { color: #1ed760; border-color: #1ed760; }
.menu-btn { display: none; background: none; border: 1px solid #3d3d3d; color: var(--white); padding: 8px 12px; font: 700 13px var(--type); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; padding: 10px 16px 18px; background: var(--ink); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 15px; }
  .site-header .icons { display: none; }
}

/* ── Type ─────────────────────────────── */
h1, h2, h3 { font-family: var(--title); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(46px, 8vw, 96px); }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 26px; line-height: 1.08; }
p { margin: 0 0 1em; }
.red { color: var(--red); }
.label { display: inline-block; background: var(--ink); color: var(--white); font: 700 13px/1 var(--type); letter-spacing: .2em; text-transform: uppercase; padding: 9px 14px 8px; margin-bottom: 22px; }
.label.light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.lede { font-size: clamp(18px, 2.1vw, 20px); color: var(--ink-2); max-width: 600px; }
.hl { background: linear-gradient(transparent 8%, var(--yellow) 8%, var(--yellow) 92%, transparent 92%); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.type { font-family: var(--type); }

/* ── Buttons ──────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 14px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; padding: 16px 22px 15px; transition: transform .15s, box-shadow .2s, background .2s; border: 2px solid var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--red); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ── Paper pieces (shared) ────────────── */
.polaroid { background: var(--white); padding: 14px 14px 0; box-shadow: var(--shadow); transform: rotate(var(--r, -3deg)); }
.brand .logo-anim { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #000; display: block; }
.polaroid video { width: 100%; height: auto; aspect-ratio: 720 / 612; object-fit: cover; display: block; background: #2a2620; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; filter: sepia(.12) contrast(1.03); }
.polaroid figcaption { font: 700 clamp(16px, 2vw, 22px)/1.15 var(--type); letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 16px 6px 6px; }
.polaroid figcaption small { display: block; font: 400 12.5px/1.3 var(--type); letter-spacing: .2em; color: var(--muted); padding: 6px 0 14px; }
figure { margin: 0; }

.record { background: var(--white); box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); }
.record-bar { background: var(--ink); color: var(--white); font: 700 13px/1.3 var(--type); letter-spacing: .2em; text-transform: uppercase; padding: 12px 20px; }
.record-main { padding: 18px 22px 14px; }
.record-main h1, .record-main h2, .record-main h3 { margin: 0; }
.record-no { display: block; font: 400 15px var(--type); letter-spacing: .12em; color: #6d675c; margin-top: 8px; }
.record-strip { background: var(--strip); color: var(--red); font: 700 14px/1.45 var(--type); letter-spacing: .12em; text-transform: uppercase; padding: 12px 22px; border-top: 1px solid rgba(0, 0, 0, .06); }

.tape { display: inline-block; background: var(--white); box-shadow: var(--shadow); font: 700 clamp(15px, 2vw, 20px)/1.2 var(--type); letter-spacing: .14em; text-transform: uppercase; padding: 12px 18px; }

.big-num { font: 400 clamp(64px, 10vw, 120px)/.9 var(--title); color: var(--red); }
.big-num + .big-word { font: 400 clamp(28px, 4vw, 44px)/1 var(--title); text-transform: uppercase; }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before { /* blurred legal text under glass, like the video boards */
  content: 'IN THE NAME AND BY AUTHORITY OF THE STATE OF TEXAS. The defendant was placed on community supervision and ordered to comply with the following conditions of supervision. Commit no offense against the laws of this State. Report to the supervision officer as directed. Submit to testing as directed. A court retains jurisdiction to hold a hearing and to proceed with an adjudication of guilt. IN THE NAME AND BY AUTHORITY OF THE STATE OF TEXAS. The defendant was placed on community supervision and ordered to comply with the following conditions of supervision. Commit no offense against the laws of this State. Report to the supervision officer as directed.';
  position: absolute; left: -10%; top: -20%; width: 130%; font: 46px/1.5 Georgia, serif; color: #3a3226; opacity: .13; filter: blur(4px); transform: rotate(-8deg); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8vw, 110px); }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); }
.collage { position: relative; min-height: 470px; }
.collage .polaroid { position: absolute; left: 0; top: 96px; width: 60%; --r: -3.5deg; z-index: 3; }
.collage .record { position: absolute; right: 0; top: 0; width: 64%; --r: 2deg; z-index: 1; }
.collage .record h2 { font-size: clamp(26px, 3vw, 40px); }
.collage .count { position: absolute; right: 0; bottom: 70px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; z-index: 4; }
.collage .tape-wrap { position: absolute; right: 2%; bottom: 8px; z-index: 4; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .collage { min-height: 0; display: grid; gap: 22px; padding-bottom: 20px; }
  .collage .polaroid, .collage .record, .collage .count, .collage .tape-wrap { position: static; width: auto; }
  .collage .polaroid { width: min(82%, 380px); order: -1; }
  .collage .count { justify-content: center; }
  .collage .tape-wrap { text-align: center; }
}

.page-hero { position: relative; }
.page-hero .wrap { padding: clamp(52px, 8vw, 90px) 0 clamp(20px, 4vw, 36px); }
.page-hero .record { max-width: 900px; --r: -.8deg; }
.page-hero .record h1 { font-size: clamp(42px, 7vw, 84px); }
.page-hero .lede { margin-top: 30px; }

/* ── Sections ─────────────────────────── */
section.block { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); max-width: 500px; margin: 0; }
.section-head h2 { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: var(--white); box-shadow: var(--shadow); }
.step:nth-child(1) { transform: rotate(-1deg); } .step:nth-child(2) { transform: rotate(.8deg); } .step:nth-child(3) { transform: rotate(-.5deg); }
.step .record-bar::before { counter-increment: step; content: 'STEP 0' counter(step) ' · '; color: var(--yellow); }
.step .in { padding: 22px 24px 26px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font: 400 clamp(56px, 8vw, 96px)/.95 var(--title); color: var(--red); }
.stat span { display: inline-block; margin-top: 10px; background: var(--white); box-shadow: var(--shadow); font: 700 13px/1.3 var(--type); letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 34px 16px; } }

/* ── Case cards = polaroids ───────────── */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 34px; }
@media (max-width: 380px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); padding: 14px 14px 18px; box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); transition: transform .25s ease, box-shadow .25s ease; }
.case-card:nth-child(3n+1) { --r: -1.6deg; } .case-card:nth-child(3n+2) { --r: 1.1deg; } .case-card:nth-child(3n) { --r: -.6deg; }
.case-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.015); box-shadow: 0 34px 60px -24px rgba(40, 30, 10, .7); z-index: 2; }
.case-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2620; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.14) contrast(1.04); }
.case-card .tab { position: absolute; left: 0; top: 14px; background: var(--ink); color: var(--white); font: 700 11.5px/1 var(--type); letter-spacing: .16em; text-transform: uppercase; padding: 8px 10px; }
.case-card .body { padding: 16px 6px 0; display: flex; flex-direction: column; flex: 1; }
.case-card h3 { margin-bottom: 10px; }
.case-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.case-card .meta { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font: 700 12px var(--type); letter-spacing: .12em; text-transform: uppercase; color: var(--red); border-top: 2px dashed #d8d0bd; padding-top: 12px; }
.case-card .meta span:last-child { color: var(--muted); }
.case-card.featured { grid-column: span 2; flex-direction: row; gap: 26px; padding: 16px; }
.case-card.featured .thumb { flex: 1.1; aspect-ratio: auto; min-height: 340px; }
.case-card.featured .body { flex: 1; padding: 10px 8px 4px 0; }
.case-card.featured h3 { font-size: clamp(34px, 3.6vw, 48px); }
.case-card.featured p { font-size: 17px; }
@media (max-width: 760px) { .case-card.featured { grid-column: auto; flex-direction: column; gap: 0; padding: 14px 14px 18px; } .case-card.featured .thumb { min-height: 0; aspect-ratio: 4/3; } .case-card.featured .body { padding: 16px 6px 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.chip { border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 700 12.5px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px 9px; cursor: pointer; transition: background .15s; }
.chip:hover { background: var(--yellow); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--white); }

/* ── Case page ────────────────────────── */
.case-top .wrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 44px; align-items: center; padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); }
.case-top .polaroid { --r: -3.5deg; }
.case-top .record { --r: .8deg; }
.case-top .record h1 { font-size: clamp(36px, 5.6vw, 72px); }
.crumbs { font: 700 13px var(--type); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.crumbs a { color: var(--red); }
@media (max-width: 900px) { .case-top .wrap { grid-template-columns: 1fr; } .case-top .polaroid { width: min(80%, 320px); } }

.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .case-layout { grid-template-columns: 1fr; gap: 40px; } }
.sheet { background: var(--sheet); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 44px); }
.prose { font-size: 18.5px; line-height: 1.7; }
.prose .lede-q { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--title); text-transform: uppercase; margin-bottom: 24px; }
.file-card { position: sticky; top: 88px; transform: rotate(1deg); }
.file-card dl { margin: 0; padding: 20px 22px 22px; }
.file-card dt { font: 700 11.5px var(--type); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-top: 16px; }
.file-card dt:first-child { margin-top: 0; }
.file-card dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.5; }
@media (max-width: 960px) { .file-card { position: static; transform: none; } }

.subhead { display: inline-block; background: var(--ink); color: var(--white); font: 700 13px/1 var(--type); letter-spacing: .2em; text-transform: uppercase; padding: 9px 14px 8px; margin: 52px 0 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: baseline; background: var(--white); box-shadow: 0 10px 24px -16px rgba(40, 30, 10, .6); padding: 14px 18px; }
.timeline b { font: 400 22px/1.1 var(--title); text-transform: uppercase; color: var(--red); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.law-list { display: grid; gap: 16px; }
.law-item { display: block; text-decoration: none; background: var(--white); box-shadow: 0 12px 26px -16px rgba(40, 30, 10, .6); transition: transform .2s; }
.law-item:hover { transform: translateX(4px); }
.law-item .record-bar { font-size: 12px; padding: 9px 16px; }
.law-item b { display: block; font: 400 24px/1.1 var(--title); text-transform: uppercase; padding: 14px 16px 4px; }
.law-item p { color: var(--ink-2); font-size: 15px; margin: 0; padding: 0 16px 14px; }

.note { background: var(--strip); padding: 18px 22px; font-size: 15px; color: var(--ink-2); }
.note a { color: var(--red); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a { text-decoration: none; background: var(--white); box-shadow: var(--shadow); padding: 18px 22px; transition: transform .2s; }
.pager a:hover { transform: translateY(-3px); }
.pager small { display: block; font: 700 12px var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.pager b { font: 400 22px/1.1 var(--title); text-transform: uppercase; }
.pager .next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }

/* ── Law library ──────────────────────── */
.law-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.law-index { position: sticky; top: 88px; background: var(--white); box-shadow: var(--shadow); padding: 18px 20px; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; }
.law-index b { display: block; font: 700 11.5px var(--type); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin: 18px 0 6px; }
.law-index b:first-child { margin-top: 0; }
.law-index a { display: block; text-decoration: none; padding: 3px 0; }
.law-index a:hover { background: var(--yellow); }
@media (max-width: 900px) { .law-layout { grid-template-columns: 1fr; } .law-index { display: none; } }
.law-group { margin-bottom: 60px; }
.law-group > h2 { margin-bottom: 26px; }
.law-entry { background: var(--white); box-shadow: var(--shadow); margin-bottom: 26px; scroll-margin-top: 90px; }
.law-entry:nth-child(even) { transform: rotate(.35deg); } .law-entry:nth-child(odd) { transform: rotate(-.35deg); }
.law-entry .record-bar a { color: var(--yellow); text-decoration: none; }
.law-entry .record-bar a:hover { text-decoration: underline; }
.law-entry .in { padding: 20px 24px 6px; }
.law-entry h3 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 0; }
.law-entry .record-strip { color: var(--red); }
.law-entry .text { padding: 18px 24px 8px; }
.law-entry .text p { color: var(--ink-2); max-width: 720px; }
.law-entry .seen { font: 700 12.5px/1.6 var(--type); letter-spacing: .08em; text-transform: uppercase; padding: 0 24px 20px; margin: 0; }
.law-entry .seen a { color: var(--red); }

/* ── About / contact ──────────────────── */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.two-col .polaroid { --r: 2.5deg; max-width: 440px; justify-self: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.rules, .contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.rule { background: var(--white); box-shadow: var(--shadow); }
.rule .in { padding: 20px 24px 24px; }
.rule h3 { font-size: 28px; }
.rule p { color: var(--ink-2); margin: 0; font-size: 16px; }
.rule:nth-child(odd) { transform: rotate(-.6deg); } .rule:nth-child(even) { transform: rotate(.5deg); }
@media (max-width: 760px) { .rules, .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; }
.contact-card .in { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.contact-card .in p { flex: 1; }
.contact-card .btn { align-self: flex-start; margin-top: 8px; }

.legal { max-width: 820px; }
.legal h2 { font-size: 30px; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-2); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--red); }

/* CTA */
.cta { background: var(--ink); color: var(--white); padding: clamp(34px, 6vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; transform: rotate(-.6deg); box-shadow: var(--shadow); }
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { color: #cfc8b8; margin: 0; max-width: 560px; }
.cta .btn { border-color: var(--yellow); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────── */
.site-footer { background: var(--ink); color: #cfc8b8; padding: 56px 0 36px; margin-top: 60px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font: 700 12px var(--type); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin: 0 0 14px; }
.foot-grid a { display: block; text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: var(--white); }
.foot-grid .brand { display: flex; color: var(--white); }
.foot-grid .icon-link { display: inline-flex; padding: 0; }
.foot-icons { margin-top: 18px; gap: 10px; }
.foot-legal { border-top: 1px solid #333; margin-top: 40px; padding-top: 22px; font: 400 13px var(--type); letter-spacing: .06em; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

.illus { font: 400 11px var(--type); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
