/* The Old Time 100 bibliography
   One reading column on kraft paper. Logo on a mustard card. Print details come from
   scans of our own materials: paper, mustard card stock, rolled letterpress ink.
   Light only, like the printed pieces. */

/* fonts are self-hosted (from @fontsource), so the site never waits on Google */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/alegreya-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/alegreya-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/alegreya-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/alegreya-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/courier-prime-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/courier-prime-latin-700-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #26211d;
  --ink-soft: #5b4f45;
  --rule: rgba(38, 33, 29, .28);
  --red: #b5301f;
  --paper: #dcc4ab;
  --mustard: #cfa53a;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper) url(../img/paper.jpg) repeat;
  background-size: 900px 900px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.wrap { max-width: 780px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* keyboard users can jump past the menu */
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--paper); padding: 8px 12px; border: 1.5px solid var(--ink); }
.skip:focus { left: 12px; top: 8px; }
.menubar a[aria-current="page"].plain { text-decoration: underline; text-underline-offset: 4px; }

/* letterpress speckle from the rolled-ink scan */
.inked { -webkit-mask-image: url(../img/inkmask.png); mask-image: url(../img/inkmask.png); -webkit-mask-size: 420px; mask-size: 420px; }

/* ---------- menu bar ---------- */
.menubar { border-bottom: 1.5px solid var(--ink); position: relative; z-index: 20; }
.menubar .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding-block: 6px; }
.menubar .home { font-family: var(--type); font-weight: 700; text-decoration: none; margin-right: auto; padding: 6px 0; }
.menu { position: relative; }
.menu summary, .menubar .plain {
  list-style: none; cursor: pointer; display: inline-block;
  font-family: var(--type); font-size: .95rem; padding: 6px 8px; text-decoration: none; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " \25BE"; font-size: .8em; }
.menu[open] summary { color: var(--red); }
.menu ul {
  position: absolute; top: 100%; left: 0; margin: 2px 0 0; padding: 6px 0; list-style: none; min-width: 15rem;
  background: var(--paper) url(../img/paper.jpg); background-size: 900px 900px;
  border: 1.5px solid var(--ink);
}
.menu.right ul { left: auto; right: 0; }
.menu li a { display: block; padding: 5px 14px; text-decoration: none; font-size: 1rem; }
.menu li a:hover { text-decoration: underline; }
.menu li.note { padding: 5px 14px; font-size: .9rem; font-style: italic; color: var(--ink-soft); }

/* ---------- header ---------- */
header.top { background: var(--mustard) url(../img/mustard.jpg) center / cover; border-bottom: 2px solid var(--ink); }
header.top .wrap { padding-block: 34px 28px; display: grid; gap: 14px; justify-items: center; text-align: center; }
header.top h1 { margin: 0; line-height: 0; }
header.top img { width: min(560px, 100%); height: auto; display: block; }
header.top.small .wrap { padding-block: 22px 18px; }
header.top.small img { width: min(380px, 100%); }
/* each clause stays whole, so lines only break between them */
header.top .sub { margin: 0; max-width: 44rem; font-family: var(--type); font-size: 1.1rem; line-height: 1.45; text-wrap: balance; }
header.top .sub span { white-space: nowrap; }

/* ---------- find / filter ---------- */
.controls .wrap { padding-block: 22px 4px; display: grid; gap: 14px; }
.find { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; }
.find label { font-family: var(--type); font-size: .85rem; color: var(--ink-soft); display: grid; gap: 2px; }
.find input, .find select { font: 400 1rem/1.3 var(--type); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 4px 2px; }
.find input { width: min(320px, 80vw); }
.vols { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--type); font-size: 1rem; }
.vols a { text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.vols a[aria-current="true"] { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

/* ---------- list ---------- */
main .wrap { padding-block: 8px 56px; }
section.vol { margin-top: 36px; }
.vol-head h2 { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.1; margin: 0; }
.bar { height: 9px; opacity: .9; margin: 12px 0 4px; background: url(../img/inkbar.png) left center / 100% 100% no-repeat; }
article.tune { padding-block: 22px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.tune-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.no { font-family: var(--type); font-size: .9rem; color: var(--ink-soft); }
h3 { font-family: var(--type); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.tuning { font-family: var(--type); font-size: .92rem; margin: 0; }
.tuning b { color: var(--red); }
.who, .cite, .facts, .links { margin: 0; font-size: 1rem; }
.who { font-size: 1.05rem; }
.cite { overflow-wrap: anywhere; }
.cite .no-src { font-style: italic; color: var(--ink-soft); }
.cat { font-family: var(--type); font-size: .92em; }
.facts { padding: 0; list-style: none; display: grid; gap: 2px; }
.facts i { color: var(--ink-soft); }
.links span { color: var(--ink-soft); }
details.more { font-size: 1rem; }
details.more summary { cursor: pointer; font-style: italic; }
details.more ul { margin: 6px 0 0; padding-left: 1.2rem; }
details.more li { margin: 2px 0; overflow-wrap: anywhere; }
.ours { display: grid; gap: 6px; }
.play { justify-self: start; font: 700 .95rem/1 var(--type); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 0; padding: 7px 12px; cursor: pointer; text-decoration: none; }
.play:hover { color: var(--red); border-color: var(--red); }
.ours iframe { border: 0; width: 100%; max-width: 560px; height: 42px; display: block; }
.empty { font-style: italic; padding: 40px 0; }

/* ---------- about page ---------- */
.prose .wrap { padding-block: 28px 56px; }
.prose h1 { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; margin: 0 0 8px; }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; margin: 34px 0 6px; }
.prose p, .prose li { max-width: 65ch; }
.prose .people { display: grid; gap: 34px; margin-top: 10px; }
.prose .person { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.prose .person > div { min-width: 0; }
.prose .person img { width: 100%; height: auto; display: block; }
.prose .people h3 { font-size: 1.35rem; margin-top: 0; }
.prose .people p { margin: 6px 0; }
.prose ul.elsewhere { list-style: none; padding: 0; margin: 10px 0 0; font-family: var(--type); font-size: .92rem; display: grid; gap: 2px; }
.prose ul.elsewhere a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .prose .person { grid-template-columns: 1fr; } .prose .person img { max-width: 260px; } }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--ink); }
footer .wrap { padding-block: 22px 40px; font-size: 1rem; display: grid; gap: 8px; }
footer p { margin: 0; color: var(--ink-soft); }

@media (max-width: 560px) {
  .menubar .home { width: 100%; }
  .menu ul { position: fixed; left: 12px; right: 12px; top: auto; min-width: 0; }
}
