/* =========================================================
   Mis lecturas · Leer Leyendo — h-aguirre.com
   Executive palette (aligned with index & publications)
   ========================================================= */
:root {
  --ink: #0e1116; --graphite: #14181e; --steel: #2b313b; --muted: #6b7380;
  --silver: #c3c9d2; --silver-2: #9aa3af;
  --brand: #b89a5e; --brand-dark: #8a6d36; --brand-light: #d9c39a;
  --gold-grad: linear-gradient(135deg, #e3cf9f 0%, #b89a5e 45%, #8a6d36 100%);
  --paper: #faf9f6; --surface: #f4f4f2; --line: #dfe1e5; --text: #23272e;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --nav-h: 62px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* language switch */
[data-lang="en"] .es, [data-lang="es"] .en { display: none !important; }

/* ---------- navbar (identical to index & publications) ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(14,17,22,.92); border-bottom: 1px solid rgba(195,201,210,.12); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 1rem; }
.brand { font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; color: #f3f4f6; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .7rem; font-weight: 400; font-size: .92rem; letter-spacing: .02em; color: var(--silver); text-decoration: none; border-radius: 0; }
.nav-links a:hover { color: var(--brand-light); background: transparent; }
.nav-links a.active { color: var(--brand-light); font-weight: 500; }
.lang-switch { display: inline-flex; border: 1px solid rgba(195,201,210,.3); border-radius: 2px; padding: 2px; margin-left: .5rem; background: transparent; }
.lang-switch button { border: 0; background: transparent; font: inherit; font-weight: 500; font-size: .72rem; letter-spacing: .12em; padding: .35rem .7rem; border-radius: 0; color: var(--silver-2); cursor: pointer; }
.lang-switch button.on { background: var(--gold-grad); color: #14181e; }
.nav-toggle { display: none; border: 1px solid rgba(195,201,210,.3); background: transparent; color: var(--silver); border-radius: 2px; padding: .45rem .55rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); border-bottom: 1px solid rgba(195,201,210,.12); padding: .6rem 1.25rem 1rem; }
  .nav-links.open { display: flex; }
  .lang-switch { margin: .5rem 0 0; align-self: flex-start; }
}

/* reading progress (review pages) */
.progress { position: fixed; top: var(--nav-h); left: 0; height: 2px; width: 0; background: var(--gold-grad); z-index: 51; transition: width .08s linear; }

/* ---------- shared bits ---------- */
.kicker { display: inline-block; border-left: 2px solid var(--brand); padding-left: .9rem; color: var(--brand-light); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: inline-block; color: var(--brand-dark); font-weight: 500; letter-spacing: .22em; font-size: .72rem; text-transform: uppercase; padding-bottom: .55rem; border-bottom: 1px solid var(--brand); }
.btn { display: inline-flex; align-items: center; gap: .6rem; border-radius: 2px; font: 500 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .9rem 1.35rem; text-decoration: none; transition: filter .2s, border-color .2s, color .2s; }
.btn-brand { background: var(--gold-grad); color: var(--graphite); }
.btn-brand:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(195,201,210,.35); color: var(--silver); }
.btn-ghost:hover { color: #fff; border-color: var(--brand-light); }

/* =========================================================
   INDEX — Mis lecturas
   ========================================================= */
.ll-hero { position: relative; padding: calc(var(--nav-h) + 6.5rem) 0 5rem; color: #f5f5f4;
  background: linear-gradient(100deg, rgba(14,17,22,.96) 0%, rgba(14,17,22,.86) 42%, rgba(14,17,22,.45) 75%, rgba(14,17,22,.3) 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--ink); background-blend-mode: normal, luminosity; }
.ll-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184,154,94,.6), transparent); }
.ll-hero h1 { font-weight: 600; font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -.035em; line-height: 1.05; margin: 1.4rem 0 1.1rem; }
.ll-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand-light); letter-spacing: -.01em; }
.ll-hero .lead { max-width: 37rem; color: var(--silver); font-weight: 300; font-size: 1.12rem; line-height: 1.65; margin: 0 0 2rem; }
.ll-hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.ll-stats { display: flex; flex-wrap: wrap; margin-top: 3rem; border-top: 1px solid rgba(195,201,210,.18); }
.ll-stats div { padding: 1.2rem 2rem 0 0; margin-right: 2rem; border-right: 1px solid rgba(195,201,210,.14); }
.ll-stats div:last-child { border-right: 0; }
.ll-stats b { display: block; font-weight: 300; font-size: 2.2rem; letter-spacing: -.03em; color: var(--brand-light); }
.ll-stats > div > span { color: var(--silver-2); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

.section { padding: 5.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.8rem; }
.section-head h2 { font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; margin: .9rem 0 0; color: var(--ink); }
.section-head p { margin: 0; color: var(--muted); font-weight: 300; max-width: 26rem; line-height: 1.6; }

/* featured (latest) */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; margin-bottom: 2.2rem; position: relative; transition: box-shadow .25s, border-color .25s; }
.featured::before { content: ''; position: absolute; top: -1px; left: -1px; width: 56px; height: 2px; background: var(--brand); z-index: 2; }
.featured:hover { border-color: rgba(184,154,94,.55); box-shadow: 0 18px 40px rgba(14,17,22,.08); }
.featured .media { min-height: 360px; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--steel); filter: grayscale(.85) contrast(1.05); transition: filter .5s; }
.featured:hover .media { filter: grayscale(0); }
.featured .body { padding: 2.8rem 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.featured h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; margin: .9rem 0 .4rem; color: var(--ink); }
.featured .excerpt { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: #4a515c; margin: 1.1rem 0 1.6rem; }

.card-meta { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.card-meta .dot { width: 4px; height: 4px; background: var(--brand); transform: rotate(45deg); }
.card-author { color: var(--brand-dark); font-size: .9rem; font-weight: 500; letter-spacing: .01em; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.read-more .arrow { color: var(--brand); transition: transform .25s; }
a:hover .read-more .arrow { transform: translateX(4px); }

.ll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.book-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; transition: box-shadow .25s, border-color .25s; }
.book-card:hover { border-color: rgba(184,154,94,.55); box-shadow: 0 14px 32px rgba(14,17,22,.07); }
.book-card .media { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--steel); filter: grayscale(.85) contrast(1.05); transition: filter .5s; border-bottom: 1px solid var(--line); }
.book-card:hover .media { filter: grayscale(0); }
.book-card .body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.book-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.18; margin: .8rem 0 .3rem; color: var(--ink); }
.book-card .excerpt { font-family: var(--serif); color: #555c66; font-size: 1rem; line-height: 1.55; margin: .85rem 0 1.3rem; }

.manifesto { background-color: var(--ink); background-size: cover; background-position: center; background-blend-mode: normal, luminosity; color: #f5f5f4; padding: 5.5rem 0; border-top: 1px solid rgba(184,154,94,.35); }
.manifesto .container { max-width: 760px; text-align: center; }
.manifesto .eyebrow { color: var(--brand-light); }
.manifesto blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.45; margin: 1.8rem 0 2rem; color: #ece9e2; }
.manifesto p { color: var(--silver); font-weight: 300; line-height: 1.65; margin: 0 auto 2rem; max-width: 34rem; }

@media (max-width: 991px) {
  .ll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .featured .media { min-height: 260px; }
}
@media (max-width: 640px) {
  .ll-hero { padding: calc(var(--nav-h) + 4rem) 0 3.5rem; }
  .ll-grid { grid-template-columns: 1fr; }
  .featured .body { padding: 2rem 1.5rem; }
  .ll-stats div { padding-right: 1.2rem; margin-right: 1.2rem; }
  .section { padding: 4rem 0; }
}

/* =========================================================
   REVIEW PAGE — reading layout
   ========================================================= */
.r-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 4rem) 0 4.2rem; color: #f5f5f4; text-align: center;
  background: linear-gradient(180deg, rgba(14,17,22,.55) 0%, rgba(14,17,22,.62) 45%, rgba(14,17,22,.94) 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--ink); }
.r-hero .container { max-width: 860px; }
.r-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.06; letter-spacing: -.015em; margin: 1.5rem 0 .9rem; }
.r-hero .subtitle { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--silver); margin: 0; }
.r-hero .rule { width: 56px; height: 1px; background: var(--brand); margin: 1.8rem auto 1.3rem; }
.r-hero .book-author { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-light); font-weight: 500; }
.r-hero .kicker { border-left: 0; padding-left: 0; }

/* the column — slim on desktop, ~70% of screen on mobile */
.article { width: min(34rem, 88vw); margin: 0 auto; padding: 3.6rem 0 2rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.78; color: var(--text); }
.byline { font-family: var(--sans); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem .9rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 2.2rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot { width: 4px; height: 4px; background: var(--brand); transform: rotate(45deg); }
.lang-note { font-family: var(--sans); font-size: .78rem; color: var(--muted); text-align: center; margin: -1.4rem 0 2.4rem; font-style: italic; }
.article p { margin: 0 0 1.35em; hyphens: auto; -webkit-hyphens: auto; }
.article p.first::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: .07em .1em 0 0; color: var(--brand-dark); font-weight: 500; }
.article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article a:hover { color: var(--brand-dark); }
.article h2 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 3.4rem 0 1.4rem; display: flex; align-items: center; gap: .9rem; }
.article h2::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--brand); transform: rotate(45deg); flex: none; }
.article blockquote { margin: 2.4rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--brand); font-style: italic; font-size: 1.28rem; line-height: 1.6; color: #3a404a; }
.article blockquote p:last-child { margin-bottom: 0; }
.article blockquote.laws { font-style: normal; font-size: 1.05rem; background: var(--surface); border-left-color: var(--brand); padding: 1.5rem 1.6rem; }
.article blockquote.laws p:first-child { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--brand-dark); }
.article blockquote.laws p:last-child { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-style: italic; }
.article figure { width: min(42rem, 92vw); margin: 2.8rem 0 2.8rem 50%; transform: translateX(-50%); }
.article figure img { margin: 0 auto; max-height: 520px; width: auto; border-radius: 2px; box-shadow: 0 18px 40px rgba(14,17,22,.12); }
.article figcaption { font-family: var(--sans); font-size: .76rem; letter-spacing: .04em; color: var(--muted); text-align: center; margin-top: 1rem; }
.article figcaption::before { content: ''; display: block; width: 28px; height: 1px; background: var(--brand); margin: 0 auto .7rem; }
.article .signoff { text-align: center; margin: 3rem 0 0; color: var(--brand); letter-spacing: .6em; font-size: .9rem; }

.r-nav { width: min(52rem, 92vw); margin: 2rem auto 0; padding: 2.4rem 0 4.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: center; }
.r-nav a { text-decoration: none; color: var(--ink); }
.r-nav .prev, .r-nav .next { display: flex; flex-direction: column; gap: .35rem; }
.r-nav .next { text-align: right; align-items: flex-end; }
.r-nav small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.r-nav span.t { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; }
.r-nav a:hover span.t { color: var(--brand-dark); }
.r-nav .all { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); padding: .8rem 1.1rem; border-radius: 2px; white-space: nowrap; }
.r-nav .all:hover { border-color: var(--brand); color: var(--brand-dark); }

@media (max-width: 640px) {
  .r-hero { min-height: 56vh; padding-bottom: 3rem; }
  .article { width: 70%; font-size: 1.04rem; line-height: 1.72; padding-top: 2.6rem; }
  .article p.first::first-letter { font-size: 3.4em; }
  .article blockquote { font-size: 1.08rem; padding-left: 1rem; }
  .article blockquote.laws { padding: 1.1rem 1.1rem; font-size: .98rem; }
  .article figure { width: 86vw; }
  .article h2 { font-size: .72rem; letter-spacing: .16em; margin-top: 2.8rem; }
  .byline { font-size: .64rem; letter-spacing: .12em; }
  .r-nav { grid-template-columns: 1fr 1fr; }
  .r-nav .all { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}

/* ---------- footer ---------- */
.footercontact { background: #0b0d11; border-top: 1px solid rgba(184,154,94,.25); text-align: center; padding: 3.6rem 0; color: #e5e7eb; }
.footercontact h4 { font-weight: 300; font-size: 1.05rem; letter-spacing: .04em; margin: .4rem 0; }
.footercontact a { color: var(--brand-light); text-decoration: none; }
.footer { background: #07080b; color: #6b7380; font-size: .78rem; letter-spacing: .06em; text-align: center; padding: 1rem 0; }
.footer p { margin: 0; }
.back-to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 44px; height: 44px; border-radius: 2px; background: var(--graphite); color: var(--brand-light); border: 1px solid rgba(184,154,94,.6); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 40; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* sources list at the end of a review */
.article ul.sources { font-family: var(--sans); font-size: .82rem; line-height: 1.6; color: var(--muted); padding-left: 1.1rem; margin: 0 0 1.5rem; }
.article ul.sources li { margin-bottom: .45rem; }
.article ul.sources li::marker { color: var(--brand); }
