:root {
  color-scheme: light;
  --background: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f0f2f8;
  --text: #101b2b;
  --text-muted: #5e6b81;
  --accent: #0047ab;
  --accent-soft: rgba(0, 71, 171, 0.12);
  --author-highlight: #0072ce;
  --border: rgba(16, 27, 43, 0.08);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --space: clamp(20px, 4vw, 32px);
  --link: #0047ab;
  --link-hover: #00398c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.content a:not(.button) {
  color: var(--link);
  text-decoration: none;
}

.content a:not(.button):hover,
.content a:not(.button):focus {
  color: var(--link-hover);
}

.author-highlight {
  color: var(--author-highlight);
  font-weight: 700;
}

.page {
  width: min(1200px, 95vw);
  margin: clamp(32px, 6vw, 80px) auto;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(36px, 6vw, 96px);
}

.profile {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
  position: sticky;
  top: clamp(20px, 6vw, 60px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile__image img {
  border-radius: 22px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.14);
}

.profile__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.profile__name {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0;
}

.profile__role {
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.profile__tagline {
  margin: 0;
  color: var(--text-muted);
}

.profile__contact {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.profile__contact a {
  font-weight: 600;
  color: var(--text);
}

.profile__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile__nav a {
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.profile__nav a:hover,
.profile__nav a:focus {
  color: var(--accent);
}

.profile__actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.button--icon {
  padding: 10px 12px;
}

.button--icon svg {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(0, 71, 171, 0.25);
}

.button.primary:hover,
.button.primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(0, 71, 171, 0.28);
}

.button.secondary {
  background: var(--surface-alt);
  border-color: rgba(0, 71, 171, 0.2);
  color: var(--accent);
}

.button.secondary:hover,
.button.secondary:focus {
  transform: translateY(-1px);
  border-color: rgba(0, 71, 171, 0.4);
}

.content {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
}

.content__section {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 18px;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title + p {
  margin-top: 0;
}

.list-with-heading {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}

.list-with-heading h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.list-with-heading p {
  margin: 0;
  color: var(--text-muted);
}

.grid-two {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-two article {
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.grid-two h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.grid-two p {
  margin: 0;
  color: var(--text-muted);
}

.timeline {
  display: grid;
  gap: 24px;
  position: relative;
}

.timeline article {
  padding-left: 20px;
  border-left: 2px solid var(--accent-soft);
}

.timeline article header {
  margin-bottom: 6px;
}

.timeline h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline__meta {
  display: block;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 4px;
}

.timeline p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 500;
  color: var(--text);
}

.footer__quote {
  margin: 0;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
  }

  .profile {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }

  .page {
    margin: 24px auto 48px;
  }

  .profile,
  .content__section {
    padding: 24px;
  }

  .section-title {
    letter-spacing: 0.18em;
  }
}
