/*
 * WireHand — hoja única del sitio estático (B19).
 * Colores de src/lib/theme/tokens.ts: fondo #0A0A0F, superficie #14141C,
 * borde #2A2A36, texto #FFFFFF / #B0B0B8, acento naranja #FF6B1A solo en
 * enlaces y wordmark. Contraste: #FF6B1A sobre #0A0A0F ≈ 7:1, #B0B0B8 ≈ 9:1 (AA).
 * Sin JavaScript. Escrita a mano: scripts/build-site.js no la regenera.
 */
:root {
  color-scheme: dark;
  --bg: #0A0A0F;
  --surface: #14141C;
  --border: #2A2A36;
  --text: #FFFFFF;
  --text-2: #B0B0B8;
  --accent: #FF6B1A;
  --accent-hover: #FF8C42;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.site-header, main, .site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  color: var(--accent);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

main { padding-top: 8px; padding-bottom: 40px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: 32px; margin-top: 0.9em; }
h2 { font-size: 24px; padding-top: 0.4em; border-top: 1px solid var(--border); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p, ul, ol, blockquote, .table-wrap { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.3em 0; }
li > ul, li > ol { margin: 0.3em 0 0; }

strong { font-weight: 700; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}

blockquote {
  padding: 4px 16px;
  border-left: 3px solid var(--border);
  color: var(--text-2);
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
th { background: var(--surface); font-weight: 700; }

.hero { padding: 24px 0 8px; }
.hero-title { font-size: 44px; margin: 0.4em 0 0.1em; color: var(--accent); }
.tagline { font-size: 22px; color: var(--text-2); margin-top: 0; }

.link-list { list-style: none; padding-left: 0; }
.link-list li { margin: 0; }
.link-list a { display: inline-block; padding: 10px 0; font-size: 20px; }

.site-footer {
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 16px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer nav a { display: inline-block; padding: 6px 0; }
.site-footer p { margin: 0; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero-title { font-size: 38px; }
  th, td { padding: 8px; }
}
