/*
 * Homepage (ericmsolomon.com/) — deliberately distinct from /k12/.
 * Warm cream background, serif body for an academic feel, slate accent,
 * generous whitespace. Single column, mobile-stacked hero.
 */

:root {
  --bg: #fbfaf5;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2c3e50;
  --accent-hover: #12202e;
  --border: #ebe5d8;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 62, 80, 0.35);
}
a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.home {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ---- hero --------------------------------------------------------- */

.hero {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.headshot {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-text { flex: 1; min-width: 0; }

.hero-text h1 {
  margin: 0 0 0.3rem;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.tagline {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

.contact {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.contact .sep {
  margin: 0 0.45rem;
  color: var(--border);
}

/* ---- body sections ----------------------------------------------- */

.bio {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}
.bio p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

section h2 {
  margin: 2.5rem 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

/* ---- research ---------------------------------------------------- */

.research .paper {
  margin-bottom: 1.5rem;
}
.research .paper:last-child {
  margin-bottom: 0;
}

.paper h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.paper .meta {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.83rem;
  color: var(--muted);
}
.paper .meta em {
  font-style: normal;
  color: var(--fg);
}

.paper .abstract {
  margin: 0;
  font-size: 0.98rem;
  color: #2d2d2d;
  line-height: 1.6;
}

/* ---- teaching, other (simple lists) ------------------------------ */

.teaching ul,
.other ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.teaching li,
.other li {
  padding: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.55;
}

.teaching li strong {
  font-weight: 600;
}

/* ---- mobile ------------------------------------------------------- */

@media (max-width: 560px) {
  .home {
    padding: 2.5rem 1.25rem 3rem;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .headshot {
    width: 104px;
    height: 104px;
  }
  .hero-text h1 { font-size: 1.75rem; }
  .tagline { font-size: 1rem; }
}
