/* Book typography for the biography, with plain labels for archive controls. */
:root {
  --paper: #faf7ef;
  --ink: #1e2d46;
  --muted: #46525d;
  --rust: #863d2e;
  --rule: #c6c1b4;
  --pale: #eee8db;
  --button-radius: .5rem;
  --button-fill: #e6dfd2;
  --button-hover: #dcd3c2;
  --button-border: #a69d8b;
  --field-edge: #7b7f78;
  --serif: "Baskerville", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body {
  line-height: 1.62;
  font-kerning: normal;
}

.hero h1,
.archive-hero h1,
.chapter-title,
.record-title,
.workspace h1 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2,
h3 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.intro,
.lede {
  color: var(--muted);
  line-height: 1.42;
}

.chapter-body p,
.chapter-body li {
  line-height: 1.68;
}

.chapter-body p,
.record-description {
  text-wrap: pretty;
}

.eyebrow,
.gallery-piece small,
.overline,
.record-kind,
.voice-pair small {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.075em;
}

.hero-art figcaption,
.archival figcaption,
.chapter-art figcaption,
.record-meta {
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.quote-inner p {
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.05em;
}

.timeline time,
.record-meta,
.source-line {
  font-variant-numeric: tabular-nums;
}

.chapter-body .source,
.chapter .source {
  font-size: 0.875rem;
  line-height: 1.65;
}

.chapter-body .source a,
.text-link {
  text-underline-offset: 0.2em;
}

.timeline p,
.contribution-grid p,
.record-description {
  font-size: 1rem;
}

input:not([type="checkbox"]),
textarea,
select {
  font-size: 1rem;
  font-weight: 400;
  border-color: var(--field-edge);
}

input::placeholder,
textarea::placeholder {
  color: #58616a;
  opacity: 1;
}

:is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.quote-panel a:focus-visible,
.archive-hero a:focus-visible {
  outline-color: var(--paper);
}

/* Empty, stroked chevrons leave the link's accessible name intact. */
a[href] {
  text-decoration: none;
}

a[href]:not(.brand, .gallery-piece, .crumb, .link-back, .masthead a, .bio-contents a, footer a, .archive-views a)::after,
.gallery-piece > span::after,
:is(.crumb, .link-back)::before {
  content: "";
  display: inline-block;
  width: .44em;
  height: .44em;
  margin-inline-start: .38em;
  border: solid currentColor;
  border-width: .1em .1em 0 0;
  vertical-align: .12em;
  transform: rotate(var(--chevron-angle, 45deg));
}

:is(.crumb, .link-back)::before {
  --chevron-angle: -135deg;
  margin-inline: 0 .45em;
}

.link-down, .skip { --chevron-angle: 135deg; }

.gallery-piece > span::after {
  position: absolute;
  inset-inline-end: .12em;
  bottom: .4em;
}

a.button, .recording-card { column-gap: .7em; }
a.button::after { flex-shrink: 0; }
nav a[aria-current] { font-weight: 750; color: var(--rust); }
a[href]:not(.brand, .button, .recording-card, footer a):hover { color: var(--rust); }
.oral-history-band a[href]:not(.recording-card):hover { color: #f0cb92; }

.bio-contents { background: var(--paper); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .masthead, .bio-contents {
    background: rgb(250 247 239 / 86%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .masthead, .bio-contents {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

body { --page-column: 69rem; }

.masthead .bar, footer .footer-inner { max-width: var(--page-column); }
.masthead .brand, .footer-inner .brand {
  --mark-gap: clamp(.25rem, 1vw, .875rem);
  --mark-space: max(5.5vw, calc((100vw - var(--page-column)) / 2));
}
.masthead .brand { position: relative; }
.masthead .woven {
  position: absolute;
  inset-inline-end: calc(100% + var(--mark-gap));
  width: min(var(--mark-width), calc(var(--mark-space) - var(--mark-gap) - .2rem));
  height: auto;
  aspect-ratio: 35 / 39;
}

.masthead .bar {
  min-height: 6.5rem;
  padding-block: 1.15rem;
}

.masthead .brand {
  --mark-width: clamp(2.6rem, 4vw, 3.3rem);
  font-size: clamp(1.6rem, 2.7vw, 2.1rem);
}

.masthead .brand small {
  font-size: clamp(.7rem, 1vw, .8rem);
  letter-spacing: .16em;
}

.site-nav {
  flex-wrap: wrap;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: 1rem;
}

.site-nav a[href],
.site-nav a[href]:hover {
  color: var(--ink);
  font-weight: 600;
}

.site-nav a:not([aria-current]) { opacity: .65; }
.site-nav a:focus-visible { opacity: 1; }
@media (hover: hover) {
  .site-nav a:hover { opacity: 1; }
}

html { scroll-padding-top: 7rem; }

@media (max-width: 48rem) {
  .masthead .bar {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding-block: 1.2rem .5rem;
  }

  .site-nav { flex-wrap: wrap; gap: 0 clamp(.5rem, 3vw, 1.5rem); }
  .site-nav a { font-size: .95rem; }
  html { scroll-padding-top: 8.75rem; }
}

.page-with-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.page-with-footer > main { flex: 1 0 auto; }

footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}
.footer-inner {
  min-height: 0;
  padding-block: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1.25rem;
}
.footer-inner .brand {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  gap: .75rem;
}
.footer-inner .woven {
  width: min(2.1rem, calc((var(--mark-space) - var(--mark-gap) - .2rem) * .72));
  height: auto;
  aspect-ratio: 35 / 39;
  flex-shrink: 0;
}
.footer-inner .brand small {
  color: #e5e4e0;
  font-size: .68rem;
  letter-spacing: .16em;
}
.footer-credit {
  margin: 0 0 0 auto;
  color: #e5e4e0;
  text-align: right;
  font: .875rem/1.6 var(--sans);
}
.footer-login { white-space: nowrap; }
.footer-login a { color: var(--paper); font-weight: 650; }
footer a[href]:hover { color: #f0cb92; }
footer a[href]:focus-visible { outline-color: #f0cb92; }

@media (max-width: 64rem) {
  .footer-credit { flex-basis: 100%; }
}

.news-thumbnail::before, .feature-photo::before {
  content: "";
  position: absolute;
  bottom: .45rem;
  right: .45rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: .35rem;
  background: var(--ink) url("news/expand.svg") center / 1rem no-repeat;
  pointer-events: none;
}
