/* Shared by both mockups: self-hosted faces, reset, accessibility helpers. */

/* Imbue: the closest free match to the logo's condensed didone capitals.
   Variable on weight and optical size; the browser picks opsz from the font size. */
@font-face {
  font-family: "Imbue";
  src: url("fonts/imbue-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--ground);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  accent-color: var(--accent);
  caret-color: var(--accent);
}

::selection {
  background: var(--select-bg);
  color: var(--select-ink);
}

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

ol,
ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: "Imbue", "Bodoni 72", "Didot", serif;
  font-weight: 650;
  font-optical-sizing: auto;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* Generated artwork ships on white: multiply lets the page ground show through.
   Its white measures 253-254, so a touch of contrast lifts it to 255 and no box edge remains. */
.on-ground {
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.09em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--ground);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.condensed {
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.sample-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
