:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #261d2f;
  --muted: #655b6e;
  --line: #e2dce8;
  --accent: #6b21a8;
  --text-body: 1rem;
  --text-secondary: 0.875rem;
  --text-heading: clamp(3.5rem, 7.2vw, 5.5rem);
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: white; }
a { color: inherit; }
.page { max-width: 1240px; margin: 0 auto; padding: 0 64px; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 86px;
  padding: 76px 0 72px;
}
.role { margin: 0 0 24px; color: var(--muted); }
h1 {
  margin: 0 0 32px;
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
h1 span { color: var(--accent); }
.motto { margin: 0 0 16px; font-weight: 600; }
.bio, .personal { max-width: 390px; margin: 0 0 20px; color: var(--muted); }
.personal { margin-bottom: 0; }
.portrait { margin: 0; width: 100%; max-width: 370px; justify-self: center; }
.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e0d8e7;
  border-radius: 50%;
}
/* Fixed crop: x440..1160, y340..1060 on the 1600px reference.
   The glass and straw remain outside the circle at every screen size. */
.portrait-frame img {
  position: absolute;
  width: 222.222222%;
  max-width: none;
  height: auto;
  left: -61.111111%;
  top: -47.222222%;
  display: block;
}
.connections { border-top: 1px solid var(--line); padding: 30px 0 38px; }
.section-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: var(--text-secondary);
  font-weight: 600;
}
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.profile {
  display: block;
  padding: 13px 0 17px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 160ms ease;
}
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.profile-name { display: inline-flex; align-items: center; gap: 12px; }
.social-icon { flex-shrink: 0; color: var(--accent); }
.profile-label { display: block; margin-top: 8px; color: var(--muted); font-size: var(--text-secondary); }
.external-arrow { flex-shrink: 0; transition: transform 160ms ease; }
.profile:hover { border-color: var(--accent); }
.profile:hover .external-arrow { transform: translate(2px, -2px); }
.profile:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
footer { padding: 19px 0 29px; color: var(--muted); font-size: var(--text-secondary); }
@media (min-width: 1600px) {
  .page { padding-top: 30px; }
  .intro { padding-top: 90px; padding-bottom: 90px; }
}
@media (max-width: 1000px) {
  .page { padding: 0 40px; }
  .intro { gap: 46px; }
}
@media (max-width: 700px) {
  .page { padding: 0 25px; }
  .intro { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 37px; }
  h1 { margin-bottom: 24px; }
  .bio, .personal { max-width: 440px; }
  .portrait { width: 85%; max-width: 300px; }
  .connections { padding: 28px 0 15px; }
  .profile-grid { grid-template-columns: 1fr; gap: 4px; }
  .profile { padding: 17px 0; }
  footer { padding: 27px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .profile, .external-arrow { transition: none; }
}
