:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --sheet: #fffdf7;
  --ink: #26251f;
  --muted: #545449;
  --accent: #205640;
  --line: #c8cebf;
  --soft: #e8ede0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip { position: absolute; inset: 0 auto auto 0; padding: .75rem; background: var(--sheet); transform: translateY(-110%); }
.skip:focus { transform: none; }
a { color: var(--accent); text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #626a22; outline-offset: 4px; }
.header, .footer { border-block-end: 1px solid var(--line); }
.footer { border-block-start: 1px solid var(--line); margin-top: 4rem; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; min-height: 4.25rem; padding-block: .5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.35rem/1 Georgia, serif; text-decoration: none; }
.wordmark span { font: 700 .85rem/1 system-ui, sans-serif; padding: .65rem; color: white; background: #204838; border-radius: .3rem; }
nav { display: flex; gap: 1rem; }
nav a { padding-block: .6rem; }
.intro { padding-block: clamp(2.5rem, 9vw, 6rem) clamp(1.8rem, 6vw, 3.8rem); max-width: 47rem; }
.intro p { max-width: 57ch; margin-block: .9rem; font-size: 1.13rem; }
.intro p[dir="rtl"] { text-align: left; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.55rem, 7vw, 5.3rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.4rem; }
section + section { border-top: 1px solid var(--line); padding-top: 1.8rem; }
#dialogues { margin-top: 3rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; }
.filters label { display: grid; gap: .2rem; font-size: .9rem; font-weight: 600; }
.filters input, .filters select { min-height: 2.65rem; border: 1px solid #77867d; border-radius: .25rem; padding: .45rem .6rem; background: var(--sheet); color: var(--ink); font: inherit; }
.count, .topic { color: var(--muted); font-size: .88rem; }
.count:empty { display: none; }
.examples, .dialogues { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); margin-top: 1.2rem; }
.example, .dialogue { padding: 1.4rem; background: var(--sheet); overflow-wrap: anywhere; }
.topic { text-transform: uppercase; letter-spacing: .13em; margin: 0 0 .6rem; }
.urdu { font-size: 1.05rem; line-height: 1.9; color: #3d4e42; padding: .3rem .6rem; background: var(--soft); border-inline-start: 2px solid #829a7f; }
ul, ol { padding-inline-start: 1.2rem; }
li + li { margin-top: .4rem; }
details { border-top: 1px solid var(--line); margin-top: 1rem; }
summary { cursor: pointer; min-height: 2.6rem; padding: .55rem 0; color: var(--accent); font-weight: 700; }
details p { margin: .25rem 0 .75rem; }
.dialogue ol { padding: 0; list-style: none; }
.dialogue li + li { border-top: 1px solid var(--line); padding-top: .6rem; }
.dialogue li p { margin: .2rem 0 .75rem; }
.dialogue li strong { font-size: .9rem; color: var(--accent); }
@media (max-width: 35rem) {
  .wrap { width: min(100% - 1.5rem, 68rem); }
  .filters, .filters label { width: 100%; }
}
