/* Home page - landing layout. Same fonts and colours as the rest of the site. */
.home {
  --accent: #2060d0;
  --text: #444444;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --card: #f7f8fa;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: var(--text);
  line-height: 1.5;
}

/* hero */
.home-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 12px 0 40px;
}
.home-hero-text { flex: 1; }
.home-kicker {
  margin: 0 0 12px;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.home h1 {
  margin: 0 0 20px;
  font-size: 2.4em;
  line-height: 1.15;
  font-weight: 700;
}
.home-sub { margin: 0 0 28px; font-size: 1.2em; color: var(--muted); }
.home-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.home-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
}
.home-button:hover { opacity: 0.9; }
.home-link { font-weight: 600; }
.home-photo {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* proof strip */
.home-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.92em;
  color: var(--muted);
}
.home-proof strong { display: block; margin-bottom: 4px; color: var(--text); }

/* sections */
.home-section { padding: 48px 0 0; }
.home h2 {
  margin: 0 0 20px;
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-card {
  display: block;
  padding: 24px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}
.home-card h3 { margin: 0 0 10px; font-size: 1.15em; line-height: 1.3; }
.home-card p { margin: 0; color: var(--muted); font-size: 0.95em; }
a.home-post:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.home-date { display: block; margin-bottom: 8px; font-size: 0.85em; color: var(--muted); }
.home p.home-lead { margin: 0 0 24px; font-size: 1.1em; color: var(--text); }
.home-more { margin: 16px 0 0; font-weight: 600; }
.home-list { margin: 0; padding: 0; list-style: none; }
.home-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }

/* contact */
.home-contact {
  margin-top: 56px;
  padding: 40px;
  border-radius: 8px;
  background: var(--card);
}
.home-contact p { margin: 0 0 20px; font-size: 1.1em; max-width: 52ch; }
.home-contact p:last-child { margin: 0; }

/* phones */
@media screen and (max-width: 768px) {
  .home-hero { flex-direction: column-reverse; align-items: flex-start; gap: 24px; padding-top: 12px; }
  .home-photo { width: 120px; height: 120px; }
  .home h1 { font-size: 1.8em; }
  .home-proof { grid-template-columns: 1fr 1fr; }
  .home-cards { grid-template-columns: 1fr; }
  .home-contact { padding: 24px; }
}

/* dark mode, matching style-dark.css */
@media (prefers-color-scheme: dark) {
  .home {
    --accent: #6aa8ff;
    --text: #e6e6e6;
    --muted: #9aa0a6;
    --rule: #333333;
    --card: #242424;
  }
  .home-button { color: #1a1a1a !important; }
}

/* research partnerships */
.home-wide .home-more { margin-top: 16px; }
.home-contact p.home-small { margin-top: 16px; font-size: 0.9em; color: var(--muted); }

/* coming up: date column, talk title underneath */
.home-list li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; }
.home-when { font-weight: 600; }
.home-talk { display: block; margin-top: 2px; font-style: italic; color: var(--accent); }
@media screen and (max-width: 768px) {
  .home-list li { grid-template-columns: 1fr; gap: 2px; }
}
.home-areas { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.home-areas ul { margin: 0; padding: 0; list-style: none; }
.home-areas li { margin-bottom: 14px; color: var(--muted); font-size: 0.95em; }
.home-areas strong { display: block; color: var(--text); }
.home-card p.home-col { margin: 0 0 12px; font-size: 0.8em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media screen and (max-width: 768px) {
  .home-areas { grid-template-columns: 1fr; }
}
a.home-talk:hover { text-decoration: underline; }
.home-card p.home-question { margin-top: 20px; }
.home-book { margin-left: 20px; white-space: nowrap; }
@media screen and (max-width: 768px) { .home-book { display: inline-block; margin: 12px 0 0; } }
