/* Felo Noticias — a traditional broadsheet: blackletter nameplate, serif
   headlines, hairline column rules, ink on newsprint. */
:root {
  --paper: #fbf9f4;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6b6760;
  --rule: #d9d4c7;
  --rule-strong: #141414;
  --accent: #9b1c1c;
  --box: #f2eee4;
  --serif-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --black: "UnifrakturMaguntia", "Old English Text MT", serif;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161513; --ink: #ece8df; --ink-2: #cfcabf; --muted: #9a958a;
    --rule: #3a3731; --rule-strong: #ece8df; --accent: #e07a6e; --box: #211f1b;
  }
}
:root[data-theme="dark"] {
  --paper: #161513; --ink: #ece8df; --ink-2: #cfcabf; --muted: #9a958a;
  --rule: #3a3731; --rule-strong: #ece8df; --accent: #e07a6e; --box: #211f1b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--serif); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 6px 10px; z-index: 9; }

/* ---------- masthead */
.topbar { border-bottom: 1px solid var(--rule); font: 500 12px/1 var(--sans); color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; flex-wrap: wrap; }
.topbar-links a { margin-left: 16px; }
.masthead { text-align: center; padding: 18px 0 10px; }
.nameplate { font: 400 clamp(44px, 9vw, 92px)/1 var(--black); letter-spacing: .5px; display: inline-block; }
.nameplate:hover { text-decoration: none; }
.motto { margin: 8px 0 0; font: italic 400 15px/1.3 var(--serif); color: var(--muted); }

.sections { border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.editions { border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; gap: 2px 18px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav-in::-webkit-scrollbar { display: none; }
.sections .nav-in { justify-content: center; padding-top: 9px; padding-bottom: 9px; font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.editions .nav-in { justify-content: center; padding-top: 7px; padding-bottom: 7px; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.ed-label { color: var(--muted); font-style: italic; font-family: var(--serif); }
.nav-in a[aria-current="page"] { color: var(--accent); }
.search { display: flex; margin-left: 8px; }
.search input { width: 120px; font: 400 13px var(--sans); border: 1px solid var(--rule); background: transparent; color: var(--ink); padding: 4px 8px; border-radius: 0; }
.search button { border: 1px solid var(--rule); border-left: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0 8px; font-size: 15px; }

/* ---------- type */
.kicker { display: block; font: 700 11.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 6px; }
.h-lead { font: 800 clamp(28px, 3.6vw, 42px)/1.12 var(--serif-head); margin: 0 0 12px; letter-spacing: -.2px; }
.h-med { font: 700 21px/1.22 var(--serif-head); margin: 0 0 6px; }
.dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; }
.dek-sm { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 6px; }
.meta { font: 500 12px/1.3 var(--sans); color: var(--muted); margin: 0; }
.rule-title { font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: 10px 0 9px; margin: 0 0 16px; }

main.wrap { padding-top: 22px; padding-bottom: 40px; }

/* ---------- front page */
.front { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr) minmax(0,.95fr); gap: 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--rule-strong); }
.front > * + * { border-left: 1px solid var(--rule); padding-left: 28px; }
.lead-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 14px; filter: saturate(.92); }
.front-second .card + .card { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 16px; }
.card-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 10px; }
.latest ol { list-style: none; padding: 0; margin: 0; }
.latest li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); font: 600 15px/1.35 var(--serif); }
.latest li:last-child { border-bottom: 0; }
.latest time { font: 700 12px/1.6 var(--sans); color: var(--accent); }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0 22px; padding: 20px 0; border-bottom: 3px double var(--rule-strong); }
.strip > * + * { border-left: 1px solid var(--rule); padding-left: 22px; }
.strip .h-med { font-size: 18px; }
.strip .dek-sm { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blocks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px 36px; margin-top: 30px; }
.block-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 20px; }
.heads { list-style: none; margin: 0; padding: 0; }
.heads li { padding: 0 0 11px; margin: 0 0 11px; border-bottom: 1px solid var(--rule); font: 600 16.5px/1.32 var(--serif-head); }
.heads li:last-child { border-bottom: 0; }
.heads .meta { display: block; margin-top: 4px; font-weight: 500; }
.rule-title a:hover { color: var(--accent); text-decoration: none; }

/* ---------- lists */
.list-head { border-bottom: 3px double var(--rule-strong); margin-bottom: 18px; padding-bottom: 12px; }
.list-head h1 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--serif-head); margin: 0 0 6px; }
.list-head p { margin: 0; color: var(--muted); font-style: italic; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.side { border-left: 1px solid var(--rule); padding-left: 28px; }
.side .latest { position: sticky; top: 16px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.row:first-child { padding-top: 0; }
.row-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.pager { display: flex; justify-content: space-between; padding: 20px 0; font: 600 14px var(--sans); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty h1 { font: 700 34px var(--serif-head); color: var(--ink); }

/* ---------- article */
.story { max-width: 720px; }
.story-head h1 { font: 800 clamp(30px, 4.4vw, 48px)/1.1 var(--serif-head); margin: 0 0 14px; letter-spacing: -.3px; }
.story-dek { font: italic 400 21px/1.45 var(--serif); color: var(--ink-2); margin: 0 0 14px; }
.byline { font: 600 13px/1.4 var(--sans); color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 0; margin: 0 0 20px; }
.story-img { margin: 0 0 22px; }
.story-img img { width: 100%; }
.story-img figcaption { font: 500 12px/1.4 var(--sans); color: var(--muted); padding-top: 6px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.claves { background: var(--box); border-top: 3px solid var(--rule-strong); padding: 14px 20px 6px; margin: 0 0 24px; }
.claves h2 { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
.claves ul { margin: 0; padding-left: 18px; }
.claves li { margin-bottom: 8px; font-size: 16.5px; line-height: 1.45; }
.story-body p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.7; }
.story-body p.first::first-letter { float: left; font: 800 68px/.86 var(--serif-head); padding: 6px 8px 0 0; color: var(--ink); }
.story-body h2 { font: 700 24px/1.25 var(--serif-head); margin: 1.5em 0 .6em; }
.contexto, .fuentes { border-top: 1px solid var(--rule-strong); margin-top: 28px; padding-top: 12px; }
.contexto h2, .fuentes h2 { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px; }
.fuentes { font-size: 15.5px; color: var(--ink-2); }
.fuentes ul { padding-left: 18px; }
.fuentes a { color: var(--accent); }
.fuentes .note { font-style: italic; color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tags a { font: 500 12.5px/1 var(--sans); border: 1px solid var(--rule); padding: 6px 10px; }
.related { margin-top: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.related .h-med { font-size: 17px; }
.related .dek-sm { display: none; }

/* ---------- static pages */
.page { max-width: 720px; margin: 0 auto; }
.page h1 { font: 800 42px/1.1 var(--serif-head); border-bottom: 3px double var(--rule-strong); padding-bottom: 12px; }
.page h2 { font: 700 24px var(--serif-head); margin-top: 1.6em; }
.page a { color: var(--accent); text-decoration: underline; }

/* ---------- ads */
.ad { margin: 26px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font: 500 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- footer */
.foot { border-top: 3px double var(--rule-strong); margin-top: 20px; padding: 26px 0 36px; font: 400 14px/1.5 var(--sans); }
.foot-name { font: 400 40px/1 var(--black); text-align: center; margin-bottom: 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--rule); padding-top: 18px; }
.foot-cols h4 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
.foot-cols a { display: block; color: var(--ink-2); padding: 2px 0; }
.foot-small { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 22px; }
.foot-small a { text-decoration: underline; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .front { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
  .front .latest { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-strong); margin-top: 20px; padding-top: 4px; }
  .strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .strip > :nth-child(n+4) { display: none; }
}
@media (max-width: 860px) {
  .sections .nav-in, .editions .nav-in { justify-content: flex-start; }
  .blocks { grid-template-columns: 1fr; }
  .with-side { grid-template-columns: 1fr; }
  .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-strong); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .front { grid-template-columns: minmax(0,1fr); }
  .front > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }
  .strip { grid-template-columns: minmax(0,1fr); }
  .strip > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
  .strip > :nth-child(n+4) { display: block; }
  .block-grid { grid-template-columns: minmax(0,1fr); }
  .row { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
  .row .dek-sm { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .search input { width: 90px; }
  .story-body p { font-size: 18px; }
  .topbar-links a:first-child { display: none; }
}

/* language switch */
.lang { margin-left: 16px; display: inline-flex; gap: 6px; align-items: center; }
.lang b { color: var(--ink); }
.lang a { margin-left: 0 !important; border-left: 1px solid var(--rule); padding-left: 6px; }
