/* KonfigX site: shared base for every page (tokens, type, buttons, header, footer).
   Page-specific styles stay inline in each page. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-wdth.woff2") format("woff2");
}

:root {
  /* the stand look has fixed colours: phone browsers must not auto-darken it (Chrome / Samsung Internet "dark mode for websites") */
  color-scheme: only light;
  --hall: #e2e4e7;        /* hall floor: the page ground */
  --wall: #fafbfc;        /* stand wall panels */
  --paper: #ffffff;       /* the quote slip */
  --ink: #15171b;
  --ink-2: #464b53;
  --rule: #c6cad0;
  --fascia: #1f3bd6;      /* the one committed colour */
  --fascia-deep: #1730b3;
  --fascia-ink-2: #d3daff;
  --plate: #ffd400;       /* stand-number plates */
  --flash: #fff1a8;       /* a quote line that just changed */
  --bad: #c42a35;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sign: 'Archivo', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--fascia) var(--hall); }
body {
  background: var(--hall);
  color: var(--ink);
  font-family: var(--sign);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--fascia);
  overflow-x: hidden;
}
::selection { background: var(--plate); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--fascia); outline-offset: 3px; }
.fascia :focus-visible, .band :focus-visible { outline-color: var(--plate); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }

/* ---------- signage type ---------- */
.sign {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .95;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-stretch: 110%; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-go { background: var(--fascia); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-plate { background: var(--plate); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-go:hover { background: var(--fascia-deep); }
  .btn-line:hover { background: var(--ink); color: var(--wall); }
  .btn-plate:hover { background: #ffe24d; }
}

/* ---------- fascia (header) ---------- */
.fascia { background: var(--fascia); color: #fff; }
.fascia-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.9rem; text-decoration: none; color: #fff; }
.wordmark b { color: var(--plate); font-weight: 800; position: relative; }
.wordmark b.x-cv { color: transparent; }
.wordmark b .x-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.fascia nav { display: flex; align-items: center; gap: 26px; }
.fascia nav a.l { color: #fff; text-decoration: none; font-weight: 600; font-stretch: 112%; font-size: .95rem; padding-block: 10px; }
.fascia nav a.l[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
@media (hover: hover) and (pointer: fine) { .fascia nav a.l:hover { text-decoration: underline; } }
.plate {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: var(--plate); color: var(--ink);
  padding: 8px 12px 7px; line-height: 1;
}
.plate .sign { font-size: 1.15rem; }
.langs { display: flex; align-items: center; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 700; font-stretch: 112%; font-size: .9rem; color: var(--fascia-ink-2); text-decoration: none; }
.lang[aria-current] { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
@media (hover: hover) and (pointer: fine) { a.lang:not([aria-current]):hover { color: #fff; } }

/* ---------- blue section band ---------- */
.band { background: var(--fascia); color: #fff; }
.band .wrap { padding: 16px 0 15px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.band h2, .band h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.band .plate { flex: none; }

/* ---------- stand wall (content panel) ---------- */
.wall { background: var(--wall); border-bottom: 1px solid var(--rule); }
.wall .wrap { padding: 52px 0 64px; }

/* ---------- footer ---------- */
footer.site { padding: 28px 0 40px; font-size: .9rem; color: var(--ink-2); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer.site a { display: inline-block; padding-block: 12px; }

/* ---------- simple pages (demos, legal, contact, 404) ---------- */
.page-head { padding: 40px 0 30px; }
.page-head h1 { font-stretch: 118%; font-weight: 750; font-size: clamp(2rem, 3.9vw, 3.2rem); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.page-head p { color: var(--ink-2); max-width: 60ch; margin-top: 14px; font-size: 1.1rem; }
.crumb { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.crumb a { display: inline-block; padding-block: 12px; margin-block: -12px; }

@media (max-width: 1020px) {
  .fascia nav a.l:not(.l-keep) { display: none; }
  .band .plate { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .fascia-inner { min-height: 60px; gap: 10px; }
  .wordmark { font-size: 1.3rem; }
  .fascia nav { gap: 8px; }
  .fascia nav a.l.l-keep { font-size: .9rem; padding: 10px 4px; white-space: nowrap; }
  .lang { min-width: 34px; }
  .lang[aria-current] { display: none; }
  .fascia nav .btn { min-height: 44px; padding: 9px 12px; font-size: .9rem; white-space: nowrap; }
  .wall .wrap { padding: 40px 0 48px; }
  .page-head { padding: 28px 0 22px; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 24px); }
  .fascia-inner { gap: 6px; }
  .wordmark { font-size: 1.15rem; }
  .fascia nav { gap: 4px; }
  .fascia nav a.l.l-keep { font-size: .85rem; padding: 10px 4px; }
  .lang { min-width: 30px; font-size: .85rem; }
  .fascia nav .btn { min-height: 40px; padding: 8px 10px; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

/* ---------- forced dark modes (Samsung Internet) ----------
   Samsung Internet's dark mode repaints every site and ignores color-scheme: it turns CSS yellow (#ffd400)
   into dark brown and dark text into white. plate.js paints a solid #ffd400 <canvas> behind .btn-plate / .plate
   (canvas pixels are never repainted) and adds .plate-cv so the text stays dark ink via a clipped dark background.
   Everyone else sees the exact same ink-on-yellow as before. */
.btn-plate, .plate { position: relative; isolation: isolate; }
.plate-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  z-index: 0; pointer-events: none; border-radius: inherit;
  transition: opacity 160ms var(--ease-out);
}
.btn-plate > .plate-bg { inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.btn-plate > :not(.plate-bg), .plate > :not(.plate-bg) { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .btn-plate:hover > .plate-bg { opacity: 0; }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .plate-cv > span, .plate-cv .sign {
    color: transparent;
    background-color: var(--ink);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
@media (forced-colors: active) {
  .plate-bg, .wordmark b .x-bg { display: none; }
  .plate-cv > span, .plate-cv .sign { color: ButtonText; background: none; }
  .wordmark b.x-cv { color: Highlight; }
}

/* header call to action: the long label does not fit next to the wordmark on phones */
.cta-s { display: none; }
@media (max-width: 560px) { .cta-l { display: none; } .cta-s { display: inline; } }
