/* =============================================================================
 * THEME: PICKET
 * Cardboard protest signs nailed to a fence. Hand-marker on corrugated
 * board, every block of content is a sign held up at the steps. Tilted,
 * bold, tactile. Texas, loud.
 * ============================================================================= */
:root {
  --backdrop: #2C3322;
  --board: #C9A36A; --board2: #B98A4F;
  --shadow: #5C3F1E; --ink: #1A140A;
  --red: #C41E1E; --hi: #F4C03A; --rope: #8a7a55;
  /* AA-friendly variant of --red used as foreground text on the
     dark --backdrop (the original --red on backdrop is only 2.21:1). */
  --red-on-dark: #FF8B8B;
  --marker: "Permanent Marker","Bradley Hand",cursive;
  --huge: "Bowlby One",impact,sans-serif;
  --type: "Special Elite","Courier New",monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.18), transparent 60%),
    var(--backdrop);
  color: #f0ead6;
  font-family: var(--type);
  font-size: 16px; line-height: 1.5;
  min-height: 100vh;
}
::selection { background: var(--red); color: #fff; }
a { color: #f0ead6; }
a:hover { color: var(--hi); }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }

/* shared cardboard texture */
.board, .sign {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--board) 0%, var(--board2) 100%);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
}
.tape {
  position: absolute;
  width: 80px; height: 22px;
  background: rgba(245, 235, 200, 0.55);
  border: 1px solid rgba(0,0,0,0.15);
}

/* nav tabs nailed up at the top */
.tabs {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem;
}
.tab {
  display: inline-block;
  padding: 0.55rem 1rem 0.6rem;
  background: var(--board); color: var(--ink);
  font-family: var(--marker); font-size: 1.1rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  position: relative;
}
.tab::before {
  content: ""; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; background: #1a1a1a; border-radius: 50%;
  transform: translateX(-50%);
}
.tab:nth-child(1) { transform: rotate(-2deg); }
.tab:nth-child(2) { transform: rotate(1.4deg); }
.tab:nth-child(3) { transform: rotate(-1deg); background: var(--hi); }
.tab:nth-child(4) { transform: rotate(2deg); }
.tab:nth-child(5) { transform: rotate(-2.4deg); }
.tab:nth-child(6) { transform: rotate(1.6deg); background: var(--hi); }
.tab.active { background: var(--red); color: #fff; }
.tab:hover { transform: rotate(0) translate(-1px,-1px); }

/* hero */
.hero {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }

.bigsign {
  padding: 1.6rem 1.6rem 1.8rem;
  transform: rotate(-1.2deg);
  position: relative;
}
.bigsign::after {
  content: ""; position: absolute;
  top: -22px; left: 12%; right: 12%;
  height: 3px; background: var(--rope);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.holetop {
  position: absolute; top: -8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--backdrop);
  border: 2px solid var(--ink);
}
.h1 { left: 14%; }
.h2 { right: 14%; }
.bigsign .kicker {
  display: inline-block;
  font-family: var(--marker); font-size: 1.4rem;
  background: var(--red); color: #fff;
  padding: 2px 12px;
  transform: rotate(-1.5deg);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 0.6rem;
}
.bigsign h1 {
  font-family: var(--huge);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.92;
  margin: 0.2rem 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-shadow: -2px 2px 0 rgba(0,0,0,0.18);
}
.bigsign h1 em { font-style: normal; color: var(--red); }
.bigsign h1 u {
  text-decoration: underline;
  text-decoration-thickness: 7px;
  text-decoration-color: var(--ink);
}
.bigsign p {
  font-family: var(--marker);
  font-size: 1.35rem; line-height: 1.25;
  margin: 0.5rem 0; color: var(--ink); max-width: 22em;
}
.bigsign p.fine {
  font-family: var(--type); font-size: 0.95rem;
  line-height: 1.5; max-width: 36em;
}

.btnrow { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }
.btn {
  display: inline-block; padding: 0.55rem 1.1rem;
  text-decoration: none; cursor: pointer;
  font-family: var(--huge); font-size: 1rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.fl { background: var(--red); color: #fff; }
.btn.fl:hover { background: var(--ink); }
.btn.go { background: var(--hi); }
.btnrow > .btn:nth-child(1) { transform: rotate(-1.5deg); }
.btnrow > .btn:nth-child(2) { transform: rotate(1.5deg); }
.btnrow > .btn:nth-child(3) { transform: rotate(-1deg); }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.findsign {
  padding: 1rem 1.2rem 1.2rem;
  transform: rotate(2.2deg);
}
.findsign h3 {
  font-family: var(--huge); font-size: 1.4rem;
  line-height: 0.95; text-transform: uppercase;
  margin: 0 0 0.6rem; color: var(--ink);
}
.findsign h3 em { font-style: normal; color: var(--red); }
.findsign dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.32rem 0.7rem; font-family: var(--marker); font-size: 1.05rem; }
.findsign dt { color: var(--red); }
.findsign dd { margin: 0; color: var(--ink); }
.findsign dd a { color: var(--ink); }

/* fence sections (cards) */
.fence {
  margin-top: 3rem;
  position: relative;
}
.fence::before {
  content: ""; position: absolute;
  top: 26px; left: 0; right: 0;
  height: 6px; background: var(--rope);
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.fence .head {
  position: relative;
  margin-bottom: 1.4rem;
  display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap;
}
.fence .head h3 {
  font-family: var(--huge); font-size: 1.8rem;
  text-transform: uppercase; margin: 0;
  background: var(--hi); color: var(--ink);
  padding: 4px 14px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  transform: rotate(-1.2deg);
}
.fence .head em { font-style: normal; color: var(--hi); font-family: var(--marker); font-size: 1.2rem; }

.signs {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding-top: 1rem;
}
.smallsign {
  padding: 0; position: relative;
  margin-top: 1.4rem;
  display: block; text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.smallsign::before {
  content: ""; position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 18px;
  background: var(--rope);
  box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.smallsign:nth-child(odd)  { transform: rotate(-1.5deg); }
.smallsign:nth-child(even) { transform: rotate(1.5deg); }
.smallsign:nth-child(3n)   { background-color: var(--hi); }
.smallsign:hover { transform: rotate(0) translate(-1px,-1px); }
.smallsign .thumb {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.smallsign .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smallsign .stamp {
  position: absolute; top: 8px; left: 8px;
  display: inline-block;
  font-family: var(--marker); font-size: 0.95rem;
  background: var(--red); color: #fff;
  padding: 1px 8px;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}
.smallsign .stamp.live { background: var(--ink); color: var(--hi); }
.smallsign .meta { padding: 0.85rem 1rem 1rem; }
.smallsign h4 {
  font-family: var(--huge); font-size: 1.15rem;
  line-height: 1.05;
  margin: 0.2rem 0 0.4rem;
  text-transform: uppercase; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.smallsign p { margin: 0; font-family: var(--type); font-size: 0.9rem; color: var(--ink); }
.smallsign .filed {
  font-family: var(--marker); font-size: 0.95rem;
  margin-top: 0.5rem; color: var(--shadow);
}

/* ---- subpage chrome ---- */
.page-head {
  margin: 2rem 0 1.4rem;
  padding: 1.4rem 1.6rem;
  transform: rotate(-0.6deg);
}
.page-head .kicker {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: var(--marker); font-size: 1.05rem;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
  margin-bottom: 0.5rem;
}
.page-head h1 {
  font-family: var(--huge); font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.92; text-transform: uppercase;
  margin: 0 0 0.5rem; color: var(--ink);
  text-shadow: -2px 2px 0 rgba(0,0,0,0.18);
}
.page-head .lede {
  font-family: var(--marker); font-size: 1.2rem;
  margin: 0; max-width: 36em; color: var(--ink);
}

/* ---- form ---- */
.intake {
  padding: 1.4rem 1.5rem 1.6rem; position: relative;
  margin: 0 0 1.6rem;
  transform: rotate(-1deg);
}
.intake .tape {
  top: -10px; left: 30%; transform: rotate(-4deg);
}
.intake h2 {
  font-family: var(--huge); font-size: 1.6rem;
  text-transform: uppercase; margin: 0 0 0.8rem;
  color: var(--ink);
}
.form label {
  display: block; font-family: var(--marker);
  font-size: 1.05rem; color: var(--red);
  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: #fff8e0; color: var(--ink);
  border: 2px solid var(--ink); padding: 0.6rem 0.8rem;
  font-family: var(--type); font-size: 1rem;
  border-radius: 0;
}
.form input:focus, .form textarea:focus {
  outline: 3px solid var(--red); border-color: var(--red);
}
.form textarea { resize: vertical; min-height: 7em; }
.form-aside { margin-top: 1rem; border-top: 2px dashed var(--ink); padding-top: 0.6rem; }
.form-aside summary {
  cursor: pointer; font-family: var(--marker);
  font-size: 1.05rem; color: var(--red);
  list-style: none; padding: 0.3rem 0;
}
.form-aside summary::-webkit-details-marker { display: none; }
.form-aside summary::before { content: "▸ "; }
.form-aside[open] summary::before { content: "▾ "; }

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

.notice {
  padding: 0.7rem 1rem; border: 3px solid var(--ink);
  background: #fff8e0;
  margin-bottom: 0.9rem;
  font-family: var(--marker); font-size: 1.1rem;
  color: var(--ink);
  transform: rotate(-1deg);
}
.notice-success { background: var(--hi); }
.notice-error { background: #ffd6d6; color: var(--red); }

.muted { color: var(--shadow); font-family: var(--marker); font-size: 1rem; }

/* alt-channel block */
.alt-channel {
  margin-top: 2rem; padding: 1.2rem 1.4rem 1.4rem;
  transform: rotate(1deg);
}
.alt-channel h2 {
  font-family: var(--huge); font-size: 1.4rem;
  text-transform: uppercase; margin: 0 0 0.4rem;
  color: var(--ink);
}

/* prose (about) */
.prose {
  padding: 1.4rem 1.6rem; max-width: 740px; margin: 0 auto;
  transform: rotate(-0.4deg);
}
.prose h2 {
  font-family: var(--huge); font-size: 1.5rem;
  text-transform: uppercase; margin: 1.2rem 0 0.4rem;
  color: var(--ink);
}
.prose p { font-family: var(--type); font-size: 1rem; color: var(--ink); margin: 0.5rem 0; }
.prose ul { margin: 0.5rem 0 1rem; padding-left: 1.4rem; color: var(--ink); }
.prose ul li { margin-bottom: 0.4rem; font-family: var(--marker); font-size: 1.1rem; }
.prose a { color: var(--red); }

/* donate cards */
.donate-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0;
}
.donate-card {
  display: block; text-decoration: none;
  padding: 1.2rem 1.2rem 1.3rem;
  position: relative; color: var(--ink);
  transition: transform 0.1s;
}
.donate-card:nth-child(odd) { transform: rotate(-1.5deg); }
.donate-card:nth-child(even) { transform: rotate(1.2deg); }
.donate-card:nth-child(3n) { background-color: var(--hi); }
.donate-card:hover { transform: rotate(0) translate(-1px,-1px); }
.donate-card::before {
  content: attr(data-tier);
  position: absolute; top: -10px; right: 0.8rem;
  background: var(--red); color: #fff;
  font-family: var(--marker); font-size: 1rem;
  padding: 1px 8px;
  border: 2px solid var(--ink);
  transform: rotate(2deg);
}
.donate-card h3 {
  font-family: var(--huge); font-size: 1.5rem;
  text-transform: uppercase; margin: 0 0 0.3rem;
  color: var(--ink);
}
.donate-card p { margin: 0; font-family: var(--type); font-size: 0.95rem; color: var(--ink); }

/* updates list */
.updates-list { margin: 1rem 0; }
.update {
  padding: 1rem 1.2rem; margin-bottom: 1.4rem;
  position: relative;
}
.update:nth-child(odd) { transform: rotate(-1deg); }
.update:nth-child(even) { transform: rotate(0.8deg); }
.update .kind {
  display: inline-block;
  font-family: var(--marker); font-size: 1rem;
  background: var(--red); color: #fff;
  padding: 1px 8px;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}
.update time {
  font-family: var(--type); font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--shadow); margin-left: 0.6rem;
}
.update-title {
  font-family: var(--huge); font-size: 1.4rem;
  text-transform: uppercase; margin: 0.5rem 0 0.4rem;
  line-height: 1.05; color: var(--ink);
}
.update-title a { color: var(--ink); text-decoration: none; }
.update-title a:hover { color: var(--red); }
.update-body { font-family: var(--type); font-size: 1rem; color: var(--ink); }

/* tip-done stamp */
.tip-done-stamp { text-align: center; margin: 1.6rem 0; }
.stamp {
  display: inline-block;
  font-family: var(--huge); font-size: 1.4rem;
  background: var(--hi); color: var(--ink);
  padding: 4px 14px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.empty {
  padding: 1.6rem; text-align: center;
  font-family: var(--marker); font-size: 1.2rem;
  color: var(--hi);
  border: 2px dashed rgba(244,192,58,0.4);
}

code {
  font-family: var(--type); font-size: 0.92em;
  background: #1a1a1a; color: var(--hi); padding: 1px 6px;
}

/* footer */
.foot {
  margin-top: 4rem;
  padding: 1.4rem 0 1.6rem;
  background: rgba(0,0,0,0.3);
  border-top: 4px solid var(--hi);
}
.foot-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.4rem;
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  font-family: var(--marker); font-size: 1.15rem;
  color: #f0ead6;
}
.foot a { color: var(--hi); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot em { font-style: normal; color: var(--red-on-dark); }

.theme-switch {
  position: fixed; top: 0.8rem; right: 0.8rem; z-index: 99;
  font-family: var(--marker); font-size: 1rem;
  background: var(--ink); color: #fff;
  padding: 4px 12px; text-decoration: none;
  transform: rotate(-3deg);
  border: 2px solid var(--hi);
}
.theme-switch:hover { background: var(--red); }


/* ──────────────── 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;
}
