/* ==========================================================================
   Base: reset, document defaults, type, accessibility helpers
   ========================================================================== */

/* Display face for the wordmark and section titles (supplied by the studio). */
@font-face {
  font-family: "Revolver Blackletter";
  src: url("../fonts/RevolverBlackletter-Regular.otf") format("opentype");
  font-weight: 400;
  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: var(--header-height);
}

/* Native smooth scrolling only when js/motion.js (Lenis) isn't driving the scroll. */
html:not(.lenis) {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--color-text-bright);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-bright);
}

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

a {
  color: inherit;
  text-decoration-color: var(--color-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-text-bright);
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--color-copper);
  color: var(--color-bg-deep);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Small caps label style used for nav, meta and section heads. */
.caps {
  font-family: var(--font-caps);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

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

.skip-link {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 300;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-parchment);
  color: var(--color-ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Draft text the studio still has to fill in. */
.placeholder {
  color: var(--color-copper-bright);
  font-style: italic;
}

/* Scroll lock while the intro, menu or lightbox is open. */
.is-scroll-locked,
.is-scroll-locked body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
