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

html {
  -webkit-text-size-adjust: 100%;
  /* Reserve the scrollbar so locking the page never shifts what is centred. */
  scrollbar-gutter: stable;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  /* Sized for reading through perspective: see READ in universe/constants.js. */
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.has-overlay,
html.has-lightbox,
html.is-intro {
  /* A fullscreen photograph owns the viewport: nothing scrolls behind it. */
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

/* ── The one interaction style: a line of text that can be entered ──── */
.cue {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--hairline-strong);
  transition: color var(--speed-fast) ease, border-color var(--speed-fast) ease, letter-spacing var(--speed) var(--ease-out);
}

.cue em {
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: none;
}

.cue:hover,
.cue:focus-visible {
  color: var(--violet-pale);
  border-color: var(--violet);
  letter-spacing: 0.26em;
}

.cue--quiet {
  color: var(--text-muted);
  border-color: var(--hairline);
}

.cue--small {
  font-size: var(--t-label);
  letter-spacing: 0.16em;
}

.region__eyebrow,
.doc__eyebrow,
.doc__label {
  font-size: var(--t-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translate(-50%, -180%);
  z-index: 9999;
  padding: 0.55rem 1.1rem;
  background: var(--void);
  border: 1px solid var(--hairline-strong);
  font-size: 0.75rem;
  transition: transform var(--speed-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.noscript {
  position: relative;
  z-index: 5;
  max-width: 60ch;
  margin: 20vh auto;
  padding: 0 1.5rem;
  color: var(--text-muted);
}
