/* (R)Evolution, shared by every page. Two inks: e-ink paper and carbon. Everything else is dither. */

:root {
  --paper: #e4e2db;
  --ink: #141414;
  --pad: clamp(16px, 3vw, 48px);
  color-scheme: light;
}

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

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Anybody", system-ui, sans-serif;
  font-variation-settings: "wdth" 112;
  font-weight: 420;
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Language: only the active one is rendered (and read). */
/* Text written in one language only opts out with data-untranslated. */
html[data-lang="en"] [lang="es"]:not([data-untranslated]),
html[data-lang="es"] [lang="en"]:not([data-untranslated]) { display: none; }
html[data-lang] > body [lang] { font: inherit; }

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

svg { display: block; color: currentColor; }

/* ---------- chrome: almost nothing ---------- */

.chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--pad);
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "wdth" 150;
  font-weight: 860;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.chrome-link {
  margin-left: auto;
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.chrome-link:hover { text-decoration-thickness: 4px; }
.chrome-link[aria-current] { text-decoration: none; }

.lang { display: flex; gap: 6px; }

.lang button {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }


@media (max-width: 420px) {
  .chrome-link { margin-right: 8px; font-size: 0.875rem; }
  .mark { font-size: 1.25rem; }
}
