/* Companion to the finely ruled Oliver Cowdery and Asa W. Parker editions. */
:root {
  --paper: #fbf8f0;
  --paper-deep: #f0e9d9;
  --ink: #282620;
  --muted: #655f53;
  --bronze: #8b734b;
  --rule: #c5b594;
  --sage: #414f45;
  --umber: #624b40;
  --accent: var(--sage);
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  font-synthesis: none;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; }
body.parker, [data-edition="parker"] { --accent: var(--umber); }
::selection { background: #ddd6bd; color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #5b4224; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button, input, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: normal; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.8vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; letter-spacing: -.01em; }
small { font-size: .8em; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: absolute; top: -5rem; left: 1rem; z-index: 100;
  padding: .5rem 1rem; background: var(--ink); color: white;
}
.skip-link:focus { top: 1rem; }
.site-header { padding-block: 1.5rem 0; }
.site-header > .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
  border-top: 1px solid var(--bronze); border-bottom: 3px double var(--bronze);
  padding-block: .85rem;
}
.brand { color: var(--ink); font-size: 1.28rem; line-height: 1.3; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
.site-nav a { font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.eyebrow {
  margin-bottom: 1.25rem; color: var(--bronze); font-size: .75rem;
  line-height: 1.5; letter-spacing: .18em; text-transform: uppercase;
}
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2.5rem, 6vw, 5.5rem); padding-block: 4.8rem 5rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .subtitle { font-size: 1.4rem; line-height: 1.45; color: var(--accent); margin-bottom: 1.2rem; }
.hero-copy > p:not(.eyebrow):not(.byline) { max-width: 35em; }
.hero-figure, .hero > figure { position: relative; padding: 16px; border: 1px solid var(--bronze); }
.hero-figure::before, .hero > figure::before { content: ""; position: absolute; inset: 5px; pointer-events: none; border: 1px solid var(--rule); }
.hero-figure img, .hero > figure img { position: relative; width: 100%; object-fit: contain; }
.hero-figure figcaption, .hero > figure figcaption { position: relative; margin: .8rem .25rem .1rem; }
.byline { font-size: .82rem; line-height: 1.55; letter-spacing: .035em; }
.byline a { font-variant: small-caps; letter-spacing: .07em; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-block: 2.2rem; color: var(--bronze); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.ornament img, .ornament svg { width: 100px; flex: 0 0 100px; }
.ornament:empty { height: 24px; background: url("edition-flourish.svg") no-repeat center / 100px 24px; }
.ornament:empty::before { margin-right: 60px; }
.ornament:empty::after { margin-left: 60px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding-block: 1.1rem 1.6rem; border-top: 1px solid var(--bronze); }
.section-heading .eyebrow { margin: 0; flex-shrink: 0; }
.introduction { width: min(780px, 100%); margin-inline: auto; padding-block: 1.5rem 3.8rem; font-size: 1.13rem; line-height: 1.8; }
.introduction h2 { margin-bottom: 1.3rem; }
.edition-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: 3rem 3.7rem; border-top: 1px solid var(--rule); }
.edition-row:last-child { border-bottom: 1px solid var(--rule); }
.edition-image { padding: 1.2rem; background: var(--paper-deep); border: 1px solid var(--rule); }
.edition-image img { width: 100%; object-fit: contain; }
.edition-image figcaption { margin-top: .85rem; }
.binding-pair { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.binding-pair img { width: 43%; max-height: 390px; object-fit: contain; }
.companion-section { padding-block: 1rem 3.5rem; }
.domain-box { margin: 1rem 0 3.5rem; border: 4px double var(--bronze); padding: 1.5rem 2rem 2rem; background: #f4efe3; }
.domain-box .section-heading { border-top: 0; }
.social-section { padding-block: 1rem 1.8rem; border-top: 1px solid var(--rule); }
.social-section .eyebrow { margin: 1rem 0 .6rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .85rem; }
.social-links a { display: inline-block; padding-block: .35rem; }
.introduction blockquote { margin: 0 0 1.4rem; }
.edition-copy h3 { margin-bottom: .8rem; color: var(--accent); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.edition-copy .eyebrow { margin-bottom: .7rem; }
.edition-meta { color: var(--muted); font-size: .83rem; font-style: italic; }
.edition-copy > p { max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.6rem; }
.button { display: inline-block; min-height: 44px; padding: .6rem 1.15rem; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); font-size: .8rem; line-height: 1.5; letter-spacing: .045em; text-decoration: none; text-align: center; }
.button:hover { background: #313c34; border-color: #313c34; color: white; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: #ece8db; }
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-block: 3.5rem; }
.resources h2, .resources h3 { margin-bottom: .9rem; }
.resources p { font-size: .95rem; }
.domain-links { margin: 1rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 1.8rem; }
.domain-links li { break-inside: avoid; margin-bottom: .4rem; font-size: .86rem; overflow-wrap: anywhere; }
.domain-links a { display: inline-block; padding-block: .15rem; }
.resource-link { display: inline-block; margin-top: .25rem; font-size: .9rem; }
.site-footer { padding-block: 1.8rem 2.2rem; font-size: .75rem; line-height: 1.65; color: var(--muted); }
.site-footer > .wrap { border-top: 3px double var(--bronze); padding-top: 1.3rem; display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
.article-cover { max-width: 980px; margin-inline: auto; text-align: center; padding-block: 4rem 3rem; }
.article-cover h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.1; }
.article-cover .subtitle { color: var(--accent); font-size: clamp(1.3rem, 2.5vw, 1.9rem); line-height: 1.4; margin-block: 1rem 1.4rem; }
.article-cover .byline { margin-block: 1.4rem; }
.article-cover .actions { justify-content: center; }
.article-cover .eyebrow { margin-bottom: 1.4rem; }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 720px); justify-content: center; align-items: start; gap: clamp(2.5rem, 5vw, 4rem); padding-block: 1.7rem 4rem; }
.article-toc { position: sticky; top: 2rem; font-size: .77rem; line-height: 1.55; max-height: calc(100vh - 4rem); overflow-y: auto; padding-right: .5rem; }
.article-toc h2 { font-size: .73rem; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); margin-bottom: .7rem; }
.article-toc ol, .article-toc ul { padding-left: 0; margin-block: 0; list-style: none; }
.article-toc li { padding-block: .35rem; }
.article-toc a { text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article-body { min-width: 0; font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; }
.article-body > h2, .article-body section > h2 { margin-block: 2.5rem 1.1rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--accent); }
.article-body > h2:first-child, .article-body section:first-child > h2 { margin-top: 0; }
.article-body h3 { margin-block: 1.8rem .8rem; color: var(--accent); }
.article-body h4 { font-size: 1.1rem; font-style: italic; margin-block: 1.5rem .6rem; }
.article-body p { margin-bottom: 1.15em; }
.article-body .opening::first-letter { float: left; padding: .12em .1em 0 0; font-size: 3.5em; line-height: .8; color: var(--accent); }
.article-body figure { margin-block: 2rem; text-align: center; }
.article-body figure img { max-height: 850px; width: auto; margin-inline: auto; object-fit: contain; }
.article-body figure a { display: block; }
.article-body figcaption, .caption { color: var(--muted); font-size: .78rem; line-height: 1.6; font-style: italic; }
.article-body figcaption { margin-top: .7rem; padding-inline: .5rem; }
.article-body blockquote { margin: 1.7rem 0 1.7rem 1.6rem; padding-left: 1.2rem; border-left: 1px solid var(--bronze); font-size: .95em; line-height: 1.75; }
.article-body sup { font-size: .68em; line-height: 0; vertical-align: super; }
.article-body sup a { padding-inline: .12rem; text-decoration: none; }
.article-body a[href^="#fn"], .article-body .footnote-ref { font-variant-numeric: lining-nums; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-size: .85rem; line-height: 1.6; margin-block: 1.5rem; }
.article-body th, .article-body td { padding: .5rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.note { padding: 1rem 1.2rem; border-block: 1px solid var(--rule); color: var(--muted); font-size: .85rem; line-height: 1.65; margin-block: 1.5rem; }
.notes { margin-top: 3rem; border-top: 3px double var(--bronze); padding-top: 1rem; font-size: .8rem; line-height: 1.65; }
.notes h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.notes ol { padding-left: 1.8rem; }
.notes li { padding-left: .3rem; margin-bottom: .85rem; }
.notes li:target { background: #eee7d3; outline: .45rem solid #eee7d3; }
.back-link { display: inline-block; font-size: .8rem; letter-spacing: .02em; margin-bottom: .9rem; }
.small-caps { font-variant: small-caps; letter-spacing: .05em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1400px) { .hero { padding-block: 5.5rem; } }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 4rem); }
  .site-header > .wrap { align-items: start; flex-direction: column; gap: .7rem; }
  .article-layout { grid-template-columns: 160px minmax(0, 720px); gap: 2rem; }
  .domain-links { columns: 1; }
}
@media (max-width: 760px) {
  :root { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-top: 1rem; }
  .site-nav { gap: .45rem 1.1rem; }
  .site-nav a { font-size: .72rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.8rem 3rem; gap: 2.3rem; }
  .hero h1 { max-width: 11em; font-size: clamp(2.9rem, 10.5vw, 4.7rem); }
  .hero .subtitle { font-size: 1.3rem; }
  .hero-figure, .hero > figure { width: min(490px, 100%); margin-inline: auto; padding: 14px; }
  .section-heading { flex-direction: column; gap: .4rem; padding-bottom: 1.2rem; }
  .introduction { padding-block: 1rem 2.5rem; font-size: 1.05rem; }
  .edition-row { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.2rem 2.6rem; }
  .edition-image { width: min(400px, 100%); margin-inline: auto; }
  .edition-copy h3 { font-size: 2rem; }
  .resources { grid-template-columns: 1fr; gap: 2.3rem; padding-block: 2.8rem; }
  .domain-links { columns: 2; }
  .site-footer > .wrap { flex-direction: column; gap: .75rem; }
  .article-cover { padding-block: 2.6rem 2rem; }
  .article-layout { display: block; padding-top: .8rem; }
  .article-toc { position: static; max-height: none; padding: 0 0 1.4rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
  .article-toc ol, .article-toc ul { columns: 2; column-gap: 1.4rem; }
  .article-toc li { break-inside: avoid; }
  .article-body { font-size: 1rem; }
  .article-body blockquote { margin-left: .5rem; padding-left: .8rem; }
}
@media (max-width: 430px) {
  .domain-links, .article-toc ol, .article-toc ul { columns: 1; }
  .article-cover h1 { font-size: 2.35rem; }
  .brand { font-size: 1.22rem; }
  .button { padding-inline: .85rem; }
}
@media print {
  :root { font-size: 11pt; background: white; color: black; }
  .wrap { width: 100%; max-width: none; }
  .site-header, .site-nav, .article-toc, .actions, .skip-link, .back-link { display: none; }
  .article-layout { display: block; padding: 0; }
  .article-cover { padding-top: 0; }
  .article-cover h1 { font-size: 30pt; }
  .article-body { font-size: 11pt; line-height: 1.5; }
  .article-body h2, .article-body h3 { break-after: avoid; }
  figure, blockquote { break-inside: avoid; }
  a { color: black; }
  .site-footer > .wrap { display: block; }
}
