/* Liberty Over Surveillance Project (nationwide; founding chapter: Oklahoma)
   "Constitutional Wildlands" identity (required palette, per project brief 2026-08-22):
     deep teal #0E5E63 (headers/identity) - teakwood #5A3E2B (frames/grounding)
     salmon #E98673 (action accents) - muted gold #C9A44B (thin dividers only)
     parchment cream #F4EDDC (background) - charcoal #1D2626 (body text)
   No flag motifs, no imagery. Typography and rules carry the design.
   Type: Playfair Display (display) + Source Sans 3 (body)
   HARD RULE: no em dashes anywhere on this site; use "-".
   Var notes: --ink = deep teal, --red = salmon action accent,
   --red-deep = darkened salmon for small text (AA contrast on parchment). */

:root {
  --parchment: #F4EDDC;
  --ink: #0E5E63;
  --teak: #5A3E2B;
  --red: #E98673;
  --red-deep: #A84A33;
  --gold: #C9A44B;
  --charcoal: #1D2626;
  --ink-soft: #40605C;
  --rule: rgba(90, 62, 43, 0.25);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  border-top: 8px solid var(--teak); /* teakwood page frame, honoring the flyer's wood-frame look */
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-wide {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

.section:first-of-type { border-top: none; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 3px double var(--gold);
  padding: 1.1rem 0 0.9rem;
  background: var(--parchment);
}

.site-header .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .wordmark-rule { color: var(--red-deep); }

.wordmark .wordmark-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teak);
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.05rem;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* mobile nav (CSS-only toggle, no JS required) */

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nav-toggle-label {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.nav-toggle:focus-visible ~ .nav-toggle-label {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .nav-toggle-label { display: inline-block; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
    margin-top: 0.6rem;
    padding-top: 0.3rem;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.95rem;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--red-deep);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1.25rem;
  letter-spacing: 0.005em;
}

.chapter-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teak);
  border: 1px solid var(--teak);
  border-radius: 2px;
  padding: 0.3rem 0.85rem;
  margin: 0 0 1.1rem;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--red-deep);
  margin: 0 0 1rem;
}

.hero .sub {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--charcoal);
}

.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--parchment); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover { background: var(--ink); color: var(--parchment); }

/* ---------- typography ---------- */

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2rem 0 0.5rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-deep);
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.1rem; }

li { margin-bottom: 0.35rem; }

a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
a:hover { color: var(--red-deep); }

a:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible,
.wordmark:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

strong { color: var(--charcoal); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding: 0.35rem 0 0.35rem 1.2rem;
  margin: 2rem 0;
}

.definition {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
}

.definition dt { font-weight: 700; color: var(--charcoal); }
.definition dd { margin: 0.2rem 0 0.9rem; }
.definition dd:last-child { margin-bottom: 0; }

.caveat {
  font-size: 1rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 1.75rem;
}

.note-card {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.4);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 1rem;
}

/* ---------- star divider (gold hairline only) ---------- */

.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1.75rem;
  color: var(--gold);
}

.star-divider::before,
.star-divider::after {
  content: "";
  flex: 0 0 4rem;
  border-top: 1px solid var(--gold);
}

.star-divider svg { display: block; }

/* ---------- petition (demands) ---------- */

.petition {
  list-style: none;
  counter-reset: demand;
  margin: 2rem 0 0;
  padding: 0;
}

.petition li {
  counter-increment: demand;
  position: relative;
  padding: 1.4rem 0 1.4rem 4.25rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 0;
}

.petition li:last-child { border-bottom: 1px solid var(--rule); }

.petition li::before {
  content: counter(demand, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red-deep);
  min-width: 3.4rem;
}

.petition li strong { display: block; margin-bottom: 0.2rem; }

.interim-list {
  padding-left: 1.3rem;
  margin-top: 1rem;
}

.interim-list li { margin-bottom: 0.6rem; }

/* ---------- contact / card grids ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 1.5rem;
}

.contact-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teak);
  background: rgba(255, 255, 255, 0.45);
  padding: 1.2rem 1.3rem;
}

.contact-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }

.contact-card .slot {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.act-now {
  border: 1px solid var(--gold);
  border-left: 5px solid var(--red);
  background: rgba(255, 255, 255, 0.4);
  padding: 1.5rem 1.6rem;
  margin-top: 1.75rem;
}

.act-now h3 { margin-top: 0; }

.safety-line {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  margin-top: 1.5rem;
}

/* ---------- rights page ---------- */

.preamble {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.5;
  font-style: italic;
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 4px solid var(--red);
  color: var(--ink);
}

.preamble cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.amendments { margin: 1.5rem 0 0; }

.amendments > div {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
}

.amendments > div:last-child { border-bottom: 1px solid var(--rule); }

.amendments dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red-deep);
}

.amendments dd { margin: 0; }

.rights-focus h3 { color: var(--ink); }

.rights-focus h3 .num { color: var(--red-deep); }

.closing-charge {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 3rem 0 1rem;
}

/* ---------- tracker table ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: end;
  margin: 1.75rem 0 0.5rem;
}

.filter-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teak);
  margin-bottom: 0.3rem;
}

.filter-row select {
  font: inherit;
  font-size: 0.98rem;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--teak);
  border-radius: 2px;
  padding: 0.45rem 0.6rem;
  min-width: 11rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  border: 1px solid var(--rule);
}

.tracker-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 58rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.35);
}

.tracker-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--parchment);
  background: var(--ink);
  padding: 0.65rem 0.8rem;
}

.tracker-table td {
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}

.tracker-table td.action-cell {
  font-weight: 700;
  color: var(--red-deep);
  white-space: nowrap;
}

.result-count {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 1.25rem;
}

/* ---------- documents (records page) ---------- */

.doc-block {
  border: 1px solid var(--teak);
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.5rem 1.6rem;
  margin: 1.75rem 0;
  font-size: 0.98rem;
  white-space: pre-wrap;
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ---------- forms (join page) ---------- */

.form-block {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--teak);
  background: rgba(255, 255, 255, 0.45);
  padding: 1.75rem 1.6rem;
  margin: 2rem 0;
}

.form-block label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 1.1rem 0 0.3rem;
  color: var(--ink);
}

.form-block label:first-of-type { margin-top: 0; }

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--teak);
  border-radius: 2px;
  padding: 0.6rem 0.7rem;
}

.form-block .consent {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.1rem 0;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 3rem;
  border-top: 6px solid var(--teak);
  padding: 2.25rem 0 3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer .footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.footer-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teak);
  margin: 0 0 0.6rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--red-deep);
  margin: 0 0 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.1rem;
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
}

.footer-nav a { color: var(--ink-soft); }

.social-row {
  letter-spacing: 0.05em;
  margin: 0 0 0.9rem;
}

.social-row span[aria-disabled="true"] { opacity: 0.55; }

.footer-disclaimer {
  max-width: 34rem;
  margin: 0 auto 0.9rem;
  font-size: 0.85rem;
}

.no-trackers {
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

/* ---------- responsive ---------- */

@media (max-width: 540px) {
  body { font-size: 1.05rem; }
  .petition li { padding-left: 3.3rem; }
  .petition li::before { font-size: 1.3rem; }
  .amendments > div { grid-template-columns: 2.9rem 1fr; }
}

@media print {
  .site-header, .cta-row, .site-footer .footer-nav, .social-row, .filter-row { display: none; }
  body { background: #fff; border-top: none; }
}

/* DeFlock map embed */
.map-embed { border: 1px solid var(--teak); border-top: 6px solid var(--teak); background: #fff; margin: 28px 0 10px; }
.map-embed iframe { display: block; width: 100%; height: min(72vh, 640px); border: 0; }
.map-embed-note { font-size: 0.85rem; color: var(--red-deep); margin: 6px 0 0; }
