/* ---------------------------------------------------------------------------
   taxiteam.dev — design tokens
   cab yellow, asphalt black, curbside paper, brake-light red, meter gray
--------------------------------------------------------------------------- */
:root {
  --yellow: #F5B301;
  --black: #111111;
  --paper: #FAF8F2;
  --red: #C8321E;
  --gray: #6B6B66;
  --amber: #FFB627;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--paper);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- checker band ---------------------------------------------------------- */
.checker-band {
  height: 20px;
  background-color: var(--yellow);
  background-image: conic-gradient(var(--black) 25%, transparent 25% 50%, var(--black) 50% 75%, transparent 75%);
  background-size: 20px 20px;
}
.checker-band--thin {
  height: 12px;
  background-size: 12px 12px;
}

/* --- header ---------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem var(--pad);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.wordmark span { color: var(--gray); font-weight: 600; }
.wordmark:hover { color: var(--black); }
.header-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- hero ------------------------------------------------------------------ */
.hero {
  padding: clamp(2rem, 7vh, 5rem) var(--pad) clamp(3rem, 8vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dict-card {
  position: relative;
  max-width: 44rem;
  width: 100%;
  background: #fff;
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.dict-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-bottom: 1.25rem;
}
.dict-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}
.dict-meta {
  font-family: var(--font-mono);
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0.75rem 0 1.5rem;
}
.dict-phon { margin-right: 0.6em; }
.dict-def {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.55;
  max-width: 34em;
}
.dict-quote {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--yellow);
  font-style: italic;
  color: var(--gray);
}
.dict-cite {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
}
.stamp {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  transform: rotate(6deg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 3px;
  padding: 0.25em 0.6em;
  opacity: 0.85;
}

.tagline {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
}
.tagline mark {
  background: var(--yellow);
  padding: 0 0.15em;
}

/* --- sections -------------------------------------------------------------- */
.section {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.6em; height: 0.6em;
  background: var(--yellow);
  margin-right: 0.7em;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.lede {
  font-size: 1.15rem;
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.rule-divider {
  max-width: 52rem;
  margin: 0 auto;
  border-top: 2px solid var(--black);
}

/* --- timeline --------------------------------------------------------------- */
.timeline { list-style: none; margin-top: 1.5rem; }
.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(17,17,17,0.15);
}
.timeline li:first-child { border-top: none; }
.tl-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.tl-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.tl-body p { color: #333; max-width: var(--measure); }

/* --- meter ------------------------------------------------------------------ */
.meter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.meter {
  background: var(--black);
  border-radius: 10px;
  padding: 1.25rem 1.4rem 1.1rem;
  box-shadow: inset 0 0 0 2px #2a2a2a, 6px 6px 0 rgba(17,17,17,0.18);
}
.meter-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 1rem;
}
.meter--new .meter-title { color: var(--yellow); }
.meter dl { display: block; }
.meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #333;
}
.meter-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #888;
}
.meter-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255,182,39,0.45);
}
.meter--old .meter-num {
  color: #777;
  text-shadow: none;
}
.meter-fare {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #888;
}
.meter--new .meter-fare { color: var(--amber); }

/* --- stats ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}
.stat-txt { color: #333; font-size: 0.98rem; margin-top: 0.35rem; }
.stat-src { color: var(--gray); font-size: 0.85rem; }

/* --- metaphor grid ----------------------------------------------------------- */
.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--black);
}
.grid li {
  padding: 1.4rem 1.3rem;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transition: background 0.15s ease;
}
.grid li:nth-child(3n) { border-right: none; }
.grid li:nth-last-child(-n+3) { border-bottom: none; }
.grid li:hover { background: #fff; }
.grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.grid p { font-size: 0.95rem; color: #333; }

.debate {
  margin-top: 2rem;
  border: 2px dashed var(--gray);
  padding: 1.25rem 1.4rem;
  max-width: var(--measure);
}
.debate h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.debate p { color: #333; font-size: 0.98rem; }

/* --- rules ------------------------------------------------------------------- */
.rules {
  list-style: none;
  counter-reset: rule;
  margin-top: 1rem;
}
.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(17,17,17,0.15);
}
.rules li:first-child { border-top: none; }
.rules li::before {
  content: counter(rule);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--black);
  background: var(--yellow);
  width: 2.4rem; height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rules h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  grid-column: 2;
}
.rules p { color: #333; max-width: var(--measure); grid-column: 2; }

/* --- faq --------------------------------------------------------------------- */
.faq dt {
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 1.6rem;
}
.faq dt:first-child { margin-top: 0.5rem; }
.faq dd {
  margin-top: 0.4rem;
  color: #333;
  max-width: var(--measure);
}

/* --- claim ------------------------------------------------------------------- */
.section--claim {
  max-width: none;
  background: var(--black);
  color: var(--paper);
  text-align: center;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section--claim > * { margin-left: auto; margin-right: auto; }
.section--claim h2 { color: #fff; }
.eyebrow--light { color: #999; }
.lede--light { color: #ccc; max-width: 46ch; }

.badge-box {
  max-width: 34rem;
  margin-bottom: 3rem;
}
.badge-box img { margin-bottom: 1rem; max-width: 100%; height: auto; }
.snippet-wrap {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.snippet {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #1d1d1d;
  border: 1px solid #333;
  padding: 0.7em 0.9em;
  overflow-x: auto;
  text-align: left;
  color: #ddd;
  max-width: 100%;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  padding: 0.65em 1.1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  font-weight: 700;
}
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--copy { white-space: nowrap; }

.capture {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.capture h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  color: #fff;
}
.capture > p { color: #bbb; font-size: 0.95rem; margin: 0.4rem 0 1.1rem; }
.capture-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.capture-row input {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.65em 0.9em;
  border: 2px solid #444;
  background: #1d1d1d;
  color: #fff;
  flex: 1 1 14rem;
  min-width: 0;
}
.capture-row input::placeholder { color: #777; }
.capture-status {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  min-height: 1.2em;
}

.share-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* --- footer ------------------------------------------------------------------ */
.site-footer { background: var(--black); color: var(--paper); }
.footer-inner {
  text-align: center;
  padding: 2.5rem var(--pad) 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}
.footer-brand .by {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--gray);
  text-transform: none;
}
.footer-brand a { color: var(--yellow); text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }
.footer-note { color: #bbb; font-size: 0.95rem; margin-top: 0.5rem; }
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #888;
  margin-top: 1.5rem;
}
.footer-legal a { color: #aaa; }

/* --- responsive --------------------------------------------------------------- */
@media (max-width: 720px) {
  .meter-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .grid li { border-right: none; border-bottom: 2px solid var(--black); }
  .grid li:last-child { border-bottom: none; }
  .grid li:nth-last-child(-n+3):not(:last-child) { border-bottom: 2px solid var(--black); }
  .timeline li { grid-template-columns: 4.2rem 1fr; gap: 0.9rem; }
  .stamp { position: static; display: inline-block; margin-top: 1.25rem; }
  .dict-card { box-shadow: 5px 5px 0 var(--black); }
}
