/* Generated from brand/tokens/tokens.json by build_tokens.py. Do not edit by hand. */
/* Element defaults, browser surfaces and the texture utilities. Load after tokens.css and ../fonts/fonts.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ad-ground);
  color: var(--ad-ink);
  font-family: var(--ad-font-sans);
  font-size: var(--ad-t-base);
  line-height: var(--ad-leading-body);
  letter-spacing: var(--ad-tracking-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
h1, h2, h3, h4 { font-weight: var(--ad-weight-display); text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: var(--ad-radius); }

/* Browser surfaces: all in ink, no accent colour */
::selection { background: var(--ad-ink); color: var(--ad-ground); }
:root { caret-color: var(--ad-ink); accent-color: var(--ad-ink); }
:focus-visible { outline: var(--ad-focus-width) solid var(--ad-ink); outline-offset: var(--ad-focus-offset); }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
/* Tabular figures only where digits line up. Not on whole tables: in Schibsted Grotesk the tabular
   setting also widens commas, full stops and colons, which breaks the text in table cells. */
:where(.ad-nums, td.num, [data-count]) { font-variant-numeric: tabular-nums; }
:where(code, kbd, samp, .ad-data) { font-family: var(--ad-font-mono); }
.ad-label { font-family: var(--ad-font-mono); font-size: var(--ad-t-xs); letter-spacing: var(--ad-tracking-caps); text-transform: uppercase; color: var(--ad-ink-soft); }
@supports (scrollbar-color: auto) { html { scrollbar-color: color-mix(in oklab, var(--ad-ink) 26%, transparent) transparent; scrollbar-width: thin; } }

/* The foot: one per view, under the one kept thing */
.ad-foot { box-shadow: inset 0 calc(-1 * var(--ad-foot)) 0 var(--ad-ink); }

/* Grain. On a section: add .ad-grain (the layer is absolutely placed, so the section's own
   background never repaints). On the whole page: add .ad-grain-page to <body> (a fixed layer). */
.ad-grain { position: relative; isolation: isolate; }
.ad-grain::after, .ad-grain-page::after {
  content: ""; inset: 0; pointer-events: none; z-index: var(--ad-z-grain);
  background-image: var(--ad-grain); background-size: 220px 220px;
  opacity: var(--ad-grain-opacity); mix-blend-mode: var(--ad-grain-blend);
}
.ad-grain::after { position: absolute; }
.ad-grain-page::after { position: fixed; }

/* Light. Rig light on Black, haze on White. Layered over the ground colour, under content. */
.ad-rig-light { background-image: var(--ad-rig-light); }
.ad-haze { background-image: var(--ad-haze); }

/* Frost: the sticky bar over photographs. Solid when the device asks for less transparency. */
.ad-frost { background: color-mix(in oklab, var(--ad-ground) 74%, transparent); -webkit-backdrop-filter: var(--ad-frost); backdrop-filter: var(--ad-frost); }
@media (prefers-reduced-transparency: reduce) { .ad-frost { background: var(--ad-ground); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Sheen: a lacquer light that crosses a black object once, on hover. Never loops. */
.ad-sheen { position: relative; overflow: hidden; }
.ad-sheen::before { content: ""; position: absolute; inset: 0; background: var(--ad-sheen); transform: translateX(-60%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ad-sheen::before { transition: transform var(--ad-d-slow) var(--ad-ease-reveal); }
  .ad-sheen:hover::before { transform: translateX(60%); }
}

/* Reduced motion: fewer and gentler, not zero. Keep opacity, drop movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color !important; }
}
