/* Front page (index.html). Matches the CV page style in css/cv.css. */

.home {
  --home-ink: #1f2328;
  --home-muted: #5f6b76;
  --home-line: #e6e8eb;
  --home-soft: #f6f8fa;
  --home-accent: #0b6bcb;
  color: var(--home-ink);
  font-size: 17px;
  line-height: 1.6;
}
.home a { color: var(--home-accent); text-decoration: none; }
.home a:hover { text-decoration: underline; }

.home-notice {
  font-size: 14px;
  color: var(--home-muted);
  border-left: 3px solid var(--home-accent);
  background: var(--home-soft);
  padding: 8px 14px;
  margin-bottom: 36px;
}

.home-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--home-muted);
  margin: 0 0 10px;
}

/* Photo + bio */
.home-intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.home-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  flex-shrink: 0;
  margin-top: 4px;
}
.home-intro p { margin: 0 0 12px; }

/* Blog-inactive note */
.home-update {
  margin: 28px 0 36px;
  padding: 14px 18px;
  border: 1px solid #f0d58c;
  background: #fff9e6;
  border-radius: 10px;
  font-size: 16px;
}

/* Section cards */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.home .home-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--home-ink);
  transition: border-color .15s, box-shadow .15s;
}
.home .home-card:hover {
  text-decoration: none;
  border-color: var(--home-accent);
  box-shadow: 0 2px 10px rgba(11, 107, 203, .08);
}
.home-card p { font-size: 16px; color: var(--home-muted); margin: 0; flex-grow: 1; }
.home-card-link {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-accent);
  margin-top: 12px;
}

/* xkcd figure */
.home-figure {
  margin: 44px auto 0;
  max-width: 420px;
  text-align: center;
}
.home-figure img { max-width: 100%; }
.home-figure figcaption {
  font-size: 14px;
  font-style: italic;
  color: var(--home-muted);
  margin-top: 8px;
}

.home-footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  font-size: 15px;
  color: var(--home-muted);
}

@media (max-width: 640px) {
  .home { font-size: 16px; }
  .home-intro { flex-direction: column; gap: 16px; }
  .home-photo { width: 104px; height: 104px; }
  .home-cards { grid-template-columns: 1fr; }
}
