/* ============================================================
   TexasAntiSlapp.com — one stylesheet, no framework.
   Colours come
   from the TexasAntiSlapp logo (orange #FF9900, grey #585858).
   The logo orange is only 2:1 on the page background, so it is used
   for decoration only — text and links use --accent, the same hue
   darkened until it passes WCAG AA (5.2:1 on --bg).
   ============================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #2E3033;         /* headings, header, footer */
  --grey: #585858;        /* logo grey */
  --accent: #9A5800;      /* links, labels — logo orange darkened to pass AA */
  --accent-d: #7A4500;    /* hover */
  --orange: #FF9900;      /* logo orange: decoration only, never text */
  --bg: #FAF8F5;
  --card: #FFFFFF;
  --line: #E4DED5;
  --text: #1F2529;
  --muted: #55606B;
  --note: #FFF6E5;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-d); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); margin: 0 0 0.45em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem); margin: 1.7em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.5em 0 0.4em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.wrap--text { width: min(740px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.8rem; }
.eyebrow a { color: inherit; text-decoration: none; } .eyebrow a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 0; }
.brand img { width: 240px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: var(--radius); }
.site-nav a:hover { background: var(--bg); color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }

/* ---------- Home ---------- */
.hero { background: var(--ink); color: #ECEAE6; padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 64px); border-bottom: 4px solid var(--orange); }
.hero__inner { max-width: 780px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }
.hero p { font-size: 1.15rem; max-width: 62ch; }
.eyebrow--light { color: var(--orange); }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.4rem; }
.hero__links a { color: #fff; font-weight: 600; }
.hero__links a:hover { color: var(--orange); }
.latest { padding: 40px 0 64px; }
.latest__bar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.latest__bar h2 { margin: 0 0 12px; }

/* ---------- Lists of case notes ---------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item a { display: block; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.item a:hover { background: var(--card); }
.item a:hover .item__title { color: var(--accent); }
.item__meta { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.item__title { display: block; font: 650 1.2rem/1.3 var(--serif); color: var(--ink); margin: 4px 0; }
.item__desc { display: block; color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.page { padding: 44px 0 64px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.jump a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.jump a span { color: var(--muted); margin-left: 4px; }
.jump a:hover { border-color: var(--accent); }
.court { scroll-margin-top: 16px; }
.search { margin: 24px 0 8px; max-width: 640px; }
.search label { display: block; font-weight: 600; margin-bottom: 6px; }
.search { --pagefind-ui-primary: var(--accent); --pagefind-ui-text: var(--text); --pagefind-ui-border: var(--line); --pagefind-ui-font: var(--sans); --pagefind-ui-border-radius: 6px; }

/* ---------- Posts and pages ---------- */
.post { padding: 44px 0 24px; }
.post__meta { color: var(--muted); margin: 0 0 1.4rem; }
.note { background: var(--note); border-left: 4px solid var(--orange); padding: 14px 18px; margin: 0 0 1.8rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.97rem; }
.note p { margin: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: #3A4148; font-family: var(--serif); font-size: 1.05rem; }
.prose blockquote p { margin: 0.5em 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ink); color: #fff; font-weight: 600; }
.prose td:first-child { font-weight: 600; width: 30%; }
.post__disclaimer { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2.4rem; }
.portrait { width: 220px; border-radius: var(--radius); float: right; margin: 0 0 16px 24px; }
.more { padding: 8px 0 64px; }
.more h2 { margin-top: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D6D1; padding: 40px 0 44px; font-size: 0.93rem; margin-top: 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer__grid p { margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__head { font-weight: 600; color: #fff; }
.site-footer__name { font: 700 1.2rem/1.2 var(--serif); color: #fff; }
.site-footer__legal { border-top: 1px solid #4A4D52; margin-top: 28px; padding-top: 18px; font-size: 0.85rem; color: #BDB9B3; }
.site-footer__legal p { margin: 0 0 6px; }

@media (max-width: 600px) {
  .brand img { width: 200px; }
  .site-nav a { padding: 6px 9px; font-size: 0.9rem; }
  .portrait { float: none; width: 180px; margin: 0 0 16px; }
  .prose td:first-child { width: auto; }
}
