/* The Workbench Library. Brand: ink #202927 on warm ivory #F3F0E9, restrained serif, one sans. Flat, no effects. */
:root {
  --ink: #202927;
  --ink-soft: #4a5350;
  --ivory: #F3F0E9;
  --paper: #FBFAF6;
  --rule: #d9d3c6;
  --accent: #6b4f2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--rule); background: var(--ivory); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand span { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-left: 1px solid var(--rule); padding-left: 14px; }
nav.main { font-family: var(--sans); font-size: 15px; display: flex; gap: 18px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink-soft); }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--ink); text-decoration: underline; }

main { padding: 28px 0 60px; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: 34px; margin: 8px 0 10px; }
h2 { font-size: 24px; margin: 34px 0 10px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 720px; }
.small, .meta { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.prose { max-width: 720px; }

/* Controls */
.panel { background: var(--paper); border: 1px solid var(--rule); padding: 18px; margin: 18px 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
label { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); display: block; margin-bottom: 4px; }
select, input[type=text], input[type=email], input[type=number], textarea {
  font: 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid #b9b2a3; padding: 9px 10px; border-radius: 0;
}
input[type=number] { width: 84px; }
button, .button { font: 600 15px var(--sans); background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); }
button:hover, .button:hover { background: #000; color: #fff; }
button.secondary:hover { background: var(--ink); color: var(--ivory); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.traditions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.traditions button { background: transparent; color: var(--ink); font-weight: 500; }
.traditions button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.tradition-note { margin-top: 10px; }
details.voices summary { cursor: pointer; font-family: var(--sans); font-size: 14px; margin-top: 12px; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin-top: 10px; font-family: var(--sans); font-size: 14px; }
.voice-grid label { font-size: 14px; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; margin: 0; }

/* Results */
#status { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); min-height: 1.4em; }
.packet h1 { margin-top: 0; }
.text-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .text-cols { grid-template-columns: 1fr; } body { font-size: 17px; } h1 { font-size: 28px; } }
.text-cols h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.verse sup { font-family: var(--sans); font-size: 11px; color: var(--accent); margin-right: 3px; }
.voice { border-top: 1px solid var(--rule); padding: 18px 0 4px; }
.voice h3 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.voice h3 .meta { font-weight: 400; }
.note-ref { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); margin: 14px 0 2px; }
.note p { margin: 0 0 10px; }
.intro { background: var(--paper); border-left: 3px solid var(--rule); padding: 8px 14px; margin: 8px 0 12px; }
details.intro summary { cursor: pointer; font-family: var(--sans); font-size: 14px; }
.empty { color: var(--ink-soft); font-style: italic; }
.words { width: 100%; border-collapse: collapse; font-size: 16px; }
.words th, .words td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); padding: 8px 6px; }
.words th { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.words .orig { font-size: 20px; }
.words .def { font-size: 15px; color: var(--ink-soft); white-space: pre-line; }
.xref { font-family: var(--sans); font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

footer.site { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
footer.site .cols { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }
.form-grid { display: grid; gap: 14px; max-width: 560px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--paper); border: 1px solid var(--rule); padding: 12px 16px; font-family: var(--sans); font-size: 15px; }
@media print { header.site, footer.site, .panel, .actions, #status { display: none; } body { background: #fff; } }
.mt16 { margin-top: 16px; }
.mt14 { margin-top: 14px; }
#packet:focus { outline: none; }
