/* ==========================================================================
   Alejandro de la Fuente — Personal Hub
   Blanco y negro puro. Tipografía: Oxanium. Sin paleta de color.
   Arquitectura: header (wordmark + hamburguesa→sitemap) en cada página,
   home ultra-minimalista, footer minimal en el resto.
   ========================================================================== */

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-1: #6b6b68;
  --gray-2: #a8a8a3;
  --gray-3: #dedede;
  --maxw: 720px;
  --font: 'Oxanium', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--white);
  color: var(--black);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--black); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gray-1); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0 0 1rem; }

p { margin: 0 0 1.2rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ---------- Header (todas las páginas excepto home) ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 22px;
  text-decoration: none;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
}
.hamburger:hover span { background: var(--gray-1); }

/* ---------- Home (única página ultra-minimalista) ---------- */

.home-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 100vh;
  position: relative;
  padding: 1.5rem;
}

.home-screen h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.retro-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gray-2);
  text-decoration: none;
}
.retro-link:hover { color: var(--gray-1); text-decoration: underline; }

.home-hamburger {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 10;
}

/* ---------- Main content ---------- */

main.page {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

main.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 0.5rem;
  display: block;
}

.section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-3);
}
.section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.link-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.link-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--gray-3);
}
.link-list li:first-child { border-top: none; padding-top: 0; }

.link-list a { font-weight: 500; }

.link-note { color: var(--gray-1); font-size: 0.92rem; }

.muted { color: var(--gray-1); }

/* ---------- Sitemap ---------- */

.sitemap-node { margin-bottom: 2.4rem; }
.sitemap-node h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.sitemap-node h2 a { font-weight: 600; }
.sitemap-node ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--gray-3);
}
.sitemap-node li { padding: 0.3rem 0; font-size: 0.95rem; }
.sitemap-node li span.muted { font-size: 0.88rem; }

/* ---------- Footer (todas las páginas excepto home) ---------- */

footer.site-footer {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--gray-3);
  font-size: 0.82rem;
  color: var(--gray-1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer.site-footer a { color: var(--gray-1); }
footer.site-footer a:hover { color: var(--black); }

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  footer.site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
