/* pulsesdr.cc: a plain reading page. One text column, real screenshots, no cards. Light and dark follow the system. */
:root {
  --bg: #fbfbf9;
  --text: #1e2125;
  --muted: #5d636b;
  --line: #dcdcd6;
  --link: #0a6ea3;
  --accent: #1cb4f5;
  --code: #f0f0eb;
  --measure: 46rem;
  --wide: 66rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --text: #e4e5e2;
    --muted: #9aa0a6;
    --line: #2b2e32;
    --link: #5cc6f6;
    --code: #1b1e21;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }

/* top bar */
.top { border-bottom: 1px solid var(--line); }
.top-row { max-width: var(--wide); display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; font-style: italic; }
.brand svg { width: 30px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand em { color: var(--accent); font-style: italic; }
.links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.links a { color: var(--text); text-decoration: none; font-size: 15px; }
.links a:hover { text-decoration: underline; }
.langs { display: flex; gap: 2px; }
.langs button {
  font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 4px 6px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* text */
h1 { font-size: clamp(28px, 4.2vw, 38px); line-height: 1.2; letter-spacing: -0.01em; margin: 48px 0 18px; }
h2 { font-size: 25px; line-height: 1.3; margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; }
.status { color: var(--muted); }
.status strong { color: var(--text); }
.note { color: var(--muted); font-size: 15px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }

/* features: heading beside the text on wide screens */
.topic { display: grid; grid-template-columns: 13rem 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.topic:last-of-type { border-bottom: 0; }
.topic h3 { margin-top: 3px; }
.topic p:last-child, .topic ul:last-child { margin-bottom: 0; }

/* screenshots */
.shot { margin: 36px auto; padding: 0 16px; max-width: var(--wide); }
.shot img { border: 1px solid var(--line); border-radius: 3px; }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: var(--measure); }

/* download table */
table.plain { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 16px; }
table.plain th, table.plain td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: 14px; color: var(--muted); font-weight: 600; }

/* footer */
.bottom { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.foot-links a { margin-right: 18px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-row { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .links { margin-left: 0; order: 3; width: 100%; gap: 14px; }
  .links a { font-size: 14px; }
  .langs { margin-left: auto; }
  h1 { margin-top: 32px; }
  .topic { grid-template-columns: 1fr; gap: 4px; }
}
