/* SilentInk — the look of the panel it runs on: black on white, thin frames, no fills. */
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #111;
  --soft: #4a4a4a;
  --line: #c8c8c8;
  --paper: #fff;
  --wash: #f4f4f2;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.55 "Source Sans 3", system-ui, sans-serif;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--soft); }
img { max-width: 100%; height: auto; display: block; }
code, kbd, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; }
code { background: var(--wash); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 0; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

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

/* header */
.top { border-bottom: 1px solid var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 22px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* buttons: frames, never a dark fill */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; font-weight: 700; background: var(--paper); }
.btn.main { border-width: 4px; }
.btn:hover { background: var(--wash); color: var(--ink); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.lede { font-size: 22px; color: var(--soft); max-width: 34em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.device { border: 2px solid var(--ink); border-radius: 22px; padding: 14px; background: var(--paper); }
.device img { border: 1px solid var(--line); border-radius: 6px; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; font-weight: 700; color: var(--soft); margin-bottom: 10px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.card { border: 1px solid var(--ink); border-radius: 12px; padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.shots.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
figure { margin: 0; }
.step-shot { max-width: 300px; margin: 16px 0 20px; }
figure img { border: 1px solid var(--ink); border-radius: 8px; }
figcaption { font-size: 15px; color: var(--soft); margin-top: 8px; }

/* requirements */
.req { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.req th, .req td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.req th { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); border-bottom: 2px solid var(--ink); }
.req td:first-child { font-weight: 700; width: 30%; }
.tablebox { overflow-x: auto; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 36px 64px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.steps > li > h3 { margin-top: 4px; }
.steps ol, .steps ul { padding-left: 22px; }
.steps li li { margin-bottom: 6px; }

.note { border: 2px solid var(--ink); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.note strong:first-child { display: block; margin-bottom: 4px; }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; }
.toc ol { margin: 0; padding-left: 22px; }

footer { border-top: 1px solid var(--ink); padding: 32px 0 48px; font-size: 15px; color: var(--soft); }
footer p { margin: 0 0 6px; }

@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero .wrap, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .shots, .shots.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li { padding-left: 56px; }
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  /* The requirements read as cards on a phone: three columns do not fit. */
  .req thead { display: none; }
  .req, .req tbody, .req tr, .req td { display: block; width: 100%; }
  .req tr { border-bottom: 1px solid var(--ink); padding: 12px 0; }
  .req td { border: 0; padding: 4px 0; }
  .req td:first-child { width: 100%; font-size: 20px; }
  .req td:nth-child(3) { color: var(--soft); }
  code { overflow-wrap: anywhere; }
}
