/* ---------- Perusta: neutraali ja asiallinen ---------- */
:root {
  --bg: #ffffff;
  --ink: #16181d;
  --ink-soft: #4b5058;
  --ink-faint: #878d97;
  --accent: #1f3a5f;
  --line: #e4e6ea;
  --photo-bg: #f2f3f5;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --ink: #e8eaed;
    --ink-soft: #a8adb6;
    --ink-faint: #6d737d;
    --accent: #7fa3cc;
    --line: #2b2f36;
    --photo-bg: #21242a;
  }
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 3rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title {
  margin-top: 0.3rem;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95rem;
}

.hero-role {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.hero-role a { color: var(--accent); }

.hero-meta {
  margin-top: 0.3rem;
  color: var(--ink-soft);
}

.hero-location {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.hero-location::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--ink-faint);
}

.hero-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--photo-bg);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .hero { flex-direction: column-reverse; gap: 1.5rem; padding-top: 3.5rem; }
  .hero-photo { width: 110px; height: 110px; }
}

/* ---------- Osiot ---------- */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 1.3rem;
}

/* ---------- Mediajutut ---------- */
.media-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-list li {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
}

.media-year {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 2.6rem;
}

.media-outlet {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* ---------- Kuvat ---------- */
.photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.photo-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--photo-bg);
}

@media (max-width: 560px) {
  .photo-row { grid-template-columns: 1fr; }
  .photo-row img { aspect-ratio: 3 / 2; }
}

/* ---------- Yhteys ---------- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
