:root {
  --bg: hsl(30 6% 5%);
  --text: hsl(36 14% 92%);
  --muted: hsl(30 6% 64%);
  --rule: hsl(30 6% 18%);
  --accent: hsl(233 70% 72%);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: hsl(30 8% 96%);
    --text: hsl(30 8% 8%);
    --muted: hsl(30 6% 36%);
    --rule: hsl(30 6% 84%);
    --accent: hsl(233 56% 49%);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 680px; margin: 0 auto; padding: 56px 20px 72px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 40px; font-size: 0.95rem; }
nav a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 40px 0 8px; }
h3 { font-size: 1rem; margin: 24px 0 4px; }
.meta, .muted { color: var(--muted); }
.meta { margin: 0 0 32px; font-size: 0.95rem; }
.lead { font-size: 1.1rem; }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
a { color: var(--accent); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.9rem; }

/* Cabecera: el mapa de memoria de Holgura con sus tonos (Holgura/Shared/MemoryKind+Style.swift),
   celdas en orden de lectura: sistema, comprimida, apps, caché y libre.
   Sin JS: el SVG ya está en su estado final; con «reducir movimiento» se ve fijo. */
:root { --hg-s: #6b7184; --hg-c: #e2a23e; --hg-a: #6f7dff; --hg-k: #343f80; --hg-f: rgba(235, 235, 245, .14); }
@media (prefers-color-scheme: light) {
  :root { --hg-s: #4a4f5e; --hg-c: #c27a12; --hg-a: #3846c4; --hg-k: #a6afee; --hg-f: rgba(28, 30, 46, .1); }
}
.hero { display: flex; align-items: center; gap: 20px; margin: 0 0 16px; }
.hero h1 { margin: 0; }
.hg-art { width: 88px; height: 88px; flex: none; overflow: visible; }
.hg-art rect { transform-box: fill-box; transform-origin: center; }
.hg-s { fill: var(--hg-s); } .hg-c { fill: var(--hg-c); } .hg-a { fill: var(--hg-a); }
.hg-k { fill: var(--hg-k); } .hg-f { fill: var(--hg-f); }

@media (prefers-reduced-motion: no-preference) {
  .hg-art rect { animation: hg-in .5s cubic-bezier(.2, .9, .25, 1.05) both; animation-delay: calc(var(--i) * 40ms); }
}
@keyframes hg-in { from { transform: scale(0); opacity: 0; } }

@media (min-width: 560px) {
  .hg-art { width: 112px; height: 112px; }
  .hero h1 { font-size: 2.4rem; }
}
