:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --icon: #1a1a1a;
  --border: #d8d8d8;
  --hover: #f2f0eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --text: #ece9e2;
    --muted: #a8a49a;
    --icon: #ece9e2;
    --border: #33322e;
    --hover: #1b1b19;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  padding: 5rem 1.5rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.profile {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

/* On desktop, narrow the column to roughly 1/3 of the viewport,
   clamped so it never gets too tight or too wide. */
@media (min-width: 900px) {
  .profile {
    max-width: clamp(420px, 33vw, 700px);
  }
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  margin: 1.75rem 0 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0 auto 0.85rem;
  max-width: 32ch;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
}

.specialties {
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.9;
}

.bio {
  margin: 0 auto 2.25rem;
  max-width: 100%;
  color: var(--muted);
  font-size: 1.2rem;
}

.bio p {
  margin: 0 0 1.1rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

.quote {
  margin: 0 auto 2.5rem;
  max-width: 34ch;
  padding-top: 1.85rem;
  border-top: 1px solid var(--border);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
}

.quote-note {
  display: block;
  margin-top: 0.95rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.socials a {
  display: inline-flex;
  color: var(--icon);
  opacity: 0.85;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 480px) {
  body {
    padding-top: 3rem;
    gap: 2.5rem;
  }
  .name {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1.25rem;
  }
  .bio {
    font-size: 1.1rem;
  }
}
