/*
 * Readability layer, loaded after every other stylesheet.
 *
 * The site has three licensed weights of Gill Sans: Light, SemiBold and
 * UltraBold. Almost all text was Light, in white or mid grey on black, down
 * to 13px: thin strokes on a dark background lose their edges. This file:
 *
 *  1. Floors the size: nothing smaller than 16px except legal small print
 *     (labels and meta lines 16-17px, short UI text 17-19px).
 *  2. Lifts secondary text from #9a9a9a / #707070 to #c8c8c8 (about 12:1 on
 *     black, was 7:1 and 4:1); tertiary text never below #b4b4b4.
 *  3. Uses SemiBold for names, titles, values and status labels, and keeps
 *     Light for running text and for the meta lines under a name, where Light is given a hairline stroke
 *     (0.014em, about 0.25px at 18px) that adds a little weight. A real
 *     "Regular" cut would be better: see UX-review-en-plan-ontsluiting.md.
 *  4. Takes the font smoothing off "antialiased", which thins light text on
 *     dark backgrounds on macOS and iOS.
 *
 * To switch the extra weight off: set --light-boost to 0 below.
 */

:root {
  --light-boost: 0.014em;
  --text-2: #c8c8c8;
  --text-3: #b4b4b4;
  --semibold: "Gill Sans SemiBold", sans-serif;
  --light: "Gill Sans Light", sans-serif;
}

body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  -webkit-text-stroke: var(--light-boost);
}
/* Heavier cuts do not need it. */
h1, h2, h3, h4, h5, h6, .button, .site-logo, .site-logo *, strong, b, .category, .price,
.typen__name, .kennis-list__name, .side-card__title, .filter__title, .archive-button,
.mini-cars__name, .tl__name, .car-wall__status, .car-wall__item figcaption a,
.side-card__rows dd, .showroom__filter, .whatsapp a {
  -webkit-text-stroke: 0;
}

/* ---- Breadcrumb, side cards, small lists ---- */
.crumbs { font-size: 1.125rem; }
.crumbs li { color: var(--text-2); }
.crumbs li + li::before { color: var(--text-3); }
.crumbs li[aria-current] { color: #fff; }

.side-card { font-size: 1.1875rem; line-height: 1.5; }
.side-card__title { font-size: 1.125rem; }
.side-card__rows dt { color: var(--text-2); }
.side-card__rows dd { font-family: var(--semibold); line-height: 1.35; }
.side-card__more { font-size: 1.1875rem; }
.mini-cars__name { font-size: 1.1875rem; }
.mini-cars__name, .mini-cars__meta { line-height: 1.3; }
.mini-cars__meta { font-size: 1.0625rem; color: var(--text-2); font-family: var(--light); }
.neighbours__label { font-size: 1rem; color: var(--text-2); }
.chips a { font-size: 1.0625rem; }

/* Photo wall captions: name, then the data in SemiBold */
/* Name in SemiBold, the data line under it in Light (with the hairline boost) */
.car-wall__item figcaption a { font-family: var(--semibold); }
.car-wall__meta { font-size: 1.125rem; line-height: 1.35; margin-top: 4px; color: #d8d8d8; font-family: var(--light); }
.car-wall__status { font-size: 1rem; line-height: 1.2; margin-top: 6px; color: #d4d4d4; font-family: var(--semibold); letter-spacing: 0.05em; }
.car-wall__item[data-status="for-sale"] .car-wall__status { color: #49E05F; }

/* ---- Articles ---- */
.kennis-list__meta { font-size: 1.0625rem; color: var(--text-2); font-family: var(--light); }
.kennis-list__excerpt { color: #d8d8d8; }

/* ---- Archive, search ---- */
.filter__title { font-size: 1.0625rem; }
.filter input[type="search"], .filter input[type="number"], .filter select { font-size: 1.1875rem; }
.filter__option { font-size: 1.1875rem; }
.filter__n { color: var(--text-2); font-size: 0.9em; }
.swatch { font-size: 1.125rem; }
.archive-count { font-size: 1.3rem; }
.archive-sort select, .archive-view a { font-size: 1.0625rem; }
.archive-chips a { font-size: 1.0625rem; }
.archive-table { font-size: 1.1875rem; }
.archive-table th { color: var(--text-2); font-size: 1.0625rem; }
.archive-table .is-sold { color: var(--text-2); }
.search-links { font-size: 1.25rem; }
.search-links .count { color: var(--text-2); }

/* ---- Timeline ---- */
.tl__legend { font-size: 1.0625rem; color: var(--text-2); }
.tl__scale { font-size: 1.0625rem; color: var(--text-2); }
.tl__group, .tl__group a { font-size: 1.25rem; color: var(--text-2); }
.tl__name { font-size: 1.1875rem; }
.tl__meta { font-size: 1rem; color: var(--text-2); }

/* ---- Menu ---- */
@media (min-width: 992px) {
  .main-nav-wrapper .nav > li > .sub-menu { font-size: 1.25rem; }
}

/* ---- Showroom, forms, buttons that were small or dim ---- */
.gfield_required { font-size: 0.9375rem; }
.aanbod-filter .toggle-option, .toggle-option { color: rgba(255, 255, 255, 0.85); }
.whatsapp a { font-size: 1rem; line-height: 1rem; font-family: var(--semibold); font-weight: 400; }
.header-search__toggle { color: var(--text-2); }

/* First and last year of a timeline axis stay inside the column */
.tl__scale span:first-child { transform: none; }
.tl__scale span:last-child { transform: translateX(-100%); }

/* Sold car page: the emphasis is on what is for sale; "this car is sold" is a quiet line under it */
.sold-related__intro { color: var(--text-2); font-size: 1.25rem; }
