/* Kiosco Capital — broadsheet digital, Bogotá 2026 */

:root {
  --paper: #f3eee4;
  --paper-deep: #e8e0d2;
  --card: #fffdf8;
  --ink: #1a1510;
  --ink-soft: #3a342c;
  --muted: #6b6258;
  --rule: #1a1510;
  --rule-soft: #c9bfb0;
  --accent: #8f1d2c;
  --accent-deep: #6e1521;
  --gold: #b08d57;
  --gold-soft: #d7c39a;
  --social-bg: #f7f4ee;
  --shadow: 0 10px 30px rgba(26, 21, 16, 0.06);
  --serif-display: "Cormorant Garamond", "Times New Roman", serif;
  --serif-head: "Newsreader", "Georgia", serif;
  --serif-body: "Source Serif 4", "Georgia", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --max: 1180px;
  --sidebar: 320px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 50% -80px, rgba(176, 141, 87, 0.12), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip-link:focus { top: 0.5rem; }

/* ——— Ticker ——— */
.ticker {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}

.ticker__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 2.4rem;
}

.ticker__label {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.92rem;
  flex: 1;
}

.ticker__item {
  color: var(--gold-soft);
  text-decoration: none;
}
.ticker__item:hover { color: #fff; }
.ticker__dot { color: var(--accent); margin: 0 0.85rem; }

/* ——— Masthead ——— */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.4rem;
  text-align: center;
}

.masthead__top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.masthead__ornament { color: var(--gold); font-size: 0.65rem; }

.masthead__brand {
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  margin-top: 0.7rem;
  padding: 0.55rem 0 0.7rem;
}

.masthead__kicker {
  margin: 0;
  font-family: var(--cond);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

.masthead__title {
  margin: 0.1rem 0 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 9vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.masthead__title a {
  text-decoration: none;
  color: var(--ink);
}
.masthead__title a:hover { color: var(--ink); }

.masthead__tagline {
  margin: 0.15rem 0 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--ink-soft);
}

.masthead__dateline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  padding: 0.45rem 0 0.15rem;
  color: var(--ink-soft);
}

/* ——— Nav ——— */
.nav {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding: 0 0.6rem;
  scrollbar-width: thin;
}

.nav__link {
  flex: 0 0 auto;
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ——— Layout ——— */
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: 2rem;
}

.main:focus { outline: none; }

/* ——— Cards and typography ——— */
.kicker {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.82rem;
  margin: 0 0 0.35rem;
}

.headline {
  font-family: var(--serif-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

.headline a { text-decoration: none; }
.headline a:hover { color: var(--accent-deep); }

.dek {
  font-family: var(--serif-head);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
}

.byline {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.55rem 0 0;
}
.byline strong { color: var(--ink-soft); font-weight: 600; }

.prose p {
  margin: 0 0 1rem;
}
.prose p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-weight: 600;
  float: left;
  font-size: 4.1rem;
  line-height: 0.75;
  padding: 0.18rem 0.5rem 0 0;
  color: var(--accent);
}

/* Portada */
.hero {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1.4rem;
}

.hero .headline { font-size: clamp(2.1rem, 5vw, 3.35rem); }

.grid-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.story-card {
  background: transparent;
  min-height: 8rem;
}

.story-card .headline { font-size: 1.45rem; }

.empty-slot {
  border: 1px dashed var(--rule-soft);
  background: rgba(255, 253, 248, 0.55);
  min-height: 9rem;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--muted);
}
.empty-slot strong {
  font-family: var(--serif-head);
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.empty-slot p { margin: 0.3rem 0 0; font-family: var(--sans); font-size: 0.9rem; }

.section-head {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.2rem;
  padding: 0.4rem 0;
}
.section-head h2 {
  margin: 0;
  font-family: var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.story-list { display: grid; gap: 1.15rem; }
.story-list .story-card {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
}
.story-list .headline { font-size: 1.7rem; }

.article {
  max-width: 42rem;
}
.article .headline { font-size: clamp(2rem, 4.5vw, 3rem); }
.article .prose { margin-top: 1.3rem; font-size: 1.12rem; }

/* ——— Sidebar ——— */
.panel {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1.15rem;
}

.panel__title {
  margin: 0 0 0.8rem;
  font-family: var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
}

.panel__more {
  margin: 0.8rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.panel__more a { color: var(--accent); text-decoration: none; font-weight: 600; }
.panel__more a:hover { text-decoration: underline; }

.group-label {
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.85rem 0 0.35rem;
}
.group-label:first-child { margin-top: 0; }

.outlet-link {
  display: block;
  text-decoration: none;
  padding: 0.38rem 0;
  border-bottom: 1px dotted var(--rule-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.outlet-link:hover,
.outlet-link.is-active { color: var(--accent); }
.outlet-link small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.outlet-page .lede {
  font-family: var(--serif-head);
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0.6rem;
}
.meta-row {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* ——— Social feed ——— */
.panel--social { background: var(--social-bg); }

.social-list { display: grid; gap: 0.75rem; }

.social-post {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 0.75rem 0.8rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.45;
}
.social-post__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}
.social-post__handle {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.social-post__platform { color: var(--muted); }
.social-post p { margin: 0; }
.social-post time { color: var(--muted); font-size: 0.75rem; }

/* ——— Comments ——— */
.comments-band {
  background: var(--ink);
  color: var(--paper);
  padding: 2.2rem 1.25rem 2.6rem;
}

.comments-band__inner { max-width: var(--max); margin: 0 auto; }

.comments-band__head h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}
.comments-band__dek {
  margin: 0.25rem 0 1.2rem;
  color: var(--gold-soft);
  font-family: var(--sans);
  max-width: 40rem;
}

.comment {
  border-top: 1px solid rgba(232, 217, 176, 0.22);
  padding: 0.9rem 0;
  font-family: var(--sans);
}
.comment__author { font-weight: 700; margin: 0 0 0.2rem; }
.comment p { margin: 0; color: #efe8db; }
.comment time { color: var(--muted); font-size: 0.78rem; }

.empty-state {
  font-family: var(--sans);
  color: var(--muted);
  border: 1px dashed var(--rule-soft);
  padding: 1.1rem 1rem;
  background: rgba(255, 253, 248, 0.4);
}
.comments-band .empty-state {
  background: transparent;
  border-color: rgba(232, 217, 176, 0.28);
  color: var(--gold-soft);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 3px double var(--ink);
  padding: 1.6rem 1.25rem 2.4rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer__inner { max-width: 40rem; margin: 0 auto; }
.site-footer__brand {
  font-family: var(--serif-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer__meta {
  margin-top: 0.8rem !important;
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ——— Responsive ——— */
@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 1.1rem;
  }
  .masthead__dateline { justify-content: center; text-align: center; }
  .grid-slots { grid-template-columns: 1fr; }
  .hero .headline { font-size: 2.05rem; }
  .prose p:first-of-type::first-letter { font-size: 3.3rem; }
}

@media (max-width: 520px) {
  .masthead { padding-left: 0.9rem; padding-right: 0.9rem; }
  .layout { padding-left: 0.9rem; padding-right: 0.9rem; }
  .ticker__track { font-size: 0.82rem; }
}
