/* Resonance Protocol legal pages. Linen paper, ink, steel-grey rules, brass in the underline only. Fonts served from this host. */
@font-face { font-family: "Public Sans"; src: url("/fonts/publicsans_regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/publicsans_semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/fonts/zillaslab_medium.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/fonts/zillaslab_semibold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --paper: #EFEBE3;
  --ink: #1B1D1F;
  --muted: #43474B;
  --hair: rgba(27, 29, 31, 0.16);
  --brass: #8C6F3F;
  --serif: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slab: "Zilla Slab", Georgia, serif;
  --measure: 68ch;
  --body: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.65 var(--serif); }
/* Brass text on cream is below WCAG AA for body text: links stay ink, the brass lives in the underline. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 6px 10px; z-index: 2; }

header.site { display: flex; align-items: baseline; gap: 10px 40px; flex-wrap: wrap; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 28px 40px 22px; border-bottom: 1px solid var(--hair); }
.mark { font: 600 26px/1 var(--slab); color: var(--ink); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 16px; }
header.site nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
header.site nav a:hover { text-decoration: underline; }
header.site nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.frame { max-width: 1100px; margin: 0 auto; padding: 56px 40px 96px; display: grid; gap: 56px;
  grid-template-columns: 15rem minmax(0, 1fr); }
.no-toc .frame { grid-template-columns: minmax(0, 1fr); }
main { min-width: 0; overflow-wrap: break-word; }
main > * { max-width: var(--measure); }

.toc-side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto;
  font-size: 14px; line-height: 1.45; padding-right: 8px; }
.toc-head, .toc-inline summary { font: 500 16px/1.3 var(--serif); margin: 0 0 14px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0 0 7px; }
.toc-list a { color: var(--muted); text-decoration: none; display: grid; grid-template-columns: 2.3em 1fr; }
.toc-list a.plain { display: block; }
.toc-list a:hover { color: var(--ink); text-decoration: underline; }
.toc-list .tn { color: var(--muted); }
.toc-inline { display: none; }

h1 { font: 500 42px/1.15 var(--slab); margin: 0 0 18px; }
h2 { font: 600 26px/1.25 var(--slab); margin: 2.3em 0 0.6em; }
h3 { font: 600 21px/1.3 var(--slab); margin: 1.8em 0 0.5em; }
h2 .num, h3 .num { color: var(--ink); text-decoration: none; margin-right: 0.4em; }
h2 .num:hover, h3 .num:hover { text-decoration: underline; }
h2 .self, h3 .self, p .self { color: inherit; text-decoration: none; }
p, ul, ol, address, .table { margin: 0 0 1em; }
.eff { color: var(--muted); font-size: 16px; font-style: italic; }
ul, ol { padding-left: 1.4em; }
li { margin: 0 0 0.4em; }
li > ul, li > ol { margin-top: 0.4em; }
strong { font-weight: 600; }
.lede { font-size: 21px; line-height: 1.5; }
.doc-list { list-style: none; padding: 0; font-size: 21px; line-height: 1.4; }
.doc-list li { padding: 14px 0; border-top: 1px solid var(--hair); margin: 0; }
.doc-list li:last-child { border-bottom: 1px solid var(--hair); }
.doc-list a { text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
pre.plain { font: 400 15px/1.55 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 1.4em; }

.table { overflow-x: auto; margin: 1.4em 0 1.6em; }
main > .table { max-width: none; }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair); }
th { font-weight: 600; color: var(--muted); border-bottom-color: var(--ink); }

footer.site { max-width: 1100px; margin: 0 auto; padding: 22px 40px 40px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
footer.site p { margin: 0; }

@media (max-width: 1023px) {
  .frame, .no-toc .frame { grid-template-columns: minmax(0, 1fr); padding: 40px 32px 72px; gap: 0; }
  .toc-side { display: none; }
  .toc-inline { display: block; margin: 0 0 28px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 0; }
  .toc-inline summary { cursor: pointer; margin: 0; }
  .toc-inline[open] summary { margin-bottom: 14px; }
  .toc-inline .toc-list { font-size: 15px; }
}
@media (max-width: 600px) {
  :root { --body: 17px; }
  header.site { padding: 20px 16px 16px; gap: 8px; }
  .mark { font-size: 23px; }
  header.site nav { gap: 2px 16px; font-size: 15px; }
  .frame, .no-toc .frame { padding: 28px 16px 56px; }
  h1 { font-size: 33px; }
  h2 { font-size: 23px; }
  h3 { font-size: 19px; }
  .lede, .doc-list { font-size: 19px; }
  footer.site { padding: 20px 16px 32px; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { border-top: 1px solid var(--ink); padding: 8px 0 4px; }
  td { border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
}
@media print {
  :root { --paper: #FFFFFF; --ink: #000000; --muted: #333333; --brass: #000000; --body: 11pt; }
  header.site nav, .toc-side, .toc-inline, .skip { display: none !important; }
  header.site, footer.site, .frame { padding: 0; max-width: none; border: 0; display: block; }
  main > * { max-width: none; }
  a { text-decoration: none; }
  tr, li, p { break-inside: avoid; }
}
