/* LogBook
   The look borrows from the feature pages of a motoring magazine: the
   photograph is the page, headlines are set wide and heavy, and everything
   else stays quiet on white gloss stock. The palette comes from a UK number
   plate: black characters, rear-plate yellow, and the blue of the side band. */

:root {
  --ink: #000;
  --paper: #fff;
  --stone: #f0f1f0;
  --line: #d5d7d8;
  --grey: #5c6165;
  --yellow: #ffd500;
  --blue: #1b3fa0;
  --red: #c8102e;
  --green: #0b6b3a;
  --sans: "Archivo", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.5 var(--sans); color: var(--ink); background: var(--paper); font-synthesis: none; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; z-index: 20; font-weight: 700; }
.skip:focus { left: 0; }
.wrap { padding-inline: var(--gutter); max-width: 96rem; margin-inline: auto; }

/* ---------- Masthead ---------- */
.masthead { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 2.5rem; padding: 0 var(--gutter); min-height: 3.75rem; position: sticky; top: 0; z-index: 10; }
.wordmark { font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.15rem; color: #fff; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 300; }
.wordmark.small { font-size: .95rem; }
.masthead nav { display: flex; gap: 1.75rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.masthead nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 1.1rem 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.masthead nav a:hover { border-bottom-color: rgba(255,255,255,.5); }
.masthead nav a[aria-current] { border-bottom-color: var(--yellow); }
.masthead :focus-visible { outline-color: var(--yellow); }
.signout { display: flex; gap: 1rem; align-items: baseline; font-size: .875rem; color: rgba(255,255,255,.72); white-space: nowrap; }
.signout .link { color: #fff; }

.flash { padding: .75rem var(--gutter); font-weight: 700; }
.flash-ok { background: var(--yellow); }
.flash-err { background: var(--red); color: #fff; }

/* ---------- The spread: a photograph as the whole page ---------- */
.spread { position: relative; height: min(84vh, 54rem); min-height: 30rem; overflow: hidden; background: var(--ink); color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.spread-car { height: min(88vh, 58rem); }
.spread > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
.spread::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 34%, rgba(0,0,0,0) 62%), linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0) 22%); }
.spread.on-light { color: var(--ink); }
.spread.on-light::after { background: none; }
.spread-top { position: absolute; top: 1.5rem; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-weight: 600; font-size: .9375rem; }
.spread-copy { padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem); max-width: 100%; animation: rise .9s .25s cubic-bezier(.2,.7,.2,1) both; }
.spread-copy > * + * { margin-top: 1.1rem; }
.display { font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: .84; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.display a { color: inherit; text-decoration: none; }
.display-xl { font-size: clamp(3.75rem, 15vw, 15rem); }
.display-l { font-size: clamp(2.6rem, 10.5vw, 10.5rem); }
.display-m { font-size: clamp(2rem, 7.5vw, 7.5rem); }
.spread-make { font-stretch: 125%; font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: .01em; }
.spread-make span { opacity: .7; }
.spread-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-weight: 500; font-size: 1.125rem; }
.spread-note { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.35; max-width: 34em; }
.spread-actions { display: flex; align-items: center; gap: 1.5rem; }
.ghost { color: inherit; font-weight: 600; font-size: .9375rem; }
.credit { position: absolute; right: var(--gutter); bottom: 1rem; font-size: .75rem; opacity: .75; max-width: 40%; text-align: right; }
.spread-empty .display, .spread-landing .display { font-size: clamp(2.75rem, 8vw, 8rem); max-width: 11em; }

@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* A car with no photograph is shown as a panel of its own paint. */
.chip { container-type: inline-size; position: relative; overflow: hidden; background: radial-gradient(130% 95% at 28% 12%, color-mix(in srgb, var(--paint) 72%, #fff) 0%, var(--paint) 46%, color-mix(in srgb, var(--paint) 62%, #000) 100%); }
.chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0) 45%); }
.chip-light { background: radial-gradient(130% 95% at 28% 12%, color-mix(in srgb, var(--paint) 60%, #fff) 0%, var(--paint) 50%, color-mix(in srgb, var(--paint) 86%, #000) 100%); }
.chip-light::after { background: none; }
.chip-word { position: absolute; left: -1.5cqw; top: -4cqw; font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 30cqw; line-height: 1; letter-spacing: -.04em; white-space: nowrap; color: color-mix(in srgb, var(--paint) 90%, #fff); }
.chip-light .chip-word { color: color-mix(in srgb, var(--paint) 93%, #000); }

/* ---------- Number plates and flags ---------- */
.plate { display: inline-block; background: var(--yellow); color: #000; font-stretch: 80%; font-weight: 800; font-size: 1.25rem; letter-spacing: .05em; line-height: 1; padding: .3em .6em .26em; border-radius: 4px; white-space: nowrap; }
.plate-sm { font-size: .9375rem; border-radius: 3px; }
.flag { display: inline-block; font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.2; padding: .3em .6em; }
.flag-soon { background: var(--yellow); color: #000; }
.flag-overdue { background: var(--red); color: #fff; }
.flag-ok { background: #fff; color: #000; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 700 1rem/1.2 var(--sans); padding: .8em 1.4em; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 2px; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn-light { background: #fff; border-color: #fff; color: #000; }
.on-light .btn-light { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; cursor: pointer; }
.inline { display: inline; }
.cancel { margin-left: 1rem; }

/* ---------- Section furniture ---------- */
h2 { font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 1.125rem; }
.page-top { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: 5rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; }
.section-head h1 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.03em; }
.block { margin-top: clamp(3rem, 5vw, 4.5rem); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 4px solid var(--ink); padding-top: .9rem; margin-bottom: 1.25rem; }
.block-head > span { color: var(--grey); font-size: .9375rem; }
.empty { color: var(--grey); max-width: 38em; }
.lede { max-width: 40em; margin-bottom: 1.25rem; }
.standfirst { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; max-width: 30em; text-wrap: pretty; }
.standfirst.muted { color: var(--grey); }
.aside { margin-top: 1rem; font-size: .9375rem; color: var(--grey); }
.aside small { display: block; }
.sub { margin: 3rem 0 1rem; }
.plain li { padding: .35rem 0; }
.notice { background: var(--stone); padding: 1rem 1.25rem; margin-bottom: 1.25rem; max-width: 44em; }
.notice ul { list-style: disc; padding-left: 1.2rem; margin-top: .35rem; }
.error { color: var(--red); font-weight: 700; margin-bottom: 1rem; }
.panel { background: var(--stone); padding: 1.25rem 1.5rem; margin: 2rem 0; max-width: 44em; }
.panel > * + * { margin-top: .6rem; }
.danger { margin-top: 3rem; padding-bottom: 3rem; font-size: .9375rem; }
.danger .link { color: var(--red); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; word-break: break-all; background: var(--stone); padding: .1em .3em; }

/* ---------- Home: contents ---------- */
.contents { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(3rem, 6vw, 5.5rem); }
.contents h2 { border-top: 4px solid var(--ink); padding-top: .9rem; margin-bottom: .5rem; }
.contents-side h2 + * { margin-top: 1rem; }
.contents-side h2:not(:first-child) { margin-top: 3rem; }
.job a { display: grid; grid-template-columns: 7.5rem minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.job a:hover { background: var(--stone); }
.job-n { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.job-n b { font-stretch: 110%; font-weight: 900; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; padding: .08em .12em 0; margin-left: -.12em; }
.job-n small { font-size: .8125rem; font-weight: 600; color: var(--grey); line-height: 1.1; white-space: nowrap; }
.later { margin-top: 1.25rem; }
.later summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }
.job.is-soon .job-n b { background: var(--yellow); }
.job.is-overdue .job-n b { background: var(--red); color: #fff; }
.job-what strong { display: block; font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.job-what span, .job-when em { color: var(--grey); font-size: .9375rem; font-style: normal; display: block; }
.job-when span { font-weight: 600; display: block; }
.trip, .waiting a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.trip:hover, .waiting a:hover { background: var(--stone); }
.trip strong, .waiting strong { display: block; font-weight: 800; }
.trip span, .waiting span { display: block; font-size: .9375rem; color: var(--grey); }
.trip .trip-gap, .visit-body .trip-gap { color: var(--ink); font-weight: 700; background: var(--yellow); display: inline-block; padding: .1em .45em; margin-top: .35rem; }
.trip-ok { color: var(--green) !important; font-weight: 700; }

/* ---------- The cars ---------- */
.fleet-section { padding-top: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: 6rem; }
.fleet-section .section-head h2 { font-size: clamp(2rem, 4vw, 3.5rem); text-transform: uppercase; font-weight: 900; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 2.5rem 1.5rem; }
.car-card { color: inherit; text-decoration: none; display: block; }
.car-card-pic { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); color: #fff; }
.car-card-pic .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.car-card:hover .cover { transform: scale(1.035); }
.car-card-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 50%); pointer-events: none; }
.car-card.on-light .car-card-pic { color: var(--ink); }
.car-card.on-light .car-card-pic::after { background: none; }
.car-card-name { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: .92; letter-spacing: -.025em; }
.car-card-name small { display: block; font-stretch: 125%; font-weight: 500; font-size: .875rem; text-transform: none; letter-spacing: 0; margin-bottom: .45rem; }
.car-card-foot { display: flex; align-items: center; gap: 1rem; padding-top: .85rem; }
.car-card-next { font-weight: 600; font-size: .9375rem; }
.car-card-next.is-soon { background: var(--yellow); padding: .1em .45em; }
.car-card-next.is-overdue { background: var(--red); color: #fff; padding: .1em .45em; }
@media (min-width: 48rem) {
  .fleet-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-two .car-card-name { font-size: clamp(2rem, 3.6vw, 3.5rem); left: 1.75rem; bottom: 1.5rem; }
}

/* ---------- A car's feature ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(19rem, 1fr); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.feature-side { position: sticky; top: 5rem; }
.spec { background: var(--ink); color: #fff; padding: 1.75rem 1.75rem .75rem; }
.spec-title { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.125rem; letter-spacing: -.01em; padding-bottom: 1rem; }
.spec-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.22); }
.spec-row dt { font-weight: 600; font-size: .9375rem; color: rgba(255,255,255,.72); padding-top: .3rem; }
.spec-row dt small { display: block; color: #fff; font-weight: 700; font-size: .8125rem; margin-top: .15rem; }
.spec-date { display: block; font-stretch: 110%; font-weight: 800; font-size: 1.625rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spec-state { display: inline-block; font-weight: 600; font-size: .9375rem; margin-top: .3rem; color: rgba(255,255,255,.72); }
.is-soon .spec-state { background: var(--yellow); color: #000; padding: .05em .45em; font-weight: 800; }
.is-overdue .spec-state { background: var(--red); color: #fff; padding: .05em .45em; font-weight: 800; }
.is-unset .spec-state, .is-na .spec-state { color: #fff; font-size: 1.125rem; margin-top: 0; }
.spec-meta { display: block; font-size: .875rem; color: rgba(255,255,255,.72); margin-top: .3rem; }
.spec-acts { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin-top: .6rem; font-size: .875rem; }
.spec-acts a { color: #fff; font-weight: 600; }
.spec a:focus-visible { outline-color: var(--yellow); }
.facts { margin-top: 1.5rem; font-size: .9375rem; }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--grey); }
.facts dd { font-weight: 600; }

.items .item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.item-pri { font-weight: 800; font-size: .875rem; }
.item.p1 .item-pri { color: var(--red); }
.item.p3 .item-pri { color: var(--grey); font-weight: 600; }
.item-text { font-size: 1.125rem; line-height: 1.35; }
.item-text small { display: block; font-size: .8125rem; color: var(--grey); margin-top: .2rem; }
.item-acts { display: flex; gap: 1rem; font-size: .875rem; }
.add-item { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.add-item .grow { flex: 1 1 18rem; }
.done-items { margin-top: 1.25rem; font-size: .9375rem; color: var(--grey); }
.done-items li { padding: .3rem 0; }

.cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
.cycle li { border-top: 4px solid var(--line); padding: .7rem .8rem .9rem; display: grid; gap: .15rem; }
.cycle-n { font-size: .8125rem; font-weight: 700; color: var(--grey); }
.cycle strong { font-weight: 800; font-size: 1.125rem; line-height: 1.2; }
.cycle small { font-size: .8125rem; color: var(--grey); min-height: 1.2em; }
.cycle .is-last { border-top-color: var(--ink); }
.cycle .is-next { border-top-color: var(--ink); background: var(--yellow); }
.cycle .is-next small, .cycle .is-next .cycle-n { color: #000; font-weight: 700; }

.visit-card { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.visit-card:hover { background: var(--stone); }
.visit-date b { display: block; font-stretch: 110%; font-weight: 900; font-size: 1.375rem; line-height: 1.1; }
.visit-date small { color: var(--grey); }
.visit-body strong { display: block; font-weight: 800; font-size: 1.25rem; }
.visit-body > span { display: block; font-size: .9375rem; color: var(--grey); }

/* ---------- Tables and charts ---------- */
.table-scroll { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger th { text-align: left; font-weight: 600; color: var(--grey); font-size: .8125rem; padding: .5rem 1rem .5rem 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ledger td { padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger td small { color: var(--grey); }
.ledger .note { display: block; margin-top: .15rem; }
.ledger tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.ledger .acts { text-align: right; white-space: nowrap; font-size: .875rem; }
.ledger .acts form + form { margin-left: 1rem; }
.ledger details summary { cursor: pointer; }
.ledger pre { white-space: pre-wrap; font: inherit; font-size: .875rem; color: var(--grey); margin: .5rem 0 0; max-width: 46em; }
.change { font-weight: 700; }
.chart { margin: 0 0 2rem; max-width: 60rem; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #e7e8e8; stroke-width: 1; }
.chart .axis { stroke: #b4b8ba; stroke-width: 1; }
.chart .tick { font: 500 12px var(--sans); fill: var(--grey); font-variant-numeric: tabular-nums; }
.chart .value { font: 700 12px var(--sans); fill: var(--ink); }
.chart [data-tip] { cursor: default; }
.chart [data-tip]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .875rem; margin-bottom: .75rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.swatch { width: .7rem; height: .7rem; border-radius: 2px; }
.tip { position: absolute; z-index: 30; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; padding: .35rem .6rem; pointer-events: none; white-space: nowrap; }

/* ---------- Photographs ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.gallery figure { grid-column: span 2; }
.gallery figure:first-child { grid-column: span 4; grid-row: span 2; }
.gallery figure:only-child { grid-column: span 3; grid-row: auto; }
.gallery figure:only-child img { height: auto; aspect-ratio: 3 / 2; min-height: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); }
.gallery figure:first-child img { height: calc(100% - 2.2rem); aspect-ratio: auto; min-height: 16rem; }
.gallery figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; font-size: .8125rem; padding-top: .5rem; min-height: 2.2rem; }
.tag { font-weight: 700; }
.tag-cover { background: var(--yellow); padding: 0 .4em; }
.focus-form label { display: inline-flex; align-items: center; gap: .4rem; }
.focus-form input { width: 6rem; accent-color: #000; }
.photo-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin-top: 2rem; }
.photo-tools > div { background: var(--stone); padding: 1.5rem; }
.photo-tools > div > * + * { margin-top: .75rem; }
.photo-tools p { font-size: .9375rem; max-width: 34em; }
.working { font-weight: 700; }
.lightbox { border: 0; padding: 0; background: #000; width: 100vw; height: 100vh; max-width: none; max-height: none; }
.lightbox::backdrop { background: #000; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: #fff; border: 0; font: 700 .9375rem var(--sans); padding: .6em 1em; cursor: pointer; z-index: 1; }

/* ---------- Garages ---------- */
.garages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 2.5rem; }
.garage-card { color: inherit; text-decoration: none; border-top: 4px solid var(--ink); padding-top: 1rem; display: block; }
.garage-card:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.garage-card .standfirst { font-size: 1.2rem; margin-top: .5rem; }

/* ---------- Forms ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 5rem; align-items: start; }
.sheet-head { position: sticky; top: 6rem; }
.sheet-head h1 { font-stretch: 125%; font-weight: 900; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; letter-spacing: -.03em; text-wrap: balance; }
.sheet-head .standfirst { font-size: 1.25rem; margin-top: 1rem; }
.kicker { font-weight: 700; margin-bottom: .6rem; }
.sheet-body { max-width: 44rem; }
.form > * + * { margin-top: 1.25rem; }
.form fieldset { border: 0; border-top: 4px solid var(--ink); padding: 1rem 0 0; margin: 2.25rem 0 0; }
.form fieldset > * + * { margin-top: 1.1rem; }
.form legend { font-stretch: 125%; font-weight: 800; font-size: 1.25rem; padding: 0 .75rem 0 0; }
.field { display: block; flex: 1 1 12rem; min-width: 0; }
.field.narrow { flex: 0 1 11rem; }
.field-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .3rem; }
.hint { display: block; font-size: .8125rem; color: var(--grey); margin-top: .3rem; line-height: 1.4; }
input, select, textarea { font: inherit; color: inherit; }
.field input, .field select, .field textarea, .add-item input, .add-item select, td select { width: 100%; padding: .65rem .75rem; border: 1.5px solid var(--ink); border-radius: 2px; background: #fff; }
td select { width: auto; padding: .35rem .5rem; }
.add-item select { width: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.checks { display: flex; gap: 1.5rem; }
.check { display: flex; gap: .6rem; align-items: baseline; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: #000; flex: none; translate: 0 .15rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 1.25rem; }
.form-inline > * + * { margin-top: 0; }
.row-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: 1.5rem; }
.tabs a { color: inherit; font-weight: 600; text-decoration: none; padding-bottom: .2rem; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { border-bottom-color: var(--ink); }

/* Typing a registration into a number plate. */
.plate-form { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.plate-input input { font: 800 clamp(2.25rem, 6vw, 4.25rem)/1 var(--sans); font-stretch: 80%; letter-spacing: .05em; text-transform: uppercase; text-align: center; width: 8.2ch; background: var(--yellow); color: #000; border: 0; border-radius: 8px; padding: .22em .25em .18em; }
.plate-input input::placeholder { color: rgba(0,0,0,.26); }
.plate-input input:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.on-paper .plate-input input:focus-visible { outline-color: var(--ink); }

/* ---------- Footer ---------- */
.colophon { background: var(--ink); color: rgba(255,255,255,.7); display: flex; justify-content: space-between; padding: 2rem var(--gutter); font-size: .875rem; margin-top: 2rem; }

/* ---------- The printable list for the garage ---------- */
.sheet-print { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem; }
.sheet-print header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 4px solid var(--ink); padding-bottom: 1rem; }
.sheet-print h1 { font-stretch: 125%; font-weight: 900; font-size: 2rem; letter-spacing: -.02em; }
.sheet-print h2 { margin: 2rem 0 .75rem; font-size: 1.25rem; }
.sheet-items li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.sheet-items small { display: block; font-size: .8125rem; color: var(--grey); }
.box { width: 1.2rem; height: 1.2rem; border: 2px solid var(--ink); margin-top: .2rem; }
.sheet-notes { height: 12rem; background: repeating-linear-gradient(to bottom, transparent 0 2.4rem, var(--line) 2.4rem calc(2.4rem + 1px)); }
.no-print { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 60rem) {
  .masthead { flex-wrap: wrap; gap: 0 1.25rem; padding-top: .7rem; }
  .masthead nav { order: 3; flex-basis: 100%; gap: 1.4rem; }
  .masthead nav a { padding: .7rem 0; }
  .signout { margin-left: auto; }
  .signout span { display: none; }
  .contents, .feature, .sheet { grid-template-columns: minmax(0, 1fr); }
  .feature-side { position: static; grid-row: 1; }
  .sheet-head { position: static; }
  .spread { height: min(78vh, 44rem); }
  .credit { position: static; padding: 0 var(--gutter) .75rem; max-width: none; text-align: left; align-self: flex-end; }
  .spread { flex-direction: column; justify-content: flex-end; align-items: stretch; }
}
@media (max-width: 40rem) {
  .job a { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .25rem 1rem; }
  .job-n { grid-row: span 2; align-self: start; }
  .items .item { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .visit-card { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .gallery figure, .gallery figure:first-child { grid-column: span 6; grid-row: auto; }
  .gallery figure:first-child img { height: auto; aspect-ratio: 3 / 2; min-height: 0; }
  .spec { padding: 1.25rem 1.25rem .5rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .no-print, .masthead, .colophon { display: none !important; }
  .sheet-print { padding: 0; }
}

/* ---------- Home: one photograph at a time, filling the screen ---------- */
body.is-home .masthead { position: absolute; left: 0; right: 0; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0)); }
body.is-home .colophon { margin-top: 0; }
.cinema { position: relative; height: 100vh; height: 100svh; min-height: 34rem; background: #000; color: #fff; overflow: hidden; }
.frame { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 1.6s ease, visibility 0s 1.6s; }
.frame.is-on { opacity: 1; visibility: visible; transition: opacity 1.6s ease; }
.frame > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.is-on > .cover { animation: sweep 14s cubic-bezier(.3,.5,.4,1) both; }
.frame-alt.is-on > .cover { animation-name: sweep-back; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,0) 60%); }
.frame-copy { position: relative; z-index: 1; padding: 0 var(--gutter) 7.5rem; }
.frame-copy > * + * { margin-top: 1rem; }
.frame.is-on .frame-copy { animation: rise 1.1s .35s cubic-bezier(.2,.7,.2,1) both; }
.frame .credit { z-index: 1; bottom: 5.25rem; }
.frame .chip-word { color: color-mix(in srgb, var(--paint) 88%, #fff); }
@keyframes sweep { from { transform: scale(1.16) translate3d(-3%, 1.5%, 0); } to { transform: scale(1.05) translate3d(1.5%, 0, 0); } }
@keyframes sweep-back { from { transform: scale(1.16) translate3d(3%, -1%, 0); } to { transform: scale(1.05) translate3d(-1.5%, 0, 0); } }

.cinema-next { position: absolute; z-index: 2; top: 5.5rem; right: var(--gutter); max-width: min(22rem, 70vw); background: #fff; color: #000; text-decoration: none; padding: .8rem 1.1rem .9rem; display: grid; gap: .1rem; border-left: 8px solid var(--line); }
.cinema-next.is-soon { border-left-color: var(--yellow); }
.cinema-next.is-overdue { border-left-color: var(--red); }
.cinema-next small { font-size: .8125rem; font-weight: 600; color: var(--grey); }
.cinema-next strong { font-weight: 800; font-size: 1.125rem; line-height: 1.2; }
.cinema-next span { font-size: .9375rem; }
.cinema-next:hover strong { text-decoration: underline; text-underline-offset: .15em; }

.cinema-index { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 0; display: flex; gap: 0 2.25rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(255,255,255,.35); }
.cinema-index a { position: relative; color: rgba(255,255,255,.72); text-decoration: none; font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: .9375rem; letter-spacing: .01em; padding: 1.4rem 0 1.5rem; white-space: nowrap; }
.cinema-index a:hover, .cinema-index a.is-on { color: #fff; }
.cinema-index a::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--yellow); }
.cinema-index a.is-on::before { width: 100%; }
.cinema.is-playing .cinema-index a.is-on::before { animation: fill 9s linear both; }
.cinema-index .cinema-add { margin-left: auto; text-transform: none; font-stretch: 100%; text-decoration: underline; text-underline-offset: .18em; }
.cinema :focus-visible { outline-color: var(--yellow); }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---------- Running report: the cars at a glance ---------- */
.glance td { vertical-align: middle; }
.glance .when { font-weight: 600; white-space: nowrap; }
.glance td small { display: block; }
.glance td.is-soon .when { background: var(--yellow); padding: .05em .35em; }
.glance td.is-overdue .when { background: var(--red); color: #fff; padding: .05em .35em; }
.glance .plate { margin-top: .3rem; }
.muted { color: var(--grey); }

/* ---------- Setting a car up ---------- */
.setup { background: var(--yellow); padding: 1.5rem 1.75rem 1rem; margin-top: 2.5rem; }
.setup p { margin-top: .35rem; }
.setup ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1.5rem; margin-top: 1rem; }
.setup li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-top: 1.5px solid #000; color: #000; text-decoration: none; font-weight: 800; }
.setup li a:hover span { text-decoration: underline; text-underline-offset: .15em; }
.setup li small { font-weight: 600; font-size: .8125rem; }
.setup li.is-done a { font-weight: 500; }
.setup li.is-done span { text-decoration: line-through; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.choice > div { background: var(--stone); padding: 1.5rem; }
.choice > div > * + * { margin-top: .75rem; }
.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 1rem; margin-top: 2rem; }
.candidate { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; position: relative; }
.candidate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.candidate span { position: absolute; left: 1rem; bottom: 1rem; background: #fff; color: #000; font: 700 .9375rem var(--sans); padding: .55em 1em; }
.candidate:hover img { opacity: .85; }
.candidate:hover span, .candidate:focus-visible span { background: var(--yellow); }
.candidates small { display: block; margin-top: .4rem; color: var(--grey); font-size: .8125rem; }
.mileage-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .6rem; margin-top: 1.5rem; align-items: center; }
.mileage-form label { grid-column: 1 / -1; font-weight: 600; font-size: .9375rem; }
.mileage-form label small { font-weight: 400; color: var(--grey); }
.mileage-form input { width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--ink); border-radius: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mileage-form .btn { padding: .65em 1em; }
.facts dd a { font-weight: 400; font-size: .875rem; margin-left: .4rem; }
.search-row { display: flex; gap: .75rem; align-items: flex-end; }
.search-row .grow { flex: 1; }
.results li { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.results strong { display: block; font-weight: 800; font-size: 1.125rem; }
.results span { display: block; font-size: .9375rem; color: var(--grey); }
.check small { color: var(--grey); display: block; }

/* ---------- Household ---------- */
.household .standfirst { margin-bottom: 2.5rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 2.5rem; }
.person { border-top: 4px solid var(--ink); padding-top: 1rem; }
.person header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.person header span { font-size: .875rem; color: var(--grey); }
.person .facts { margin: .75rem 0 1.25rem; }
.person-acts { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: .9375rem; }
.masthead .signout a { color: #fff; font-weight: 600; text-decoration: none; }
.masthead .signout a[aria-current] { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: .3em; text-decoration-thickness: 3px; }

@media (max-width: 60rem) {
  .cinema-next { top: 7.25rem; left: var(--gutter); right: auto; }
  .frame .credit { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 4.6rem; padding: 0; }
  .frame-copy { padding-bottom: 7rem; }
}

/* ---------- LogBook logo: an open book, then the name set like a magazine title ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-style: normal; text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 400; padding: .35rem 0; border-bottom: 3px solid transparent; }
.wordmark[aria-current] { border-bottom-color: var(--yellow); }
.wordmark .mark { width: 2.1rem; height: auto; flex: none; }
.wordmark .word { display: inline-flex; align-items: baseline; line-height: 1; }
.wordmark b { font-family: var(--sans); font-stretch: 125%; font-weight: 900; font-size: 1.3rem; letter-spacing: -.03em; }
.wordmark i { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.55rem; letter-spacing: -.01em; margin-left: .04em; }
.wordmark.small .mark { width: 1.6rem; }
.wordmark.small b { font-size: 1rem; } .wordmark.small i { font-size: 1.2rem; }
.colophon .wordmark { color: #fff; }

/* ---------- After an accident ---------- */
.accident { border: 3px solid var(--ink); padding: 1.25rem 1.4rem; margin-top: 1.5rem; }
.accident h2 { font-size: 1.25rem; }
.accident > * + * { margin-top: .8rem; }
.accident-who strong { display: block; font-weight: 800; font-size: 1.125rem; }
.accident-who span { font-size: .9375rem; color: var(--grey); }
.accident .btn { display: block; text-align: center; background: var(--red); border-color: var(--red); }
.accident .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.accident-links { display: grid; gap: .35rem; font-size: .9375rem; }
.accident ol { list-style: decimal; padding-left: 1.2rem; font-size: .9375rem; line-height: 1.45; }
.accident ol li + li { margin-top: .4rem; }
.facts dd small { display: block; font-weight: 400; color: var(--grey); font-size: .8125rem; margin-top: .15rem; }
.facts dd a.plain-link { font-weight: 600; font-size: inherit; margin-left: 0; }

/* ---------- Online news ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2rem 1.25rem; }
.video { color: inherit; text-decoration: none; display: grid; gap: .3rem; align-content: start; }
.video-pic { display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; margin-bottom: .45rem; }
.video-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.video:hover .video-pic img { transform: scale(1.04); }
.video strong { font-weight: 800; font-size: 1.0625rem; line-height: 1.25; text-wrap: pretty; }
.video:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.video span { font-size: .9375rem; }
.video small { font-size: .8125rem; color: var(--grey); }
.video .tag { font-size: .75rem; padding: .05em .4em; margin-left: .3rem; }

/* ---------- Addresses and journey times ---------- */
.journey { align-items: flex-end; }
.journey-from { flex: 1 1 10rem; font-weight: 700; padding-bottom: .7rem; }
.journey-from small { display: block; font-weight: 400; color: var(--grey); font-size: .8125rem; }
.form fieldset.lives { border-top: 0; margin-top: 1rem; padding-top: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.form fieldset.lives > * + * { margin-top: 0; }
.form fieldset.lives legend { font-stretch: 100%; font-weight: 600; font-size: .9375rem; margin-bottom: .3rem; }
