/* ═══════════════════════════════════════════════════════════════════════════
   GACETA OFFICIAL — the standalone pages.

   The brand name is GACETA OFFICIAL, two Fs, matching the domain
   gacetaofficial.com. "Oficial" with one F is the Spanish word and is correct
   in that language. See docs/wikipedia.txt for the brand background; this file
   ships, so it carries the identification and not the history.

   404, privacy and terms are separate documents rather than windows over the
   stage, and that is a decision rather than a shortcut:

   - The stage costs ~1.9 MB of JavaScript plus the model pool. A privacy
     policy is 4 KB of text and it has to load on a bad connection, on a
     crawler, and on a phone in the pocket of someone who has just been asked
     for their email address.
   - It has to be linkable from anywhere, including an email, so it needs a
     real URL with a real status code rather than a hash route.
   - It has to be readable when the WebGL context is unavailable, which is
     exactly when someone reading a privacy policy most needs to read it.

   So these pages carry the same design language and none of the machinery:
   black on white, hard edges, no radius, no shadow, the one hairline rule, the
   condensed caps for anything structural and a real text face for the prose.
   The condensed display face is a typeface, not a text face — at body size it
   goes thin and crowded, which is the same reason style.css keeps --f-body
   around for forms and paragraphs.

   Regenerate the icons and the social card with: python tools/make-icons.py
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Gaceta Condensed';
  src: url('fonts/gloucester-mt-extra-condensed.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --grey: #5f5f5f;
  --hair: 1px solid var(--ink);

  --f-dis: 'Gaceta Condensed', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --f-ui: 'Gaceta Condensed', 'Haettenschweiler', 'Arial Narrow', system-ui, sans-serif;
  --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 68ch;
}

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

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Chrome ─────────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: var(--hair);
}

.top__home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top__home img { width: 28px; height: 28px; }

.top__home:hover .top__name { text-decoration: underline; text-underline-offset: 3px; }
.top__home:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.top__nav {
  display: flex;
  gap: 18px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top__nav a { color: var(--grey); text-decoration: none; padding: 2px 0; }
.top__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.top__nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.top__nav a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px 20px 96px;
}

.kicker {
  margin: 0 0 6px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

h1 {
  margin: 0 0 4px;
  font-family: var(--f-dis);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.standfirst {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: var(--hair);
  font-size: 17px;
  color: var(--grey);
}

h2 {
  margin: 40px 0 10px;
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h3 {
  margin: 26px 0 6px;
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f4f4f4;
  padding: 1px 5px;
}

dl { margin: 0 0 16px; }
dt {
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 18px;
}
dd { margin: 2px 0 0; }

.updated {
  margin: 0 0 36px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ── Utility ────────────────────────────────────────────────────────────── */

/* Available to a screen reader, not to the eye. The 404 page needs its real
   heading in the document — a page whose only <h1> is a decorative <p> is a
   page with no heading — but "No encontrado/Not found" is already on screen
   beside the numerals, so reading both aloud is the wrong answer. This keeps
   the heading in the accessibility tree and out of the layout. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── 404 ────────────────────────────────────────────────────────────────── */

/* The whole page is one numeral, one line and one button, so the prose column
   is the wrong shape for it: everything centres on the page axis instead of
   hanging off the left edge of a 68ch measure. */
.nf-main {
  text-align: center;
}
.nf-main .actions {
  justify-content: center;
}

.code {
  margin: 0;
  font-family: var(--f-dis);
  font-size: clamp(84px, 22vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nf-line {
  margin: 0 0 8px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 0;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: var(--hair);
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--paper); color: var(--ink); }

.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.foot {
  border-top: var(--hair);
  padding: 20px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.foot a { color: inherit; }

@media (max-width: 560px) {
  main { padding-top: 32px; }
  .top { flex-wrap: wrap; }
}

@media print {
  .top, .actions { display: none; }
  body { font-size: 11pt; }
}