/* shareddata.net: one stylesheet, system fonts only, no external requests. */

:root {
  --paper: #141b18;
  --ink: #e3e9e5;
  --muted: #a3b0a9;
  --rule: #2f3b35;
  --signal: #7fd3a1;
  --pending-ink: #f3cf8a;
  --pending-bg: #3a2c12;
  --term-bg: #0d1310;
  --term-ink: #dbe4de;
  --term-dim: #8fa198;
  --term-prompt: #7fd99f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --measure: 40rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 var(--serif);
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

a { color: var(--signal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:not([href]) { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.8rem;
}
.skip:focus { left: 0.5rem; }

/* Page frame: one left-aligned column; notes may use the right margin. */
.site-header,
main,
.site-footer {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.brand img { width: 2rem; height: 2rem; }

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main > section { max-width: var(--measure); margin-top: 3.5rem; }
main > .hero { max-width: none; margin-top: 3rem; }

h1, h2 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 {
  max-width: 22ch;
  text-wrap: balance;
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
}
h2 { margin: 0 0 0.75rem; font-size: 1.6rem; }
p { margin: 0 0 1rem; }

.lede { max-width: var(--measure); font-size: 1.3rem; line-height: 1.55; }
.small { font-size: 0.9rem; color: var(--muted); }

code, pre { font-family: var(--mono); font-size: 0.86em; }
p code, li code, td code {
  padding: 0.05em 0.3em;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* The recorded session: the one bold element on the page. */
.recording {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 2rem;
  margin: 2.5rem 0 0;
}
@media (min-width: 60rem) {
  .recording { grid-template-columns: minmax(0, 40rem) 1fr; }
}

.terminal {
  margin: 0;
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.terminal .prompt { color: var(--term-prompt); user-select: none; }
.terminal .dim { color: var(--term-dim); }

.notes { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--muted); }
.notes li { padding: 0.6rem 0 0.6rem 0.9rem; border-left: 2px solid var(--rule); }
.notes li + li { margin-top: 0.4rem; }
.notes strong { color: var(--ink); }

.recording figcaption { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); }

.install {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 6px;
  overflow-x: auto;
}

dl.extras { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; }
dl.extras dt { font-family: var(--mono); font-size: 0.86rem; padding-top: 0.15rem; }
dl.extras dd { margin: 0; }
@media (max-width: 34rem) {
  dl.extras { grid-template-columns: 1fr; }
  dl.extras dd { margin-bottom: 0.5rem; }
}

/* Diagram sections may use the full column; images scale down on narrow screens. */
main > .wide { max-width: 56rem; }
.diagram { margin: 1.5rem 0 1rem; }
.diagram img { width: 100%; max-width: 44rem; height: auto; display: block; border-radius: 12px; }
.diagram figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.stats strong { display: block; font-size: 1.6rem; color: var(--signal); }
.stats span { font-size: 0.85rem; color: var(--muted); }

.is-isnt { display: grid; gap: 0 2.5rem; max-width: none; }
@media (min-width: 48rem) { .is-isnt { grid-template-columns: 1fr 1fr; max-width: 56rem; } }
.is-isnt ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.is-isnt li + li { margin-top: 0.45rem; }

.argument { border-left: 3px solid var(--signal); padding-left: 1.25rem; }
.argument p:last-child { font-weight: 700; }

table.places { width: 100%; border-collapse: collapse; }
table.places th, table.places td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
table.places th { font-weight: 400; color: var(--muted); width: 38%; }
table.places td { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table.metrics { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.metrics caption { text-align: left; margin-bottom: 0.75rem; }
table.metrics th, table.metrics td { padding: 0.6rem; border-bottom: 1px solid var(--rule); text-align: right; }
table.metrics thead th { white-space: nowrap; }
table.metrics th:first-child { text-align: left; }
table.metrics tbody th { min-width: 13rem; font-weight: 400; }
table.metrics tbody code { display: block; font-size: 0.7rem; overflow-wrap: anywhere; }
table.metrics#access-modes th, table.metrics#access-modes td { text-align: left; vertical-align: top; }
table.metrics#access-modes tbody th { min-width: 8rem; }
table.metrics#access-modes td { min-width: 12rem; }
@media (max-width: 34rem) {
  table.places, table.places tbody, table.places tr, table.places th, table.places td { display: block; width: auto; }
  table.places th { padding-bottom: 0; border-bottom: 0; }
}

.status:empty { display: none; }
.status {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border-radius: 3px;
  background: var(--pending-bg);
  color: var(--pending-ink);
  font-size: 0.8rem;
  white-space: nowrap;
}

.address { font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 700; margin: 0.25rem 0 1.5rem; overflow-wrap: anywhere; }

.site-footer {
  margin-top: 4.5rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.35rem; }
