:root {
  --paper: #f5f0e3; --panel: #fcf9f1; --ink: #201c17; --muted: #6a6356; --faint: #726a5c;
  --rule: #dfd7c3; --accent: #23508f; --accent-soft: #e2e9f3; --on-accent: #fcf9f1; --hit: #f2dd8f;
  --cop: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11151d; --panel: #171c27; --ink: #e7e3d8; --muted: #9aa1ad; --faint: #828a9a;
    --rule: #293040; --accent: #8db3ea; --accent-soft: #1e2a3f; --on-accent: #11151d; --hit: #5c4b13;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--serif); }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--panel); border: 1px solid var(--rule); padding: 6px 10px; z-index: 5; }
.skip:focus { top: 8px; }

.site { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 12px 16px;
        border-bottom: 1px solid var(--rule); background: var(--panel); font-family: var(--ui); font-size: 14px; }
.site .brand { font: 600 20px/1.2 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
.site .brand span { color: var(--accent); margin-right: 4px; }
.site nav { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.site nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site nav a:hover, .site nav a[aria-current] { border-bottom-color: var(--accent); }

main { max-width: 52rem; margin: 0 auto; padding: 24px 16px 56px; }
main.wide { max-width: 68rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; font-weight: 600; margin: 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; padding-top: .3rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
p { margin: .7rem 0; }
.kicker { font: 13px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.lead { font-size: 1.12rem; color: var(--ink); max-width: 40em; }
.muted { color: var(--muted); }
.crumbs { font: 13px/1.4 var(--ui); color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 .35em; }

.orig { font: 1.6rem/1.6 var(--cop); margin: .3rem 0 0; unicode-bidi: isolate; }
.go { display: inline-block; margin: 1.1rem 0 .2rem; padding: .6rem 1.1rem; background: var(--accent); color: var(--on-accent);
      border-radius: 8px; font: 600 1rem/1.3 var(--ui); text-decoration: none; }
.go:hover { text-decoration: underline; }
.go.quiet { background: none; color: var(--accent); border: 1px solid var(--accent); }
.also { font: 14px/1.5 var(--ui); color: var(--muted); margin-top: .5rem; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: .8rem 0; font-family: var(--ui); font-size: 15px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.credit { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
dl.credit dt { color: var(--muted); font-family: var(--ui); }
dl.credit dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.citation { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; font-size: 15px; line-height: 1.5; user-select: all; }
.further { font-family: var(--ui); font-size: 14px; color: var(--muted); }
.further b { color: var(--ink); }

.excerpt { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 18px 14px; margin: .8rem 0; }
.excerpt h3 { margin: 1rem 0 .3rem; font: 600 13px/1.3 var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.excerpt .orig { font-size: 1.45rem; margin: .2rem 0; }
.excerpt .en { font: 1rem/1.55 var(--serif); margin: .1rem 0 .5rem; color: var(--ink); }
.excerpt .v { font: 600 .62em/1 var(--ui); color: var(--muted); vertical-align: super; margin-inline-end: .3em; }
.parallel-line { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: .3rem 1.3rem; margin: .75rem 0; }
.iw, .piece { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; max-width: 100%; }
.iw { margin: .12em .08em; }
.wf, .gl, .translit { overflow-wrap: anywhere; }
.gl, .translit { font: .76rem/1.25 var(--ui); }
.gl { max-width: 13em; text-align: center; color: var(--muted); }
.translit { color: var(--ink); }
.lesson-example { margin: 1rem 0; padding: .6rem .9rem; border-inline-start: 2px solid var(--rule); }
.lesson-example figcaption { font: .9rem/1.4 var(--ui); }
.passage { font: 1.35rem/1.5 var(--cop); }
.passage .iw { flex-direction: row; align-items: flex-start; }
.passage .hit .wf { background: var(--hit); }
.passage .v { font: .8rem/1.4 var(--ui); color: var(--muted); }
.lesson-table { overflow-x: auto; margin: 1rem 0; }
.lesson-table table { border-collapse: collapse; }
.lesson-table th, .lesson-table td { text-align: start; vertical-align: top; padding: .3rem .7rem; border-bottom: 1px solid var(--rule); }
.excerpt[dir="rtl"] .orig, .orig[dir="rtl"] { text-align: right; }

ol.sections { list-style: none; margin: .5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--ui); font-size: 14px; }
ol.sections a { display: block; min-width: 2.6em; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); text-align: center; text-decoration: none; }
ol.sections a:hover { border-color: var(--accent); }
ul.plain { padding-inline-start: 1.2rem; margin: .5rem 0; }
ul.plain li { margin: .25rem 0; }

table.figures { border-collapse: collapse; margin: .75rem 0; max-width: 40em; width: 100%; }
table.figures th, table.figures td { text-align: start; vertical-align: top; padding: .25rem .75rem .25rem 0; border-top: 1px solid var(--rule); font-weight: 400; }
table.figures thead th { border-top: 0; font-weight: 600; }
table.figures td { white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.cols { list-style: none; padding: 0; margin: .4rem 0; columns: 18rem; column-gap: 24px; }
ul.cols li { break-inside: avoid; padding: 2px 0; }
ul.cols small, li small { color: var(--muted); font-family: var(--ui); }
ul.cards { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px; }
ul.cards li { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; }
ul.cards a { font-weight: 600; }
ul.cards .sample { display: block; font: 1.35rem/1.5 var(--cop); margin-bottom: 2px; unicode-bidi: isolate; }
ul.cards small { display: block; }
ol.lessons { padding-inline-start: 1.6rem; margin: .6rem 0; }
ol.lessons li { margin: .7rem 0; }
ol.lessons li > a { font-weight: 600; }
ol.lessons p { margin: .15rem 0 0; color: var(--muted); }
.tr { font-style: italic; }
.sg { font-style: normal; }
.po { font-family: var(--cop); }

article.entry { border-top: 1px solid var(--rule); margin-top: 1.8rem; padding-top: .2rem; }
article.entry h2 { border: 0; margin-top: 1rem; padding: 0; }
article.entry time { font: 13px/1.3 var(--ui); color: var(--muted); }

article.note { max-width: 40rem; font-size: 1.06rem; line-height: 1.62; }
article.note h1 { margin-bottom: .5rem; }
article.note .dek { font-size: 1.14rem; color: var(--muted); margin: .4rem 0; }
article.note .byline { font: 13px/1.3 var(--ui); color: var(--muted); margin: .6rem 0 1.6rem; }
article.note h2 { font-size: 1.22rem; }
article.note h3 { font-size: 1.04rem; }
article.note p { margin: .8rem 0; hyphens: auto; }
article.note blockquote { margin: 1rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--rule); color: var(--ink); }
article.note blockquote p { margin: .5rem 0; }
code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel);
       border: 1px solid var(--rule); border-radius: 4px; padding: 0 .25em; overflow-wrap: anywhere; }
div.table { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
article.note table { border-collapse: collapse; font: 14px/1.4 var(--ui); min-width: 60%; }
article.note th, article.note td { text-align: left; vertical-align: top; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--rule); }
article.note th { color: var(--muted); font-weight: 600; border-bottom-color: var(--faint); }
article.note .num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 12px; }
aside.standing { margin: 2.4rem 0 1rem; padding: 4px 18px 8px; background: var(--panel); border: 1px solid var(--rule);
                 border-radius: 8px; font: 14px/1.55 var(--ui); color: var(--muted); }
aside.standing h2 { font: 600 13px/1.3 var(--ui); letter-spacing: .05em; text-transform: uppercase; border: 0; margin: .9rem 0 .2rem; padding: 0; color: var(--muted); }
aside.standing p { margin: .5rem 0; }

footer.site { display: block; border-top: 1px solid var(--rule); border-bottom: 0; margin-top: 2rem; color: var(--muted); font-size: 13px; }
footer.site p { margin: .3rem 0; max-width: 52rem; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  .parallel-line { grid-template-columns: minmax(0, 1fr); }
  dl.facts, dl.credit { grid-template-columns: 1fr; gap: 0; }
  dl.facts dt, dl.credit dt { margin-top: 8px; font-size: 13px; }
  .site nav { gap: 2px 14px; }
  .excerpt { padding: 4px 12px 12px; }
  article.note { font-size: 1rem; }
  aside.standing { padding: 2px 12px 6px; }
}
@media print { .site, .go, .skip { display: none; } body { background: #fff; color: #000; } }
