/* Optional visual theme. Remove its stylesheet link to restore the original design. */
:root {
  --paper: #fcfdff;
  --ink: #172c40;
  --muted: #566779;
  --blue: #235776;
  --line: #d7e1ea;
  --soft: #eef3f7;
  --navy: #132a3e;
}

body { color: #34485b; border-top: 5px solid var(--navy); }
.draft-note { background: #edf2f6; padding: 5px 20px; }
.page-shell { max-width: 1280px; }
.site-header { min-height: 88px; border-bottom-color: #c9d5e0; }
.wordmark { color: var(--navy); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.025em; }
.site-header nav { gap: 1.6rem; }
.site-header nav a { color: #4c6072; font-size: .875rem; font-weight: 600; }
.site-header nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .45em; }

.profile-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; padding: 48px 0 72px; }
.portrait { width: 260px; padding: 5px; border: 1px solid #c5d2de; border-radius: 4px; background: #fff; margin-bottom: 28px; }
h1 { color: var(--navy); font-family: var(--sans); font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; margin-bottom: .65rem; }
.role { color: var(--blue); font-weight: 600; margin-bottom: 1rem; }
.affiliation { color: #43586b; margin-bottom: .3rem; }
.location { color: #637486; margin-top: 1.1rem; }
.profile-links { max-width: 260px; padding-top: 1.1rem; margin-top: 1.25rem; }
.profile-links li + li { margin-top: .4rem; }
.profile-links a { width: 100%; min-width: 0; padding: .4rem .8rem; font-size: .9375rem; font-weight: 600; border: 1px solid transparent; border-radius: 3px; }
.profile-links a:hover { background: var(--soft); text-decoration: none; border-color: var(--line); }
.profile-links li:first-child a { color: #fff; background: var(--navy); border-color: var(--navy); padding: .6rem .8rem; }
.profile-links li:first-child a:hover { background: #25465f; border-color: #25465f; }
.profile-links li:first-child a span { color: #d1dfe9; }

.profile-content h2 { display: flex; align-items: center; gap: 18px; color: var(--navy); font-family: var(--sans); font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; margin: 3rem 0 1.2rem; }
.profile-content h2:first-child { margin-top: 0; }
.profile-content h2::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.profile-content .intro { color: #243d52; font-size: 1.125rem; line-height: 1.75; }
.profile-content h3 { font-size: 1.0625rem; font-weight: 600; }
.profile-content a:hover { color: #14354f; }
.interests { gap: .55rem; }
.interests li { color: #294b65; background: #f0f5f9; border-color: #d3dfe9; border-radius: 3px; padding: .35rem .7rem; font-weight: 500; }

.entry { border-top: 0; border-left: 2px solid #c7d7e4; padding: 0 0 0 20px; margin-top: 1.8rem; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
.entry p { color: #526578; line-height: 1.7; margin-bottom: .65rem; }
.entry p strong { color: var(--ink); }
.entry .entry-meta { color: #566d81; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .8125rem; line-height: 1.6; margin-bottom: .75rem; }
.site-footer { border-top-color: #c9d5e0; padding-top: 22px; }

@media (max-width: 1000px) {
  .page-shell { padding: 0 28px; }
  .profile-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .portrait { width: 244px; }
  h1 { font-size: 1.875rem; }
}

@media (max-width: 760px) {
  .page-shell { padding: 0 24px; }
  .site-header { min-height: 80px; }
  .site-header nav { gap: .75rem 1.1rem; }
  .profile-layout { grid-template-columns: 1fr; gap: 38px; padding: 32px 0 56px; }
  .portrait { width: 192px; margin-bottom: 24px; }
  .profile-links { max-width: none; gap: .5rem; }
  .profile-links li + li { margin-top: 0; }
  .profile-links a, .profile-links li:first-child a { padding: .5rem .75rem; border-color: var(--line); }
  .profile-links li:first-child a { border-color: var(--navy); }
  .profile-content h2 { font-size: 1.3rem; margin-top: 2.5rem; }
  .profile-content .intro { font-size: 1.0625rem; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.7rem; }
  .entry { padding-left: 14px; }
}
