/* sshmount.com — one stylesheet, no external requests.
   The CSP on this site allows no third-party origins at all, so there are no
   web fonts and no icon sets. Everything below uses fonts the machine already
   has. */

:root {
  --ink: #16181d;
  --ink-soft: #4a4f59;
  --ink-faint: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-code: #f2f3f5;
  --rule: #e2e5ea;
  --link: #0b5fbf;
  --link-hover: #073e7d;
  --warn-bg: #fff8e6;
  --warn-rule: #e0b44a;
  --measure: 42rem;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e8ec;
    --ink-soft: #b3b9c4;
    --ink-faint: #8a919e;
    --bg: #14161a;
    --bg-soft: #1c1f25;
    --bg-code: #1f232a;
    --rule: #2c313a;
    --link: #6fb0ff;
    --link-hover: #9ccaff;
    --warn-bg: #2a2415;
    --warn-rule: #7a6224;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

/* Keyboard users get to skip the masthead. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

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

/* ---- masthead ---- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  margin-bottom: 2.5rem;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.brand {
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--link); }
.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9rem;
}
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--link); text-decoration: underline; }

/* ---- breadcrumb ---- */

.crumbs {
  font-size: .85rem;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }
.crumbs a { color: var(--ink-faint); }

/* ---- type ---- */

h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 2.75rem 0 .85rem;
}
h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 2rem 0 .6rem;
}
p { margin: 0 0 1.15rem; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

.standfirst {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.byline {
  font-size: .85rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}
.byline a { color: var(--ink-faint); }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li { margin-bottom: .4rem; }

code {
  font: .875em/1.5 var(--mono);
  background: var(--bg-code);
  padding: .12em .35em;
  border-radius: 3px;
  word-break: break-word;
}
pre {
  background: var(--bg-code);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: .9rem 1rem;
  overflow-x: auto;
  margin: 0 0 1.15rem;
}
pre code { background: none; padding: 0; font-size: .84rem; }

blockquote {
  margin: 0 0 1.15rem;
  padding: .1rem 0 .1rem 1rem;
  border-left: 3px solid var(--rule);
  color: var(--ink-soft);
}

/* ---- tables ---- */

.scroll-x {
  overflow-x: auto;
  margin: 0 0 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--rule);
}
th { font-weight: 620; background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: 0; }

/* ---- callouts ---- */

.note {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
  font-size: .93rem;
}
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 640; }

.disclosure {
  background: var(--warn-bg);
  border: 1px solid var(--warn-rule);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.75rem;
  font-size: .9rem;
}
.disclosure p:last-child { margin-bottom: 0; }

/* ---- card lists ---- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}
.cards li {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
}
.cards h3 { margin: 0 0 .35rem; font-size: 1rem; }
.cards p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---- table of contents ---- */

.toc {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 0 0 2rem;
  background: var(--bg-soft);
  font-size: .92rem;
}
.toc h2 {
  margin: 0 0 .6rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }

/* ---- sources ---- */

.sources {
  font-size: .89rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 3rem;
}
.sources h2 { margin-top: 0; font-size: 1.05rem; }
.sources ol { padding-left: 1.3rem; }
.sources li { margin-bottom: .55rem; color: var(--ink-soft); }

/* ---- footer ---- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.foot .cols {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.75rem;
}
@media (min-width: 40rem) {
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
}
.foot h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
  margin: 0 0 .6rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { color: var(--ink-soft); }
.foot .owner {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  color: var(--ink-faint);
}
.foot .owner p { margin-bottom: .5rem; }
.foot .owner p:last-child { margin-bottom: 0; }

/* ---- misc ---- */

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

img { max-width: 100%; height: auto; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------------------------------------------- Mac App Store badge + CTA */
/* Same artwork and the same two colour variants as sshmount.it, so the two
   properties present one product rather than two lookalikes. */
:root { --badge-bg:#000; --badge-ink:#fff; --badge-edge:#000; }
@media (prefers-color-scheme: dark) {
  :root { --badge-bg:#fff; --badge-ink:#000; --badge-edge:#a6a6a6; }
}

.badge-mas { display:inline-block; line-height:0; border-radius:10px; transition:opacity .15s, transform .15s; }
.badge-mas svg { display:block; height:52px; width:auto; }
.badge-mas:hover { opacity:.88; }
.badge-mas:active { transform:translateY(1px); }

/* compact variant for the masthead */
.masthead .badge-mas--compact { flex:0 0 auto; margin-left:auto; }
.masthead .badge-mas--compact svg { height:38px; }
@media (max-width: 860px) { .masthead .badge-mas--compact { display:none; } }

/* end-of-article call to action */
.product-cta {
  margin: 2.5rem 0 0; padding: clamp(1.2rem, 3vw, 1.9rem);
  border: 1px solid var(--accent, #0a5fd6); border-radius: 14px;
  background: color-mix(in srgb, var(--accent, #0a5fd6) 7%, transparent);
}
.product-cta h2 { margin: 0 0 .6rem; font-size: 1.18rem; line-height: 1.3; }
.product-cta p { margin: 0 0 1rem; font-size: .96rem; }
.product-cta .product-cta-note { margin: .9rem 0 0; font-size: .85rem; opacity: .8; }
