/* konium.app's website: the app's colours (its dark green, the gold of its K), dark or light as the
   system is set, and its typeface,
   IBM Plex Sans Condensed, served from here (assets/fonts, SIL Open Font License: OFL.txt). */
@font-face { font-family: 'Plex Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-condensed-400.woff2) format('woff2'); }
@font-face { font-family: 'Plex Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-condensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Plex Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plex-condensed-600.woff2) format('woff2'); }

:root {
  --bg: #0f1a17;
  --bg2: #13201d;
  --panel: #182a25;
  --line: #27413a;
  --text: #e6eae3;
  --strong: #f3f6f1;
  --muted: #9aa59e;
  --gold: #d2b04c;
  --gold-hi: #f6d47a;
  --gold-lo: #d4972a;
  --green: #186553;
  --code: #0a1411;
  --head: rgba(15, 26, 23, 0.93);
  --glow: rgba(24, 101, 83, 0.35);
  --dots: rgba(230, 234, 227, 0.06);
  --shadow: rgba(0, 0, 0, 0.45);
  --link: var(--gold-hi);
  --link-hover: #fff1c4;
  --pad: var(--gold);
  color-scheme: dark;
}
/* Light, when the system is set to light: the same green and gold on paper */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8f5;
    --bg2: #eef1ec;
    --panel: #ffffff;
    --line: #d5ddd7;
    --text: #1f2a26;
    --strong: #0f1a17;
    --muted: #5c6863;
    --code: #eef1ec;
    --head: rgba(247, 248, 245, 0.93);
    --glow: rgba(24, 101, 83, 0.14);
    --dots: rgba(15, 26, 23, 0.07);
    --shadow: rgba(15, 26, 23, 0.16);
    --link: #12614f;
    --link-hover: #0a3f33;
    --pad: #c08a1e;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 'Plex Condensed', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { color: var(--strong); line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; }
h1 { font-size: 52px; margin: 0 0 16px; }
h2 { font-size: 30px; margin: 0 0 14px; }
h3 { font-size: 21px; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
code { font: 0.86em/1.5 ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace; background: var(--code); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
code.hash { word-break: break-all; display: inline-block; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow > *, .narrow-p, .narrow-h { max-width: 780px; }
.wrap.narrow > .table-wrap { max-width: 980px; }
.muted, .sep { color: var(--muted); }
.fine { color: var(--muted); font-size: 15px; }
.fine + .fine { margin-top: -8px; }
.lead { font-size: 21px; color: var(--text); max-width: 64ch; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--head); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); text-decoration: none; font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 17px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--strong); border-bottom-color: var(--pad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--strong); text-decoration: none; font: 500 17px/1.3 inherit; font-family: inherit; cursor: pointer; }
.btn:hover { border-color: var(--pad); color: var(--strong); }
.btn.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); color: #1b1606; border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); color: #1b1606; }
.btn.small { padding: 6px 14px; font-size: 15px; white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

/* Sections */
main section { padding: 64px 0; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding: 56px 0 24px; }
.page-head + section { padding-top: 24px; }
.hero { padding: 72px 0 56px; background:
  radial-gradient(1000px 420px at 85% 0%, var(--glow), transparent 70%),
  radial-gradient(circle, var(--dots) 1px, transparent 1.5px) 0 0 / 24px 24px; }
.hero-text { max-width: 820px; margin-bottom: 44px; }
.hero h1 { font-size: 64px; }
/* Free, said where it is seen first (26.205) */
.hero-free { margin: -4px 0 18px; font-size: 18px; color: var(--text); }
.hero-free strong { display: inline-block; margin-right: 10px; padding: 2px 14px; border-radius: 999px; background: var(--gold); color: #13201d; font-weight: 700; letter-spacing: 0.02em; }
.hero-free a { white-space: nowrap; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Screenshots */
figure.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); box-shadow: 0 24px 64px var(--shadow); }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.hero-shot img { border-radius: 10px; }
/* A picture the browser could not show: a note in its place, not its description as text (the page's script marks it) */
.shot.unseen img { display: none; }
.shot.unseen::before { content: 'This picture is a WebP image, which this browser cannot show.'; display: block; padding: 28px 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 15px; }

/* Lists: a solder pad for a bullet */
ul.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.ticks li::before { content: ''; position: absolute; left: 3px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; border: 2.5px solid var(--pad); }
ul.ticks.cols { columns: 2; column-gap: 40px; }
ul.ticks.cols li { break-inside: avoid; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { color: var(--strong); font-weight: 600; white-space: nowrap; }
table.ways td:nth-child(2) { white-space: nowrap; }
table.formats tbody th, table.conn tbody th { white-space: normal; min-width: 120px; }
table.conn { font-size: 15px; }
table.conn td { min-width: 150px; }

/* Features */
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--link); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .shot img { box-shadow: 0 16px 48px var(--shadow); }

/* What's New */
.release + .release { border-top: 1px solid var(--line); }
.release h2 .ver { color: var(--pad); margin-right: 8px; font-variant-numeric: tabular-nums; }
.release .fine code { font-size: 12px; }
ul.items { padding-left: 20px; margin: 18px 0 0; }
ul.items li { margin-bottom: 18px; }
ul.items li::marker { color: var(--pad); }
ul.items .shot { margin: 14px 0 6px; }
ul.items .shot img { box-shadow: none; }

/* Questions */
.wrap.narrow > .qa { max-width: none; }
.qa { padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa > h2, .qa > p { max-width: 780px; }
.qa:first-child { padding-top: 0; }
.qa h2 { font-size: 24px; }
/* The questions asked with an edge: their answers stand out from the rest, which only inform */
.qa.blunt { padding: 26px 0 26px 22px; border-left: 4px solid var(--gold, #bf9339); }
.qa.blunt:first-child { padding-top: 4px; }
.qa.blunt h2 { font-size: 27px; }
.qa.blunt > p:first-of-type { font-size: 1.08em; }

/* Guides */
.crumbs { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.guide-head h1 { font-size: 44px; }
.guide h2 { margin-top: 48px; }
.guide h2:first-child { margin-top: 0; }
.guide strong { color: var(--strong); font-weight: 600; }
.guide .shot { margin: 34px 0 8px; }
.guide .shot img { box-shadow: 0 16px 48px var(--shadow); }
.guide .shot.dialog { margin: 22px 0 22px; }
.guide .shot.dialog img { max-width: 560px; }
/* Steps: a numbered pad for each */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; }
ol.steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 12px; min-height: 28px; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pad); color: var(--strong); font-size: 14px; font-weight: 600; line-height: 24px; text-align: center; }
ul.guides { list-style: none; padding: 0; margin: 0 0 18px; }
ul.guides li { padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.guides li:first-child { padding-top: 4px; }
ul.guides a { font-size: 21px; font-weight: 600; text-decoration: none; }
ul.guides a:hover { text-decoration: underline; }
ul.guides p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* Contact */
form.contact { max-width: 620px; margin-top: 22px; }
form.contact label { display: block; margin-bottom: 16px; font-weight: 500; }
form.contact input, form.contact select, form.contact textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--code); color: var(--text); font: 400 17px/1.4 inherit; font-family: inherit; }
form.contact textarea { resize: vertical; }
form.contact .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
.foot-row { display: grid; gap: 4px; }
.foot a { color: var(--muted); margin-right: 18px; }
.foot a:hover { color: var(--link); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .top-row { gap: 16px; }
  .brand span { display: none; }
  h1, .hero h1 { font-size: 40px; }
  .guide-head h1 { font-size: 32px; }
  .guide h2 { margin-top: 36px; }
  h2 { font-size: 26px; }
  .lead { font-size: 19px; }
  main section { padding: 44px 0; }
  .hero { padding: 44px 0 36px; }
  ul.ticks.cols { columns: 1; }
}
