/* lossofseparation.com: the channel's look. Colours are the Halo's (docs/brand.md: Ink, Mist, Steel, Signal);
   the type is the house fonts, IBM Plex Sans and Mono (scenes/house/look.js), served from this site with their
   licences in /fonts/. No other host is ever asked for anything. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0B0F14;     /* Ink: the page */
  --mist: #E7EBEF;    /* Mist: the text */
  --steel: #8190A0;   /* Steel: secondary text */
  --signal: #F0532E;  /* Signal: the one accent */
  --rule: rgba(231, 235, 239, 0.14);
  --panel: rgba(231, 235, 239, 0.04);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--mist); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 "IBM Plex Sans", system-ui, sans-serif; overflow-wrap: break-word; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

header.top { border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--mist); text-decoration: none;
  font-weight: 600; letter-spacing: 0.01em; }
.brand img { display: block; width: 2.25rem; height: 2.25rem; }
nav a { color: var(--steel); text-decoration: none; font-size: 0.9375rem; margin-left: 1.1rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--mist); }

main { padding: 3.5rem 0 3rem; }
.kicker { font: 500 0.8125rem/1.4 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 1rem; }
h1 { font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 1.25rem; }
h2 { font-weight: 600; font-size: 1.3rem; line-height: 1.3; margin: 2.75rem 0 0.75rem; }
h3 { font-weight: 600; font-size: 1.05rem; line-height: 1.35; margin: 1.75rem 0 0.5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }
.lede { font-size: 1.2rem; }
.dim { color: var(--steel); }
a { color: var(--mist); text-decoration: underline; text-decoration-color: var(--signal);
  text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--signal); }
.button { display: inline-block; margin-top: 0.5rem; padding: 0.75rem 1.15rem; border: 1.5px solid var(--signal);
  border-radius: 0.4rem; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--signal); color: var(--ink); }
.card { border: 1px solid var(--rule); background: var(--panel); border-radius: 0.5rem;
  padding: 1.25rem 1.25rem 0.25rem; margin: 2.5rem 0 1.5rem; }
.card > h2:first-child { margin-top: 0; }
code { font: 500 0.9em "IBM Plex Mono", ui-monospace, monospace; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--rule); color: var(--steel); font-size: 0.9375rem; padding: 1.75rem 0 3rem; }
footer p { margin: 0 0 0.4rem; }
footer a { color: var(--steel); }
footer a:hover { color: var(--mist); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (max-width: 30rem) {
  nav a { margin-left: 0.8rem; }
  .brand span { font-size: 0.95rem; }
}
