/* The light theme: one stylesheet, system fonts with Noto Armenian as the
   fallback for Armenian script, and a dark scheme from the reader's setting. */
:root {
  --fg: #1d1d1f;
  --muted: #5c5c66;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --rule: #e3e0d8;
  --accent: #9b2335;          /* pomegranate */
  --accent-fg: #ffffff;
  --focus: #1a5fb4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Armenian", sans-serif;
  line-height: 1.5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ececf0;
    --muted: #a9a9b3;
    --bg: #17171a;
    --panel: #202024;
    --rule: #34343a;
    --accent: #e0707f;
    --accent-fg: #17171a;
    --focus: #8ab4f8;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
/* One width for every page, shared by the masthead, the content and the
   footer so that their edges line up: wide enough for a gallery row of six. */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: .4rem .8rem; }

.masthead { background: var(--panel); border-bottom: 3px solid var(--accent); }
.masthead .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center;
  padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg);
  text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 6px; background: var(--accent); color: var(--accent-fg); }
.sections { display: flex; gap: 1rem; }
.sections a { color: var(--muted); text-decoration: none; padding: .2rem 0;
  border-bottom: 2px solid transparent; }
.sections a:hover { color: var(--fg); }
.sections a[aria-current] { color: var(--fg); border-bottom-color: var(--accent); }
.search { display: flex; flex: 1 1 18rem; gap: .5rem; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .5rem .7rem;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--fg); }
button, .button { font: inherit; padding: .5rem 1rem; border: 0; border-radius: 6px;
  background: var(--accent); color: var(--accent-fg); cursor: pointer;
  text-decoration: none; display: inline-block; }

main.wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .75rem; }
.intro p { max-width: 40rem; }
.examples { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.examples a { white-space: nowrap; }
.sources { list-style: none; padding: 0; max-width: 28rem; }
.sources li { display: flex; justify-content: space-between; padding: .4rem 0;
  border-bottom: 1px solid var(--rule); }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }

.limit { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; font-size: .9rem; }
.limit a { border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .7rem;
  text-decoration: none; color: var(--muted); }
.limit a[aria-current] { border-color: var(--accent); color: var(--fg); }

.hits { list-style: none; padding: 0; margin: 0; }
.hit { padding: 1rem 0; border-top: 1px solid var(--rule); }
.hit.pictured { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; }
.hit > div { min-width: 0; overflow-wrap: anywhere; }
.hit img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 4px; }
.hit h2 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.hit p { margin: .15rem 0 0; }
.alt, .names, .meta { color: var(--muted); }
.meta { font-size: .875rem; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }

.record dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.record dt { color: var(--muted); grid-column: 1; }
.record dd { margin: 0; grid-column: 2; overflow-wrap: anywhere; }
.record-image { max-width: 100%; max-height: 24rem; border-radius: 4px; }
@media (max-width: 30rem) {
  .record dl { grid-template-columns: 1fr; }
  .record dt, .record dd { grid-column: 1; }
  .record dt { margin-top: .5rem; }
}
.theme { margin: 0 0 2.25rem; }
.theme h2 { font-size: 1.15rem; margin: 0; }
.blurb { color: var(--muted); margin: .15rem 0 .9rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.card a { display: block; color: var(--fg); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  background: var(--rule); display: block; border: 1px solid var(--rule); }
.card a:hover img { border-color: var(--accent); }
.card a:hover .caption, .card a:focus-visible .caption { text-decoration: underline; }
.caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: .4rem; font-weight: 550; overflow-wrap: anywhere; }
.credit { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }
.credit a { color: var(--muted); }
@media (max-width: 30rem) { .cards { grid-template-columns: 1fr 1fr; gap: .8rem; } }
footer.wrap { color: var(--muted); font-size: .85rem; padding-bottom: 2rem; }
