/* santiagotobon.co — site styles (design B with accent, bands and a second photo, Nov 2026) */

:root {
  --ink: #1B1B1B;
  --body: #2B2B2B;
  --muted: #5A5A5A;
  --rule: #DADADA;
  --link: #1F4E79;
  --link-hover: #123150;
  --accent: #A8352A;          /* deep stage red, used for labels and short rules only */
  --tint: #F5F1EA;            /* warm off-white band */
  --dark: #1C1A18;            /* book band */
  --on-dark: #F2EEE6;
  --on-dark-muted: #CFC8BC;
  --accent-on-dark: #E8907E;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wide: 1200px;
  --text: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  border-top: 4px solid var(--accent);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Links inside running text are underlined so they read as links, not just a color change */
.page p a, .page li a, .index-row p a, .latest .what a, .hero-text .roles a, .pub-entry .pub-meta a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 78, 121, 0.45);
}
.page p a:hover, .page li a:hover, .index-row p a:hover, .latest .what a:hover, .hero-text .roles a:hover { text-decoration-color: currentColor; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header and footer */

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 32px;
}

.site-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.site-name:hover { color: var(--ink); text-decoration: none; }

.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.site-header nav a { color: #333333; }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }

.site-footer { margin-top: 112px; background: var(--tint); }
main { flex: 1 0 auto; width: 100%; }
.site-header, .site-footer { flex-shrink: 0; width: 100%; }
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }

/* Reading pages */

.page { max-width: var(--text); margin: 0 auto; padding: 32px 32px 0; }

.page h1, .page h2, .page h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.2; }
.page h1 { font-size: 38px; margin: 28px 0 20px; letter-spacing: -0.015em; }
.page h2 { font-size: 24px; margin: 64px 0 14px; }
.page h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); margin-bottom: 18px; }
.page h3 { font-size: 19px; margin: 36px 0 10px; }
.page p, .page li { color: var(--body); }
.page ul, .page ol { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.page hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }
.page strong { color: var(--ink); }

.on-page {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

/* Publication lists (generated by scripts/build_research.py) */

.pub-entry { padding: 18px 0; border-bottom: 1px solid #ECECEC; }
.pub-entry:last-child { border-bottom: 0; }
.pub-entry .pub-title {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.pub-entry a.pub-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #C9C9C9; }
.pub-entry a.pub-title:hover { color: var(--link); text-decoration-color: currentColor; }
.pub-entry .pub-meta { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.pub-entry .pub-meta em { font-family: var(--serif); font-size: 15.5px; color: #3A3A3A; }
.pub-entry .pub-links { display: block; margin-top: 4px; font-size: 14px; }

details.pub-abstract { margin-top: 6px; font-size: 15px; }
details.pub-abstract summary { cursor: pointer; color: var(--link); width: max-content; }
details.pub-abstract p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; }

details.pub-group { margin-top: 8px; }
details.pub-group > summary {
  cursor: pointer;
  color: var(--link);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  width: max-content;
}

/* Centro de Valor Público project rows */

.project-row { margin: 64px 0; }
.project-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; margin-bottom: 24px; }
.project-text h2 { margin-top: 0; }

/* Homepage */

.home-main { padding: 0; }

.hero { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding-top: 24px; padding-bottom: 88px; }
.hero-text { flex: 1 1 360px; min-width: 0; }
.hero-text h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-text .lede { margin: 0 0 18px; font-size: 18px; line-height: 1.6; color: var(--body); }
.hero-text .roles { margin: 0 0 26px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.hero-text .links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.hero figure { flex: 1 1 380px; min-width: 0; margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% center; display: block; }
.hero figcaption, 
.band-tint { background: var(--tint); padding: 52px 0 56px; }
.latest { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.latest .eyebrow { flex: 0 0 200px; margin: 2px 0 0; }
.latest ul { list-style: none; margin: 0; padding: 0; flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.latest li { font-size: 16px; line-height: 1.5; display: flex; gap: 4px 20px; flex-wrap: wrap; }
.latest .when { flex: 0 0 76px; color: var(--muted); font-size: 14px; padding-top: 3px; }
.latest .what { flex: 1 1 300px; min-width: 0; }


.index { padding-top: 40px; }
.index + .band-dark { margin-top: 40px; }
.band-dark + .index { padding-top: 40px; }
.index-row { border-top: 1px solid var(--rule); padding: 32px 0; display: flex; flex-wrap: wrap; gap: 12px 48px; }
.index-row:first-child { border-top: 0; }
.index-row h2 { margin: 0; flex: 0 0 200px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.index-row h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); margin-bottom: 16px; }
.index-row .body { flex: 1 1 560px; min-width: 0; padding-top: 19px; }
.index-row p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; }
.index-row .more { font-size: 15px; font-weight: 500; }

.band-dark { background: var(--dark); color: var(--on-dark); padding: 64px 0 68px; }
.book-feature { max-width: 880px; }
.book-feature .eyebrow { color: var(--accent-on-dark); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.book-feature h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; color: var(--on-dark); }
.book-feature h2 em { font-weight: 400; }
.book-feature p { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); }
.book-feature a { color: var(--on-dark); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-on-dark); }
.book-feature a:hover { color: #FFFFFF; }
.book-feature a:focus-visible { outline-color: var(--on-dark); }

/* Stacked hero (tablets and phones): keep the photo from dominating the first screen */
@media (max-width: 900px) {
  .hero figure img { aspect-ratio: 3 / 2; max-height: max(60vh, 340px); object-position: 60% 70%; }
  .index-row .body { padding-top: 0; }
  .index-row h2 { flex-basis: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header, .page, .wrap { padding-left: 16px; padding-right: 16px; }
    .hero { padding-bottom: 56px; }
  .hero-text h1 { font-size: 38px; }
  .page h1 { font-size: 32px; }
  .page h2 { font-size: 22px; margin-top: 52px; }
  .index-row h2 { font-size: 22px; }
  .book-feature h2 { font-size: 28px; }
  .band-tint { padding: 40px 0 44px; }
  .band-dark { padding: 56px 0 60px; }
  .latest .eyebrow { flex-basis: 100%; }
  .site-header nav { gap: 2px 20px; }
  .site-header nav a, .on-page a, .hero-text .links a { display: inline-block; padding: 9px 0; }
  .pub-entry .pub-links a { display: inline-block; padding: 6px 0; }
  .index-row .more, .book-feature a { display: inline-block; padding: 6px 0; }
  }

@media print {
  body { border-top: 0; font-size: 11pt; color: #000; }
  .skip, .site-header nav, .on-page, .site-footer,   a { color: #000; }
  .page, .home-main, .wrap { max-width: none; padding: 0; }
  .band-tint, .band-dark { background: none; color: #000; padding: 16px 0; }
  .book-feature h2, .book-feature p, .book-feature a { color: #000; }
  details > summary { display: none; }
}
