/* elenaspatel.com — quiet academic style: serif headings, sans body, TPC navy. */
:root {
  --ink: #1B1F24;
  --body: #333A44;
  --muted: #4A5361;
  --navy: #053769;
  --navy-dark: #021f3d;
  --rule: #D9DDE3;
  --rule-soft: #E6E9EE;
  --tint: #F3F5F8;
  --chip-border: #C9D3E0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2 { font-family: var(--serif); color: var(--ink); }
h2 { font-weight: 600; font-size: 26px; line-height: 1.25; margin: 0 0 20px; }
p { margin: 0 0 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.nav { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; padding-top: 20px; padding-bottom: 18px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 16px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 64px 0 56px; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.display { font-weight: 400; font-size: 44px; line-height: 1.15; margin: 0 0 20px; }
.lede { color: var(--body); max-width: 720px; }
.headshot { flex: 1 1 220px; max-width: 280px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.headshot.placeholder { background: #E9ECF0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border: 1px solid var(--chip-border); border-radius: 3px; background: #fff; color: var(--navy); }
.chip:hover { background: #EEF2F7; text-decoration: none; }
.chip-lg { font-size: 14px; min-height: 40px; padding: 0 14px; }

/* Sections */
.band { border-top: 1px solid var(--rule); padding: 48px 0; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 4px; }
.more { font-weight: 600; font-size: 15px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* Each area spans two rows of a shared grid (subgrid), so titles line up across a row and so do
   the descriptions under them, even when one title wraps to two lines. */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 40px; row-gap: 0; }
.area { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 4px; align-content: start; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); color: inherit; }
.area-title { align-self: start; }
.area-blurb { align-self: start; }
.area:hover { text-decoration: none; }
.area-title { display: block; font-family: var(--serif); font-size: 21px; color: var(--navy); }
.area-blurb { display: block; font-size: 15px; color: var(--muted); }
.area-list { list-style: none; margin: 0; padding: 0 0 48px; }
.area-list li { border-top: 1px solid var(--rule); padding: 28px 0; }
.area-list .area-head { font-size: inherit; margin: 0 0 8px; }
.area-list .area-title { font-size: 24px; }
.area-list p { color: var(--body); max-width: 760px; margin: 0; }
.area-list .area-more { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* Entries */
.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.entry-title { font-family: var(--serif); font-size: 19px; line-height: 1.35; }
span.entry-title { color: var(--ink); }
.meta { font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.note { font-style: italic; }
.tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.entry.compact { font-size: 16px; }
.entries:has(.compact) { gap: 16px; }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.strong { font-weight: 600; }

/* Topic pages */
.page-head { padding: 48px 0 32px; }
.crumb { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.area-switch { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 15px; font-weight: 600; }
.findings { background: var(--tint); border-radius: 2px; padding: 28px 32px; margin-bottom: 48px; }
.findings h2 { font-size: 22px; }
.findings ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.findings .selected { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 32px; max-width: none; }
.split { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 48px; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.split-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.split-side h2 { font-size: 22px; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; padding-bottom: 48px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; border-top: 1px solid var(--rule); padding: 40px 0 48px; }
.trio h2 { font-size: 22px; }

/* Link system (one rule everywhere):
   - Section links (research areas on Home and Research): navy serif title, faint underline, arrow.
   - Links inside running text (key findings, intros, breadcrumbs, contact, selected coverage): faint underline.
   - Item titles in lists (papers, policy pieces, press): navy serif, underline on hover.
   - Onward links ("All publications →", "Read more →"): bold navy with an arrow.
   - Buttons (chips, filters): bordered. Navigation (top menu, home buttons) uses Title Case; everything else sentence case. */
.area-title, .area-list .area-title { text-decoration: underline; text-decoration-color: var(--chip-border); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.area:hover .area-title, .area-list .area-title:hover { text-decoration-color: var(--navy); }
.arrow { display: inline-block; margin-left: .35em; transition: transform .15s ease; }
.area:hover .arrow, .area-title:hover .arrow { transform: translateX(3px); }
.lede a, .findings li a, .crumb a, #contact a, .band p a:not(.chip):not(.more), .selected a, .area-more a {
  text-decoration: underline; text-decoration-color: var(--chip-border); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lede a:hover, .findings li a:hover, .crumb a:hover, #contact a:hover, .band p a:not(.chip):not(.more):hover, .selected a:hover, .area-more a:hover { text-decoration-color: var(--navy); }
.findings .read-more { font-weight: 600; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.area-more a { text-decoration: none; }

/* Filtered lists */
.filters { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 56px; }
.pill { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--chip-border); background: #fff; color: var(--navy); font: 600 14px var(--sans); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.count { font-size: 14px; color: var(--muted); margin: 0; }
.filtered { padding-bottom: 32px; }
.year-head { font-size: 22px; color: var(--muted); margin: 32px 0 4px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.row-type { flex: 0 0 132px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; }
.row-body .entry-title { font-size: 18px; }
.older { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 16px; }
.older > summary { font-family: var(--serif); font-size: 20px; color: var(--navy); cursor: pointer; }
.empty { color: var(--muted); margin-top: 24px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 16px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .brand { font-size: 20px; }
  .nav-links { gap: 4px 18px; font-size: 15px; }
  .hero { padding: 32px 0 36px; gap: 24px; }
  .headshot { order: -1; max-width: 140px; }
  .display { font-size: 31px; line-height: 1.2; }
  h2 { font-size: 23px; }
  .band { padding: 36px 0; }
  .findings { padding: 22px 20px; }
  .row-type { flex-basis: 100%; }
  .chip { min-height: 36px; padding: 0 12px; }
  .pill { min-height: 38px; white-space: nowrap; flex: 0 0 auto; }
  /* Filters scroll sideways on phones instead of stacking into a tall block. */
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-label { min-width: 0; flex: 0 0 auto; }
  .headshot.placeholder { display: none; }
}
