/*
Theme Name: Our Idiot Government
Theme URI: https://ouridiotgovernment.com
Author: Our Idiot Government
Description: Dark-first public-record theme. Posts are filings. The front page is the poster mark, the desk copy, and the latest filings.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: oig
*/

@font-face {
  font-family: Anton;
  src: url("assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0e;
  --fg: #ece8e1;
  --muted: #cfc8bc;
  --surface: #17171a;
  --line: rgba(236, 232, 225, 0.18);
  --accent: #9c302c;
  --hot: #c4453c;
  --navy: #1e3a5f;
  --navy-deep: #132742;
  --kicker: #7ea0c8;
  --chalk-fixed: #ece8e1;
  --paper: #f4efe6;
  --font-display: Anton, "Arial Narrow", Impact, sans-serif;
  --font-label: "Bebas Neue", Anton, Impact, sans-serif;
  --font-kicker: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4efe6;
  --fg: #0c0c0e;
  --muted: #5c564e;
  --surface: #fffaf3;
  --line: rgba(12, 12, 14, 0.14);
  --kicker: #1e3a5f;
  color-scheme: light;
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
::selection { background: var(--accent); color: var(--chalk-fixed); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.shell {
  width: min(74rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--paper);
  color: var(--navy-deep);
  padding: 0.6rem 0.9rem;
  z-index: 40;
}
.skip:focus { transform: none; }

.topline {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topline-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
}
.brand-kicker {
  display: block;
  color: var(--kicker);
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--hot); }
.brand-rule {
  display: block;
  width: 0;
  min-width: 100%;
  height: 0.85rem;
  object-fit: fill;
  margin-top: 0.2rem;
}
[data-theme="light"] .brand-rule { filter: brightness(0); }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.15rem;
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.nav a {
  color: inherit;
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.nav a:hover,
.nav a.is-active { color: var(--hot); }
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}
.theme-btn:hover { border-color: var(--hot); color: var(--hot); }
.theme-icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.header-tools { display: grid; gap: 0.35rem; width: min(24rem, 100%); min-width: 0; }
.article-search { display: flex; align-items: flex-end; gap: 0.5rem; margin: 0; }
.article-search label { flex: 1; min-width: 0; }
.search-label { display: block; font-family: var(--font-kicker); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); }
.article-search input { display: block; width: 100%; min-width: 0; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--fg); font: 1rem var(--font-body); padding: 0.5rem 0.65rem; }
.article-search input::placeholder { color: var(--muted); opacity: 1; }
.article-search button { min-height: 2.75rem; padding: 0.4rem 0.8rem; border: 1px solid var(--accent); background: var(--accent); color: var(--chalk-fixed); font-family: var(--font-kicker); font-weight: 700; }
.article-search button:hover { background: var(--navy); border-color: var(--navy); }
@media (max-width: 800px) {
  .header-row { flex-wrap: wrap; }
  .header-tools { width: 100%; }
  .header-tools .nav { justify-content: flex-start; }
  .site-header { position: relative; }
}

.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem 0 2.75rem;
}
.hero figure,
.about-layout figure {
  margin: 0;
  width: min(100%, 28rem);
  justify-self: center;
  display: flex;
  justify-content: center;
}
.lockup,
.mark {
  width: auto;
  max-width: 100%;
  max-height: min(62vh, 34rem);
  height: auto;
  display: block;
}
.lockup-light,
.mark-light { display: none; }
[data-theme="light"] .lockup-dark,
[data-theme="light"] .mark-dark { display: none; }
[data-theme="light"] .lockup-light,
[data-theme="light"] .mark-light { display: block; }

.kicker {
  color: var(--kicker);
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
}
.hero h1 em { font-style: normal; color: var(--hot); }
.record-note {
  margin-top: 1.6rem;
  border-top: 3px solid var(--accent);
  padding-top: 0.85rem;
  max-width: 28rem;
  color: var(--muted);
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.record-note strong {
  display: block;
  color: var(--fg);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.tagline {
  margin: 1.35rem 0 0;
  color: var(--kicker);
  font-family: var(--font-kicker);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.filings { padding-bottom: 4.5rem; scroll-margin-top: 5.5rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 0.55rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head span {
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty {
  margin: 1.4rem 0 0;
  background: var(--surface);
  border: 1px dashed var(--line);
  padding: 1.6rem 1.4rem;
  max-width: 40rem;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.rules, .docket {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.principles-band {
  background: var(--accent);
  color: var(--chalk-fixed);
  --muted: var(--chalk-fixed);
  --kicker: var(--chalk-fixed);
  --line: rgba(236, 232, 225, 0.3);
  padding: 1.75rem 0;
}
.principles-band .rules { margin: 0; }
.principles-band .rules li { border-bottom: 0; }
.principles-band .rules li + li { border-top: 1px solid var(--line); }
.rules li {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.rules h3, .docket h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.rules p, .docket p { margin: 0; color: var(--muted); max-width: 36ch; }
.filings .docket p { max-width: 70ch; }
@media (max-width: 800px) {
  .filings .docket p { max-width: none; }
}
.docket { margin-top: 0.4rem; }
.docket li { border-bottom: 1px solid var(--line); }
.docket a { display: block; color: inherit; text-decoration: none; padding: 1.15rem 0; }
.docket a:hover h3 { color: var(--hot); }

.search-results-section { padding-top: 2rem; }
.search-results-section h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; line-height: 1.15; text-transform: uppercase; margin: 0 0 0.75rem; }
.search-summary { overflow-wrap: anywhere; margin: 0 0 1.25rem; color: var(--muted); }
.search-results-section .docket h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; margin: 0.4rem 0 0.6rem; overflow-wrap: anywhere; }
.search-results-section .docket a:hover h2 { color: var(--hot); }
.search-results-section .docket p { max-width: 62ch; }
.search-latest { color: var(--fg); }
.pagination { margin-top: 1.75rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--chalk-fixed); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.about-layout, .entry {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  padding: 1.75rem 0 4.5rem;
}
.about-layout figure { width: min(100%, 22rem); }
.about-copy { width: min(46rem, 100%); }
.entry { width: 100%; }
.about-copy h1 {
  margin: 0.55rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  line-height: 0.84;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.entry h1 {
  margin: 0.7rem 0 1.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.about-copy p, .entry-content p { margin: 0 0 1.15rem; max-width: 62ch; }
.desk-actions {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  max-width: 36rem;
}
.desk-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  width: fit-content;
  background: var(--accent);
  color: var(--chalk-fixed);
  text-decoration: none;
  font-family: var(--font-kicker);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.desk-action:hover { background: var(--navy); }
.desk-actions .article-search { margin: 0; max-width: 100%; }
.desk-actions .article-search label,
.desk-actions .search-label { display: block; }
.desk-actions .article-search input[type="search"] { width: 100%; min-width: 0; }
.desk-contact { display: grid; gap: 1rem; margin: 0.5rem 0 0; max-width: 36rem; }
.desk-contact label { display: block; }
.desk-contact input, .desk-contact textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--fg);
  font: 1rem var(--font-body);
  padding: 0.5rem 0.65rem;
}
.desk-contact textarea { min-height: 10rem; resize: vertical; }
.desk-contact button {
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--chalk-fixed);
  font-family: var(--font-kicker);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.desk-contact button:hover { background: var(--navy); border-color: var(--navy); }
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-status { max-width: 62ch; }
.contact-status-error { color: var(--hot); }
.contact-privacy { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted); max-width: 62ch; }
.contact-privacy a { color: var(--hot); }
.entry-content a { color: var(--hot); }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.9;
}
.entry-content ul, .entry-content ol { max-width: 62ch; }

/* Full-width headline, readable prose, and an evidence rail. */
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.entry-content { min-width: 0; overflow-wrap: anywhere; }
.entry-content :is(h2, h3, [id]) { scroll-margin-top: 9rem; }
.entry-content h2, .entry-content h3 { line-height: 1.15; }
.oig-sources { padding-left: 1.35rem; }
.oig-sources li { margin-bottom: 0.8rem; }
.case-rail { display: grid; gap: 1.2rem; min-width: 0; }
.case-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.case-summary { border-top: 3px solid var(--accent); }
.case-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
}
.case-summary h2 { color: var(--fg); font-size: 1.15rem; }
.case-card dl { margin: 0; }
.case-card dl > div { margin-bottom: 0.9rem; }
.case-card dt {
  font-family: var(--font-kicker);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card dd { margin: 0.15rem 0 0; font-size: 1rem; }
.case-card a { color: var(--fg); text-underline-offset: 0.2em; }
.case-card a:hover { color: var(--hot); }
.case-sources-link {
  display: block;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.case-sources-link > span:last-child { display: block; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; margin-top: 0.2rem; }
.case-record-title { font-family: var(--font-kicker); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.case-card p { margin: 0.8rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.case-fact { border-left: 3px solid var(--kicker); }
.case-fact p { color: var(--fg); font-size: 1.15rem; line-height: 1.45; }
.case-citation { display: block; margin-top: 1rem; font-size: 0.85rem; }
.case-related { list-style: none; padding: 0; margin: 0; }
.case-related li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .entry-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); gap: clamp(2rem, 5vw, 4.5rem); }
  .entry-layout-locked { grid-template-columns: minmax(0, 1fr); }
}

.site-footer {
  background: var(--navy-deep);
  color: var(--chalk-fixed);
  padding: 1.35rem 0 1.15rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(236, 232, 225, 0.22);
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--hot); }
.footer-bottom {
  padding-top: 0.85rem;
  color: var(--chalk-fixed);
  opacity: 0.7;
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 800px) {
  .rules { grid-template-columns: repeat(3, 1fr); }
  .principles-band .rules li + li { border-top: 0; }
  .rules li { padding: 1.5rem 1.4rem 1.7rem 0; }
  .rules li + li { border-left: 1px solid var(--line); padding-left: 1.4rem; }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(20rem, 30rem) minmax(0, 1fr);
    gap: 3.5rem;
    padding: 1.75rem 0 3.5rem;
  }
  .hero figure { width: 100%; justify-self: stretch; }
  .hero .lockup { max-height: min(78vh, 38rem); }
  .about-layout {
    grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
    gap: 3.25rem;
    padding-top: 2.25rem;
  }
}
@media (max-width: 720px) {
  .shell { width: min(74rem, calc(100% - 1.75rem)); }
  .topline-row span:last-child { display: none; }
  .header-row { align-items: flex-start; }
  .nav { font-size: 1.05rem; gap: 0.15rem 0.85rem; }
  .entry h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); line-height: 1.1; letter-spacing: 0.022em; }
}
