@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #242321;
  --muted: #5d5652;
  --line: #d8d1ce;
  --accent: #8b332d;
  --stock: #f7f2ef;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: white; color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
h1, h2, h3, p, figure, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, .sheet:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 3; padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }

.frame, .mast-inner { width: min(71rem, 100% - clamp(2rem, 9vw, 7rem)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .625rem 2rem; }
.mast-inner { padding-block: 1.125rem; }
.site-topic { color: var(--accent); font: 700 1.625rem/1.1 var(--display); text-decoration: none; }
.mast nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.75rem, 2.6vw, 2rem); }
.mast nav a { display: inline-block; padding: .25rem 0; font-size: .875rem; font-weight: 600; text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current="page"] { text-decoration: underline; }

.cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem); }
.cover h1 { font: 700 clamp(3.5rem, 7vw, 6.25rem)/.94 var(--display); letter-spacing: -.025em; text-wrap: initial; }
.cover h1 span { display: block; }
.cover p { max-width: 40ch; margin-top: 1.25rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.1875rem); }
.cover p a { color: var(--accent); font-weight: 650; }
.key-preview { min-width: 0; padding: clamp(1rem, 3vw, 2.5rem); background: var(--stock); border-top: 3px solid var(--accent); }
.key-preview table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: clamp(.75rem, 1.23vw, .9375rem); }
.key-preview caption { margin-bottom: 1rem; text-align: left; font: 700 clamp(1.625rem, 2.5vw, 2.375rem)/1.05 var(--display); }
.key-preview th, .key-preview td { padding: .625rem .25rem .625rem 0; text-align: left; vertical-align: top; }
.key-preview th { color: var(--muted); border-bottom: 1px solid var(--ink); font-weight: 650; }
.key-preview td { border-bottom: 1px solid var(--line); }
.key-preview th:first-child { width: 20%; }
.key-preview td:first-child { font-weight: 650; }
.key-preview figcaption { margin-top: .875rem; color: var(--muted); font-size: .8125rem; }

.directory { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem clamp(1rem, 3.5vw, 2.75rem); border-top: 1px solid var(--line); padding-block: 1.5rem clamp(3rem, 6vw, 5rem); }
.group { min-width: 0; }
.group figure { margin: 1rem 0 .25rem; }
.group img { aspect-ratio: 1.5; object-fit: cover; }
.group h2 { color: var(--ink); font: 700 clamp(1.65rem, 2.8vw, 2.375rem)/1.07 var(--display); }
.group ul, .contents ul, .continue ul { list-style: none; margin: 0; padding: 0; }
.group li + li { border-top: 1px solid var(--line); }
.group li a { display: block; padding: .875rem 0; text-decoration: none; }
.group li a:hover strong { text-decoration: underline; }
.group strong { display: block; color: var(--accent); font: 650 clamp(1rem, 1.42vw, 1.125rem)/1.3 var(--sans); }
.group small { display: block; max-width: 45ch; margin-top: .25rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.partner { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: .925rem; }
.partner p { max-width: 70ch; }
.partner a, .foot-link { color: var(--accent); }
.partner a { font-weight: 650; }
.foot { background: var(--stock); }
.foot-inner { padding-block: 1.125rem; font-size: .875rem; }

.article-page { padding-block: 1.5rem clamp(3rem, 6vw, 5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .875rem; }
.article-head { padding-block: clamp(1.5rem, 5vw, 4rem) 1.75rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 650; }
.article-intro h1 { max-width: 22ch; margin: .5rem 0 1rem; font: 700 clamp(2.875rem, 5.5vw, 5.25rem)/1 var(--display); letter-spacing: -.02em; }
.lead { max-width: 64ch; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 43rem) minmax(12rem, 1fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); padding-block: 2rem 3rem; }
.article-rail { grid-column: 2; grid-row: 1; min-width: 0; }
.contents { margin-top: 1rem; }
.contents ul { margin-top: .5rem; border-top: 1px solid var(--line); }
.contents li { border-bottom: 1px solid var(--line); }
.contents a { display: block; padding: .5rem 0; font-size: .875rem; }
.article-text { grid-column: 1; grid-row: 1; min-width: 0; max-width: 66ch; line-height: 1.68; overflow-wrap: anywhere; }
.article-text section + section { margin-top: 2rem; }
.article-text h2, .continue h2 { margin-bottom: .75rem; font: 700 clamp(1.875rem, 3vw, 2.5rem)/1.1 var(--display); }
.article-text p + p, .article-text dl + p, .article-text p + dl { margin-top: .875rem; }
.article-text a, .continue a { color: var(--accent); }
.article-text dl { margin: 0; }
.terms dt { font-weight: 650; }
.terms dd + dt { margin-top: .75rem; }
.entry { display: grid; grid-template-columns: minmax(6rem, 1fr) 3fr; column-gap: 1rem; padding: .75rem 1rem; background: var(--stock); }
.entry dt, .entry dd { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.entry dt { font-weight: 650; }
.entry dt:last-of-type, .entry dd:last-of-type { border: 0; }
.article-text blockquote { margin: 1rem 0; padding: .875rem 1.125rem; background: var(--stock); border-left: 2px solid var(--accent); }
.sheet { overflow-x: auto; margin: .875rem 0; }
.sheet table { width: 100%; min-width: 28rem; border-collapse: collapse; font-size: .875rem; }
.sheet caption { padding: .5rem 0; font-weight: 650; text-align: left; }
.sheet th, .sheet td { border: 1px solid #958c89; padding: .5rem; text-align: left; }
.sheet th { font-size: .8125rem; vertical-align: top; }
.sheet td { height: 2.25rem; }
.print-action { margin-top: .75rem; padding: .5rem .875rem; background: var(--accent); color: white; border: 0; font: 650 .875rem/1.5 var(--sans); cursor: pointer; }
.print-action:hover { background: #67251f; }
.continue { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.continue ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

@media (max-width: 880px) {
  .cover { gap: 2rem; }
  .directory { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .article-layout { display: block; }
  .article-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; align-items: start; }
  .contents { margin: 0; }
}

@media (max-width: 600px) {
  .cover, .directory { grid-template-columns: 1fr; }
  .cover { gap: 1.5rem; }
  .cover h1 { font-size: clamp(3.125rem, 10vw, 4.25rem); }
  .cover h1 span { display: inline; }
  .cover p { margin-top: 1rem; }
  .directory { gap: 1.5rem; }
  .group + .group { border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .article-rail { display: block; }
  .contents { margin-top: 1rem; }
  .entry { display: block; }
  .entry dt { border-bottom: 0; padding-bottom: 0; }
  .entry dd { padding-top: 0; }
}

@media print {
  body, .frame, .article-layout { display: block; background: white; color: black; width: 100%; }
  .mast, .foot, .skip, .breadcrumb, .article-rail, .continue, .print-action { display: none; }
  .article-page, .article-head, .article-layout { padding: 0; border: 0; }
  .article-intro h1 { font-size: 30pt; }
  .article-text { font-size: 11pt; max-width: none; }
  .article-text section { margin-top: 18pt; }
  .article-text h2 { font-size: 18pt; break-after: avoid; }
  .sheet { overflow: visible; }
  .sheet table { min-width: 0; }
  table, blockquote { break-inside: avoid; }
  .sheet-only .article-head, .sheet-only .article-text section:not(:has(.sheet)), .sheet-only .article-text section:has(.sheet) > :not(.sheet) { display: none; }
  .sheet-only .article-text section { margin: 0; }
  .sheet-only th, .sheet-only td { width: 20%; }
  .sheet-only td { height: 65px; }
}
