/* src/css/family.css
 *
 * The four new faces of the family: Mini Truck Roadbook, The Mini Truck, All Mini
 * Trucks and Mini Truck Co. Aster, 29 October 2026 (docs/FAMILY.md). The guide has
 * its own stylesheet, src/css/site.css, and never loads this one.
 *
 * HOW IT IS BUILT. Every colour and face is a token from /css/theme.css, which
 * build.mjs writes from src/data/sites/<key>.json for the site being built:
 *   --g ground  --p panel  --r rule  --i ink  --m muted  --a accent  --ai type on
 *   the accent  --fh display face  --ft body face  --fm mono  --fw display weight
 *   --fc the mark's case  --s-<status> the road rule colours of the map
 * Light and dark are only those tokens changing (theme.mjs explains the two
 * blocks), so nothing below names a colour. Since Lyra's v13 pass the accent is two
 * tokens: --a her fill, for a button and a mark, and --at her accent text, for a
 * link, a focus ring and anything that must read as text. The pairs are checked for contrast at
 * build: ink on ground over 7 to 1, muted over 4.5, type on the accent over 4.5.
 *
 * THE FACES. Tyler's third word: "make each one really just different", so each
 * differs by type, accent and rhythm, not colour alone. The class on <body> is
 * .f--<key> and each face's rules sit under it below:
 *   roadbook  a ruled rally page. Narrow, square corners at 4px, the tulip, mono
 *             only for distances, the truck in ink on paper (grayscale, multiply).
 *   models    a dealer brochure. One red block per page, sharp corners, a wide
 *             grid of makers and spec tables, the truck in full colour on white.
 *   yard      a yard board. Heavy Sora heads, a thin safety stripe under the
 *             truck, thick rules between sections, the truck with a ground shadow.
 *   company   a sign over a shop door. Libre Franklin 800 in capitals for heads,
 *             a cab tan panel behind the truck, pill buttons in field green.
 * The accent is spent sparingly: a link underline, the focus ring, the one button
 * and the map's selected state.
 * No containers around content on a phone, no horizontal page scroll, a 20px side
 * gutter on a phone and 40 from 768 up.
 * No oxford commas, no em dashes.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--g);
  color: var(--i);
  font: 400 17px/1.6 var(--ft);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: var(--at);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 3px;
}
:focus-visible {
  outline: 3px solid var(--at);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--i);
  color: var(--g);
}
.skip:focus {
  top: 12px;
}
.hp {
  display: none;
}
.sq {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-radius: 2px;
  background: var(--m);
  vertical-align: middle;
  opacity: 0.7;
}

/* the sheet */
.fs {
  width: 100%;
  max-width: 1680px;
  margin: 0;
  padding: 0 20px;
}
.fs--narrow {
  max-width: 780px;
}
@media (min-width: 768px) {
  .fs {
    padding: 0 40px;
  }
}

/* the header, the mark and the nav */
.fh {
  border-bottom: 1px solid var(--r);
}
.fh__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.fh__brand,
.ff__brand {
  color: var(--i);
  text-decoration: none;
}
.fmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fmark__t {
  font: var(--fw) 21px/1 var(--fh);
  text-transform: var(--fc);
  letter-spacing: -0.01em;
}
/* the mark, Lyra's logo (family.mjs mark()). Each lockup is cut to what it draws
 * (shelf.mjs), so these heights are the drawing's: 36 in the bar on a desk and 28
 * on a phone (the coordinator, 29 October). The yard's bar carries its wordmark at
 * the letter size of the others, 22 and 17, and its footer the full lockup with
 * the three trucks. Which tone shows is below: the bar is dark in both themes
 * (".fh .fmark__d", the hero block), the footer follows the theme. */
.fmark--logo img {
  display: block;
  height: 36px;
  width: auto;
}
.fmark--word img {
  height: 22px;
}
.fmark--foot img {
  height: 40px;
}
.f--yard .fmark--foot img {
  height: 72px;
}
@media (max-width: 599px) {
  .fmark--logo img {
    height: 28px;
  }
  .fmark--word img {
    height: 17px;
  }
  .fmark--foot img {
    height: 34px;
  }
  .f--yard .fmark--foot img {
    height: 60px;
  }
}
/* scoped to .fmark--logo so these outrank ".fmark--logo img" above, which would
 * otherwise show both tones at once */
.fmark--logo .fmark__d {
  display: none;
}
:root[data-theme='dark'] .fmark--logo .fmark__l {
  display: none;
}
:root[data-theme='dark'] .fmark--logo .fmark__d {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .fmark--logo .fmark__l {
    display: none;
  }
  :root:not([data-theme='light']) .fmark--logo .fmark__d {
    display: block;
  }
}
.fh__nav {
  display: flex;
  gap: 14px;
  font: 500 14px/1 var(--ft);
  white-space: nowrap;
}
.fmark__t {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .fmark__t {
    font-size: 18px;
  }
}
@media (min-width: 768px) {
  .fh__nav {
    gap: 22px;
    font-size: 15px;
  }
}
.fh__nav a {
  text-decoration: none;
  padding: 10px 0;
}
.fh__nav a:hover,
.fh__nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--at);
}

/* sections and type */
.fsec {
  padding: 56px 0;
}
.fsec--hero {
  padding: 48px 0 56px;
}
.fsec--panel {
  background: var(--p);
}
.fsec__head {
  max-width: 660px;
  margin-bottom: 28px;
}
@media (min-width: 980px) {
  .fsec {
    padding: 88px 0;
  }
  .fsec--hero {
    padding: 72px 0 88px;
  }
}
.fk {
  margin: 0;
  font: 600 12px/1.2 var(--ft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m);
}
.fh1 {
  margin: 14px 0 18px;
  font: var(--fw) clamp(34px, 5.2vw, 58px) / 1.06 var(--fh);
  letter-spacing: -0.02em;
}
.fh2 {
  margin: 10px 0 18px;
  font: var(--fw) clamp(26px, 3.4vw, 40px) / 1.12 var(--fh);
  letter-spacing: -0.015em;
}
.fh3 {
  margin: 0 0 10px;
  font: var(--fw) 20px/1.25 var(--fh);
}
.flede {
  max-width: 660px;
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.55;
}
.fsmall {
  font-size: 14px;
  color: var(--m);
}
.fnote {
  margin-top: 0;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--m);
}

/* the one button and the quiet one */
.fbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--a);
  border-radius: 10px;
  background: var(--a);
  color: var(--ai);
  font: 600 16px/1 var(--ft);
  text-decoration: none;
  cursor: pointer;
}
.fbtn:hover {
  filter: brightness(1.08);
}
.fbtn--line {
  background: transparent;
  border-color: var(--i);
  color: var(--i);
}

/* a card and the forms */
.fcard {
  background: var(--g);
  border: 1px solid var(--r);
  border-radius: 14px;
  padding: 22px;
}
@media (min-width: 768px) {
  .fcard {
    padding: 30px;
  }
}
.fform {
  display: grid;
  gap: 16px;
}
.ffield label,
.ffs legend {
  display: block;
  margin-bottom: 6px;
  font: 600 14px/1.3 var(--ft);
}
.ffield__opt {
  font-weight: 400;
  color: var(--m);
}
.ffield input,
.ffield select,
.ffield textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--m);
  border-radius: 8px;
  background: var(--g);
  color: var(--i);
  font: 400 16px/1.4 var(--ft);
}
.ffield textarea {
  min-height: 110px;
  resize: vertical;
}
.ffield input:focus,
.ffield select:focus,
.ffield textarea:focus {
  outline: 3px solid var(--at);
  outline-offset: 1px;
  border-color: var(--i);
}
.frow {
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) {
  .frow {
    grid-template-columns: 1fr 1fr;
  }
}
.ffs {
  margin: 0;
  padding: 0;
  border: 0;
}
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fchip {
  position: relative;
}
.fchip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.fchip span {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--m);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}
.fchip input:checked + span {
  border-color: var(--at);
  box-shadow: inset 0 0 0 2px var(--at);
  font-weight: 600;
}
.fchip input:focus-visible + span {
  outline: 3px solid var(--at);
  outline-offset: 2px;
}
.fcheck {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}
.fcheck input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--a);
  flex: none;
}
.fcheck--quiet {
  color: var(--m);
}

/* the catalog truck, treated by each face below */
.ftruck {
  margin: 0;
}
.ftruck img {
  display: block;
  width: 100%;
  height: auto;
}

/* the road rule map, the guide's atlas themed here */
.fmap svg {
  display: block;
  width: 100%;
  height: auto;
}
.fmap .st {
  fill: var(--s-unclear);
  transition: fill-opacity 0.2s;
}
.fmap .st[data-r='yes'] {
  fill: var(--s-yes);
}
.fmap .st[data-r='restricted'] {
  fill: var(--s-restricted);
}
.fmap .st[data-r='not_yet'] {
  fill: var(--s-not_yet);
}
.fmap .st[data-r='no'] {
  fill: var(--s-no);
}
.fmap svg > path {
  stroke: var(--g);
}
.fmap a:hover .st,
.fmap a:focus-visible .st {
  fill-opacity: 0.72;
  stroke: var(--at);
  stroke-width: 2;
}
.fmap__key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.fmap__key i {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: -2px;
}

/* the footer */
.ff {
  border-top: 1px solid var(--r);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--m);
}
.ff__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ff__links {
  margin: 0;
}
.ff__role {
  max-width: 52em;
  margin: 0 0 10px;
  color: var(--i);
}
.ff__own {
  margin: 0;
}
.themesw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}
.themesw[hidden] {
  display: none;
}
.themesw__k {
  margin-right: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.themesw__set {
  display: inline-flex;
  gap: 6px;
}
.themesw button {
  padding: 7px 12px;
  border: 1px solid var(--r);
  border-radius: 8px;
  background: none;
  color: var(--m);
  font: 500 13px/1 var(--ft);
  cursor: pointer;
}
.themesw button[aria-pressed='true'] {
  border-color: var(--at);
  color: var(--i);
}

/* ================================================================ roadbook */

.f--roadbook .fbtn,
.f--roadbook .fcard,
.f--roadbook .ffield input,
.f--roadbook .ffield select {
  border-radius: 4px;
}
.f--roadbook .fh {
  border-bottom: 2px solid var(--i);
}
.tulip {
  fill: none;
  stroke: var(--i);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.tulip__dot {
  fill: var(--i);
  stroke: none;
}
.tulip__arrow {
  fill: var(--a);
  stroke: none;
}
.rbhero__in,
.rbgrid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.rbgrid {
  align-items: start;
}
@media (min-width: 980px) {
  .rbhero__in {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .rbgrid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
  }
  .rbform {
    position: sticky;
    top: 24px;
  }
}
.f--roadbook .ftruck img {
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
}
:root[data-theme='dark'] .f--roadbook .ftruck img {
  mix-blend-mode: normal;
  filter: grayscale(1) brightness(1.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .f--roadbook .ftruck img {
    mix-blend-mode: normal;
    filter: grayscale(1) brightness(1.04);
  }
}
.rb {
  margin: 8px 0 18px;
  border: 2px solid var(--i);
  border-radius: 4px;
  background: var(--g);
}
.rb__head,
.rb__row {
  display: grid;
  grid-template-columns: 84px 64px 1fr;
}
@media (min-width: 600px) {
  .rb__head,
  .rb__row {
    grid-template-columns: 112px 84px 1fr;
  }
}
.rb__head {
  border-bottom: 2px solid var(--i);
  font: 600 11px/1 var(--ft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m);
}
.rb__head span {
  padding: 10px 12px;
}
.rb__row + .rb__row {
  border-top: 1px solid var(--r);
}
.rb__n,
.rb__t {
  border-right: 1px solid var(--r);
  padding: 12px;
}
.rb__head span:not(:last-child) {
  border-right: 1px solid var(--r);
}
.rb__i {
  display: block;
  font: 500 12px/1 var(--fm);
  color: var(--m);
}
.rb__d {
  display: block;
  margin-top: 8px;
  font: 500 13px/1.25 var(--fm);
}
@media (min-width: 600px) {
  .rb__d {
    white-space: nowrap;
  }
}
.rb__t svg {
  display: block;
  width: 100%;
  max-width: 48px;
  height: auto;
  margin: 0 auto;
}
.tl__road,
.tl__side,
.tl__flag {
  fill: none;
  stroke: var(--i);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tl__side {
  stroke-width: 2.4;
}
.tl__dot {
  fill: var(--i);
}
.tl__arrow {
  fill: var(--a);
}
.rb__x {
  margin: 0;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
}
.rb__foot {
  margin: 0;
  padding: 10px 14px;
  border-top: 2px solid var(--i);
  font-size: 13px;
  color: var(--m);
}
.rb__more {
  font-weight: 600;
}

/* ================================================================ models */

.f--models .fbtn,
.f--models .fcard,
.f--models .ffield input,
.f--models .ffield select {
  border-radius: 0;
}
.f--models .fh {
  border-bottom: 1px solid var(--r);
  box-shadow: inset 0 -3px 0 var(--a);
}
.f--models .fk::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 9px;
  margin-right: 10px;
  background: var(--a);
  vertical-align: 0;
}
.f--models .fh1 {
  letter-spacing: -0.01em;
}
.mhero__in {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 980px) {
  .mhero__in {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
}
.mhero__truck {
  border-bottom: 1px solid var(--r);
  padding-bottom: 8px;
}
.mkgrid {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--i);
}
@media (min-width: 600px) {
  .mkgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .mkgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mk {
  display: grid;
  gap: 6px;
  padding: 20px 18px 22px 0;
  border-bottom: 1px solid var(--r);
  text-decoration: none;
}
.mk:hover .mk__k {
  text-decoration: underline;
  text-decoration-color: var(--at);
}
.mk__k {
  font: var(--fw) 26px/1.1 var(--fh);
}
.mk__n {
  font-size: 15px;
}
.mk__y {
  font-size: 13px;
  color: var(--m);
}
.mread {
  display: grid;
  gap: 24px;
}
@media (min-width: 980px) {
  .mread {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
  }
}
.mdl {
  display: grid;
  gap: 18px;
  margin: 0;
}
@media (min-width: 600px) {
  .mdl {
    grid-template-columns: 1fr 1fr;
  }
}
.mdl dt {
  font: var(--fw) 17px/1.3 var(--fh);
}
.mdl dd {
  margin: 4px 0 0;
  font-size: 15px;
}
/* the rule sits inside the sheet's gutter, so it lines up with the text */
.mroad::before {
  content: '';
  display: block;
  margin-bottom: 24px;
  border-top: 2px solid var(--i);
}
.mtoc {
  font-weight: 600;
}
.mt {
  padding: 36px 0 12px;
  border-top: 2px solid var(--i);
}
.mt__wrap {
  overflow-x: auto;
}
.mt__t {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.mt__t th,
.mt__t td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--r);
  text-align: left;
  vertical-align: top;
}
.mt__t thead th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m);
  border-bottom: 1px solid var(--i);
}
.mt__t tbody th {
  font-weight: 700;
  min-width: 190px;
}
.mt__note,
.mt__unsure {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: 12px;
  color: var(--m);
}
.mt__unsure::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--a);
}

/* ================================================================ yard */

.f--yard .fh1,
.f--yard .fh2 {
  letter-spacing: -0.03em;
}
.f--yard .fbtn,
.f--yard .fcard {
  border-radius: 6px;
}
/* a hairline between the yard's bands since 29 October late; the 6px ink stripe it
 * had read as a band of its own on the calm white home */
.f--yard .fsec + .fsec {
  border-top: 1px solid var(--r);
}
.f--yard .fk {
  color: var(--i);
}
.f--yard .fk::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 10px;
  background: var(--a);
}
.yhero__in,
.yalert {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 980px) {
  .yhero__in {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .yalert {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}
.yhero__truck img {
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.28));
}
.yhero__truck::after {
  content: '';
  display: block;
  height: 8px;
  margin: 4px 8% 0;
  border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--a) 0 12px, transparent 12px 24px);
  opacity: 0.85;
}
.ysafe {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .ysafe {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}
.ylist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: y;
}
.ylist li {
  position: relative;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--r);
}
ol.ylist li::before {
  counter-increment: y;
  content: counter(y, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font: 700 14px/1 var(--fh);
  color: var(--m);
}
.ylist--walk li::before,
ul.ylist li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--a);
}

/* ================================================================ company */

.f--company .fh1,
.f--company .fh2,
.f--company .fh3 {
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.f--company .fh1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1;
}
.f--company .fbtn {
  border-radius: 999px;
}
.f--company .fh {
  border-bottom: 3px solid var(--i);
}
.chero__in,
.csplit {
  display: grid;
  gap: 32px;
  align-items: center;
}
.csplit {
  align-items: start;
}
@media (min-width: 980px) {
  .chero__in {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .csplit {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}
.chero__truck {
  padding: 32px 22px 14px;
  border-radius: 18px;
  background: var(--p);
}
.cthree {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
}
.cthree p {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--a);
  font-size: 18px;
}
.cdl {
  display: grid;
  gap: 24px;
}
.cdl > div {
  padding-top: 16px;
  border-top: 1px solid var(--r);
}
.cdl p {
  margin: 0;
}

/* a form that is not open yet (family.mjs soon) */
.fsoon {
  display: grid;
  gap: 10px;
}
.fsoon p {
  margin: 0;
}
.fsoon__t {
  font: var(--fw) 20px/1.3 var(--fh);
}

/* ================================================================ the hero, every face
 * Tyler, 29 October morning: "I like the title size of the Mini Truck Guide. We need
 * to match that ... It's basically going to look just like Mini Truck Guide, but
 * different colors." The header and the hero are one dark block in both themes, as
 * the guide's are, in the site's own dark pair (--hg and the rest, family.mjs
 * themeCSS). Inside it the theme tokens point at that pair, so a button, a link and
 * a card in the hero are already the dark ones. The title is the guide's scale
 * exactly (src/css/site.css .hero3--stack .hero3__h): clamp 34 to 64, line height
 * 1.02, tracking -0.03em, 34 on a phone, in the site's own face and weight. If the
 * guide's moves, move this. */
.fh,
.fhero {
  --g: var(--hg);
  --p: var(--hp);
  --r: var(--hr);
  --i: var(--hi);
  --m: var(--hm);
  --a: var(--ha);
  --ai: var(--hai);
  --at: var(--hat);
  background: var(--g);
  color: var(--i);
}
.fh {
  border-bottom-color: var(--r);
}
.fh .fmark--logo .fmark__l {
  display: none;
}
.fh .fmark--logo .fmark__d {
  display: block;
}
.fhero {
  padding: clamp(28px, 4.4vw, 64px) 0 clamp(40px, 5vw, 72px);
}
.fhero__in {
  display: grid;
  justify-items: center;
  text-align: center;
}
.fhero__txt {
  display: grid;
  justify-items: center;
  max-width: 980px;
}
.fhero__k {
  margin: 0 0 18px;
  font: 600 12px/1.2 var(--ft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m);
}
.fhero__h {
  margin: 0;
  font-family: var(--fh);
  font-weight: var(--fw);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.fhero__l2 {
  display: block;
  color: var(--i);
}
.fhero__sub {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--m);
}
.fhero__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin-top: 28px;
}
.fhero__link {
  color: var(--i);
  font-weight: 600;
}
@media (max-width: 600px) {
  .fhero__h {
    font-size: 34px;
  }
}
/* with a picture beside the words: the book's cover, the brochure's van */
@media (min-width: 980px) {
  .fhero--side .fhero__in {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }
  .fhero--side .fhero__txt {
    justify-items: start;
  }
  .fhero--side .fhero__acts {
    justify-content: flex-start;
  }
}
.fhero--side .fhero__in > :last-child {
  margin-top: 32px;
}
@media (min-width: 980px) {
  .fhero--side .fhero__in > :last-child {
    margin-top: 0;
  }
}
.fhero__truck {
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

/* ================================================================ the book (roadbook) */
.cover {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  padding: 28px 26px;
  border-radius: 6px 14px 14px 6px;
  background: var(--p);
  border: 1px solid var(--r);
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.45);
  display: grid;
  align-content: space-between;
  text-align: left;
}
/* the real cover (family.mjs cover), the picture alone at its own proportion,
 * 1600 by 2071, no drawn ground and no crop */
.cover--art {
  padding: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.cover--art img {
  display: block;
  width: 100%;
  height: auto;
}
.cover__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 15px/1 var(--fh);
}
.cover__t {
  margin: 0;
  font: var(--fw) clamp(30px, 3.6vw, 44px) / 1.04 var(--fh);
  letter-spacing: -0.02em;
}
.cover__ed {
  margin: 0;
  font: 500 13px/1.3 var(--fm);
  color: var(--m);
}
.cover__rule {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--a);
}
.rbin {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rb;
  border-top: 2px solid var(--i);
}
@media (min-width: 900px) {
  .rbin {
    grid-template-columns: repeat(5, 1fr);
  }
}
.rbin li {
  padding: 18px 18px 20px 0;
  border-bottom: 1px solid var(--r);
}
.rbin li::before {
  counter-increment: rb;
  content: counter(rb, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font: 500 12px/1 var(--fm);
  color: var(--m);
}
.rbin p {
  margin: 0;
  font-size: 15px;
}
.spread {
  display: grid;
  gap: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--g);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
@media (min-width: 980px) {
  .spread {
    grid-template-columns: 1fr 1fr;
  }
  .spread__p + .spread__p {
    border-left: 1px dashed var(--r);
  }
}
.spread__p {
  padding: 8px;
}
.spread .rb {
  margin: 0;
}
.rb__cap {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 2px solid var(--i);
  font: 600 11px/1.2 var(--ft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m);
}
.rbt {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rbt th,
.rbt td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--r);
  text-align: left;
  vertical-align: top;
}
.rbt thead th {
  font: 600 11px/1.2 var(--ft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m);
}
.rbt td {
  font-family: var(--fm);
  font-size: 13px;
}

/* ================================================================ the kinds (yard) */
.ytypes {
  display: grid;
  gap: 14px;
}
@media (min-width: 600px) {
  .ytypes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .ytypes {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1240px) {
  .ytypes {
    grid-template-columns: repeat(5, 1fr);
  }
}
.ytype {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--r);
  border-radius: 6px;
  background: var(--g);
  text-decoration: none;
}
.ytype:hover,
.ytype:focus-visible {
  border-color: var(--a);
}
.ytype__img {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--p);
}
.ytype__img img {
  width: 92%;
  height: auto;
}
.ytype__glyph {
  font: var(--fw) 26px/1 var(--fh);
  letter-spacing: -0.02em;
  color: var(--m);
}
.ytype__n {
  font: var(--fw) 19px/1.2 var(--fh);
}
.ytype__l {
  font-size: 14px;
  color: var(--m);
}
.ytype__go {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--at);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.yinq__img {
  max-width: 420px;
  margin: 8px 0 12px;
}

/* ================================================================ the company */
.cmk {
  display: grid;
  gap: 0;
  border-top: 3px solid var(--i);
}
@media (min-width: 600px) {
  .cmk {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .cmk {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cmk__i {
  display: grid;
  gap: 4px;
  padding: 16px 16px 18px 0;
  border-bottom: 1px solid var(--r);
}
.cmk__m {
  font: var(--fw) 22px/1.1 var(--fh);
  text-transform: uppercase;
}
.cmk__l {
  font-size: 15px;
  color: var(--m);
}
.cwhat {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .cwhat {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.cwhat > div {
  padding-top: 16px;
  border-top: 3px solid var(--a);
}
.cwhat p {
  margin: 0;
}

/* a phone keeps only each site's main link in the bar (family.mjs NAV) */
@media (max-width: 480px) {
  .fh__nav a:not(.fh__keep) {
    display: none;
  }
}

/* ================================================================ the flat pass
 * Tyler, 29 October: "I don't like containers behind product images. I don't like
 * text in containers. I like to go wide on desktop ... good margins and always
 * mobile-enhanced." The sheet above is the studio's, 1680 wide and left aligned
 * with 20 and 40 gutters, and reading text keeps a 660 measure. Below: a truck sits
 * straight on the page ground, text is grouped by a hairline and never boxed, and a
 * form is the one thing on a white card with light accents, in both themes (the
 * light pair, --l*, is written by themeCSS). */
.ytype {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
}
.ytype__img {
  background: none;
  border-radius: 0;
}
.ytype:hover .ytype__n,
.ytype:focus-visible .ytype__n {
  text-decoration: underline;
  text-decoration-color: var(--at);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.fcard {
  --g: #ffffff;
  --p: var(--lp);
  --r: var(--lr);
  --i: var(--li);
  --m: var(--lm);
  --a: var(--la);
  --ai: var(--lai);
  --at: var(--lat);
  color-scheme: light;
  background: #ffffff;
  color: var(--i);
  border: 1px solid var(--lr);
}
.spread,
.rb {
  box-shadow: none;
}

/* each home its own rhythm (Tyler: "they shouldn't all look the same"), the title
 * scale shared. yard: a left aligned statement. company: an uppercase statement.
 * models: a brochure, makers as big type and a row of the bodies. roadbook: the map
 * first. The guide keeps its centred hero with the search. */
.fhero--left .fhero__in,
.fhero--left .fhero__txt {
  justify-items: start;
  text-align: left;
}
.fhero--left .fhero__acts {
  justify-content: flex-start;
}
.fhero--left .fhero__txt {
  max-width: 1100px;
}
.f--company .fhero__h {
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.mkbig {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--i);
}
@media (min-width: 700px) {
  .mkbig {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .mkbig {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mkbig a {
  display: grid;
  gap: 6px;
  padding: 22px 20px 24px 0;
  border-bottom: 1px solid var(--r);
  text-decoration: none;
}
.mkbig__m {
  font: var(--fw) clamp(30px, 3.2vw, 46px) / 1 var(--fh);
  letter-spacing: -0.02em;
}
.mkbig a:hover .mkbig__m {
  text-decoration: underline;
  text-decoration-color: var(--at);
  text-decoration-thickness: 3px;
}
.mkbig__l {
  font-size: 14px;
  color: var(--m);
}
.bodies {
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .bodies {
    grid-template-columns: repeat(5, 1fr);
  }
}
.bodies figure {
  margin: 0;
}
.bodies img {
  display: block;
  width: 100%;
  height: auto;
}
.bodies figcaption {
  margin-top: 6px;
  font: var(--fw) 18px/1.2 var(--fh);
}
.proof {
  display: grid;
  gap: 18px;
  max-width: 1100px;
}
.proof__t {
  margin: 0;
  font: var(--fw) clamp(26px, 3vw, 40px) / 1.1 var(--fh);
  text-transform: uppercase;
}
.rbmap {
  padding: clamp(20px, 3vw, 40px) 0 clamp(32px, 4vw, 56px);
}
.rbbook {
  display: grid;
  gap: 32px;
}
@media (min-width: 980px) {
  .rbbook {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}
.rbfree {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 660px;
}

.rbin--book {
  margin-top: 24px;
}
@media (min-width: 900px) {
  .rbin--book {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ================================================================ the news (news.mjs)
 * text only, the site's own faces, a hairline between posts */
.news {
  padding: 48px 0 72px;
}
.news__list {
  max-width: 900px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.news__list > li {
  padding: 20px 0 22px;
  border-top: 1px solid var(--r);
}
.news__meta {
  margin: 0 0 6px;
  font: 600 12px/1.4 var(--ft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m);
}
.news__t {
  margin: 0;
  font: var(--fw) clamp(20px, 2.2vw, 28px) / 1.2 var(--fh);
}
.news__t a {
  text-decoration: none;
}
.news__t a:hover {
  text-decoration: underline;
  text-decoration-color: var(--at);
}
.news__dek,
.news__on,
.news__note,
.news__read {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--m);
}
.news__note,
.news__read {
  margin-top: 24px;
  font-size: 14px;
}
.news__h {
  max-width: 22em;
}
.news__body {
  max-width: 660px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.65;
}
.news__sh {
  margin: 40px 0 10px;
  font: var(--fw) 20px/1.2 var(--fh);
}
.news__src {
  max-width: 820px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--m);
}
.news__src li {
  margin: 0 0 8px;
}
.news__back {
  margin-top: 28px;
  font-weight: 600;
}

/* ================================================================ the video wall
 * The Mini Truck, 29 October (scripts/web/videos.mjs has the rules, src/js/videos.js
 * the click). Tyler: "The Mini Truck could look like jandatraining.com, with videos
 * of Mini Trucks." A card is the video's own thumbnail straight on the page with a
 * red play mark, no box and no rounded tile, its title and the creator's credit
 * under it. A 16:9 card or a 9:16 one, one size within a row: four or six across
 * on a desk, a sideways swipe on a phone. The player only replaces the thumbnail on
 * a click. The play mark is the house's rounded square in the site's red. */
.vhero {
  margin-top: clamp(28px, 4vw, 48px);
}
.vhero .vc {
  max-width: 1280px;
}
.vc {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.vc[hidden] {
  display: none;
}
.vc__play,
.vc__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 0;
}
.vc--tall .vc__play,
.vc--tall .vc__frame {
  aspect-ratio: 9 / 16;
}
.vc__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.vc__play:hover img,
.vc__play:focus-visible img {
  transform: scale(1.03);
}
.vc__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 14px;
  background: #d52f35;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.f--models .vc__mark {
  background: #b92332;
}
.vc__mark::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 16px;
  border-left: 17px solid #ffffff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.vc__play:hover .vc__mark,
.vc__play:focus-visible .vc__mark {
  transform: scale(1.08);
}
.vc--big .vc__mark {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 20px;
}
.vc--big .vc__mark::after {
  left: 33px;
  top: 25px;
  border-left-width: 26px;
  border-top-width: 17px;
  border-bottom-width: 17px;
}
.vc figcaption {
  display: grid;
  gap: 4px;
}
.vc__t {
  font: var(--fw) 17px/1.3 var(--fh);
  color: var(--i);
}
.vc--big .vc__t {
  font-size: clamp(19px, 1.8vw, 24px);
}
.vc__en {
  font-size: 14px;
  line-height: 1.45;
  color: var(--i);
}
.vc__c {
  font-size: 13px;
  line-height: 1.4;
  color: var(--m);
}
.vc__c a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.vc__c a:hover {
  color: var(--i);
}
/* the rows on the home */
.vwall--home {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 5vw, 72px);
}
.vrow {
  padding: clamp(20px, 2.6vw, 32px) 0;
}
.vrow__h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--r);
  font: var(--fw) clamp(22px, 2.2vw, 28px) / 1.15 var(--fh);
  color: var(--i);
}
.vrow__n {
  font: 500 13px/1 var(--ft);
  color: var(--m);
}
/* /videos/ and the tag pages: a full grid, the last line left short */
.vgrid {
  display: grid;
  gap: 28px 20px;
}
.vgrid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vgrid--tall {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1099px) {
  .vgrid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vgrid--tall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* THE HOME ROWS never wrap (the coordinator, 29 October: "a row must never wrap and
 * leave an orphan"). Each is one line at every width, scrolling sideways with
 * snap, the cut card at the edge saying there is more this way: about 4.3
 * landscape or 6.3 vertical cards on a desk, 3.3 or 4.3 on a tablet, 1.3 or 2.2 on
 * a phone. Every card in a row is one size. The row runs to the page's edge past
 * the sheet's gutter (20 on a phone, 40 from 768) and snaps back to the gutter.
 * Arrow keys move focus card by card (videos.js), and the scroll is instant under
 * reduced motion. The row ends with a plain "All <group>" link. */
.vrow__cards {
  display: grid;
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 20px;
  margin: 0 -20px;
  padding: 0 20px 10px;
  scrollbar-width: thin;
  --cols-w: 1.3;
  --cols-t: 2.2;
  grid-auto-columns: calc((100% - (var(--cols-w) - 0.3) * 20px) / var(--cols-w));
}
.vrow__cards--tall {
  grid-auto-columns: calc((100% - (var(--cols-t) - 0.2) * 20px) / var(--cols-t));
}
.vrow__cards > .vc {
  scroll-snap-align: start;
}
@media (min-width: 760px) {
  .vrow__cards {
    --cols-w: 3.3;
    --cols-t: 4.3;
  }
}
@media (min-width: 768px) {
  .vrow__cards {
    scroll-padding-inline: 40px;
    margin: 0 -40px;
    padding: 0 40px 10px;
  }
}
@media (min-width: 1100px) {
  .vrow__cards {
    --cols-w: 4.3;
    --cols-t: 6.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vrow__cards {
    scroll-behavior: auto;
  }
  .vc__play img,
  .vc__mark {
    transition: none;
  }
  .vc__play:hover img,
  .vc__play:focus-visible img,
  .vc__play:hover .vc__mark,
  .vc__play:focus-visible .vc__mark {
    transform: none;
  }
}
.vrow__all {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.vrow__all a {
  color: var(--i);
  text-underline-offset: 4px;
}
.vrow__all a:hover {
  color: var(--at);
}
.vc__play:focus-visible {
  outline: 3px solid var(--a);
  outline-offset: 3px;
}
/* a phone: the full grids on /videos/ */
@media (max-width: 759px) {
  .vgrid--wide {
    grid-template-columns: 1fr;
  }
  .vgrid--tall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vc__mark {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 12px;
  }
  .vc__mark::after {
    left: 18px;
    top: 13px;
    border-left-width: 14px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }
}
/* /videos/ and the tag pages: the filters, plain text parted by the rounded square */
.vwall {
  padding-top: 0;
}
.vfilt {
  margin: 0 0 clamp(28px, 3vw, 40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--r);
}
.vfilt__row {
  margin: 0 0 6px;
  font: 500 15px/2 var(--ft);
  color: var(--m);
}
.vfilt__k {
  display: inline-block;
  min-width: 4.6em;
  margin-right: 8px;
  font: 600 11px/1 var(--ft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vfilt__row a {
  color: var(--i);
  text-decoration: none;
  white-space: nowrap;
}
.vfilt__row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vfilt__row a[aria-current='true'] {
  color: var(--at);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.vfilt__c {
  margin-left: 4px;
  font-size: 12px;
  color: var(--m);
}
.vfilt__row .sq,
.mkbig__l .sq {
  background: currentColor;
  opacity: 0.45;
}
.vfilt__state {
  margin: 8px 0 0;
  min-height: 1em;
  font-size: 14px;
  color: var(--m);
}
.vgrid__h {
  margin-top: clamp(36px, 4vw, 56px);
}
.vgrid__h[hidden] {
  display: none;
}
.vnote {
  max-width: 660px;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 14px;
  line-height: 1.55;
  color: var(--m);
}
.vnote a {
  color: var(--i);
}
/* the catalog band: white in both themes, since several makers' own logos are black
 * and Subaru's has its own white ground, and none is ever recoloured (makers.mjs) */
.fsec--white {
  --g: #ffffff;
  --p: var(--lp);
  --r: var(--lr);
  --i: var(--li);
  --m: var(--lm);
  --a: var(--la);
  --ai: var(--lai);
  --at: var(--lat);
  background: #ffffff;
  color: var(--i);
}
.mkbig__logo {
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 8px;
}
.mkbig__logo img {
  display: block;
  height: calc(var(--lh) * 1px);
  width: auto;
}
@media (max-width: 699px) {
  .mkbig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .mkbig__logo {
    height: 38px;
  }
  .mkbig__logo img {
    height: calc(var(--lh) * 0.8px);
  }
}
.mklogos__tm {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--m);
}
.fend {
  margin: 24px 0 0;
}
.vhero .vc {
  margin: 0 auto;
}
.vfilt__all {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 14px/1.4 var(--ft);
  color: var(--i);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.vfilt__all[hidden] {
  display: none;
}

/* ================================================================ Mini Truck Co.,
 * the product showcase (family.mjs companyHome), 29 October. Tyler: "Mini Truck Co.
 * has that Nixy Pay vibe ... kind of just showing UI", and his rules that day: white
 * and near black grounds with no brand colour bands, no containers, the 1680 sheet,
 * buttons of three words at most. So on this face the bar and the hero leave the
 * always dark hero pair and follow the theme like the page (--g and the rest
 * inherited back from the root), the logo swaps with the theme, the buttons are
 * dark ink in light and white in dark, and the phones and the desk shot stand
 * straight on the ground with only their own device edges. */
.f--company .fh,
.f--company .fhero {
  --g: inherit;
  --p: inherit;
  --r: inherit;
  --i: inherit;
  --m: inherit;
  --a: inherit;
  --ai: inherit;
  --at: inherit;
}
.f--company .fh {
  border-bottom: 1px solid var(--r);
}
.f--company .fh .fmark--logo .fmark__l {
  display: block;
}
.f--company .fh .fmark--logo .fmark__d {
  display: none;
}
:root[data-theme='dark'] .f--company .fh .fmark--logo .fmark__l {
  display: none;
}
:root[data-theme='dark'] .f--company .fh .fmark--logo .fmark__d {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .f--company .fh .fmark--logo .fmark__l {
    display: none;
  }
  :root:not([data-theme='light']) .f--company .fh .fmark--logo .fmark__d {
    display: block;
  }
}
.f--company .fbtn {
  background: var(--i);
  border-color: var(--i);
  color: var(--g);
}
.f--company .fbtn--line {
  background: transparent;
  color: var(--i);
}
/* the four phones fanned beside the statement */
.cfan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 4%;
}
.cfan__p {
  display: block;
  width: 31%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
}
.cfan__p + .cfan__p {
  margin-left: -8%;
}
.cfan__p--1 {
  z-index: 1;
  margin-top: 9%;
}
.cfan__p--2 {
  z-index: 3;
}
.cfan__p--3 {
  z-index: 2;
  margin-top: 6%;
}
.cfan__p--4 {
  z-index: 1;
  margin-top: 12%;
}
/* one band per screen: the words and the phone side by side, the phone shown at
 * its own 418 points so its labels read as Pixel set them */
.cshow + .cshow {
  border-top: 1px solid var(--r);
}
.cshow__in {
  display: grid;
  gap: 28px;
  align-items: center;
}
.cshow__txt {
  max-width: 660px;
}
.cshow__pic {
  margin: 0;
  justify-self: center;
}
.cshow__pic .cui {
  display: block;
  width: min(418px, 84vw);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.14));
}
.cshow__cap {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--m);
}
.cshow__cap .sq {
  background: currentColor;
  opacity: 0.45;
}
@media (min-width: 900px) {
  .cshow__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .cshow__in--flip .cshow__txt {
    order: 2;
  }
  .cshow__in--flip .cshow__pic {
    order: 1;
  }
}
/* the guide on a desk, wide, its own edge a hairline */
.cdesk {
  border-top: 1px solid var(--r);
}
.cdesk__pic {
  margin: 0;
}
.cdesk__pic img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  box-shadow: 0 0 0 1px var(--r), 0 30px 60px rgba(0, 0, 0, 0.1);
}
.cdeal {
  border-top: 1px solid var(--r);
}
.cdeal__demo {
  max-width: 560px;
  font-size: 16px;
  color: var(--m);
}
.cdeal__demo a,
.cdesk .flede a {
  color: var(--i);
  font-weight: 600;
}

/* ================================================================ All Mini Trucks,
 * the home of 29 October late (family.mjs yardHome). Lyra's direction: the cobalt
 * as the accent and the logo centred; Tyler's rules: white or near black grounds,
 * no colour bands, no containers. As on Mini Truck Co. the bar and the hero leave
 * the always dark hero pair and follow the theme, the bar's wordmark sits in the
 * middle with the links to its right, and her full three truck lockup stands over
 * the statement. */
.f--yard .fh,
.f--yard .fhero {
  --g: inherit;
  --p: inherit;
  --r: inherit;
  --i: inherit;
  --m: inherit;
  --a: inherit;
  --ai: inherit;
  --at: inherit;
}
.f--yard .fh {
  border-bottom: 1px solid var(--r);
}
/* the bar: the logo on the left and the links on the right. Tyler, 30 October:
 * centred, the logo ran into Directory and Request on a phone. On a phone the dock
 * carries every link (yard.mjs yardDock, company.mjs companyDock), so the bar is the
 * logo alone, never the same four links twice. */
.f--yard .fh__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.f--yard .fh__brand {
  grid-column: 1;
}
.f--yard .fh__nav {
  grid-column: 2;
  justify-self: end;
}
@media (max-width: 760px) {
  .f--yard .fh__nav,
  .f--company .fh__nav {
    display: none;
  }
}
.f--yard .fh .fmark--logo .fmark__l {
  display: block;
}
.f--yard .fh .fmark--logo .fmark__d {
  display: none;
}
:root[data-theme='dark'] .f--yard .fh .fmark--logo .fmark__l {
  display: none;
}
:root[data-theme='dark'] .f--yard .fh .fmark--logo .fmark__d {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .f--yard .fh .fmark--logo .fmark__l {
    display: none;
  }
  :root:not([data-theme='light']) .f--yard .fh .fmark--logo .fmark__d {
    display: block;
  }
}
.yhero .fhero__in,
.yhero .fhero__txt {
  justify-items: center;
  text-align: center;
}
.yhero .fhero__acts {
  justify-content: center;
}
.yhero__logo {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(20px, 3vw, 36px);
}
.yhero__logo img {
  height: clamp(96px, 12vw, 150px);
  width: auto;
}
/* the kinds, a big picture grid in rows of three: the top three large, their
 * pictures 3 to 2, the rest a little lower at 16 to 9; on a phone the top three one
 * to a row and the rest two across, so no row is ever short */
.ykinds {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ykind--big {
  grid-column: span 2;
}
@media (min-width: 760px) {
  .ykinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ykind--big {
    grid-column: auto;
  }
  .ykind:not(.ykind--big) .ykind__img {
    aspect-ratio: 16 / 9;
  }
}
.ykind {
  display: grid;
  gap: 6px;
  color: var(--i);
  text-decoration: none;
}
.ykind__img {
  display: block;
  aspect-ratio: 3 / 2;
}
.ykind__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ykind:hover .ykind__img img,
.ykind:focus-visible .ykind__img img {
  transform: translateY(-4px);
}
.ykind__img .ytype__glyph {
  display: grid;
  place-items: center;
  height: 100%;
  font: var(--fw) clamp(34px, 4vw, 56px) / 1 var(--fh);
  color: var(--m);
}
.ykind__n {
  padding-top: 10px;
  border-top: 1px solid var(--r);
  font: var(--fw) clamp(22px, 2.2vw, 30px) / 1.1 var(--fh);
}
.ykind--big .ykind__n {
  font-size: clamp(26px, 2.8vw, 40px);
}
.ykind:hover .ykind__n {
  color: var(--at);
}
.ykinds__note {
  margin-top: 24px;
  padding-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ykind__img img {
    transition: none;
  }
  .ykind:hover .ykind__img img,
  .ykind:focus-visible .ykind__img img {
    transform: none;
  }
}
/* how a request works, three steps in big type */
.yhow,
.ysafe2,
.yreq {
  border-top: 1px solid var(--r);
}
.ysteps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .ysteps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}
.ysteps li {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--a);
}
.ysteps__n {
  font: var(--fw) clamp(44px, 5vw, 72px) / 1 var(--fh);
  color: var(--at);
}
.ysteps__t {
  font: var(--fw) clamp(26px, 2.8vw, 40px) / 1.1 var(--fh);
  color: var(--i);
}
/* buying one safely, the papers numbered and the warnings on hairlines */
.ypapers,
.ywalk {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ypapers li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--r);
}
.ypapers__n {
  grid-row: span 2;
  font: var(--fw) 26px/1 var(--fh);
  color: var(--at);
}
.ypapers__h {
  font: var(--fw) 20px/1.25 var(--fh);
}
.ypapers__p {
  color: var(--m);
  line-height: 1.5;
}
.ywalk li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--r);
  line-height: 1.5;
}
.ywalk li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--a);
}

/* ================================================================ Mini Truck Roadbook,
 * the home of 29 October late (family.mjs roadbookHome). The book is written, so the
 * page leads with it. Lyra's warm palette is type and accent only, on a very light
 * paper or a warm near black, no brown bands: the bar and the hero follow the theme
 * as on the other two, the logo swaps with it, the bands part with a hairline. The
 * cover stands big beside the statement and the book's own pages are shown as
 * pages, a hairline edge and a soft shadow and no tile behind them. */
.f--roadbook .fh,
.f--roadbook .fhero {
  --g: inherit;
  --p: inherit;
  --r: inherit;
  --i: inherit;
  --m: inherit;
  --a: inherit;
  --ai: inherit;
  --at: inherit;
}
.f--roadbook .fh {
  border-bottom: 1px solid var(--r);
}
.f--roadbook .fh .fmark--logo .fmark__l {
  display: block;
}
.f--roadbook .fh .fmark--logo .fmark__d {
  display: none;
}
:root[data-theme='dark'] .f--roadbook .fh .fmark--logo .fmark__l {
  display: none;
}
:root[data-theme='dark'] .f--roadbook .fh .fmark--logo .fmark__d {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .f--roadbook .fh .fmark--logo .fmark__l {
    display: none;
  }
  :root:not([data-theme='light']) .f--roadbook .fh .fmark--logo .fmark__d {
    display: block;
  }
}
.rbcover {
  margin: 0;
  justify-self: center;
}
.rbcover img {
  display: block;
  width: min(460px, 72vw);
  height: auto;
  box-shadow: 0 0 0 1px var(--r), 0 30px 60px rgba(0, 0, 0, 0.18);
}
.rbsec {
  border-top: 1px solid var(--r);
}
/* what is inside, four lines in big type with the warm numerals */
.rbinside {
  display: grid;
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .rbinside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .rbinside {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.rbinside li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 16px;
  border-top: 1px solid var(--a);
}
.rbinside__n {
  font: var(--fw) clamp(32px, 3.4vw, 48px) / 1 var(--fh);
  color: var(--at);
}
.rbinside__h {
  margin: 0;
  font: var(--fw) clamp(22px, 2.2vw, 30px) / 1.15 var(--fh);
}
.rbinside p {
  margin: 0;
  color: var(--m);
  line-height: 1.55;
}
/* the book's own pages: the spread wide on top, the three single pages in a row
 * under it, a swipe of one size on a phone */
.rbpages {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
}
.rbpage {
  margin: 0;
  display: grid;
  gap: 10px;
}
.rbpage img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--r), 0 18px 40px rgba(0, 0, 0, 0.1);
}
.rbpage figcaption {
  font-size: 14px;
  color: var(--m);
}
.rbpages__top .rbpage {
  max-width: 1200px;
}
.rbpages__row {
  display: grid;
  gap: clamp(20px, 2.4vw, 36px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px;
}
@media (max-width: 759px) {
  .rbpages__row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    margin: 0 -20px;
    padding: 0 20px 10px;
  }
  .rbpages__row > .rbpage {
    scroll-snap-align: start;
  }
}
