/* Base: fuente, reinicio, tipografía y superficies. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


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

html {
  scroll-behavior: smooth;
}
main > section {
  scroll-margin-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text-on-dark);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--fast) var(--ease-out), opacity var(--fast) var(--ease-out);
}

.surface-bone :focus-visible,
.surface-bone-2 :focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden-focusable:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

/* scrollbar */
html {
  scrollbar-color: var(--gold-lo) var(--black);
  scrollbar-width: thin;
}

.wrap {
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
/* Regla global: todos los títulos van en mayúsculas (CSS, no en el HTML) y con más espacio entre letras. */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.display {
  font-family: var(--font-text);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

.title-stamp {
  color: var(--foil);
}

.title-bone {
  color: var(--bone);
}
.title-bone::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1.25rem;
  background: var(--gold);
}

.title-deboss {
  color: var(--brown);
}

h2.display {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
}

.copy {
  max-width: 68ch;
}
.copy p {
  margin: 0 0 1.25rem;
}

/* ---------- surfaces ---------- */
.surface-dark {
  position: relative;
  background: var(--black);
  color: var(--text-on-dark);
  isolation: isolate;
}
.surface-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain-light);
  opacity: 0.05;
  pointer-events: none;
}

.surface-bone {
  position: relative;
  background: var(--bone);
  color: var(--ink);
  isolation: isolate;
}
.surface-bone-2 {
  background: var(--bone-2);
}
.surface-bone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain-dark);
  opacity: 0.26;
  pointer-events: none;
}

.section {
  padding-block: var(--section-y);
}

.section-rule {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.js .section-rule {
  transform: scaleX(0);
  transition: transform var(--slow) var(--ease-out);
}
.js .section-rule.is-in {
  transform: scaleX(1);
}
.surface-dark .section-rule {
  background: var(--gold-lo);
  opacity: 0.7;
}
