/* Fonts, reset, element defaults, focus system, skip link. */

@font-face {
  font-family: "Besley";
  src: url("../fonts/besley/besley-latin-700-800.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* Hero wordmark only: Source Serif 4 (opsz 60, wght 900) subset to "Sivet.", "Club",
   "Buyers" and renamed, because the original declares the Reserved Font Name "Source". */
@font-face {
  font-family: "Sivet Wordmark";
  src: url("../fonts/wordmark/sivet-wordmark.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  font-variant-numeric: lining-nums;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-red);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-red-deep);
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Focus: one visible ring everywhere, switched to a light ring on red bands. */
:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 3px;
}

.band--red :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-on-deep);
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-field);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--c-white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
