/* =============================================================================
 * THEME: WANTED
 * Texas western — wanted poster nailed to a saloon door. Aged hide parchment,
 * woodblock slab type, oxblood + sepia + gold. Reads like a bounty notice.
 * ============================================================================= */
:root {
  --hide: #E8DBB6; --hide-d: #C8B385; --hide-w: #F4E9C8;
  --ink: #1F140A; --oxblood: #5C1F18; --rust: #8A3621;
  --gold: #B8862E; --sepia: #6E5A3A;
  --woodtype: "Smokum","Rye",impact,serif;
  --rye: "Rye","Smokum",serif;
  --serif: "IM Fell English",Georgia,serif;
  --serif-sc: "IM Fell English SC","IM Fell English",serif;
  --tw: "Special Elite","Courier New",monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.22 0 0 0 0 0.10 0 0 0 0.30 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 12% 10%, rgba(110,70,30,0.30), transparent 35%),
    radial-gradient(ellipse at 88% 90%, rgba(60,30,10,0.30), transparent 35%),
    radial-gradient(ellipse at 60% 30%, rgba(255,240,200,0.20), transparent 50%),
    var(--hide);
  background-size: 220px 220px, auto, auto, auto, auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}
::selection { background: var(--oxblood); color: var(--hide-w); }
a { color: var(--oxblood); text-decoration-thickness: 1.5px; }
a:hover { color: var(--rust); }
img { max-width: 100%; }

.frame {
  max-width: 980px; margin: 1.5rem auto 4rem;
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,245,215,0.45), transparent 40%), var(--hide-w);
  padding: 2.2rem 2rem 2.5rem;
  border: 4px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 6px;
  box-shadow: 0 12px 30px rgba(60,30,10,0.35), 0 30px 60px rgba(0,0,0,0.18);
}
.frame::before, .frame::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  background: var(--ink); border-radius: 50%;
  box-shadow: inset -3px -3px 5px rgba(255,255,255,0.18);
}
.frame::before { top: 8px; left: 8px; }
.frame::after  { top: 8px; right: 8px; }
.frame .pin-l, .frame .pin-r {
  position: absolute; bottom: 8px; width: 22px; height: 22px;
  background: var(--ink); border-radius: 50%;
  box-shadow: inset -3px -3px 5px rgba(255,255,255,0.18);
}
.frame .pin-l { left: 8px; }
.frame .pin-r { right: 8px; }

.tag {
  display: block; text-align: center;
  font-family: var(--tw); font-size: 0.85rem;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--sepia); margin-bottom: 0.6rem;
}
.wanted {
  font-family: var(--woodtype); font-weight: 400;
  font-size: clamp(4rem, 14vw, 9.5rem); line-height: 0.85;
  letter-spacing: 0.02em; text-align: center; text-transform: uppercase;
  color: var(--ink); margin: 0;
  text-shadow: 1px 1px 0 var(--hide-d), 2px 2px 0 var(--sepia), 3px 3px 0 rgba(0,0,0,0.2);
}
.subline {
  text-align: center; font-family: var(--rye);
  font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--oxblood);
  margin: 0.5rem 0 0.2rem;
}
.dingbat {
  display: flex; align-items: center; justify-content: center;
  gap: 0.7rem; margin: 0.8rem 0 1rem;
  color: var(--ink); font-family: var(--rye); font-size: 1.4rem;
}
.dingbat::before, .dingbat::after {
  content: ""; flex: 1; height: 0;
  border-top: 2px solid var(--ink); max-width: 22%;
}

/* ---- nav ---- */
.nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  margin: 0.5rem 0 1.5rem;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 0.5rem 0;
}
.nav a {
  font-family: var(--rye); text-decoration: none; color: var(--ink);
  letter-spacing: 0.12em; font-size: 0.95rem; text-transform: uppercase;
  padding: 0.25rem 1.1rem; border-right: 1px solid var(--sepia);
}
.nav a:last-child { border-right: 0; }
.nav a:hover { color: var(--oxblood); }
.nav a.active { color: var(--oxblood); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- portrait + reward ---- */
.portrait {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 1.6rem; margin: 1rem auto 0.5rem;
  align-items: start; max-width: 760px;
}
@media (max-width: 720px) { .portrait { grid-template-columns: 1fr; max-width: 22rem; } }
.portrait .photo {
  background:
    repeating-linear-gradient(to right, rgba(0,0,0,0.06) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.06) 0 2px, transparent 2px 5px),
    linear-gradient(135deg, var(--hide-d), #9a7a4d);
  border: 3px solid var(--ink);
  aspect-ratio: 4/5;
  display: grid; place-items: center;
  font-family: var(--woodtype); font-size: 4rem;
  color: var(--oxblood); text-shadow: 1px 1px 0 var(--hide-w);
}
.portrait .blurb { font-size: 1.05rem; line-height: 1.65; }
.portrait .name {
  display: block; font-family: var(--woodtype);
  font-size: 2.4rem; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.4rem; color: var(--ink);
}
.portrait .alias {
  font-family: var(--serif-sc); letter-spacing: 0.18em;
  font-size: 0.95rem; color: var(--sepia); margin-bottom: 0.6rem;
}

.reward {
  margin: 1.4rem 0; text-align: center;
  border-top: 4px double var(--ink); border-bottom: 4px double var(--ink);
  padding: 0.85rem 0 0.95rem;
  background: rgba(255,245,215,0.4);
}
.reward .top {
  font-family: var(--serif-sc); letter-spacing: 0.36em;
  font-size: 1rem; text-transform: uppercase; color: var(--sepia);
}
.reward .amount {
  font-family: var(--woodtype); font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--oxblood); line-height: 1;
  letter-spacing: 0.04em; margin: 0.2rem 0;
}
.reward .for {
  font-family: var(--rye); font-size: 0.95rem;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---- buttons ---- */
.cta { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 0.5rem; }
.btn {
  display: inline-block; font-family: var(--rye);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 1rem;
  padding: 0.65rem 1.3rem; text-decoration: none;
  background: var(--ink); color: var(--hide-w);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--oxblood);
  cursor: pointer;
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); color: var(--hide-w); }
.btn.gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.gold:hover { background: #d6a138; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--hide-w); }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- video / "bounty" cards ---- */
.dispatches {
  margin-top: 2rem; border-top: 4px double var(--ink); padding-top: 1rem;
}
.dispatches h3 {
  font-family: var(--woodtype); font-size: 2.2rem;
  text-transform: uppercase; text-align: center;
  letter-spacing: 0.04em; margin: 0 0 0.8rem;
}
.dispatches h3 small {
  display: block; font-family: var(--serif-sc);
  font-size: 0.75rem; letter-spacing: 0.28em;
  color: var(--sepia); margin-top: 0.4rem;
}
.bounty-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bounty {
  border: 2px solid var(--ink); background: var(--hide-w);
  padding: 0; position: relative;
  text-decoration: none; color: var(--ink);
  display: block;
  transition: transform 0.1s, box-shadow 0.1s;
}
.bounty:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.bounty .thumb {
  aspect-ratio: 16/9;
  background: var(--ink) center/cover no-repeat;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.bounty .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bounty .stamp {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: var(--hide-w);
  font-family: var(--tw); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 2px 8px;
}
.bounty .stamp.live { background: var(--oxblood); }
.bounty .meta { padding: 0.85rem 1rem 1rem; }
.bounty .filed {
  font-family: var(--serif-sc); letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.78rem;
  color: var(--sepia); margin: 0 0 0.3rem;
}
.bounty h4 {
  font-family: var(--woodtype); font-size: 1.2rem;
  line-height: 1.1; text-transform: uppercase;
  margin: 0 0 0.3rem; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- generic page chrome (subpages) ---- */
.page-head { margin: 1.4rem 0 1.2rem; text-align: center; }
.page-head .kicker {
  font-family: var(--serif-sc); letter-spacing: 0.36em;
  text-transform: uppercase; font-size: 0.85rem; color: var(--sepia);
  margin-bottom: 0.4rem;
}
.page-head h1 {
  font-family: var(--woodtype); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.92;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 0.6rem; color: var(--ink);
  text-shadow: 1px 1px 0 var(--hide-d), 2px 2px 0 var(--sepia);
}
.page-head .lede {
  font-family: var(--serif); font-size: 1.05rem;
  max-width: 36em; margin: 0 auto;
}

/* ---- form ---- */
.intake {
  border: 2px solid var(--ink); background: rgba(255,245,215,0.4);
  padding: 1.4rem 1.4rem 1.6rem; position: relative;
  margin: 1.2rem auto 1.6rem; max-width: 640px;
}
.intake::before {
  content: attr(data-stamp);
  position: absolute; top: -12px; left: 1rem;
  background: var(--ink); color: var(--hide-w);
  font-family: var(--tw); font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 3px 9px;
}
.intake h2 {
  font-family: var(--woodtype); font-size: 1.6rem;
  text-transform: uppercase; margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
}
.form label {
  display: block; font-family: var(--serif-sc);
  font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sepia);
  margin-top: 1rem; margin-bottom: 0.3rem;
}
.form input[type="text"], .form input[type="email"], .form input[type="url"],
.form textarea, .form select, .form input[type="file"] {
  width: 100%; background: var(--hide-w); color: var(--ink);
  border: 2px solid var(--ink); padding: 0.6rem 0.8rem;
  font-family: var(--tw); font-size: 1rem;
  border-radius: 0;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--oxblood); border-color: var(--oxblood);
}
.form textarea { resize: vertical; min-height: 7em; font-family: var(--serif); }
.form-aside { margin-top: 1rem; border-top: 1px solid var(--sepia); padding-top: 0.6rem; }
.form-aside summary {
  cursor: pointer; font-family: var(--serif-sc);
  font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sepia);
  list-style: none; padding: 0.3rem 0;
}
.form-aside summary::-webkit-details-marker { display: none; }
.form-aside summary::before { content: "▸ "; color: var(--oxblood); }
.form-aside[open] summary::before { content: "▾ "; }

progress {
  appearance: none; width: 100%; height: 8px; margin-top: 0.7rem;
  background: var(--hide); border: 2px solid var(--ink);
}
progress::-webkit-progress-bar { background: var(--hide); }
progress::-webkit-progress-value { background: var(--oxblood); }
progress::-moz-progress-bar { background: var(--oxblood); }

.notice {
  padding: 0.7rem 1rem; border: 2px solid var(--ink);
  border-left-width: 6px;
  background: var(--hide-w);
  margin-bottom: 0.9rem;
  font-family: var(--serif); font-size: 1rem;
}
.notice-success { border-left-color: var(--gold); }
.notice-error { border-left-color: var(--oxblood); color: var(--oxblood); }

.muted { color: var(--sepia); font-family: var(--serif-sc); font-size: 0.85rem; letter-spacing: 0.12em; }

/* alt-channel block on subscribe page */
.alt-channel {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 4px double var(--ink); text-align: center;
}
.alt-channel h2 {
  font-family: var(--woodtype); font-size: 1.6rem;
  text-transform: uppercase; margin: 0 0 0.5rem;
}

/* prose (about page) */
.prose {
  max-width: 36em; margin: 0 auto;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.65;
}
.prose h2 {
  font-family: var(--woodtype); font-size: 1.6rem;
  text-transform: uppercase; margin: 1.4rem 0 0.5rem;
}
.prose ul { padding-left: 1.4rem; }
.prose ul li { margin-bottom: 0.4rem; }

/* donate */
.donate-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0;
}
.donate-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--hide-w);
  padding: 1.2rem 1.2rem 1.3rem;
  border: 2px solid var(--ink);
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
}
.donate-card:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--oxblood); color: var(--ink); }
.donate-card::before {
  content: attr(data-tier);
  position: absolute; top: -10px; right: 0.8rem;
  background: var(--gold); color: var(--ink);
  font-family: var(--tw); font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 2px 8px;
}
.donate-card h3 {
  font-family: var(--woodtype); font-size: 1.5rem;
  text-transform: uppercase; margin: 0 0 0.3rem;
}
.donate-card p { margin: 0; font-size: 0.95rem; color: var(--sepia); }

/* updates list */
.updates-list {
  margin: 1rem auto; max-width: 720px;
}
.update {
  border: 2px solid var(--ink); background: var(--hide-w);
  padding: 0.95rem 1.1rem 1.05rem; margin-bottom: 1rem;
  position: relative;
}
.update .kind {
  display: inline-block;
  font-family: var(--tw); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--ink); color: var(--hide-w);
  padding: 2px 7px;
}
.update .kind.kind-youtube { background: var(--oxblood); }
.update .kind.kind-facebook { background: #2c4a77; }
.update time {
  font-family: var(--serif-sc); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sepia); margin-left: 0.6rem;
}
.update-title {
  font-family: var(--woodtype); font-size: 1.4rem;
  text-transform: uppercase; margin: 0.4rem 0 0.4rem;
  letter-spacing: 0.02em; line-height: 1.05;
}
.update-title a { color: var(--ink); text-decoration: none; }
.update-title a:hover { color: var(--oxblood); }
.update-body { font-family: var(--serif); font-size: 1rem; line-height: 1.55; }

/* tip-done stamp */
.tip-done-stamp { text-align: center; margin: 1.6rem 0 1rem; }
.stamp {
  display: inline-block;
  font-family: var(--rye); font-size: 1.1rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 3px solid var(--gold); color: var(--gold);
  padding: 6px 14px;
  transform: rotate(-3deg);
}

.empty {
  text-align: center; padding: 1.6rem;
  font-family: var(--serif-sc); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sepia);
  border: 1px dashed var(--sepia);
}
code {
  font-family: var(--tw); font-size: 0.92em;
  background: var(--hide); padding: 1px 6px;
  border: 1px solid var(--sepia);
}

/* foot */
.foot {
  margin-top: 2.5rem; text-align: center;
  border-top: 2px solid var(--ink); padding-top: 1.2rem;
  font-family: var(--serif-sc); letter-spacing: 0.18em;
  font-size: 0.85rem; color: var(--sepia); text-transform: uppercase;
}
.foot .imprint {
  font-family: var(--rye); font-size: 1.1rem;
  letter-spacing: 0.06em; color: var(--ink);
  text-transform: uppercase; margin-bottom: 0.4rem;
}

.theme-switch {
  position: fixed; top: 0.8rem; right: 0.8rem; z-index: 99;
  font-family: var(--tw); font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--ink); color: var(--hide-w);
  padding: 6px 10px; text-decoration: none;
  border: 2px solid var(--ink);
}
.theme-switch:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--hide-w); }


/* ──────────────── ADA / WCAG 2.2 AA ────────────────
   Shared accessibility primitives mirrored from site.css. */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden; z-index: 10000;
}
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; left: 1rem; top: 1rem;
  width: auto; height: auto; padding: 0.75rem 1rem;
  background: #ffd400; color: #0d0d0d; font-weight: 700;
  text-decoration: none; outline: 3px solid #0d0d0d;
  outline-offset: 2px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  font-family: system-ui, -apple-system, sans-serif;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffd400; outline-offset: 2px; border-radius: 2px;
}
main:focus-visible, [role="main"]:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
