/* OSU Academic Site — Dan Thompson */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
  --scarlet: #BB0000;
  --scarlet-dark: #8B0000;
  --scarlet-light: #f5e6e6;
  --gray-dark: #212325;
  --gray-mid: #4a4a4a;
  --gray-soft: #6b6b6b;
  --gray-light: #D6D6CE;
  --gray-bg: #f7f6f4;
  --white: #ffffff;
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --max-width: 860px;
  --radius: 4px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--scarlet);
  border-bottom: 4px solid var(--scarlet-dark);
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-identity h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.header-identity p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── SECTIONS ────────────────────────────────────────── */
.section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--gray-light);
}
.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--scarlet-dark);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--scarlet);
  display: inline-block;
}

/* ── PROFILE BLOCK ───────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}

.profile-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid var(--gray-light);
  display: block;
}

.profile-text p {
  margin-bottom: 1em;
  color: var(--gray-mid);
}

.contact-list {
  list-style: none;
  margin-top: 12px;
}

.contact-list li {
  padding: 5px 0;
  font-size: 0.95rem;
  color: var(--gray-mid);
  display: flex;
  gap: 8px;
}

.contact-list .label {
  font-weight: 600;
  color: var(--gray-dark);
  min-width: 60px;
}

/* ── TEACHING ────────────────────────────────────────── */
.teaching-current {
  background: var(--scarlet-light);
  border-left: 4px solid var(--scarlet);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
  font-size: 0.97rem;
}

.teaching-current strong {
  display: block;
  color: var(--scarlet-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.teaching-archive {
  list-style: none;
}

.teaching-archive li {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-bg);
  font-size: 0.93rem;
  color: var(--gray-mid);
  display: flex;
  gap: 12px;
}

.teaching-archive li:last-child { border-bottom: none; }

.teaching-archive .term {
  min-width: 108px;
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 0.88rem;
}

.archive-group-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin: 20px 0 8px;
}

/* ── PAPERS ──────────────────────────────────────────── */
.paper-list {
  list-style: none;
}

.paper-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-bg);
}

.paper-item:last-child { border-bottom: none; }

.paper-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--gray-dark);
  line-height: 1.4;
  margin-bottom: 5px;
}

.paper-meta {
  font-size: 0.88rem;
  color: var(--gray-soft);
  line-height: 1.6;
}

.paper-meta .authors { color: var(--gray-mid); }

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--scarlet);
  text-decoration: none;
  margin-top: 6px;
  border: 1px solid var(--scarlet);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.paper-link:hover {
  background: var(--scarlet);
  color: var(--white);
}

/* ── TALK LIST ───────────────────────────────────────── */
.talk-list {
  list-style: none;
}

.talk-item {
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--gray-light);
  margin-bottom: 2px;
  font-size: 0.93rem;
  color: var(--gray-mid);
  transition: border-color 0.15s;
}

.talk-item:hover { border-left-color: var(--scarlet); }

.talk-abstract {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.talk-abstract-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
}

/* ── MUSIC ───────────────────────────────────────────── */
.music-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.music-item a {
  display: block;
  padding: 14px 16px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  text-decoration: none;
  color: var(--gray-dark);
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.music-item a:hover {
  border-color: var(--scarlet);
  background: var(--scarlet-light);
}

.music-item .performer {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--scarlet-dark);
}

/* ── GENERAL PROSE ───────────────────────────────────── */
p { margin-bottom: 1em; color: var(--gray-mid); }
p:last-child { margin-bottom: 0; }

a { color: var(--scarlet); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--scarlet-dark); }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 0.8rem;
  padding: 20px 24px;
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 180px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .teaching-archive .term { min-width: 80px; }
}

/* ── ACCESSIBILITY ───────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--scarlet);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
