/* BASE: the reset, the body, focus, links and the shared controls. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s-6); }
body {
  margin: 0;
  min-height: var(--screen);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: var(--w-read);
  line-height: var(--lh-read);
  color: var(--ink);
  background: var(--sky-50);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-deep); text-underline-offset: var(--underline); text-decoration-thickness: var(--hair); }
a:hover { text-decoration-thickness: var(--chev-w); }

:focus-visible { outline: var(--ring) solid var(--focus); outline-offset: var(--ring-offset); }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s-4); top: calc(-1 * var(--s-20)); z-index: 50;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  background: var(--ink); color: var(--white); font-weight: var(--w-strong); text-decoration: none;
}
.skip:focus { top: var(--s-4); }

/* Script-only and no-script parts. The head script sets .js before paint. */
.js .no-js { display: none !important; }
html:not(.js) .js-only { display: none !important; }

/* --- icons and stars ------------------------------------------------ */
.ico { width: var(--ico); height: var(--ico); flex: none; fill: none; stroke: var(--blue-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stars { display: inline-flex; gap: var(--s-1); }
.star { width: var(--star); height: var(--star); fill: var(--red); }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--ctl-h); padding: 0 var(--s-6);
  border: var(--hair) solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font-size: var(--t-sm); font-weight: var(--w-strong); line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.btn-primary:hover { background: var(--blue-soft); border-color: var(--blue-deep); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue-ink); }
.btn .arrow { font-weight: var(--w-read); }

.link {
  display: inline; padding: 0; border: 0; background: none;
  font-size: var(--t-md); font-weight: var(--w-label); color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: var(--underline);
}
.link:hover { color: var(--blue-deep); text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .pill, .card, .tile, .row { border: var(--hair) solid CanvasText; }
  .btn-primary, .btn-dark { forced-color-adjust: none; background: ButtonText; color: ButtonFace; }
  .star { fill: CanvasText; }
}
