/* patentlitigator.com · light Docket Board system (approved 2026-08-29)
   Single deliberate light theme; every surface painted explicitly. */

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --panel: #f6f4ee;
  --ink: #1f1c17;
  --body: #4c453b;
  --muted: #6f675c;
  --faint: #8a8171;
  --hair: #e7e2d8;
  --hair2: #ddd6c9;
  --accent: #7d2b2b;
  --dc: #3466c4;
  --dc-bg: rgba(52, 102, 196, 0.1);
  --ap: #7a4fc9;
  --ap-bg: rgba(122, 79, 201, 0.1);
  --itc: #bd6317;
  --itc-bg: rgba(189, 99, 23, 0.12);
  --camp: #b3403a;
  --camp-bg: rgba(179, 64, 58, 0.11);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 15px;
  padding-bottom: 15px;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em { color: var(--accent); font-style: normal; }
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  border: none;
  font: 600 13.5px var(--sans);
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.site-header .btn { margin-left: auto; }

.btn-ghost {
  display: inline-block;
  background: none;
  border: 1px solid var(--hair2);
  color: var(--ink);
  font: 500 13.5px var(--sans);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  padding: 52px 0 26px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.005em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-side { margin-left: auto; max-width: 40ch; }
.hero-side p { color: var(--muted); font-size: 15px; margin: 0 0 14px; line-height: 1.55; }

/* ---------- Filter chips ---------- */

.chips {
  display: flex;
  gap: 8px;
  padding: 10px 0 26px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  border: 1px solid var(--hair2);
  color: #575046;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
}
.chip-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 600;
}
.chip-div { width: 1px; height: 22px; background: var(--hair2); margin: 0 6px; }

/* ---------- Sections ---------- */

.section { padding: 8px 0 36px; scroll-margin-top: 76px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.section-head .when { color: var(--faint); font-size: 13px; }
.section-head .more-link {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.section-head .more-link:hover { color: var(--ink); }

/* ---------- Board cards ---------- */

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 210px;
}
.case-card:hover {
  border-color: #cfc7b6;
  box-shadow: 0 2px 10px rgba(31, 28, 23, 0.06);
}

.card-top { display: flex; align-items: center; gap: 8px; }
.card-top svg { margin-left: auto; color: #b5ac9c; flex-shrink: 0; }

.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge-district { color: var(--dc); background: var(--dc-bg); }
.badge-appeals { color: var(--ap); background: var(--ap-bg); }
.badge-itc { color: var(--itc); background: var(--itc-bg); }
.badge-campaign { color: var(--camp); background: var(--camp-bg); }

.case-name {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.case-name a { color: var(--ink); text-decoration: none; }
.case-name a:hover { color: var(--accent); }

.case-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

.case-sum { font-size: 13px; color: var(--body); line-height: 1.55; margin: 0; }

.tags { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  color: var(--faint);
  border: 1px solid #e2dccd;
  border-radius: 999px;
  padding: 3px 9px;
}

.more-card {
  border: 1px dashed var(--hair2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--faint);
  min-height: 210px;
  padding: 18px;
  text-align: center;
}
.more-card strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.more-card span { font-size: 12.5px; max-width: 24ch; }

/* ---------- Tracker table ---------- */

.table-scroll { overflow-x: auto; }

.tracker {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}
.tracker td:nth-child(3) { min-width: 240px; }
.tracker th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--panel);
}
.tracker td {
  padding: 15px 16px;
  border-bottom: 1px solid #eeeade;
  font-size: 13px;
  vertical-align: top;
  color: var(--body);
}
.tracker tr:last-child td { border-bottom: none; }
.tracker .tr-case {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  min-width: 200px;
}
.tracker .tr-next { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.tr-note { display: flex; gap: 8px; align-items: flex-start; min-width: 220px; }
.tr-note svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

/* ---------- Services ---------- */

.services-band {
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 30px 32px;
  background: var(--panel);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.services-band h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.005em;
  max-width: 14ch;
}
.services-lede { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; max-width: 34ch; line-height: 1.55; }
.services-conflicts { color: var(--faint); font-size: 11.5px; margin: 12px 0 0; max-width: 30ch; }
.svc { border-left: 1px solid var(--hair2); padding-left: 24px; }
.svc h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.svc p { color: #57503f; font-size: 13px; margin: 0; line-height: 1.55; }

.contact-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hair); margin-top: 10px; }
.site-footer .wrap {
  display: flex;
  gap: 40px;
  padding-top: 26px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}
.site-footer .wordmark { font-size: 12px; flex-shrink: 0; }
.site-footer p {
  color: #9a917f;
  font-size: 11.5px;
  max-width: 62ch;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Article (Ledger register) ---------- */

.article { max-width: 720px; margin: 0 auto; padding: 48px 0 24px; }

.article-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.article h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.16;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.standfirst {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 16px;
}

.byline {
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}

.article-body { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: #2e2922; }
.article-body p { margin: 0 0 18px; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  margin: 30px 0 10px;
  letter-spacing: -0.005em;
}

.sources {
  margin-top: 28px;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}
.sources h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}
.sources ul { margin: 0; padding-left: 18px; }
.sources li { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.disclaimer-box {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  line-height: 1.6;
}

/* ---------- Analysis index ---------- */

.article-list { max-width: 760px; margin: 0 auto; padding: 48px 0 40px; }
.article-list > h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.article-list .lede { color: var(--muted); font-size: 15px; margin: 0 0 26px; }

.list-item { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.list-item .article-kicker { margin-bottom: 8px; }
.list-item h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.25; }
.list-item h2 a { color: var(--ink); text-decoration: none; }
.list-item h2 a:hover { color: var(--accent); }
.list-item p { margin: 0 0 8px; font-family: var(--serif); font-size: 15.5px; color: var(--body); line-height: 1.55; }
.list-item .byline { border-bottom: none; padding-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-band { grid-template-columns: 1fr; gap: 20px; }
  .svc { border-left: none; padding-left: 0; border-top: 1px solid var(--hair2); padding-top: 18px; }
}

@media (max-width: 680px) {
  .site-header { position: static; }
  .section { scroll-margin-top: 12px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 36px; }
  .hero-side { margin-left: 0; }
  .board-grid { grid-template-columns: 1fr; }
  .case-card, .more-card { min-height: 0; }
  .site-header .wrap { gap: 12px; }
  .site-header .btn { margin-left: 0; }
  .article { padding-top: 32px; }
}

/* ---------- Contact page ---------- */

.contact-page { padding: 44px 0 60px; }
.contact-page h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; }
.contact-page .lede { color: var(--body); font-size: 16px; margin: 0 0 28px; max-width: 68ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1020px; }
.form-card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.field input, .field textarea { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--hair2); border-radius: 8px; padding: 10px 12px; font: 400 15px var(--sans); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.verify-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
#verify-status { font-size: 13.5px; color: var(--muted); }
#verify-status.verify-ok { color: #2e6b3f; font-weight: 600; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.form-alert { border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 14px 0 0; }
.alert-ok { background: rgba(46, 107, 63, 0.1); border: 1px solid #2e6b3f; color: #24532f; }
.alert-err { background: var(--camp-bg); border: 1px solid var(--camp); color: var(--camp); }
.form-note { font-size: 12px; color: var(--faint); margin: 16px 0 0; }
.note-card { background: var(--panel); border: 1px solid var(--hair); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.note-card h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.note-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--body); }
.note-card p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Chip filters ---------- */

.chips .chip[data-ft] { cursor: pointer; user-select: none; }
.chips .chip[data-ft]:hover { border-color: var(--accent); color: var(--accent); }
.chips .chip[data-ft]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.board-empty {
  background: var(--panel);
  border: 1px dashed var(--hair2);
  border-radius: 12px;
  padding: 22px 24px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
