/* neostack.systems: tokens, header and footer, the home page's scenes and the text pages.
   The look is the one of neode.sk and neopbx.org: the same fonts, colours and page edge. */
@font-face {
  font-family: "Funnel Display";
  src: url("/fonts/FunnelDisplay-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --bg: #141616;
  --text: #e4e7e7;
  --muted: #a3abad;
  --rule: #2c3131;
  /* The edge of a control: 3:1 on the background */
  --control: #6a7474;
  /* The shapes of the marks */
  --sq: #58a6ff;
  --ci: #a3e635;
  --ov: #3fd0c4;
  /* The same three as text colours */
  --blue: #58a6ff;
  --lime: #a3e635;
  --teal: #3fd0c4;
  --on-blue: #0c1b1e;
  /* Bulwark's red: its shield, and as text */
  --bw: #db2d54;
  --bw-text: #f4718f;
  --display: "Funnel Display", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  /* The left and right edge of everything: 16 px on a phone, up to 56 px, and a centred
     column of 1400 px on wide screens */
  --edge: max(16px, min(4vw, 56px), calc((100vw - 1400px) / 2));
  --top: 64px;
  color-scheme: dark;
}
.only-light { display: none !important; }
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --text: #1b1e1f;
    --muted: #566064;
    --rule: #dde1e2;
    --control: #7e888b;
    --sq: #1f6feb;
    --ci: #4d8f06;
    --ov: #0f9e96;
    --blue: #1f6feb;
    --lime: #3d7a06;
    --teal: #0b7a74;
    --on-blue: #ffffff;
    --bw-text: #c41f47;
    color-scheme: light;
  }
  .only-dark { display: none !important; }
  .only-light { display: block !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, p, figure, ul, dl, dd, address { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.blue { color: var(--blue); }
.lime { color: var(--lime); }
.teal { color: var(--teal); }
.bw { color: var(--bw-text); }
.sq { fill: var(--sq); }
.ci { fill: var(--ci); }
.ov { fill: var(--ov); }
.bw-fill { fill: var(--bw); }

/* The link that skips the header, shown when it has focus */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
}
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--top);
  padding: 0 var(--edge);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.4;
  --top-hover: color-mix(in srgb, var(--text) 9%, transparent);
}
.top .logo { display: block; flex: none; }
.top .logo img { display: block; width: 124px; height: 28px; }
.top-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 2px; }
.top-nav a, .top-menu-panel a { display: flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-nav a { position: relative; height: 40px; padding: 0 12px; border-radius: 4px; }
.top-nav a:hover { background: var(--top-hover); }
/* The entry the page is under: a blue line on the header's lower edge */
.top-nav a[aria-current]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -12px;
  left: 12px;
  height: 2px;
  background: var(--blue);
}
.top-nav .top-github { height: 36px; margin-left: 6px; padding: 0 11px 0 10px; border: 1px solid var(--control); }
.top-nav .top-github:hover { border-color: var(--text); }
.top-nav .top-lang { margin-left: 17px; color: var(--muted); }
.top-nav .top-lang::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: -9px; width: 1px; background: var(--rule); }
.top-nav .top-lang:hover { color: var(--text); }
.top svg { flex: none; }

/* Narrow screens: the entries go into a menu that opens without scripts */
.top-menu { display: none; flex: none; margin-left: auto; }
.top-menu summary {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--control);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.top-menu summary::-webkit-details-marker { display: none; }
.top-menu[open] summary { border-color: var(--text); }
.top-menu-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 8px var(--edge) 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.top-menu-panel a { min-height: 48px; border-bottom: 1px solid var(--rule); }
.top-menu-panel a:last-child { border-bottom: 0; }
.top-menu-panel a[aria-current] { color: var(--blue); }
.top-menu-panel .top-lang { color: var(--muted); }
@media (max-width: 799px) {
  .top-nav { display: none; }
  .top-menu { display: block; }
}

.page { position: relative; overflow-x: clip; }

/* A scene: text on the left edge, a figure with the shapes of a mark on the right */
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(110px, 15vw, 230px) var(--edge) 0;
}
.copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-size: clamp(42px, 5.8vw, 90px);
  text-wrap: balance;
  /* At this size a word broken by the browser reads as a mistake */
  hyphens: manual;
}
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; max-width: 34ch; }
.body { color: var(--muted); font-size: 18px; max-width: 44ch; }
.product-logo { display: block; height: 40px; width: auto; }

/* Facts under a scene's text: plain rows with a rule between them */
.facts { list-style: none; padding: 0; width: 100%; max-width: 30em; border-top: 1px solid var(--rule); }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (forced-colors: active) {
  .btn, .skip { border: 2px solid ButtonText; }
}
.link-strong { font-weight: 600; text-decoration-color: var(--ci); text-decoration-thickness: 2px; }
.link-strong:hover { text-decoration-thickness: 3px; }

.fig { position: relative; min-width: 0; }
.fig > :not(.deco) { position: relative; z-index: 1; }
.deco {
  position: absolute;
  z-index: 0;
  left: var(--x, 0%);
  top: 50%;
  width: var(--w, 100%);
  aspect-ratio: 1;
  transform: translateY(calc(-50% + var(--dy, 0%)));
  overflow: visible;
  pointer-events: none;
}
.shot { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); }

/* Hero: three product windows lying on each other, in front of the mark's two slabs */
.hero {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding-top: clamp(40px, 6vw, 88px);
  min-height: min(calc(100svh - var(--top)), 960px);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(50px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.048em;
  hyphens: manual;
}
.pile { position: relative; aspect-ratio: 100 / 84; margin-right: calc(var(--edge) * -1 - 6%); }
.pile .deco { --x: 14%; --w: 92%; --dy: -3%; }
.fig.pile > picture { position: absolute; display: block; width: 68%; }
.fig.pile > picture:nth-of-type(1) { left: 30%; top: 4%; }
.fig.pile > picture:nth-of-type(2) { left: 15%; top: 27%; }
.fig.pile > picture:nth-of-type(3) { left: 0; top: 50%; }

/* What all three share: a term and a sentence per row */
.shared { display: block; }
.shared .display { max-width: 12em; }
.shared dl { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule); }
.shared dl > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 8px clamp(40px, 6vw, 96px);
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.shared dt { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.shared dd { color: var(--muted); font-size: 18px; max-width: 40em; }

.closing { padding-bottom: clamp(110px, 15vw, 230px); }

/* Text pages: support, company, imprint, privacy */
.text { padding: clamp(48px, 7vw, 96px) var(--edge) clamp(96px, 12vw, 180px); }
.text > * { max-width: 44rem; }
.text .display { max-width: none; font-size: clamp(42px, 5.4vw, 80px); }
.text .lead { max-width: 38em; margin-top: 24px; }
.text h2 {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.text p, .text ul, .text address { margin-top: 16px; }
.text ul { padding-left: 1.2em; }
.text li { margin-top: 8px; }
.text address { font-style: normal; }
.text a { text-decoration-color: var(--ov); }

/* Footer */
.foot {
  margin-top: 0;
  padding: clamp(40px, 5vw, 64px) var(--edge) clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.foot-about { flex: 1 1 280px; max-width: 30em; }
.foot-about > p:first-child { font-size: 17px; line-height: 1.5; color: var(--text); }
.foot-about > p + p { margin-top: 14px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 32px clamp(32px, 5vw, 72px); }
.foot-label { margin-bottom: 10px; font-size: 14px; }
.foot-group ul { list-style: none; padding: 0; }
.foot-group a { display: block; padding: 5px 0; color: var(--text); font-weight: 500; text-decoration: none; }
.foot-group a:hover { text-decoration: underline; }
.foot .wordmark { display: block; width: 100%; height: auto; margin-top: clamp(56px, 8vw, 120px); fill: var(--rule); }

@media (max-width: 899px) {
  .row, .hero { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .pile { margin-right: -10%; }
  .lead { max-width: 30em; }
  .shared dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .foot-nav { flex: 1 1 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .foot-group a { padding: 9px 0; }
}
