/* Camber Automotive
   Instrument-face palette. Mono as display, system sans for prose.
   No external requests: no webfonts, no analytics, no pixels. The privacy
   policy claims zero third parties and the stylesheet has to agree. */

:root {
  color-scheme: light;

  --ground: #e8e9e4;
  --ground-raised: #f2f3ef;
  --ink: #1c1f1d;
  --graphite: #5a615c;
  --rule: #c6c9c1;
  --spec: #0f5c4a;
  --signal: #b8430c;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono",
    "Roboto Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--spec);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink);
}

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

.shell {
  max-width: 78rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--spec);
}

.masthead-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

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

.hero {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem);
}

/* The signature: an alignment readout. Camber is a real measurement with a
   spec range, so the page opens with the instrument rather than a slogan. */
.readout {
  border: 1px solid var(--rule);
  background: var(--ground-raised);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 34rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.readout-caption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1rem;
}

.readout-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.readout-row + .readout-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

.readout-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.readout-value {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}

.readout-status {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spec);
}

.readout-status[data-state="set"] {
  color: var(--signal);
}

/* The measured value settles into spec once, on load. One orchestrated
   moment, and the thing it animates is the angle being set by hand. */
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(-0.35em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.readout-value {
  animation: settle 620ms cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.readout-row:nth-child(3) .readout-value {
  animation-delay: 120ms;
}

.readout-row:nth-child(4) .readout-value {
  animation-delay: 240ms;
}

.hero-headline {
  font-family: var(--sans);
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 19ch;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  line-height: 1.6;
  color: var(--graphite);
  margin: 1.75rem 0 0;
  max-width: 46ch;
}

/* --------------------------------------------------------------- section */

.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1.75rem;
}

.band-title {
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  max-width: 24ch;
  text-wrap: balance;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.15em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.125em;
}

.pull {
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--spec);
  border-left: 2px solid var(--spec);
  padding-left: 1.15rem;
  margin: 2rem 0 0;
  max-width: 44ch;
}

/* ----------------------------------------------------------------- items */

.items {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spec);
  margin: 0 0 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.item p {
  margin: 0;
  color: var(--graphite);
}

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

.colophon {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.colophon p {
  margin: 0;
}

/* -------------------------------------------------------- legal document */

.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.doc-title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.doc-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 2.5rem;
}

.doc-body {
  max-width: var(--measure);
}

.doc-body h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  margin: 0 0 1.1em;
}

.doc-body ul {
  padding-left: 1.25rem;
}

/* The subprocessor table is wider than the prose measure, so it breaks out of
   it and scrolls inside its own box rather than making the page scroll. */
.table-scroll {
  max-width: min(100%, 52rem);
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--rule);
  background: var(--ground-raised);
}

.doc-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.doc-body th,
.doc-body td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.doc-body th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
}

.doc-body tbody tr:last-child th,
.doc-body tbody tr:last-child td {
  border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
