/* Civic Memo — design tokens & base styles. Spec: CivicMemo_Website_Spec.md §3.7.
   Subject is translation of civic paperwork: credible like a government notice,
   warm like a neighbor's highlighter. Total CSS budget: < 50 KB. */

:root {
  --ink: #1a1c1e;
  --paper: #fbfbf9;
  --marker: #f5d90a;
  --civic: #1d4fd8;
  --muted: #6b7075;
  --priority-high: #c2410c;
  --priority-medium: #6b7075;
  --rule: #d8d5cd;

  /* Display font is a placeholder system stack until Archivo/Archivo Expanded
     is self-hosted + subset (WOFF2) — see SESSION_LOG.md. Do not swap in a
     hosted Google Fonts link; the spec requires self-hosted, subset, WOFF2 only. */
  --font-display: "Arial Narrow", Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--civic);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--civic);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

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

header.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

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

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
}

/* Marker highlight — underlay only. Never render text directly on --marker
   without --ink text on top; the token is a highlighter stroke behind ink. */
mark.translated {
  background: var(--marker);
  color: var(--ink);
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

.jargon {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--priority-high);
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-cycle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  min-height: 4.5em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-cycle [data-example] {
    animation: fade 12s infinite;
    opacity: 0;
  }

  .hero-cycle [data-example]:nth-child(1) {
    animation-delay: 0s;
  }
  .hero-cycle [data-example]:nth-child(2) {
    animation-delay: 3s;
  }
  .hero-cycle [data-example]:nth-child(3) {
    animation-delay: 6s;
  }
  .hero-cycle [data-example]:nth-child(4) {
    animation-delay: 9s;
  }

  @keyframes fade {
    0%,
    100% {
      opacity: 0;
    }
    5%,
    20% {
      opacity: 1;
    }
  }
}

.hero-cycle [data-example] {
  display: block;
}

.hero-cycle.no-js [data-example] {
  display: none;
}

.hero-cycle.no-js [data-example]:first-child {
  display: block;
}

.subscribe {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 2rem 0;
}

.subscribe h2 {
  margin-top: 0;
}

.btn-subscribe {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn-subscribe:hover {
  background: var(--civic);
}

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

.city-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  background: #fff;
}

.city-card h3 {
  margin: 0 0 0.25rem;
}

.city-card .muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.badge-coming-soon {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.4rem;
}

.item-ref,
.dollar,
time {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.priority-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
}

.priority-chip.high {
  background: var(--priority-high);
  color: #fff;
}

.priority-chip.medium {
  background: var(--priority-medium);
  color: #fff;
}

.priority-chip.low {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule);
}

.item-card {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.item-card h3 {
  margin: 0.5rem 0;
}

.archive-list {
  list-style: none;
  padding: 0;
}

.archive-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
}

.archive-list a {
  text-decoration: none;
  color: var(--ink);
}

.archive-list a:hover strong {
  color: var(--civic);
}

.needs-review-banner {
  color: var(--priority-high);
  font-weight: 700;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

footer.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 2rem 0 3rem;
  margin-top: 3rem;
}

footer.site-footer a {
  color: var(--muted);
}

@media (max-width: 360px) {
  .wrap {
    padding: 0 1rem;
  }
}
