/* bsd-unix.net — man(7)-style theme */
:root {
  --paper: #f7f3ea;
  --ink: #23201b;
  --muted: #6f685c;
  --rule: #d9d1c0;
  --accent: #a8322d;
  --accent-ink: #fff;
  --panel: #efe9dc;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16151a;
    --ink: #e6e1d6;
    --muted: #9a9384;
    --rule: #2f2d33;
    --accent: #ef6f5f;
    --accent-ink: #16151a;
    --panel: #1e1d23;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--mono);
  padding-inline: 20px;
}

.page {
  max-width: 78ch;
  margin: 0 auto;
  padding-block: 28px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* running header / footer, like a formatted man page */
.runhead, .runfoot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}
.runhead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.runhead .brand { color: var(--ink); font-weight: 700; justify-self: start; }
.runfoot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.runhead a, .runfoot a { color: inherit; text-decoration: none; }
.runhead a:hover, .runfoot a:hover { color: var(--accent); }

nav.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 14px 0 0;
  font-size: 13px;
}
nav.tabs a { color: var(--muted); text-decoration: none; }
nav.tabs a::before { content: "["; opacity: .5; }
nav.tabs a::after  { content: "]"; opacity: .5; }
nav.tabs a:hover, nav.tabs a[aria-current] { color: var(--accent); }

main { padding-block: 8px 32px; }

h1, h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 30px 0 6px;
}
h1 { margin-top: 26px; }

.sect { padding-left: 7ch; }
.sect p { margin: 0 0 12px; }

.tagline {
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 4px 0 14px;
}
.tagline .prompt { color: var(--accent); }
.cursor {
  display: inline-block;
  width: .55em;
  height: .95em;
  margin-left: .12em;
  vertical-align: -.08em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.synopsis b { font-weight: 700; }
.synopsis .opt { color: var(--muted); }
.synopsis .opt b { color: var(--ink); }

/* definition list: term flush, description indented */
dl.list { margin: 0; }
dl.list dt { font-weight: 700; margin-top: 12px; }
dl.list dt:first-child { margin-top: 0; }
dl.list dd { margin: 0 0 0 7ch; color: var(--ink); }
dl.list dd .dim { color: var(--muted); }

.cta {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 13px/1.2 var(--mono);
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
}
.cta:hover { filter: brightness(1.08); text-decoration: none; }
.cta.ghost { background: transparent; color: var(--accent); }

.dim { color: var(--muted); }

/* subscribe: plan rows */
.plans { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plans li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.plans .price { font-weight: 700; min-width: 15ch; }
.plans .what { flex: 1 1 14ch; color: var(--muted); }
.plans form { margin: 0; }

@media (max-width: 560px) {
  body { font-size: 14px; }
  .sect { padding-left: 2ch; }
  dl.list dd { margin-left: 2ch; }
  .runhead .mid, .runfoot .mid { display: none; }
}
