/* CrossvillePrivacy.org — patterned after MaryvillePrivacy.org */
:root {
  --base: #ffffff;
  --contrast: #111111;
  --accent: #c0392b;
  --accent-dark: #8b0000;
  --accent-soft: #fdf6f6;
  --accent-border: #f0d4d4;
  --muted: #3f4654;
  --ink-soft: #1a1a2e;
  --panel: #f8fafc;
  --line: #e2e8f0;
  --wide: 1100px;
  --content: 900px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(192, 57, 43, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(80, 58, 168, 0.06), transparent 50%),
    linear-gradient(180deg, #fbfaf7 0%, #ffffff 28%, #ffffff 100%);
  color: var(--contrast);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-soft);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent-dark);
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  min-height: min(72vh, 560px);
  display: grid;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  animation: hero-in 900ms ease both;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  transform: scale(1.02);
  animation: hero-pan 18s ease-in-out infinite alternate;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(12, 14, 16, 0.78) 8%, rgba(12, 14, 16, 0.48) 52%, rgba(12, 14, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 14, 16, 0.25) 10%, rgba(8, 9, 10, 0.78) 100%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 70%;
  z-index: 1;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.28), transparent 60%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd7d2;
}

.hero h1 {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.hero h1 span {
  color: #ffb4ab;
}

.hero .lede {
  font-size: 1.08rem;
  opacity: 1;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border: 0;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--contrast);
  color: #fff;
}

/* Sections */
section {
  padding: 2.75rem 0;
}

.section-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tldr {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  animation: rise 700ms ease both;
}

.tldr strong {
  font-weight: 700;
}

.reality {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: #fff;
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.stat {
  background: #fff;
  border: 2px solid var(--accent);
  padding: 0.95rem 0.75rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.1);
  animation: rise 800ms ease both;
}

.stat:nth-child(2) {
  animation-delay: 80ms;
}

.stat:nth-child(3) {
  animation-delay: 160ms;
}

.stat:nth-child(4) {
  animation-delay: 240ms;
}

.stat .num {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat .cap {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.toc {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.toc a {
  color: var(--accent-dark);
}

.toc ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.official {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem;
}

.official h3 {
  margin-bottom: 0.2rem;
}

.official .role {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 0.65rem;
}

.official .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.q {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare .bad,
.compare .good {
  padding: 1rem;
  border: 1px solid var(--line);
}

.compare .bad {
  background: #fff7f7;
  border-color: #f0c9c4;
}

.compare .good {
  background: #f6fbf7;
  border-color: #c9e4d0;
}

.compare h3 {
  font-size: 1rem;
}

.case {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.case .tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.case .sources {
  font-size: 0.85rem;
  color: var(--muted);
}

.case .sources a {
  color: var(--accent-dark);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f5f9;
  font-weight: 700;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-list li {
  margin-bottom: 0.65rem;
}

.doc-list a {
  color: var(--accent-dark);
  font-weight: 650;
}

.contact-table td:first-child {
  font-weight: 650;
  white-space: nowrap;
}

.faq details {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq details[open] summary {
  margin-bottom: 0.55rem;
  color: var(--accent-dark);
}

.letter {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.letter ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: #2f3540;
  font-size: 0.9rem;
}

.note {
  font-size: 0.9rem;
  color: #2f3540;
  font-weight: 400;
}

.note a {
  font-weight: 650;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.official .meta,
.stat .cap,
.case .sources,
.media-break figcaption,
.toc,
.site-footer {
  color: #2f3540;
  font-weight: 400;
}

.case .sources a,
.toc a {
  font-weight: 650;
}

.media-break {
  margin: 0 0 1.35rem;
}

.media-break img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.media-break figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-pan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media {
    animation: none;
  }
}

@media (max-width: 860px) {
  .stats,
  .grid-2,
  .grid-3,
  .compare {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero-panel {
    min-height: 480px;
  }
}
