:root {
  color-scheme: light;
  --width: 720px;
  --font-main: Georgia, 'Times New Roman', serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  --font-scale: 18px;
  --background-color: #fff8e7;
  --heading-color: #252723;
  --text-color: #3d403b;
  --link-color: #294d61;
  --visited-color: #294d61;
  --blockquote-color: #62665e;
  --rule-color: #deded5;
}
* { box-sizing: border-box; }
body { padding: 0 28px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 46px 0 24px; border-bottom: 1px solid var(--rule-color); }
.site-name { color: var(--heading-color); font-size: 19px; font-weight: bold; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 20px; font: 14px/1.6 system-ui, sans-serif; }
nav a { margin: 0; color: var(--text-color); }
nav a[aria-current="page"] { color: var(--link-color); text-decoration: underline; text-underline-offset: 6px; }
main { min-height: 58vh; padding: 42px 0 50px; line-height: 1.75; }
h1 { font-size: 38px; font-weight: normal; line-height: 1.2; margin: 0 0 22px; letter-spacing: -.7px; }
h2 { font-size: 24px; font-weight: normal; margin: 38px 0 12px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.4; margin-bottom: 6px; }
p { margin: 0 0 20px; }
main a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #846036; }
a:focus-visible { outline: 2px solid var(--link-color); outline-offset: 5px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 34px; border-top: 1px solid var(--rule-color); text-align: left; font: 12px/1.6 system-ui, sans-serif; color: #62665e; }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 8px; padding: 6px 12px; background: var(--background-color); }
@media (max-width: 520px) {
  body { padding: 0 22px; font-size: 17px; }
  header { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 30px; }
  nav { gap: 22px; }
  main { padding-top: 34px; }
  h1 { font-size: 33px; }
}
@media print {
  body { max-width: none; background: white; color: black; }
  header, footer { display: none; }
  main { padding: 0; }
}

.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.profile-heading h1 { margin-bottom: 0; }
.portrait { width: 216px; height: auto; flex-shrink: 0; }
h2[id] { scroll-margin-top: 28px; }
@media (max-width: 520px) {
  .profile-heading { gap: 16px; }
  .profile-heading h1 { flex: 1; min-width: 0; }
  .portrait { width: 120px; height: auto; }
}
