/* Adapted from the library mockups' shared site.css. */
@font-face {
  font-family: Newsreader;
  src: url("/static/fonts/newsreader-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Archivo;
  src: url("/static/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --orange: #f08a1c;
  --black: #000;
  --white: #fff;
  --orange-faded: color-mix(in srgb, var(--black) 60%, var(--orange));
  --scrim: color-mix(in srgb, var(--black) 80%, transparent);
  --font-sans: Archivo, system-ui, sans-serif;
  --font-serif: Newsreader, Georgia, serif;
  --font-quote: "Gilda Display", Georgia, serif;
  --fluid: calc(100vw / 1440);
  --text-display: min(96px, 96 * var(--fluid));
  --text-sheet: min(64px, 64 * var(--fluid));
  --text-title: min(44px, 44 * var(--fluid));
  --text-quote: min(36px, 36 * var(--fluid));
  --text-note: min(30px, 30 * var(--fluid));
  --text-line: min(30px, 30 * var(--fluid));
  --text-words: min(24px, 24 * var(--fluid));
  --text-card-title: min(24px, 24 * var(--fluid));
  --text-card-words: min(17px, 17 * var(--fluid));
  --text-small: 17px;
  --text-label: 15px;
  --text-fine: 15px;
  --space: min(96px, 96 * var(--fluid));
  --gap-xl: min(80px, 80 * var(--fluid));
  --gap-l: min(72px, 72 * var(--fluid));
  --gap-m: min(64px, 64 * var(--fluid));
  --gap-s: min(40px, 40 * var(--fluid));
  --grid-gap: 8px;
  --logo-h: min(132px, 132 * var(--fluid));
  --logo-gap: min(112px, 112 * var(--fluid));
  --video-max-h: max(260px, calc(100svh - 2 * var(--space) - 58px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--orange); }
body { margin: 0; font-family: var(--font-sans); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
main[tabindex="-1"]:focus { outline: none; }
.skip:focus { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 12px; background: white; }
.shell { padding-inline: var(--space); }

.masthead-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--logo-gap);
  padding-block: var(--gap-l) var(--gap-xl);
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-serif);
}

.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { width: auto; height: var(--logo-h); }
.masthead-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}
.masthead-text p { margin: 0; font-size: var(--text-line); line-height: 1.25; }
.site-intro:not(:has(p)) { display: none; }
.site-intro p, .footer-note { white-space: pre-line; overflow-wrap: anywhere; }
.site-intro p + p, .footer-note + .footer-note { margin-top: 1em; }
.masthead-text .site-credit, .site-credit { margin: 1em 0 0; font-size: calc(var(--text-line) * .7); line-height: 1.3; }
.site-search {
  display: flex;
  align-items: center;
  gap: .4em;
  border-bottom: 2px solid var(--black);
  font-size: var(--text-line);
  line-height: 1.25;
}
.site-search button { display: flex; flex: 0 0 auto; padding: 0; border: 0; background: none; }
.site-search svg { width: .7em; height: .7em; }
.site-search input {
  flex: 1;
  min-width: 0;
  padding: .2em 0 .3em;
  border: 0;
  outline: none;
  background: transparent;
  appearance: none;
}
.site-search input::placeholder { color: var(--orange-faded); }

.home-row, .post-detail, .tile, .result, .neighbor { background: var(--paper); color: var(--ink); }
.home-row-grid { display: flex; align-items: flex-end; gap: var(--space); padding-block: var(--space); }
.home-row.reverse .home-row-grid { flex-direction: row-reverse; }
.home-media { flex: 0 0 auto; min-width: 0; width: min(58.333%, calc(57% * var(--ratio, 1)), var(--asset-width, 100%)); }
.kind-video .home-media {
  width: min(58.333%, calc(57% * var(--ratio, 1.7778)), calc(var(--video-max-h) * var(--ratio, 1.7778)));
}
.kind-quote .home-media { width: 58.333%; }
.kind-audio .home-row-grid { display: block; }
.kind-audio .home-media { width: 100%; }
.kind-audio .home-row-grid .post-copy { padding-top: var(--space); }
.post-copy { flex: 1; min-width: 0; }
.post-title {
  margin: 0;
  font-size: var(--text-title);
  font-weight: 900;
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.post-words {
  max-width: 34em;
  margin: 24px 0 0;
  font-size: var(--text-words);
  font-weight: 500;
  font-stretch: 88%;
  line-height: 1.35;
  letter-spacing: -.005em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.post-title a:hover, .post-words a:hover { text-decoration: underline; text-underline-offset: .15em; }
.crop-image { display: block; overflow: hidden; }
.crop-image img { width: 100%; height: auto; aspect-ratio: var(--crop-ratio, auto); object-fit: cover; }
.quote-link { display: block; }
.post-detail .quote blockquote, .home-row .quote blockquote { font-size: var(--text-quote); letter-spacing: -.01em; }
.post-detail .quote figcaption, .home-row .quote figcaption {
  margin-top: min(32px, 32 * var(--fluid));
  font-size: var(--text-small);
  line-height: 1.3;
}
.no-posts { padding-block: var(--gap-l); font: 300 var(--text-note)/1.3 var(--font-serif); }

.post-detail { padding: min(128px, 128 * var(--fluid)) var(--space) min(168px, 168 * var(--fluid)); }
.post-inner { width: 75%; padding: 0; margin-inline: auto; }
.post-inner.is-tall { width: 45.833%; }
.kind-audio .post-inner { width: 100%; }
.post-detail .post-copy { padding-top: 56px; }
.post-detail .video-player { width: min(100%, calc(var(--video-max-h) * var(--ratio, 1.7778))); }
.full-image { display: block; width: fit-content; cursor: zoom-in; }
.full-image img { height: auto; }

.image-dialog {
  --bar: 72px;
  inset: 0;
  margin: auto;
  padding: 0;
  max-width: none;
  max-height: none;
  border: 0;
  overflow: visible;
  background: transparent;
  color: white;
}
html:has(.image-dialog[open]) { overflow: hidden; }
.image-dialog::backdrop { background: var(--scrim); }
.image-dialog img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 2 * var(--space));
  max-height: calc(100dvh - 2 * var(--bar));
}
.image-dialog button {
  position: absolute;
  right: -11px;
  bottom: 100%;
  margin-bottom: 3px;
  padding: 11px;
  border: 0;
  background: none;
  line-height: 0;
}
.image-dialog button svg { display: block; width: 22px; height: 22px; }

.site-player { min-width: 0; }
.video-player video { width: 100%; height: auto; aspect-ratio: var(--ratio, auto 16 / 9); object-fit: contain; }
.audio-player audio { width: 100%; }
.site-player:has(.play-controls:not([hidden])) audio { display: none; }
.play-controls { display: flex; align-items: center; }
.video-player .play-controls { gap: 20px; height: 44px; margin-top: 14px; }
.audio-player .play-controls { gap: 24px; }
.play-controls button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-inline: -11px;
  padding: 11px;
  border: 0;
  background: none;
}
.play-controls button svg { display: block; width: 22px; height: 22px; }
.audio-player .media-play { margin-inline: -8px; padding: 8px; }
.audio-player .media-play svg { width: 28px; height: 28px; }
.media-play svg { fill: currentColor; }
.is-playing .media-play { color: var(--orange); }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.media-sound[aria-pressed="true"] { opacity: .55; }
.media-time { font: 400 var(--text-small)/1.3 var(--font-serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.audio-player .media-time { min-width: 6.5em; }
.is-playing .media-total { color: color-mix(in srgb, var(--ink) 65%, var(--paper)); }
.seek-preview { position: absolute; inset-block: 2px; width: 1px; background: currentColor; pointer-events: none; }
.seek-preview span {
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font: 400 var(--text-small)/1 var(--font-serif);
  white-space: nowrap;
}
.seek-wave .seek-preview { top: -24px; }
.seek-wave .seek-preview span { top: auto; bottom: 100%; }
.seek { position: relative; flex: 1; min-width: 0; height: 24px; }
.seek input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seek:focus-within { outline: 2px solid; outline-offset: 4px; }
.video-player .seek::before, .video-player .seek::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  height: 2px;
  pointer-events: none;
}
.video-player .seek::before { right: 0; background: color-mix(in srgb, var(--ink) 28%, var(--paper)); }
.video-player .seek::after { width: var(--progress, 0%); background: var(--orange); }
.seek-wave { height: clamp(64px, 140 * var(--fluid), 140px); }
.seek-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; pointer-events: none; }
.seek-wave svg + svg { color: var(--orange); clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0); }
.is-playing .seek-wave svg:first-child { color: color-mix(in srgb, var(--ink) 28%, var(--paper)); }

.pagination { display: flex; gap: var(--space); padding-block: var(--gap-l); color: black; }
.pagination a { flex: 1 1 0; min-width: 0; }
.page-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font: 500 var(--text-label)/1.4 var(--font-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pagination .older:not(:has(.page-range)) .page-label { justify-content: flex-end; }
.pagination .newer:has(.page-range) .page-label { flex-direction: row-reverse; }
.pagination a:hover .page-direction, .pagination a:hover strong, .result-directions a:hover { text-decoration: underline; }
.page-direction { display: inline-flex; align-items: baseline; gap: 12px; }
.page-direction svg { flex: 0 0 auto; width: 1.57cap; height: 1cap; }
.results-pages { margin-top: var(--gap-s); flex-wrap: wrap; }
.result-directions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.archive-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap); }
.archive-pagination:has(a:only-child) .archive-tiles { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.pagination .archive-tiles, .pagination .neighbor { margin-top: var(--gap-s); }
.pagination .neighbor { width: 100%; max-width: 480px; }
.pagination .older .neighbor { flex-direction: row-reverse; margin-left: auto; text-align: right; }

.search-page, .contact-page { padding-bottom: var(--gap-l); font-family: var(--font-serif); }
.count { display: flex; align-items: baseline; gap: .5em; margin: 0; font: 400 16px var(--font-serif); }
.count strong {
  font-size: var(--text-display);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 1;
  letter-spacing: -.01em;
}
.count span { min-width: 0; font-size: var(--text-line); line-height: 1.3; overflow-wrap: anywhere; }
.search-results, .shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--grid-gap); }
.search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--gap-m); }
.search-results li { display: flex; min-width: 0; }
.result, .neighbor { display: flex; gap: 24px; padding: 20px; font-family: var(--font-sans); }
.result { flex: 1; align-items: center; }
.neighbor { align-items: flex-end; }
.result > div, .neighbor strong { flex: 1; min-width: 0; }
.result:hover h2 { text-decoration: underline; }
.result h2, .neighbor strong {
  margin: 0;
  font-size: var(--text-card-title);
  font-weight: 900;
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.result p {
  margin: 10px 0 0;
  font-size: var(--text-card-words);
  font-weight: 500;
  font-stretch: 88%;
  line-height: 1.35;
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
}
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  padding: 11%;
  container-type: inline-size;
}
.tile .crop-image { width: min(100%, calc(100% * var(--crop-ratio, 1)), var(--asset-width, 100%)); }
.tile svg { width: 100%; fill: currentColor; }
.thumb-video { position: relative; }
.thumb-play {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22%;
  aspect-ratio: 1;
  background: white;
  color: black;
}
.thumb-play svg { width: 50%; }
.tile-quote { font: 14px/1.2 var(--font-quote); overflow: hidden; }
:is(.result, .neighbor) .tile { --thumb-size: min(160px, 160 * var(--fluid)); flex: 0 0 auto; width: var(--thumb-size); padding: 0; }
.neighbor .tile { width: min(var(--thumb-size), calc(var(--thumb-size) * var(--crop-ratio, 1)), var(--asset-width, 100%)); aspect-ratio: auto; }
.neighbor .tile .crop-image { width: 100%; }
.neighbor .tile > svg { aspect-ratio: 2 / 1; }
.shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shelf a { display: block; }
.newest { margin-top: var(--gap-m); }
.newest h2 {
  margin: 0 0 var(--gap-s);
  font: 500 var(--text-label)/1.4 var(--font-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.not-found-head { container-type: inline-size; padding-bottom: var(--gap-xl); }
.not-found-number {
  margin: 0;
  padding-top: .056em;
  font: 400 57.2cqi/1 var(--font-serif);
  font-variant-numeric: lining-nums;
  letter-spacing: -.02em;
  text-box: trim-both cap alphabetic;
}
.not-found-copy { max-width: 14em; margin: var(--gap-m) 0 0; font-size: var(--text-note); line-height: 1.3; }
.not-found-head + .newest { margin-top: 0; }

.contact-form { padding-top: var(--gap-m); font-size: var(--text-sheet); line-height: round(1.65em, 1px); }
.contact-form input:not([type="hidden"]), .contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
}
.contact-form input:not([type="hidden"]) { height: 1lh; padding-top: 3px; border-bottom: 2px solid; }
.contact-form input[aria-invalid="true"] { border-bottom-width: 4px; }
.contact-form textarea {
  min-height: 5lh;
  resize: none;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(1lh - 2px), currentColor calc(1lh - 2px) 1lh);
}
.contact-form textarea[aria-invalid="true"] {
  background: repeating-linear-gradient(to bottom, transparent 0 calc(1lh - 4px), currentColor calc(1lh - 4px) 1lh);
}
.contact-form :is(input, textarea)::placeholder { color: var(--orange-faded); }
.contact-form :is(input, textarea):focus-visible { outline-offset: 6px; }
.contact-actions { display: flex; align-items: baseline; gap: var(--space); margin-top: var(--gap-s); font-size: var(--text-line); line-height: 1.25; }
.contact-note { margin: 0; }
.contact-send { margin-left: auto; padding: 0; border: 0; background: none; white-space: nowrap; }
.contact-send:hover { text-decoration: underline; }
.contact-sent { max-width: 16em; margin: 0; font-size: var(--text-sheet); line-height: 1.25; }

.site-footer { color: black; font-family: var(--font-serif); }
.footer-grid { display: flex; gap: var(--space); padding-block: var(--space) 48px; }
.footer-grid > div { flex: 1; min-width: 0; }
.footer-mark { align-self: flex-start; width: auto; height: min(160px, 160 * var(--fluid)); }
.footer-note { max-width: 32em; margin: 0; font-size: var(--text-note); line-height: 1.3; }
.site-footer .count { margin-top: var(--gap-l); }
.footer-links { display: flex; flex-wrap: wrap; gap: .3em 1.4em; margin-top: var(--gap-l); font-size: var(--text-note); line-height: 1.3; }
.footer-links a { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.copyright { margin: var(--gap-m) 0 0; font-size: var(--text-fine); line-height: 1.4; }
:is(.pagination, .search-page, .contact-page) + .site-footer { position: relative; }
:is(.pagination, .search-page, .contact-page) + .site-footer .footer-grid { padding-top: var(--gap-l); }
:is(.pagination, .search-page, .contact-page) + .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--space);
  left: var(--space);
  height: 2px;
  background: currentColor;
}

@media (max-width: 760px) {
  :root {
    --text-display: 56px;
    --text-sheet: 28px;
    --text-title: 28px;
    --text-quote: 24px;
    --text-note: 20px;
    --text-line: 18px;
    --text-words: 17px;
    --text-card-title: 18px;
    --text-card-words: 15px;
    --text-small: 15px;
    --text-label: 13px;
    --text-fine: 14px;
    --space: 24px;
    --gap-xl: 40px;
    --gap-l: 32px;
    --gap-m: 28px;
    --gap-s: 16px;
    --grid-gap: 6px;
    --logo-h: 64px;
  }
  .masthead-grid { flex-direction: column; align-items: stretch; gap: 24px; padding-bottom: 36px; }
  .brand { align-self: flex-start; }
  .masthead-text { gap: 24px; }
  .home-row-grid, .home-row.reverse .home-row-grid { flex-direction: column; align-items: stretch; }
  .home-media, .kind-quote .home-media { width: min(100%, var(--asset-width, 100%)); }
  .kind-video .home-media { width: min(100%, calc(var(--video-max-h) * var(--ratio, 1.7778))); }
  .home-row .post-copy { padding: 4px 0 12px; }
  .home-row .post-words, .post-detail .post-words { margin-top: 14px; }
  .post-detail { padding-block: 40px 56px; }
  .post-inner, .post-inner.is-tall { width: 100%; }
  .post-detail .post-copy { padding-top: 28px; }
  .post-detail .quote figcaption, .home-row .quote figcaption { margin-top: 18px; }
  .video-player .play-controls, .audio-player .play-controls { gap: 14px; }
  .audio-player .media-play { margin-inline: -11px; padding: 11px; }
  .audio-player .media-play svg { width: 22px; height: 22px; }
  .pagination { flex-direction: column; }
  .pagination .neighbor { max-width: none; }
  .archive-pagination:has(a:only-child) .archive-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .search-results { grid-template-columns: minmax(0, 1fr); }
  .result, .neighbor { gap: 16px; padding: 14px; }
  :is(.result, .neighbor) .tile { --thumb-size: min(88px, 30%); }
  .result p { margin-top: 6px; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .count { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-actions { margin-top: 24px; }
  .footer-grid { display: block; padding-block: 48px 32px; }
  .footer-mark { float: left; height: 66px; margin: 4px 22px 0 0; }
  .site-footer .count { clear: both; margin-top: 36px; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 24px; }
  .footer-links a { display: inline-block; padding: 10px 0; }
  .copyright { margin-top: 30px; }
}

.video-player:fullscreen {
  width: 100%;
  background: black;
  color: white;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.video-player:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.video-player:fullscreen .play-controls { margin: 0; padding-inline: 16px; }
