/* Leo Clips Cars - one stylesheet, served same-origin.
 *
 * Replaced eight duplicated inline <style> blocks on 2026-08-27. Same-origin,
 * so it does not touch the privacy policy's promise about third-party
 * requests, and check-site.py still refuses anything pointing at another host.
 *
 * NO WEBFONTS ON PURPOSE. The page must load with zero external requests, so
 * character comes from scale, weight, tracking and rules rather than from a
 * typeface someone else hosts. The display face is a serif because every
 * generated-looking page on the internet is set in the same system sans.
 */

:root {
  --bg: #fbfaf8;
  --fg: #14131a;
  --muted: #5a5866;
  --faint: #8b8898;
  --line: #dedae0;
  --rule: #14131a;
  --accent: #b3202a;
  --accent-ink: #8e1a21;
  --card: #ffffff;
  --shade: #f2efec;

  --display: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d11;
    --fg: #f2f0ee;
    --muted: #a29fad;
    --faint: #77747f;
    --line: #2a2830;
    --rule: #f2f0ee;
    --accent: #e2434d;
    --accent-ink: #f2757c;
    --card: #16151b;
    --shade: #17161d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 28px 96px; }

/* ---------- masthead ---------------------------------------------------- */

header { margin-bottom: 52px; }

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 0 20px;
}

/* The hazard stripe. A garage reference, and the one piece of ornament on the
 * site that no default template produces. */
.stripe {
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 11px,
    transparent 11px 22px
  );
  border-bottom: 1px solid var(--line);
}

.mark { flex: none; display: block; }
.mark rect { fill: #b3202a; }
.mark text { fill: #fff; font: 700 15px/1 var(--text); letter-spacing: .04em; }

.bar h1 {
  font: 600 21px/1.1 var(--display);
  margin: 0;
  letter-spacing: -.015em;
}

.bar p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .13em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  padding: 0 0 12px;
  font-size: 14px;
  border-bottom: 2px solid var(--rule);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 10px;
  margin-bottom: -13px;
  border-bottom: 3px solid transparent;
}

nav a:hover { color: var(--fg); border-bottom-color: var(--line); }

nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---------- type -------------------------------------------------------- */

h1.page {
  font: 600 46px/1.02 var(--display);
  letter-spacing: -.03em;
  margin: 0 0 14px;
}

.sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lede {
  font: 400 25px/1.42 var(--display);
  letter-spacing: -.012em;
  margin: 0 0 26px;
}

.lede strong { font-weight: 600; }

h2 {
  font: 600 15px/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin: 54px 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

h3 { font: 600 17px/1.3 var(--text); margin: 0 0 10px; letter-spacing: -.005em; }

p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 10px; }
li::marker { color: var(--accent); }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }

strong { font-weight: 650; }

/* ---------- the spec-sheet grid ----------------------------------------
 * A label in the left margin, content on the right. This is the layout that
 * most makes the page read as set rather than emitted: the eye gets a second
 * column to hang on instead of one endless centred measure.
 */

.spec { display: grid; grid-template-columns: 150px 1fr; gap: 4px 32px; margin: 0 0 30px; }
.spec dt {
  font: 600 11px/1.5 var(--text);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--faint);
  padding-top: 5px;
}
.spec dd { margin: 0 0 20px; }
.spec dd:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr; gap: 2px; }
  .spec dd { margin-bottom: 22px; }
  h1.page { font-size: 34px; }
  .lede { font-size: 21px; }
  body { font-size: 16px; }
}

/* ---------- numbered steps ---------------------------------------------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 66px;
  margin: 0;
  border-left: 1px solid var(--line);
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -21px;
  top: -4px;
  width: 42px;
  text-align: center;
  font: 600 15px/42px var(--mono);
  color: var(--accent);
  background: var(--bg);
}

.steps h3 { margin-bottom: 8px; }

/* ---------- figures ----------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 30px 0 34px;
}

.fig { background: var(--bg); padding: 20px 22px; }

.fig b {
  display: block;
  font: 600 34px/1 var(--display);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.fig span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
}

.fig.unknown b { color: var(--faint); font-size: 20px; letter-spacing: 0; }

/* ---------- cards ------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 26px 0;
}

.card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--faint);
  margin-bottom: 12px;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* ---------- the clip list ----------------------------------------------- */

.clips { list-style: none; padding: 0; margin: 0 0 26px; }

.clips li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.clips li:first-child { border-top: 1px solid var(--line); }
.clips a { text-decoration: none; font-weight: 500; }
.clips a:hover { text-decoration: underline; }

.clips .meta {
  flex: none;
  font: 500 12px/1 var(--mono);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.clips .meta b { color: var(--fg); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .clips li { flex-direction: column; gap: 6px; }
}

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

footer {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 2px solid var(--rule);
  font-size: 13px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
}

footer a { color: var(--muted); }
footer .spacer { flex: 1; }

/* Legal pages: the effective date under the heading. Distinct from the footer
 * date, which tracks the site; this one tracks the terms themselves. */
.updated {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  margin: -6px 0 34px;
}

/* ---------- the application form ---------------------------------------- */
/* Added 2026-08-27 with /apply. The site had no form until then, which is
 * itself why it kept reading as a brochure rather than a product. */

.form { margin: 0 0 34px; max-width: 620px; }

.field { margin: 0 0 24px; }

.field label {
  display: block;
  font: 600 13px/1.4 var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field .hint {
  display: block;
  font: 400 14px/1.5 var(--text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
  margin-top: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  font: 16px/1.4 var(--text);
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  appearance: none;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.field input:invalid:not(:placeholder-shown) { border-color: var(--accent); }

/* The honeypot. Never shown, never announced, never tabbed into. A human
 * cannot fill it in; the scrapers already hitting this domain will. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.submit {
  font: 600 15px/1 var(--text);
  letter-spacing: .04em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  padding: 15px 32px;
  cursor: pointer;
}

button.submit:hover { background: var(--accent-ink); }
button.submit:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.form .note {
  font: 14px/1.6 var(--text);
  color: var(--faint);
  margin: 16px 0 0;
}
