/* ============================================================
   Hannah Kerner — site styles
   Modern minimal monochrome, ASU Maroon accent
   ============================================================ */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #18181B;
  --muted: #6B7280;
  --line: #E5E5E0;
  --accent: #8C1C40;
  --accent-soft: #8C1C400F;
  --accent-text: #8C1C40;
  --max: 1100px;
  --pad: clamp(16px, 4vw, 40px);
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
a:hover { border-bottom-color: var(--accent-text); }
img { max-width: 100%; height: auto; }

/* ===== Top nav ===== */
nav.top { border-bottom: 1px solid var(--line); background: var(--bg); }
nav.top .inner {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--pad);
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
nav.top .brand { font-weight: 600; letter-spacing: -0.01em; color: var(--text); border: none; }
nav.top .brand:hover { color: var(--accent-text); }
nav.top ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; flex-wrap: wrap; }
nav.top a { color: var(--text); border-bottom: none; font-size: 14.5px; font-weight: 500; }
nav.top a:hover { color: var(--accent-text); }

/* ===== Section frame ===== */
section { padding: 56px var(--pad); }
section .inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 12px;
}

h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.1; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 22px; margin: 0 0 22px; font-weight: 600; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
p  { margin: 0 0 16px; }
.lead { font-size: 17px; color: #2A2A30; max-width: 68ch; }

/* ===== Hero ===== */
.hero { padding-top: 60px; padding-bottom: 48px; }
.hero .row {
  display: grid; gap: 44px; align-items: start;
  grid-template-columns: 1.7fr 1fr;
}
@media (max-width: 820px) {
  .hero .row { grid-template-columns: 1fr; gap: 28px; }
}
.hero .role {
  color: var(--muted); font-size: 15px; margin: 0 0 22px;
  line-height: 1.5;
}
.hero p.bio { font-size: 16px; color: #2A2A30; max-width: 64ch; }
.hero .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; margin-top: 12px; }
.hero .links a { color: var(--text); }
.hero .links a:hover { color: var(--accent-text); }
.hero .contact { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.hero .contact a { color: var(--accent-text); }

.photo-col img.portrait {
  width: 100%; max-width: 280px; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ddd, #b8b8b3);
  display: block;
}
.photo-col .affiliations {
  margin-top: 16px; max-width: 280px;
  font-size: 13.5px; color: var(--muted);
  line-height: 1.55;
}
.photo-col .affiliations div + div { padding-top: 2px; }
.photo-col .affiliations strong { color: var(--text); font-weight: 500; }

/* ===== Press ===== */
.press .featured {
  display: grid; gap: 22px;
  grid-template-columns: 320px 1fr;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .press .featured { grid-template-columns: 1fr; } }
.press .featured img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #8C1C40, #D38099);
}
.press .featured .label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 600; margin-bottom: 6px;
}
.press .featured h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.3; }
.press .featured h3 a { color: var(--text); }
.press .featured h3 a:hover { color: var(--accent-text); }
.press .featured p { font-size: 14.5px; color: #2A2A30; margin-bottom: 8px; }
.press .featured .source { font-size: 13px; color: var(--muted); }
.press .more { margin-top: 22px; font-size: 14px; }

/* ===== Themes ===== */
.themes .grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .themes .grid { grid-template-columns: 1fr; gap: 24px; } }
.theme { border-top: 1px solid var(--text); padding-top: 14px; }
.theme h3 { font-size: 16px; margin-bottom: 10px; }
.theme p { color: #2A2A30; font-size: 14.5px; margin-bottom: 10px; }
.theme .projects {
  font-size: 14px; color: var(--muted); margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.theme .projects a { color: var(--text); border-bottom: 1px dotted var(--muted); }
.theme .projects a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }

/* ===== Papers (selected on home + full list on /publications/) ===== */
.papers ol, .papers ul { list-style: none; padding: 0; margin: 0; }
.papers li {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px;
  padding: 18px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.papers li:last-child { border-bottom: 1px solid var(--line); }
.papers .thumb {
  width: 110px; height: 78px; border-radius: 3px;
  background-size: cover; background-position: center;
  background-color: #EEE; border: 1px solid var(--line);
}
.papers .title { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.papers .authors { color: #3a3a40; font-size: 14px; margin: 4px 0 4px; line-height: 1.5; }
.papers .venue { color: var(--muted); font-size: 13.5px; font-style: italic; }
.papers .award { color: var(--accent-text); font-style: normal; font-weight: 500; }
.papers .links { font-size: 13px; margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .papers li { grid-template-columns: 1fr; }
  .papers .thumb { width: 100%; height: 140px; }
}

/* Generic gradient placeholders for paper thumbnails (replaced with real images later) */
.ph-galileo  { background-image: linear-gradient(135deg, #1F5F4F, #6FB39A); }
.ph-momo     { background-image: linear-gradient(135deg, #9C4221, #E5A176); }
.ph-olmo     { background-image: linear-gradient(135deg, #166534, #86E0AC); }
.ph-marsbench{ background-image: linear-gradient(135deg, #7C2D12, #FCA5A5); }
.ph-prue     { background-image: linear-gradient(135deg, #1E40AF, #6FA0E8); }
.ph-mission  { background-image: linear-gradient(135deg, #1F2937, #6B7280); }
.ph-presto   { background-image: linear-gradient(135deg, #4338CA, #A09BE6); }
.ph-default  { background-image: linear-gradient(135deg, #6B7280, #C7C7C2); }
.ph-tut1     { background-image: linear-gradient(135deg, #166534, #6FB39A); }
.ph-tut2     { background-image: linear-gradient(135deg, #1F2937, #B45309); }
.ph-tut3     { background-image: linear-gradient(135deg, #6E1B27, #D38099); }

/* ===== Code & data ===== */
.oss .subhead {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin: 32px 0 14px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.oss .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 820px) { .oss .grid { grid-template-columns: 1fr; } }
.oss .card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 18px; background: var(--surface);
  display: flex; flex-direction: column; min-height: 140px;
}
.oss .card h3 { font-family: var(--font-mono); font-size: 14px; }
.oss .card .desc { font-size: 14px; color: #2A2A30; margin: 6px 0 12px; flex: 1; }
.oss .card .stats {
  display: flex; gap: 14px; font-size: 12.5px; color: var(--muted);
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums; align-items: center;
}
.oss .card .stats b { color: var(--text); font-weight: 600; }
.oss .card .stats a { color: var(--muted); border-bottom: 1px dotted var(--muted); margin-left: auto; font-family: var(--font-mono); }
.oss .card .stats a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }

.oss .tutcard {
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column; min-height: 220px;
}
.oss .tutcard .tutthumb {
  width: 100%; height: 100px;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.oss .tutcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.oss .tutcard h3 { font-size: 14.5px; line-height: 1.3; margin-bottom: 6px; font-family: var(--font-body); font-weight: 600; }
.oss .tutcard .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.oss .tutcard .desc { font-size: 13.5px; color: #2A2A30; flex: 1; margin-bottom: 10px; }
.oss .tutcard .links { font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Group ===== */
.group { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.group .row { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .group .row { grid-template-columns: 1fr; } }
.group ul.people { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.group ul.people li { padding: 3px 0; }
.group ul.people a { color: var(--text); border-bottom: 1px dotted var(--muted); }
.group ul.people a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
.group ul.people .role { color: var(--muted); font-size: 13.5px; }
.group ul.students { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 18px; font-size: 14.5px; }
.group ul.students li { padding: 3px 0; break-inside: avoid; }
.group ul.students a { color: var(--text); border-bottom: 1px dotted var(--muted); }
.group ul.students a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
.group .subhead {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin: 22px 0 10px;
}
.group .subhead:first-child { margin-top: 0; }
.group .group-link { font-size: 14px; margin-top: 18px; }

.joinbox {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 22px;
}
.joinbox h3 { color: var(--accent-text); margin-bottom: 8px; }
.joinbox p { font-size: 14.5px; margin-bottom: 12px; color: #2A2A30; }
.joinbox .forms { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.joinbox .forms a { font-weight: 500; }

/* ===== Teaching ===== */
.teaching ul {
  list-style: none; padding: 0; margin: 0; font-size: 15px;
}
.teaching ul li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 16px; padding: 10px 0;
  border-top: 1px solid var(--line);
}
.teaching ul li:last-child { border-bottom: 1px solid var(--line); }
.teaching .term { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.teaching .courseno { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-right: 8px; }

/* ===== Sub-page styling (page layout) ===== */
.subpage h1 { margin-bottom: 24px; }
.subpage .lede {
  font-size: 16px; color: #2A2A30; max-width: 68ch; margin-bottom: 28px;
}
.subpage section { padding-top: 32px; padding-bottom: 32px; }
.subpage .section-heading {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin: 28px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* ===== Press list (full /press/ page) ===== */
.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 18px; padding: 12px 0;
  border-top: 1px solid var(--line); align-items: baseline;
}
.press-list li:last-child { border-bottom: 1px solid var(--line); }
.press-list .source { color: var(--muted); font-size: 13px; }
.press-list .head { font-size: 15px; }

/* ===== Footer ===== */
footer.site {
  padding: 36px var(--pad);
  text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
footer.site a { color: var(--muted); border-bottom: 1px dotted var(--muted); }
footer.site a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
