/* ============================================================
   GLOBAL — reset, variables, tipografías
   ============================================================ */

/* Google Fonts se carga via <link> en cada HTML para evitar render-blocking */

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

:root {
  --black:  #1A160F;
  --white:  #EDE0C4;
  --dim:    rgba(237, 224, 196, 0.08);
  --accent: #EDE0C4;

  --font-display: 'Cormorant Garamond', serif;
  --font-mono:    'Inconsolata', monospace;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
}

/* Grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(210, 185, 130, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Corner marks — reutilizable en todas las páginas */
.corner {
  position: fixed;
  width: 20px;
  height: 20px;
  opacity: 0.12;
}
.corner--tl { top: 2rem;    left: 2rem;  border-top:    1px solid var(--white); border-left:   1px solid var(--white); }
.corner--tr { top: 2rem;    right: 2rem; border-top:    1px solid var(--white); border-right:  1px solid var(--white); }
.corner--bl { bottom: 2rem; left: 2rem;  border-bottom: 1px solid var(--white); border-left:   1px solid var(--white); }
.corner--br { bottom: 2rem; right: 2rem; border-bottom: 1px solid var(--white); border-right:  1px solid var(--white); }

/* Foco visible para navegación por teclado */
:focus-visible {
  outline: 1px solid rgba(237, 224, 196, 0.5);
  outline-offset: 4px;
}

/* ============================================================
   LAYOUT COMPARTIDO — líneas, nombre, divisor
   ============================================================ */

.line-top {
  width: 1px;
  height: 80px;
  background: rgba(237, 224, 196, 0.15);
  margin-bottom: 3rem;
}

.line-bottom {
  width: 1px;
  height: 80px;
  background: rgba(237, 224, 196, 0.15);
  margin-top: 3rem;
}

.name {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.surname {
  font-weight: 400;
}

.divider {
  width: 120px;
  height: 1px;
  background: rgba(237, 224, 196, 0.15);
  margin: 2rem 0;
}
