/*
 * Reset, fonts, body. Tokens only — no hex, no fractional pixels (TokensTest).
 * Class naming: BEM-lite. Block .error-page, element .error-page__title, state .is-active.
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-15);
  line-height: var(--leading-24);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
}

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

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

a {
  color: var(--color-accent-text);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Placeholder for screens later tickets build */

.placeholder {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-48) var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.placeholder__title {
  font-size: var(--text-32);
  line-height: var(--leading-40);
  letter-spacing: var(--tracking-tight);
}

.placeholder__button {
  height: var(--control-size);
  padding: 0 var(--space-16);
  border-radius: var(--radius-8);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  cursor: pointer;
}

/* Error pages (404 / 405 / 500) */

.error-page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-96) var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.error-page__status {
  font-family: var(--font-display);
  font-size: var(--text-12);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  line-height: var(--leading-16);
  color: var(--color-text-subtle);
}

.error-page__title {
  font-size: var(--text-40);
  line-height: var(--leading-40);
  letter-spacing: var(--tracking-tight);
}

.error-page__message {
  font-size: var(--text-17);
  line-height: var(--leading-28);
  color: var(--color-text-muted);
}

.error-page__reference {
  font-size: var(--text-13);
  line-height: var(--leading-20);
  color: var(--color-text-subtle);
}

.error-page__link {
  font-family: var(--font-display);
  font-size: var(--text-12);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-16);
  text-transform: uppercase;
}

/* ---------- The brand: TCA and its mark, the square plate (decision 227) ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.brand__mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  fill: var(--color-accent);
}
