/* Components: small reusable pieces of the page. */

/* Small capital labels above headings and in the footer */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* Metori red on the word that carries the page's idea, in its main heading (once per page) */
.accent { color: var(--color-accent); }

/* Introductory paragraph */
.lede {
  max-width: 40em;
  font-size: var(--size-large);
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* "Read more" link, underlined in red */
.more {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

/* Marker for a text still to be validated: remove the paragraph once approved */
.to-validate {
  font-family: var(--font-mono);
  font-weight: var(--weight-strong);
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* Button */
.button {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  background: var(--color-background-dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover { background: var(--color-accent); color: var(--white); }

/* Disclaimer window (gate.njk, gate.js) */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--blue-1) 55%, transparent);
  backdrop-filter: blur(3px);
}
.gate[hidden] { display: none; }
.gate-open, .gate-open body { overflow: hidden; }
.gate-box {
  max-width: 680px;
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--color-background);
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--blue-1) 35%, transparent);
}
.gate-box .label { margin: 0 0 16px; }
.gate-text { font-size: var(--size-small); line-height: 1.6; color: var(--color-text-muted); }
.gate-text p { margin: 0 0 12px; }
.gate .button { margin-top: 12px; }

/* Without JavaScript: a banner above the page instead of the window */
.gate-fallback {
  margin: 0;
  padding: 10px var(--space-gutter);
  background: var(--color-background-dark);
  color: var(--color-text-on-dark);
  font-size: var(--size-small);
  text-align: center;
}
.gate-fallback a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
