@font-face {
  font-family: 'EB Garamond';
  src: url('assets/EBGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #dbecf8;
  --text: #24324a;
  --accent: #174b7a;
  --hover: #102f52;
  background-color: var(--background);
  scrollbar-color: var(--accent) var(--background);
}

/* Keep older WebKit browsers in the same palette, too. */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }

  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background-color: var(--background);
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border: 3px solid var(--background);
    border-radius: 999px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover);
  }
}

::selection {
  background-color: var(--accent);
  color: var(--background);
  text-shadow: none;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: 'EB Garamond', Garamond, serif;
  margin: 0 0 0 2vw;
  font-size: 108%;
}

h1 {
  color: var(--accent);
  font-size: 1.5em;
  font-weight: normal;
  margin: .83em 0;
}

h2 {
  font-size: 1.17em;
  font-weight: normal;
  margin: 1em 0;
}

a:link, a:visited { color: var(--accent); background-color: transparent; text-decoration: none; }
a:hover { color: var(--hover); background-color: transparent; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Preserve the reference's desktop biography width and portrait-height spacing. */
.intro { min-height: 440px; }
.bio { width: calc(92vw - 350px); margin: 0 4vw 0 0; font-size: 110%; }
.bio p { margin: 0 0 1.3em; }
.bio p:last-child { margin-bottom: 0; padding-bottom: 1.3em; }
.div-work { margin: 0 35vw 0 0; padding-bottom: 1em; }
blockquote { margin: 1em 40px; }
.press { padding-top: 1em; }
.full-list-link { font-size: 1.17em; margin: 2em 0 1em; }
.archive h1 { font-size: 2em; font-weight: bold; color: var(--text); margin: .67em 0; }
.archive-year { font-size: 1em; font-weight: normal; margin: 1.5em 0; }
.return-home { margin-top: 2em; }

@media (any-pointer: fine) {
  html, body { cursor: var(--cursor-default, default); }
  p, blockquote, h1, h2, article { cursor: var(--cursor-text, text); }
  a, a * { cursor: var(--cursor-link, pointer); }
}

/* Let the same typography and content fit narrow screens without clipping. */
@media (max-width: 800px) {
  body { margin-right: 2vw; }
  .intro { min-height: 0; }
  .bio { width: auto; margin-right: 0; }
  .div-work { margin-right: 0; }
  blockquote { margin-left: 24px; margin-right: 24px; }
}
