/* Lecturas: shared styles for the notes index and each note.
   Mirrors the home page tokens (dark ground, Cormorant + Inter). */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 400 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500 600; font-style: normal; font-display: swap;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #141414;
  --color-text: #ffffff;
  --color-text-muted: #999999;
  --color-border: #222222;
  --color-accent: #c8754f;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Navigation (same as home, always solid here) */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background-color: rgba(10, 10, 10, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-logo-text {
  color: var(--color-text); text-decoration: none;
  font-family: var(--font-editorial); font-size: 1.9rem; font-weight: 500;
  line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--color-text); text-decoration: none;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 0.6; }
.nav-links a[aria-current="page"], .nav-links a.is-active { color: var(--color-accent); }

/* Notes index */
.lecturas {
  max-width: 1000px; margin: 0 auto;
  padding: 5rem 5% 6rem;
}
.lecturas-header { margin-bottom: 3.5rem; max-width: 60ch; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 1rem;
}
.lecturas h1 {
  font-family: var(--font-editorial); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.lecturas-intro { color: rgba(255,255,255,0.78); font-size: 1.05rem; }

.notes-list { list-style: none; display: grid; gap: 3rem; }
.note-card {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  color: inherit; text-decoration: none;
  padding-top: 3rem; border-top: 1px solid var(--color-border);
}
.note-card-cover { max-width: 280px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-bg-elevated); }
.note-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.note-card:hover .note-card-cover img { transform: scale(1.02); }
.note-card-body { min-width: 0; align-self: center; }
.note-card h2 {
  font-family: var(--font-editorial); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; margin-bottom: 0.9rem;
  text-wrap: balance;
}
.note-card p { color: rgba(255,255,255,0.72); max-width: 52ch; }
.note-card .read-more {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent);
}
@media (min-width: 760px) {
  .note-card { grid-template-columns: 280px 1fr; gap: 3rem; }
}

/* Single note */
.note { max-width: 700px; margin: 0 auto; padding: 4.5rem 5% 5rem; }
.note-meta {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 1.25rem;
}
.note h1 {
  font-family: var(--font-editorial); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 1.25rem; text-wrap: balance;
}
.note-dek {
  font-family: var(--font-editorial); font-style: italic;
  font-size: 1.4rem; line-height: 1.45; color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
}
.note-cover { margin: 0 0 3rem; max-width: 340px; }
.note-body h2 {
  font-family: var(--font-editorial); font-weight: 500;
  font-size: 1.9rem; line-height: 1.2; margin: 2.75rem 0 1rem;
}
.note-body p { font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.86); margin-bottom: 1.25rem; }
.note-body ul { margin: 0 0 1.5rem 1.2rem; }
.note-body li { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.86); margin-bottom: 0.6rem; }
.note-body a { color: var(--color-text); text-underline-offset: 3px; }

.note-cta {
  margin-top: 3.5rem; padding: 2.5rem 0; border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.note-cta p {
  font-family: var(--font-editorial); font-size: 1.6rem; line-height: 1.3; margin-bottom: 1.5rem;
}
.cta-btn {
  display: inline-block; padding: 0.9rem 1.6rem;
  border: 1px solid var(--color-text); color: var(--color-text); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.cta-btn:hover { background: var(--color-text); color: var(--color-bg); }

.note-sources { margin-top: 2.5rem; }
.note-sources h2 {
  font-family: var(--font-primary); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.9rem;
}
.note-sources ul { list-style: none; }
.note-sources li { font-size: 0.85rem; margin-bottom: 0.5rem; }
.note-sources a { color: var(--color-text-muted); text-underline-offset: 3px; }

.back-link {
  display: inline-block; margin-top: 2.5rem;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted); text-decoration: none;
}
.back-link:hover { color: var(--color-text); }

.site-footer {
  padding: 3rem 5%; border-top: 1px solid var(--color-border);
  text-align: center; font-size: 0.85rem; color: var(--color-text-muted);
}
.site-footer a { color: var(--color-text-muted); }

a:focus-visible { outline: 1px solid var(--color-accent); outline-offset: 3px; }

@media (max-width: 600px) {
  .site-nav { padding: 0.85rem 16px; gap: 1rem; }
  .nav-logo-text { font-size: 1.35rem; }
  .nav-links { gap: 0.75rem; }
  .nav-about { display: none; }
  .nav-links a { font-size: 0.64rem; letter-spacing: 0.04em; display: inline-block; padding: 0.6rem 0; }
  .lecturas, .note { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 350px) {
  .nav-logo-text { font-size: 1.15rem; }
  .nav-links { gap: 0.55rem; }
  .nav-links a { font-size: 0.58rem; letter-spacing: 0.02em; }
}
@media (prefers-reduced-motion: reduce) {
  .note-card-cover img { transition: none; }
}
/* Small phones: show the rk. mark instead of the full name so the menu fits */
.nav-logo-short { display: none; }
@media (max-width: 430px) {
  .nav-logo-full { display: none; }
  .nav-logo-short { display: inline; font-style: italic; }
}
