/* Karina Schumann — site styles. One type scale for the whole site. */

:root {
  /* type scale: six sizes, used everywhere */
  --fs-meta: 0.875rem;   /* 14px  labels, outlets, citations meta */
  --fs-body: 1.125rem;   /* 18px  reading text */
  --fs-ui: 1rem;         /* 16px  nav, buttons, lists */
  --fs-lead: 1.375rem;   /* 22px  intro/lead text, card titles */
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);   /* 28–40px */
  --fs-h1: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);      /* 40–64px */

  --ink: #1c2638; --ink-soft: #3c4759; --muted: #646d7e;
  --accent: #3f5276; --accent-dark: #2c3b57;
  --band: #dcebfa; --band-2: #eef5fc;
  --paper: #fbfaf8; --surface: #ffffff; --line: #e2e5ea;
  --serif: "Newsreader Variable", "Newsreader", Georgia, serif;
  --sans: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--serif);
  --display-weight: 450;
  --radius: 14px; --photo-radius: 20px;
  --shadow: 0 1px 2px rgba(28,38,56,.05), 0 10px 30px rgba(28,38,56,.08);
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: var(--fs-body); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-lead); line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-meta); }
.eyebrow { font-size: var(--fs-meta); font-weight: 600; color: var(--accent); margin: 0 0 .75rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--fs-ui); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: var(--fs-ui); color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; background: var(--accent); color: #fff; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--fs-ui); border: 1.5px solid var(--accent); transition: background .15s, color .15s; font-family: var(--sans); cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* Home hero */
.hero { background: linear-gradient(180deg, var(--band) 0%, var(--band-2) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); grid-template-areas: "text photo"; gap: 72px; align-items: center; padding: 88px 0 80px; }
.hero-text { grid-area: text; }
.hero .portrait { grid-area: photo; }
.hero h1 { max-width: 14ch; margin-bottom: 1.5rem; }
.hero .lead { font-size: var(--fs-body); color: var(--ink-soft); max-width: 58ch; }
.portrait { border-radius: var(--photo-radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--band); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }



/* Featured-in strip */
.featured-in { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.featured-in .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; justify-content: center; }
.recent { padding-top: 0; }
.recent .media-featured { margin-bottom: 0; }
.featured-in .label { font-size: var(--fs-meta); color: var(--muted); font-weight: 600; }
.featured-in .outlet { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-soft); white-space: nowrap; }

/* Sections and tiles */
.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); }
.tile-img { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--band); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-text { display: block; }
.tile-text strong { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-lead); line-height: 1.2; }
.tile-text span { display: block; font-size: var(--fs-meta); line-height: 1.4; margin-top: 4px; color: var(--muted); }
/* Tile text sits over the photo */
.tile { box-shadow: var(--shadow); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,26,42,0) 40%, rgba(18,26,42,.85) 100%); }
.tile-text { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; }
.tile-text strong { color: #fff; }
.tile-text span { color: rgba(255,255,255,.85); }
/* B and C: caption under the photo */

/* Page header (inner pages) */
.page-head { background: var(--band); border-bottom: 1px solid var(--line); padding: 72px 0 60px; }
.page-head h1 { margin-bottom: .4em; }
.page-head .lead { font-family: var(--serif); font-size: var(--fs-lead); color: var(--ink-soft); max-width: 48ch; line-height: 1.45; margin: 0; }

/* Research */
.program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.program:first-child { border-top: 0; padding-top: 0; }
.program h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.program-body p { color: var(--ink-soft); max-width: 68ch; }
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub-year { font-family: var(--serif); font-size: var(--fs-ui); font-weight: 600; color: var(--accent); padding-top: 3px; }
.pub-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; display: block; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
a.pub-title:hover { color: var(--accent); text-decoration: underline; }
.pub-meta { font-size: var(--fs-meta); color: var(--muted); margin: 0; line-height: 1.5; }
.pub-meta em { color: var(--ink-soft); }
.pub-links a { font-size: var(--fs-meta); margin-right: 14px; }

/* Media */
.media-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 64px; }
.mf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.mf:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); border-color: var(--accent); }
.mf .type { font-size: var(--fs-meta); color: var(--accent); font-weight: 600; }
.mf .t { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-lead); line-height: 1.25; }
.mf .o { font-size: var(--fs-meta); color: var(--muted); margin-top: auto; }
.media-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 18px; font: inherit; font-size: var(--fs-ui); color: var(--ink-soft); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; font-size: var(--fs-ui); min-width: 280px; background: var(--surface); color: var(--ink); }
.year-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; }
.year-group h3 { font-family: var(--serif); font-size: var(--fs-lead); color: var(--accent); margin: 0; }
.media-list { list-style: none; margin: 0; padding: 0; }
.media-item a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 10px 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.media-item + .media-item a { border-top: 1px dashed var(--line); }
.media-item a:hover .mt { color: var(--accent); text-decoration: underline; }
.mt { font-size: var(--fs-ui); line-height: 1.45; }
.mo { font-size: var(--fs-meta); color: var(--muted); text-align: right; white-space: nowrap; }
.badge { display: inline-block; font-size: .75rem; background: var(--band); color: var(--accent-dark); border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; font-weight: 600; }
.empty { padding: 24px 0; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.about-grid .portrait { aspect-ratio: 3/4; position: sticky; top: 110px; }
.prose p { color: var(--ink-soft); max-width: 66ch; }
.prose p:first-child { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-meta); color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: var(--fs-ui); }

/* Connect */
.connect-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.contact-block { margin-bottom: 28px; font-size: var(--fs-ui); }
.contact-block .label { font-size: var(--fs-meta); color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.contact-block a { font-size: var(--fs-lead); font-family: var(--serif); }
form.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; }
form.contact label { font-size: var(--fs-ui); font-weight: 600; display: grid; gap: 8px; }
form.contact input, form.contact select, form.contact textarea { font: inherit; font-weight: 400; font-size: var(--fs-ui); min-height: 48px; padding: 10px 14px; border: 1px solid #cfd3da; border-radius: calc(var(--radius) / 1.6); background: var(--paper); color: var(--ink); }
form.contact textarea { min-height: 160px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Book teaser on home (only when published) */
.book-band { background: #151b27; color: #f3efe6; }
.book-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.book-band h2 { color: #fff; }
.book-band .btn { background: #c9a45c; border-color: #c9a45c; color: #151b27; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-inner nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--fs-ui); }
.footer-inner nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-name { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-lead); margin: 0; }
.footer-inner p { margin: 0; }
.footer-inner .muted { font-size: var(--fs-meta); }


/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "photo" "text"; gap: 32px; padding: 40px 0 56px; }
  .hero .portrait { width: min(260px, 70%); aspect-ratio: 1/1; border-radius: 999px; }
  .about-grid, .connect-grid, .program, .book-band .wrap { grid-template-columns: 1fr; gap: 24px; }
  .about-grid .portrait { position: static; max-width: 360px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .media-featured { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  :root { --fs-body: 1.0625rem; --fs-lead: 1.25rem; }
  .wrap, .narrow { width: calc(100% - 40px); }
  .section { padding: 56px 0; }
  .page-head { padding: 48px 0 40px; }
  .featured-in .wrap { justify-content: flex-start; gap: 6px 20px; }
  .featured-in .label { width: 100%; }
  .featured-in .outlet { font-size: 1rem; }
  .tile-text span { display: none; }
  .tile-text strong { font-size: 1.125rem; }
  .pub { grid-template-columns: 1fr; gap: 2px; }
  .year-group { grid-template-columns: 1fr; gap: 4px; }
  .media-item a { grid-template-columns: 1fr; gap: 2px; }
  .mo { text-align: left; }
  .two, .facts { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  form.contact { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tile img, .mf { transition: none; } }

/* Contact form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: var(--fs-ui); color: var(--accent-dark); min-height: 1.5em; }
