:root {
  --bg: #fafaf8;
  --text: #222831;
  --muted: #5b6470;
  --link: #2a5d9f;
  --placeholder: #e3e6ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1e23;
    --text: #e8eaed;
    --muted: #a0a7b1;
    --link: #8db8f0;
    --placeholder: #2c3138;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Left column: photo + name */
.profile img,
.photo-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.photo-placeholder {
  background: var(--placeholder);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 1.25rem 0 0.25rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

/* Right column: bio */
.bio p {
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

.bio h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

/* Links (also covers the contact links, which sit inside .bio) */
.bio a {
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--link);
  margin-right: 1.25rem;
}

.contact {
  margin-top: 2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

/* Stack on small screens */
@media (max-width: 680px) {
  main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }

  .profile {
    max-width: 240px;
  }
}
