/* hyPer's public pages, in the app's Blanc look: chalk ground, black ink,
   one red for the P. System fonts only, so the pages load nothing from
   anyone else. */
:root {
  --ground: #f2f1ed;
  --ink: #0b0b0b;
  --graphite: #66665f;
  --hairline: rgba(0, 0, 0, 0.09);
  --brand: #a8352a;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #000000;
    --ink: #f4f4f2;
    --graphite: #a3a39c;
    --hairline: rgba(255, 255, 255, 0.14);
    --brand: #d0584b;
  }
}

:root[data-theme="dark"] {
  --ground: #000000;
  --ink: #f4f4f2;
  --graphite: #a3a39c;
  --hairline: rgba(255, 255, 255, 0.14);
  --brand: #d0584b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.mark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.mark em {
  font-family: ui-serif, "New York", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}

nav.site { display: flex; gap: 16px; font-size: 15px; }
nav.site a { color: var(--graphite); text-decoration: none; }
nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a:hover { color: var(--ink); }

h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }

p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: inherit; text-underline-offset: 2px; }

.lede { font-size: 19px; color: var(--graphite); margin-bottom: 8px; }
.meta { color: var(--graphite); font-size: 15px; }
.note { color: var(--graphite); font-size: 15px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 18px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
}

th { font-weight: 600; }

/* Tables become stacked rows on a phone, so nothing scrolls sideways. */
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
}

footer.site {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--graphite);
  font-size: 14px;
}

footer.site a { color: var(--graphite); }
