:root {
  color-scheme: light;
  --ink: #142f33;
  --deep: #10282c;
  --muted: #496064;
  --paper: #f8f6ef;
  --white: #fffefa;
  --line: #b9c6bf;
  --copper: #984127;
  font: 100%/1.55 Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-width: 0; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid #b54810; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - clamp(36px, 9vw, 150px)), 1320px); margin-inline: auto; }
.skip { position: absolute; z-index: 1; transform: translateY(-150%); padding: 10px; background: white; }
.skip:focus { transform: translateY(0); }
.mast { background: var(--white); }
.mast-inner, .mast nav, .foot { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; min-height: 74px; gap: 24px; }
.logo img { width: clamp(105px, 13vw, 158px); height: auto; }
.mast nav { gap: clamp(12px, 3vw, 44px); }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .93rem; font-weight: 650; }
.mast .switch { color: var(--copper); }
.mast nav a:hover, .foot a:hover { text-decoration: underline; }
.hero { background: var(--deep); color: #fffefa; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.hero-text { align-self: center; padding: clamp(30px, 4.4vw, 68px) clamp(20px, 4.5vw, 76px) clamp(36px, 4.5vw, 70px) 0; }
.eyebrow { color: #ffc69e; font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin-block: .2em .24em; font-size: clamp(2.9rem, 5.8vw, 5.4rem); line-height: .99; letter-spacing: -.045em; text-wrap: balance; }
.intro { max-width: 55ch; color: #e5ece5; line-height: 1.5; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.banner { min-width: 0; position: relative; overflow: hidden; }
.banner img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.archive { padding-block: clamp(30px, 4.5vw, 64px) clamp(48px, 6.5vw, 96px); }
.library-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.12; letter-spacing: -.035em; }
.count { color: var(--muted); margin-top: .45em; font-size: .92rem; }
.search { flex: 0 1 340px; }
.search label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 5px; }
.search-controls { display: flex; position: relative; }
.search input { appearance: none; min-width: 0; width: 100%; border: 1px solid #94a69b; background: var(--white); color: var(--ink); padding: 9px 76px 9px 12px; min-height: 44px; border-radius: 2px; font: inherit; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { position: absolute; right: 2px; top: 2px; bottom: 2px; cursor: pointer; background: transparent; color: var(--copper); border: 0; padding-inline: 9px; font: 650 .9rem/1 Inter, "Segoe UI", Arial, sans-serif; }
#status:empty { display: block; margin: 0; }
#status:not(:empty) { margin-top: 18px; font-weight: 650; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 305px), 1fr)); gap: clamp(22px, 2.6vw, 40px); margin-top: 24px; }
.card:only-child { max-width: 640px; }
.card { min-width: 0; }
.card a { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.card-image { overflow: hidden; display: grid; place-items: center; aspect-ratio: 1.95; background: #f5f1e9; border: 1px solid #c7d0c8; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-text { padding-block: 16px; border-bottom: 1px solid var(--line); flex: 1; }
.card h3 { font-size: clamp(1.4rem, 2vw, 1.72rem); line-height: 1.15; letter-spacing: -.023em; margin-bottom: 8px; }
.card p { font-size: .98rem; line-height: 1.5; color: var(--muted); }
.card a:hover h3 { color: var(--copper); text-decoration: underline; text-decoration-thickness: 1px; }
.pagination { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: center; margin-top: 32px; }
.pagination:empty { display: none; }
.pagination a, .pagination [aria-current] { padding: 9px 13px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.pagination [aria-current] { background: var(--deep); color: white; }
.pagination a:hover { background: #e7e9df; }
footer { background: var(--deep); color: #eef3ec; }
.foot { justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 24px; }
.credit { font-size: .78rem; color: #c1d1c7; margin-inline-end: auto; }
.foot > a:last-child { font-size: .9rem; }
.foot a:hover { color: #ffc69e; }
@media (max-width: 680px) {
  .hero-grid { display: grid; grid-template-columns: 1fr; }
  .hero-text { padding-block: 26px; padding-right: 0; }
  .banner { aspect-ratio: 3.3; }
  .hero .wrap { width: 100%; }
  .hero-text { padding-inline: max(18px, 4.5vw); }
  h1 { font-size: clamp(2.5rem, 8vw, 3.3rem); }
  .library-head { display: grid; gap: 18px; }
  .mast-inner { min-height: 62px; gap: 10px; flex-wrap: wrap; padding-block: 6px; }
  .mast nav a { font-size: .82rem; }
  .eyebrow { font-size: .67rem; }
  .foot .credit { order: 1; width: 100%; }
}
