:root {
  color-scheme: dark;
  --paper: #1b1c1e;
  --card: #232527;
  --ink: #ece8df;
  --muted: #b7b3a9;
  --line: #434446;
  --accent: #e3a07f;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px,calc(100% - 80px)); margin: auto; }
.skip { position: absolute; top: -160px; left: 10px; padding: 12px; background: var(--card); z-index: 3; }
.skip:focus { top: 8px; }
header, footer { border-bottom: 1px solid var(--line); }
.head, .foot, nav, .brand, .directory-heading, figcaption, .card-foot { display: flex; align-items: center; justify-content: space-between; }
.head { min-height: 72px; gap: 16px; }
.brand { gap: 11px; font: 600 22px/1 var(--serif); letter-spacing: -.6px; color: var(--ink); text-decoration: none; }
.mark { color: var(--accent); display: grid; place-items: center; border: 1px solid #997459; border-radius: 3px; height: 32px; width: 32px; font: italic 20px/1 var(--serif); }
nav { gap: 28px; font-size: 14px; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
nav a[aria-current], nav a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr .87fr; gap: 68px; align-items: center; padding: 45px 0 42px; border-bottom: 1px solid var(--line); }
.eyebrow,.category { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 650; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 21px; }
.eyebrow span { display: inline-block; height: 1px; width: 31px; background: var(--accent); }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
.hero h1 { font-size: clamp(52px,6.4vw,89px); line-height: .99; letter-spacing: -.055em; margin: 0; }
.hero em { font-weight: 400; color: var(--accent); }
.lead { font-size: clamp(17px,1.4vw,20px); line-height: 1.5; color: var(--muted); max-width: 43ch; margin: 20px 0 0; }
figure { margin: 0; min-width: 0; width: 100%; }
.drawing { overflow: hidden; position: relative; aspect-ratio: 1.97; background: #d4c4a9; border-radius: 3px; }
.drawing img { position: absolute; width: 117%; max-width: none; height: auto; left: -8.5%; top: 50%; transform: translateY(-40.5%); mix-blend-mode: multiply; filter: contrast(1.16); }
figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
figcaption span:first-child { font-style: italic; font-family: var(--serif); font-size: 15px; }
#directory { padding: 30px 0 0; scroll-margin-top: 16px; }
.directory-heading { gap: 15px; }
.directory-heading h2, .details h2, .about h2 { font-size: clamp(26px,2.9vw,36px); letter-spacing: -.035em; margin: 0; }
#count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
form { display: grid; grid-template-columns: 1.55fr 1fr 1fr auto; gap: 14px; align-items: end; margin: 21px 0; }
form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
form input,form select { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--card); font: 15px/1.3 system-ui; padding: 10px 12px; height: 44px; }
form input::placeholder { color: #a7a69f; }
button { font: inherit; color: var(--accent); background: transparent; border: 0; cursor: pointer; padding: 10px 0 10px 8px; font-size: 14px; }
button:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.card { position: relative; display: flex; flex-direction: column; padding: 21px 22px 14px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); }
.card:hover,.card:focus-within { border-color: #ad846f; }
.card .category { font-size: 10px; margin: 0 0 11px; }
.card h3 { font-size: clamp(22px,1.9vw,27px); margin: 0; letter-spacing: -.025em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 7px; }
.rec { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 12px 0 22px; }
.card-foot { border-top: 1px solid var(--line); gap: 6px; padding-top: 12px; margin: auto 0 0; font-size: 12px; color: var(--muted); }
.card-foot strong { font-weight: 500; color: var(--ink); }
.arrow { color: var(--accent); font-size: 18px; line-height: 1; }
.empty { padding: 30px; border: 1px solid var(--line); }
footer { margin-top: 50px; border-top: 1px solid var(--line); border-bottom: 0; }
.foot { align-items: start; gap: 25px; padding: 25px 0 34px; color: var(--muted); font-size: 14px; }
.foot strong { font: 500 20px var(--serif); color: var(--ink); }
.foot p { margin: 4px 0; }
.foot div:last-child { display: grid; gap: 5px; }
.foot b { font-weight: 500; color: var(--ink); }
.inside { padding: 42px 0 25px; max-width: 940px; }
.back { display: inline-block; margin-bottom: 42px; font-size: 14px; }
.inside h1 { font-size: clamp(38px,5vw,64px); margin: 8px 0; letter-spacing: -.045em; }
.context { color: var(--muted); margin: 0; }
.details { display: grid; grid-template-columns: 1.5fr 1fr; margin: 36px 0; padding: 28px 0; border-block: 1px solid var(--line); gap: 45px; }
.details h2,.about h2 { font-size: 25px; }
.details aside { border-left: 2px solid var(--accent); padding-left: 26px; }
.button { display: inline-block; text-decoration: none; background: var(--accent); color: var(--paper); border-radius: 4px; padding: 10px 14px; margin: 16px 6px 0 0; font-weight: 600; }
.about p { max-width: 62ch; }
@media(max-width:850px) {
  .wrap { width: calc(100% - 40px); }
  .hero { gap: 24px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 18px; gap: 7px; }
  .mark { width: 27px; height: 27px; font-size: 17px; }
  nav { gap: 14px; font-size: 12px; }
  .head { min-height: 58px; flex-wrap: wrap; padding: 8px 0; }
  .hero,.details { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 24px; gap: 24px; }
  .hero h1 { font-size: clamp(52px,12vw,68px); }
  .hero figure { max-width: 450px; }
  .drawing { aspect-ratio: 2.1; }
  .directory-heading h2 { font-size: 25px; }
  form { grid-template-columns: 1fr 1fr; gap: 10px; }
  .search { grid-column: 1/-1; }
  form button { justify-self: start; padding: 4px 0; }
  .grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
  .inside { padding-top: 26px; }
}
