/* ===========================================================================
   Dirty Deals — An Oklahoma Accountability Project
   Brand tokens first, then layout in page order.
   =========================================================================== */

:root {
  /* Paper and ink */
  --paper:    #F4F0E7;   /* page background */
  --card:     #FBF8F1;   /* raised panels: tip line, case files */
  --ink:      #1B1917;   /* headings, hard rules */
  --body:     #3A352F;   /* running text */
  --muted:    #5A544C;   /* labels, eyebrows */
  --faint:    #8C857A;   /* "coming soon" text */
  --rule:     #C9C0AE;   /* hairlines, input borders */
  --tan:      #D8C9A3;   /* source-list ticks, scrollbar */

  /* Stamp red */
  --red:      #8A2A22;
  --red-dark: #6A1E18;

  /* The hatched placeholder fill on empty video slots */
  --hatch-a:  #EAE4D6;
  --hatch-b:  #E1DACA;

  --serif: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --mono:  'Courier Prime', 'Courier New', Courier, monospace;

  --wrap:  1180px;
  --gutter: 20px;
}

/* --------------------------------------------------------------- base ---- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { letter-spacing: -.01em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Anchored panels sit below the sticky masthead. */
[id] { scroll-margin-top: 110px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  z-index: 50;
}
.skip:focus { left: 8px; top: 8px; color: var(--paper); }

/* Small caps-y monospace label used all over the page. */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--red   { color: var(--red); font-size: 11px; letter-spacing: .2em; margin-bottom: 10px; }
.eyebrow--tight { font-size: 10px; letter-spacing: .2em; margin-bottom: 14px; }

/* ----------------------------------------------------------- masthead ---- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 46px; width: auto; display: block; }
.brand__words {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--red); }
.nav__out { color: var(--red); }

/* --------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 48px;
  align-items: start;
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--rule);
}

.hero__lede { min-width: 0; }

.hero__logo { margin: 0 0 26px -6px; }
.hero__logo img { width: 100%; max-width: 520px; display: block; }

.hero__hook {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 22em;
  text-wrap: pretty;
}

.hero__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 26px;
  max-width: 34em;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- buttons -- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--tight { gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }

.btn--solid {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--paper); }

.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Case-file row: lighter weight than the hero pair. */
.btn--outline {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 20px;
  font-size: 12px;
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn--soon {
  border: 1px dashed var(--rule);
  color: var(--faint);
  padding: 12px 20px;
  font-size: 12px;
  cursor: default;
}

/* ----------------------------------------------------------- tip line ---- */

.tip {
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 26px;
}

.tip__title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }

.tip__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.tip__form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }
.field__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip input,
.tip textarea {
  font-family: var(--mono);
  font-size: 14px;
  padding: 11px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.tip textarea { resize: vertical; }
.tip input::placeholder,
.tip textarea::placeholder { color: var(--faint); }
.tip input:focus, .tip textarea:focus { border-color: var(--red); outline: none; }

.tip__form .btn { justify-self: start; }
.tip__form .btn[disabled] { opacity: .55; cursor: progress; }

/* Honeypot — off-screen, never announced, never tab-stopped. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tip__status {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: var(--red);
}
.tip__status:empty { display: none; }

.tip__done { padding: 14px 0; }
.tip__thanks { font-size: 18px; line-height: 1.5; margin: 0; text-wrap: pretty; }

.tip__fine {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ---------------------------------------------------------- sections ----- */

.section { padding: 56px 0; }
.section--episodes { padding-bottom: 8px; }
.section--rule { border-top: 2px solid var(--ink); }
#clips { margin-top: 32px; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.section--episodes .section__head { margin-bottom: 28px; }

.section__title { font-size: 38px; font-weight: 700; margin: 0; }

.section__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 26px;
  max-width: 46em;
  text-wrap: pretty;
}
#files .section__intro { margin-bottom: 34px; }

/* -------------------------------------------------------- episode rows --- */

.ep {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.ep__media, .ep__text { min-width: 0; }

.ep__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 9px;
}
.ep__meta .eyebrow { font-size: 11px; letter-spacing: .18em; }

.ep__title { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 0 0 10px; text-wrap: pretty; }

.ep__subject { font-family: var(--mono); font-size: 13px; color: var(--red); margin: 0 0 14px; }

.ep__blurb { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0 0 18px; text-wrap: pretty; }

.ep__links { margin: 0; }

.ulink {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
}
.ulink:hover { text-decoration: none; border-bottom-color: var(--red-dark); }

/* ------------------------------------------------------ video placeholder */

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(135deg, var(--hatch-a) 0 12px, var(--hatch-b) 12px 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
}

.embed__slot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.embed__note {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* Loaded state: a poster with a play button, then the real iframe on click. */
.embed.is-armed { padding: 0; cursor: pointer; background: var(--ink); border-color: var(--ink); }
.embed.is-armed .embed__slot,
.embed.is-armed .embed__note { display: none; }

.embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.embed__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(27, 25, 23, .28);
  cursor: pointer;
  padding: 0;
  width: 100%;
  transition: background-color .15s;
}
.embed__play:hover { background: rgba(27, 25, 23, .12); }
.embed__play::after {
  content: "";
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23F4F0E7'/%3E%3C/svg%3E") no-repeat 54% 50% / 34px 34px;
  box-shadow: 0 2px 14px rgba(27, 25, 23, .35);
}

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------- clips ---- */

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--tan); border-radius: 8px; }

.clip { flex: 0 0 auto; width: 206px; scroll-snap-align: start; margin: 0; }

.clip__frame {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(135deg, var(--hatch-a) 0 12px, var(--hatch-b) 12px 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 10px;
}

.clip__len {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--paper);
  padding: 4px 7px;
}
.clip__note { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); }

.clip__title { font-size: 16px; font-weight: 600; margin: 0 0 4px; text-wrap: pretty; }
.clip__from {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------- case files ---- */

.file {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 30px;
  margin-bottom: 26px;
}
.file__body { min-width: 0; }

.file__title { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; text-wrap: pretty; }
.file__subject { font-family: var(--mono); font-size: 13px; color: var(--red); margin: 0 0 22px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}
.facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; }

.file__srchead {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin: 0 0 12px;
}

.sources {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.sources li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 2px solid var(--tan);
}

.file__stamp { justify-self: end; text-align: center; }
.file__stamp img { width: 130px; display: block; opacity: .92; margin: 0 auto 6px; }
.file__number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}

/* ------------------------------------------------------------- footer ---- */

.foot { border-top: 2px solid var(--ink); }

.foot__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 56px;
}
.foot__brand, .foot__social { min-width: 0; }

.foot__logo { width: 230px; display: block; margin: 0 0 18px -4px; }

.foot__domain {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.foot__line {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  max-width: 32em;
  text-wrap: pretty;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.chip--live { border: 1px solid var(--red); color: var(--red); }
.chip--live:hover { background: var(--red); color: var(--paper); text-decoration: none; }
.chip--soon { border: 1px dashed var(--rule); color: var(--faint); }

.foot__legal {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* ------------------------------------------------------------- narrow ---- */

@media (max-width: 640px) {
  .hero { padding: 40px 0 36px; gap: 36px; }
  .hero__hook { font-size: 22px; }
  .section { padding: 40px 0; }
  .section__title { font-size: 30px; }
  .ep__title { font-size: 26px; }
  .file { padding: 22px; }
  .file__title { font-size: 24px; }
  .file__stamp { justify-self: start; }
  .tip { padding: 22px; }
  .brand__words { display: none; }
  .nav { gap: 16px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------- print ---- */

@media print {
  .masthead, .nav, .tip, .rail, .btn-row, .skip { display: none !important; }
  body { background: #fff; }
  .file { break-inside: avoid; border-color: #999; }
}
