/* mesgd.org — terminal page, matched to ~/Code/deskcite.com/static. */
:root {
  --font-family: "Anonymous Pro", "Liberation Mono", "DejaVu Sans Mono", monospace;
  --font-size: 20px;
  --font-size-small: 16px;
  --font-weight-normal: 500;
  --font-weight-medium: 600;
  --font-weight-bold: 800;
  --line-height: 1.20rem;
  --border-thickness: 2px;
  --text-color: #000;
  --text-color-alt: #666;
  --background-color: #fff;
  --background-color-alt: #eee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #fff;
    --text-color-alt: #aaa;
    --background-color: #000;
    --background-color-alt: #151515;
  }
}
* { box-sizing: border-box; }
* + * { margin-top: var(--line-height); }
html, body { margin: 0; padding: 0; }
html { background: var(--background-color); color: var(--text-color); }
body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  max-width: calc(min(100ch, round(down, 100%, 1ch)));
  margin: 0 auto;
  padding: var(--line-height) 2ch calc(var(--line-height) * 3);
}
h1, h2, h3, p, menu, ul, pre, table { margin: 0; }
h1, h2 { font-weight: var(--font-weight-bold); line-height: var(--line-height); }
a { color: var(--text-color-alt); text-decoration: none; }
a:hover { background: var(--background-color-alt); }
code, pre, kbd { font-family: inherit; font-size: var(--font-size-small); }
strong { font-weight: var(--font-weight-bold); }
dfn { font-style: italic; }
[hidden] { display: none; }
::selection { color: var(--background-color); background: var(--text-color); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding-bottom: var(--line-height);
  margin-bottom: var(--line-height);
}
.site-header > * { margin-top: 0; }
.logo {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  line-height: calc(var(--line-height) * 2);
  margin: 0;
}
.tagline {
  color: var(--text-color-alt);
  margin: 0;
  font-size: var(--font-size-small);
  text-align: right;
}
.tui {
  display: grid;
  grid-template-columns: 22ch 1fr;
  gap: 3ch;
  align-items: start;
}
.tui > * { margin-top: 0; }
.tui-nav { position: sticky; top: var(--line-height); }
.nav-label, .nav-hint, .nav-hint p { color: var(--text-color-alt); font-size: var(--font-size-small); margin: 0; }
.tui-nav menu { list-style: none; padding: 0; margin: 0; }
.tui-nav menu li { margin: 0; line-height: var(--line-height); }
.nav-item {
  display: block;
  padding: 0 .5ch;
  white-space: nowrap;
  color: var(--text-color);
  cursor: pointer;
}
.nav-item:hover { background: var(--background-color-alt); }
.nav-item.active { font-weight: var(--font-weight-bold); }
.nav-item.active::before { content: '▶ '; }
.nav-item:not(.active)::before { content: '  '; }
.nav-hint { margin-top: calc(var(--line-height) * 1.5); line-height: var(--line-height); }
.section > * { margin-top: var(--line-height); }
.section > h2 { margin-top: 0; }
.section + .section { margin-top: calc(var(--line-height) * 2); }
.section h2 {
  text-transform: uppercase;
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding-bottom: calc(var(--line-height) / 2);
  scroll-margin-top: calc(var(--line-height) * 2);
}
.box {
  border: var(--border-thickness) solid var(--text-color);
  padding: calc(var(--line-height) - var(--border-thickness)) 1ch;
  margin-top: var(--line-height);
  margin-bottom: var(--line-height);
}
.box > * + * { margin-top: var(--line-height); }
.box-header {
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding-bottom: calc(var(--line-height) / 2);
  margin: 0 0 calc(var(--line-height) / 2);
}
.specs { width: 100%; border-collapse: collapse; margin: 0; }
.specs td {
  border: none;
  padding: 0 1ch 0 0;
  text-align: left;
  vertical-align: top;
  line-height: var(--line-height);
}
.specs tr + tr td { padding-top: 0; }
.specs td:first-child {
  color: var(--text-color-alt);
  white-space: nowrap;
  width: 16ch;
  font-size: var(--font-size-small);
}
.checklist { list-style: none; padding: 0; margin: var(--line-height) 0; }
.checklist li { margin: 0; line-height: var(--line-height); }
.checklist li + li { margin-top: 0.5em; }
.checklist li::before { content: '·  '; font-weight: var(--font-weight-bold); }
pre, .ticket {
  background: var(--background-color-alt);
  border-left: calc(var(--border-thickness) * 2) solid var(--text-color-alt);
  padding: calc(var(--line-height) / 2) 1ch;
  margin: var(--line-height) 0 0;
  font-size: var(--font-size-small);
  white-space: pre-wrap;
  overflow: auto;
}
.ticket p { margin: 0; line-height: var(--line-height); }
.muted { color: var(--text-color-alt); font-size: var(--font-size-small); }
@media (max-width: 720px) {
  body { max-width: 100%; padding-left: 1ch; padding-right: 1ch; }
  .tui { grid-template-columns: 1fr; }
  .site-header { display: block; }
  .tagline { text-align: left; margin-top: var(--line-height); }
  .tui-nav menu { display: flex; flex-wrap: wrap; }
  .nav-hint { display: none; }
  .specs, .specs tr, .specs td { display: block; width: auto; }
  .specs td:first-child { white-space: normal; width: auto; }
  .specs td + td { margin-top: 0; padding-bottom: calc(var(--line-height) / 2); }
}
