/*
 * nimaltd.com: the Blueprint look. Dark by default, with a light
 * theme on the same tokens. No build step: edit this file and push.
 */

:root {
  --bg: #071226;
  --panel: rgba(12, 28, 56, .78);
  --panel-solid: #0c1c38;
  --raise: rgba(56, 189, 248, .08);
  --line: rgba(125, 211, 252, .14);
  --line-2: rgba(125, 211, 252, .30);
  --grid-big: rgba(125, 211, 252, .10);
  --grid-small: rgba(125, 211, 252, .045);
  --glow-1: rgba(56, 189, 248, .18);
  --glow-2: rgba(245, 158, 11, .07);
  --ink: #e8f1ff;
  --muted: #9db2cf;
  --accent: #38bdf8;
  --amber: #f59e0b;
  --amber-hover: #fbbf24;
  --on-amber: #1a1205;
  --ok: #34d399;
  --comment: #7088ad;
  --nav-bg: rgba(7, 18, 38, .82);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --menu-shadow: 0 14px 34px rgba(0, 0, 0, .35);

  --head: "Outfit", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Fira Code", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 12px;
  --wrap: 1160px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f7fc;
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: #ffffff;
  --raise: rgba(3, 105, 161, .07);
  --line: rgba(30, 64, 175, .12);
  --line-2: rgba(30, 64, 175, .24);
  --grid-big: rgba(37, 99, 235, .10);
  --grid-small: rgba(37, 99, 235, .045);
  --glow-1: rgba(56, 189, 248, .22);
  --glow-2: rgba(245, 158, 11, .10);
  --ink: #0b1b33;
  --muted: #475a76;
  --accent: #0369a1;
  --amber: #f59e0b;
  --amber-hover: #fbbf24;
  --on-amber: #1a1205;
  --ok: #047857;
  --comment: #64748b;
  --nav-bg: rgba(243, 247, 252, .86);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --menu-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  color-scheme: light;
}

/* ------------------------------------------------------------------------ */
/* Base                                                                     */
/* ------------------------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -8%, var(--glow-1), transparent 62%),
    radial-gradient(700px 420px at -12% 28%, var(--glow-2), transparent 60%),
    linear-gradient(var(--grid-big) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-big) 1px, transparent 1px),
    linear-gradient(var(--grid-small) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-small) 1px, transparent 1px);
  background-size: auto, auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-attachment: fixed;
  /* A short page, as one still to come, keeps its footer at the bottom. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
/* The Faravahar on a circuit board, from faravahar.svg, faint behind every page with its edges fading out.
   It stays in place as the page scrolls: in the middle of a short window, behind the home page's title in a
   tall one, and under all of the page as long as no box it is in has a z-index, a transform or a filter.
   Never much wider than the screen, so a phone shows it whole. */
.faravahar {
  position: fixed; z-index: -1; left: 50%; top: min(420px, 50%); width: min(1500px, 106vw); transform: translate(-50%, -50%);
  color: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; font-family: var(--mono);
  opacity: .1; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
  mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
:root[data-theme="light"] .faravahar { opacity: .126; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font: .9em var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(56, 189, 248, .3); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--amber); color: var(--on-amber); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------------ */
/* Buttons                                                                  */
/* ------------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.ghost:hover { background: var(--raise); border-color: var(--accent); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.btn.amber:hover { background: var(--amber-hover); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--raise); border-color: var(--accent); }

/* ------------------------------------------------------------------------ */
/* Navigation                                                               */
/* ------------------------------------------------------------------------ */

.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 32px; height: 32px; flex: none; color: var(--accent); transition: transform .2s ease; }
.mark-pins { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mark-body { fill: none; stroke: currentColor; stroke-width: 2; }
.mark-die { fill: currentColor; }
.mark-n { fill: none; stroke: var(--bg); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.logo:hover .mark { transform: rotate(90deg); }
.word { font: 700 22px/1 var(--head); letter-spacing: -.01em; }
.word em { font-style: normal; color: var(--accent); }
/* The menu, at the left beside the logo: Products opens the list of them. */
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 12px; }
.nav-links a, .menu-products summary { font: 500 13px var(--mono); color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; padding: 8px 0; }
.nav-links a:hover, .menu-products summary:hover, .nav-links a[aria-current], .menu-products.current summary { color: var(--accent); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-products { position: relative; }
.menu-products summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.menu-products summary::-webkit-details-marker { display: none; }
.menu-products summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.menu-products[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.menu-products-list { position: absolute; top: calc(100% + 16px); left: -14px; z-index: 30; width: 330px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-solid); box-shadow: var(--menu-shadow); }
.nav-links .menu-products-list a { display: block; padding: 10px 12px; border-radius: 8px; text-transform: none; letter-spacing: 0; }
.nav-links .menu-products-list a:hover, .nav-links .menu-products-list a[aria-current] { background: var(--raise); }
.menu-products-list b { display: flex; align-items: center; gap: 8px; font: 600 16px var(--head); color: var(--ink); }
.menu-products-list span { display: block; margin-top: 2px; font: 13.5px/1.4 var(--sans); color: var(--muted); }
.soon { padding: 1px 8px; border: 1px solid var(--amber); border-radius: 999px; font: 500 10.5px/1.6 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
:root[data-theme="light"] .soon { color: #b45309; border-color: #b45309; }
.menu-btn { display: none; }
.ico-sun { display: none; }
:root[data-theme="light"] .ico-sun { display: block; }
:root[data-theme="light"] .ico-moon { display: none; }

/* ------------------------------------------------------------------------ */
/* Hero                                                                     */
/* ------------------------------------------------------------------------ */

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 88px; padding-bottom: 72px; scroll-margin-top: 80px; }
.hero-text { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.news {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font-size: 14px; text-align: left; text-decoration: none; transition: border-color .15s ease;
}
.news:hover { border-color: var(--accent); }
.news b { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font: 600 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.news .ico { width: 16px; height: 16px; color: var(--accent); }
.who div { text-align: left; }
.who { display: flex; align-items: center; gap: 16px; }
.who img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 50%; padding: 3px; border: 2px solid var(--accent); background: var(--bg); }
.who b { display: block; font: 600 20px/1.2 var(--head); }
.who span { display: block; margin-top: 4px; font: 500 12px var(--mono); color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
h1 { font: 700 clamp(38px, 5.4vw, 60px)/1.04 var(--head); letter-spacing: -.02em; margin: 18px 0 20px; text-wrap: balance; }
h1 span { color: var(--accent); }
/* A name kept on one line keeps the title's own color. */
h1 span.nw { color: inherit; }
.lead { margin: 0 auto; max-width: 38em; font-size: 18px; color: var(--muted); text-wrap: balance; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .ctas { justify-content: center; }
/* A product's own page: its name and what it is, then its sections. */
.page-hero { padding-top: 64px; padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 54px); }
span.news { cursor: default; }
span.news:hover { border-color: var(--line-2); }

.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 40px auto 0; width: 100%; max-width: 380px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.meta div { padding: 14px 20px; display: flex; flex-direction: column-reverse; }
.meta div + div { border-left: 1px solid var(--line-2); }
.meta dt { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.meta dd { margin: 0; font: 600 26px/1.3 var(--head); font-variant-numeric: tabular-nums; }

.board { position: relative; margin: 0; padding: 26px 22px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.board figcaption { position: absolute; top: -10px; left: 18px; padding: 0 8px; background: var(--bg); color: var(--accent); font: 500 11px var(--mono); letter-spacing: .1em; }
/* No code box ever scrolls sideways: at a width where a line does not fit, it wraps. */
.board pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.75 var(--mono); color: var(--ink); }
.p, .k { color: var(--ok); }
.g { color: var(--amber); }
:root[data-theme="light"] .g { color: #b45309; }
.c { color: var(--comment); }

/* ------------------------------------------------------------------------ */
/* Sections                                                                 */
/* ------------------------------------------------------------------------ */

.sect { padding-top: 56px; padding-bottom: 56px; scroll-margin-top: 72px; }
.shead { display: flex; align-items: baseline; gap: 16px; }
.shead .n { font: 500 13px var(--mono); color: var(--amber); }
:root[data-theme="light"] .shead .n { color: #b45309; }
h2 { margin: 0; font: 700 clamp(26px, 3.4vw, 34px)/1.2 var(--head); letter-spacing: -.01em; }
.sub { margin: 10px 0 28px; max-width: 46em; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.links a { font: 500 14px var(--mono); color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.links a:hover { border-bottom-color: currentColor; }
.sub + .top-links { margin: -14px 0 28px; }

.cmd { position: relative; align-self: start; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.cmd pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.9 var(--mono); }
/* A long first line ends before the copy button rather than under it. */
.cmd .copy + pre { padding-right: 44px; }
/* Code shows the characters typed: Fira Code would draw the x of 0x2000 as a times sign, and -> as an
   arrow. After the rules above, as their font shorthand turns the ligatures on again. */
code, .cmd pre, .board pre { font-variant-ligatures: none; }
/* A command breaks only between words, never inside one at a hyphen. */
.nw { white-space: nowrap; }
.cmd-note { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; }

.copy {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--muted); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.copy .ico { width: 16px; height: 16px; }

.features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.features .ico { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.features b { display: block; font: 600 16px var(--head); }
.features span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* terNIMA */
.tn { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
/* The screenshots lie on one another, and the one shown fades in. */
.slides { position: relative; aspect-ratio: 1200 / 760; background: #0d1117; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; }
.slide.on { opacity: 1; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 10px 8px 16px; border-top: 1px solid var(--line); font: 13px var(--mono); color: var(--muted); }
.slide-caption { min-width: 0; }
.slide-tools { display: flex; align-items: center; gap: 2px; }
.slide-tools:empty { display: none; }
.slide-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.slide-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .15s ease, transform .15s ease; }
.slide-dot:hover::before { background: var(--muted); }
.slide-dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.3); }
.slide-pause { display: grid; place-items: center; width: 28px; height: 28px; margin-left: 6px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.slide-pause:hover { color: var(--accent); border-color: var(--accent); }
.slide-pause .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.get { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.get-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.get h3 { margin: 0; font: 600 21px var(--head); }
.get > p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.os { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.os li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.os li.mine { border-color: var(--accent); }
.os b { display: block; font: 600 16px var(--head); }
.os .mine b::after { content: "this computer"; margin-left: 10px; font: 500 11px var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.os span { display: block; font-size: 13.5px; color: var(--muted); }
.os-files { display: flex; flex-wrap: wrap; gap: 6px; }
.unsigned { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.unsigned summary { min-height: 32px; cursor: pointer; color: var(--ink); font-weight: 600; }
.unsigned ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.unsigned b, .unsigned code { color: var(--ink); }
.get .links { margin-top: 14px; }
.tn + .features { margin-top: 16px; }

/* Products, on the home page: a card each, the ones still to come dashed. */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.product:hover { border-color: var(--accent); transform: translateY(-2px); }
.product.later { border-style: dashed; background: transparent; box-shadow: none; }
.product-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); color: var(--accent); }
.product-icon .ico { width: 22px; height: 22px; }
.product h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; font: 600 23px var(--head); }
.product p { margin: 8px 0 18px; font-size: 15px; color: var(--muted); }
.product .next-go { margin-top: auto; }
.tag { padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px var(--mono); color: var(--muted); }
#libraries .ctas { margin-top: 0; }
.get { scroll-margin-top: 84px; }

/* Libraries */
.libs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lib { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.lib:hover { border-color: var(--accent); transform: translateY(-2px); }
.lib h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font: 600 21px var(--head); }
.lib h3 a { text-decoration: none; }
.lib h3 a:hover { color: var(--accent); }
.lib.next { border-style: dashed; text-decoration: none; justify-content: center; background: transparent; box-shadow: none; }
.lib.next code { color: var(--ink); }
.next-go { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--mono); color: var(--accent); }
.stars { display: inline-flex; align-items: center; gap: 5px; font: 500 13px var(--mono); color: var(--amber); }
:root[data-theme="light"] .stars { color: #b45309; }
.stars .ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars:has(span:empty) { display: none; }
.lib p { margin: 8px 0 14px; font-size: 15px; color: var(--muted); }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 12px var(--mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.line-cmd { position: relative; margin-top: auto; padding: 10px 52px 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); overflow-wrap: anywhere; }
.line-cmd code { font-size: 12.5px; color: var(--ok); }
.line-cmd .copy { top: 50%; right: 6px; width: 32px; height: 32px; transform: translateY(-50%); }

.more-title { margin: 44px 0 14px; font: 600 18px var(--head); }
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.more a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; transition: border-color .15s ease; }
.more a:hover { border-color: var(--accent); }
.more b { font: 600 15px var(--mono); }
.more span { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.more em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 13px var(--mono); font-style: normal; color: var(--amber); }
:root[data-theme="light"] .more em { color: #b45309; }
.more em::before { content: "\2605  "; }
.all { margin: 22px 0 0; }

/* Your library */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 24px; }
.split-text p { margin: 0 0 14px; color: var(--muted); }
.split-text code { color: var(--ink); }
.docs { margin-top: 22px !important; color: var(--ink) !important; font-weight: 600; }
.doc-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-links a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 13px var(--mono); color: var(--accent); text-decoration: none; }
.doc-links a:hover { background: var(--raise); }

/* About and support */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.me, .give { padding: 28px; border-radius: var(--radius); background: var(--panel); }
.me { display: flex; gap: 22px; border: 1px solid var(--line-2); }
.me img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.me h3, .give h3 { margin: 0 0 6px; font: 600 21px var(--head); }
.me p, .give p { margin: 0; color: var(--muted); }
.facts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.facts li { position: relative; padding-left: 18px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--amber); border-radius: 1px; }
.give { border: 1px dashed var(--line-2); }
.give .ctas { margin-top: 20px; }
.social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.social a:hover { color: var(--accent); border-color: var(--accent); }

.foot { border-top: 1px solid var(--line); margin-top: 24px; background: var(--nav-bg); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; font: 13px var(--mono); color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 8px; background: var(--panel-solid); border: 1px solid var(--ok); color: var(--ink); font: 500 14px var(--sans); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------------ */
/* Help pages                                                               */
/* ------------------------------------------------------------------------ */

/* What is on the page, at the left, in view while the text beside it scrolls. */
.help { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; padding-bottom: 56px; }
.help-toc { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; }
.help-toc b { display: block; margin-bottom: 10px; font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.help-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.help-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.help-toc a:hover { color: var(--ink); }
.help-toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); }

.help-body { max-width: 800px; }
.help-body section { padding-bottom: 44px; scroll-margin-top: 84px; }
.help-body section + section { padding-top: 44px; border-top: 1px solid var(--line); }
.help-body h2 { margin-bottom: 16px; }
.help-body h3 { margin: 28px 0 8px; font: 600 19px/1.3 var(--head); }
.help-body p, .help-body li { line-height: 1.7; }
.help-body ul, .help-body ol { padding-left: 22px; }
.help-body li + li { margin-top: 6px; }
.help-body li::marker { color: var(--accent); }
.help-body .cmd { margin: 18px 0; }
/* What a command printed, under it. */
.cmd .out { color: var(--muted); }
.help-body figure { margin: 26px 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.help-body figure img { display: block; width: 100%; height: auto; }
.help-body figcaption { padding: 9px 16px; border-top: 1px solid var(--line); font: 13px var(--mono); color: var(--muted); }
.help-body table { width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 15px; }
.help-body th, .help-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.help-body th { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.note { margin: 20px 0; padding: 14px 18px; border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: 10px; background: var(--panel); }
.note p { margin: 0; }
kbd { display: inline-block; min-width: 1.7em; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-solid); font: 500 .8em/1.6 var(--mono); font-variant-ligatures: none; color: var(--ink); text-align: center; white-space: nowrap; }

/* ------------------------------------------------------------------------ */
/* Smaller screens                                                          */
/* ------------------------------------------------------------------------ */

@media (max-width: 1140px) {
  .libs, .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .features, .libs, .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .split, .about { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .menu-btn { display: inline-grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    margin-left: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line-2);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .menu-products summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
  /* Products opens in place, under its name. */
  .menu-products-list { position: static; width: auto; margin: 4px 0 6px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav-tools .btn span { display: none; }
  .page-hero { padding-top: 40px; padding-bottom: 8px; }
  /* The contents of a help page go above its text, in two columns. */
  .help { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 8px; }
  .help-toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
  .help-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .help-toc li { break-inside: avoid; }
  .help-toc a { margin-left: 0; padding: 5px 0; border-left: 0; }
}

@media (max-width: 800px) {
  .libs, .product-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .sect { padding-top: 40px; padding-bottom: 40px; }
  .hero { padding-bottom: 24px; }
  /* The Faravahar is small on a phone: bolder lines, and less of it fading out, so it still shows. */
  .faravahar {
    stroke-width: 2.6;
    -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent);
    mask-image: radial-gradient(closest-side, #000 78%, transparent);
  }
  .features, .libs, .more { grid-template-columns: minmax(0, 1fr); }
  .cmd pre, .board pre { font-size: 12.5px; }
  .cmd { padding: 14px; }
  /* Floated, so only the lines beside it make room for it. */
  .cmd .copy { position: static; float: right; margin: 0 0 6px 10px; width: 34px; height: 34px; }
  .cmd .copy + pre { padding-right: 0; }
  .lib { padding: 18px; }
  .get { padding: 18px; }
  .os li { padding: 12px; }
  .news { margin-bottom: 22px; font-size: 13px; }
  .meta div { padding: 12px 14px; }
  .meta dd { font-size: 21px; }
  .me { flex-direction: column; }
  .help-toc a { font-size: 13.5px; }
  .help-body section { padding-bottom: 32px; }
  .help-body section + section { padding-top: 32px; }
  .help-body table { font-size: 14px; }
  .help-body th, .help-body td { padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .lib:hover, .product:hover { transform: none; }
}

/* Narrower than any whole word: then a word may break too. */
@media (max-width: 360px) {
  .nw { white-space: normal; }
}
