/* Layout only. Colors, type and space come from tokens.css (copy of design/tokens.css). */

/* Self-hosted fonts (SIL OFL 1.1, see LICENSES/): faster than Google Fonts and no visitor data to Google. */
@font-face { font-family: 'Space Grotesk'; font-weight: 400 700; font-display: swap; src: url(/fonts/space-grotesk-latin.woff2) format('woff2'); 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: 'Space Grotesk'; font-weight: 400 700; font-display: swap; src: url(/fonts/space-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); 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: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--kora-bg);
  color: var(--kora-text);
  font: 400 var(--kora-fs-body)/var(--kora-lh) var(--kora-font);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; transition: color var(--kora-ease), background-color var(--kora-ease); }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: var(--kora-lh-tight); letter-spacing: -0.02em; text-wrap: balance; }

/* Scale: display, h1, h2, lead, body, small, label. */
h1 { font-size: var(--kora-fs-display); }
h2 { font-size: var(--kora-fs-h1); }
h3 { font-size: var(--kora-fs-h2); }
.lead { font-size: var(--kora-fs-lead); color: var(--kora-text-muted); max-width: var(--kora-measure); }
.label { font: 400 var(--kora-fs-label)/var(--kora-lh) var(--kora-font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--kora-text-muted); }
footer { font-size: var(--kora-fs-small); color: var(--kora-text-muted); }

/* Space: one idea per screen, empty space instead of lines. */
.wrap { max-width: calc(var(--kora-max) + 2 * var(--kora-gutter)); margin-inline: auto; padding-inline: var(--kora-gutter); }
section { padding-block: var(--kora-section); }
section > * + *, .text > * + * { margin-top: var(--kora-stack); }
.label + h2 { margin-top: var(--kora-s2); }
.actions, .contacts, .features, .layers { margin-top: var(--kora-s6); }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: var(--kora-s3); }
/* Wraps below the logo only on very narrow screens, so no item is ever cut off. */
.top { flex-wrap: wrap; gap: var(--kora-s2); }
.top nav { display: flex; gap: var(--kora-s6); font-size: var(--kora-fs-small); }
.top a { text-decoration: none; }
.top nav a:is(:hover, :focus-visible) { color: var(--kora-green); }
.lang, .lang a { color: var(--kora-text-muted); }
.lang a[aria-current] { color: var(--kora-text); }

.hero, .center, .contact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero, .center { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--kora-s12); align-items: center; }
.split > * { margin-top: 0; }
.flip > :first-child { order: 2; }
.split > img { justify-self: center; max-height: 70vh; width: auto; border-radius: var(--kora-radius); }
/* Stratus clip: a wider column keeps the product large. */
.wide { grid-template-columns: 3fr 2fr; }
.clip { position: relative; }
.spec { color: var(--kora-text); }
.spec span { white-space: nowrap; }
.clip video { display: block; width: 100%; height: auto; border-radius: var(--kora-radius); }
.pause {
  position: absolute; right: var(--kora-s2); bottom: var(--kora-s2); padding: var(--kora-s1) var(--kora-s2);
  border: 0; border-radius: var(--kora-radius); cursor: pointer;
  background: color-mix(in srgb, var(--kora-bg) 60%, transparent); color: var(--kora-text);
}
.pause:is(:hover, :focus-visible) { color: var(--kora-green); }

.btn {
  display: inline-block; padding: var(--kora-s2) var(--kora-s4); border-radius: var(--kora-radius);
  background: var(--kora-green); color: var(--kora-on-green); font-weight: 700; text-decoration: none;
}
.btn:is(:hover, :focus-visible) { background: var(--kora-green-dim); }
:focus-visible { outline: 2px solid var(--kora-green); outline-offset: 4px; }

.features { list-style: none; padding: 0; max-width: var(--kora-measure); }
.features li { padding-block: var(--kora-s2); border-top: 1px solid var(--kora-line); }
.features li:last-child { border-bottom: 1px solid var(--kora-line); }

.layers { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--kora-s4) var(--kora-s6); }
.layers li { display: flex; align-items: center; gap: var(--kora-s2); font-weight: 500; text-align: left; }
/* In-house section: the layers in one row, icons in white so the section stands out. */
.inhouse .layers { grid-template-columns: repeat(4, auto); justify-content: center; gap: var(--kora-s4) var(--kora-s8); }
.inhouse .icon { stroke: var(--kora-text); }
.icon { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--kora-text-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Contact: each link says what it does (mail or site) under a small label. */
.contact .note { margin-top: var(--kora-s2); }
.contacts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--kora-s4) var(--kora-s12); }
.contacts li { display: flex; flex-direction: column; align-items: center; gap: var(--kora-s1); }
.actions a:not(.btn), .contacts a { text-decoration-color: var(--kora-text-muted); text-underline-offset: 4px; }
.actions a:not(.btn):is(:hover, :focus-visible), .contacts a:is(:hover, :focus-visible) { color: var(--kora-green); }

footer { display: flex; flex-wrap: wrap; gap: var(--kora-s1) var(--kora-s4); padding-block: var(--kora-s12) var(--kora-s8); }
footer a { text-decoration: none; }
footer a:is(:hover, :focus-visible) { color: var(--kora-green); }

@media (min-width: 761px) {
  /* About 80vh; keeps the next headline below the fold of a section-aligned screen at any height. */
  .hero, .split, .center { min-height: calc(100vh - var(--kora-section)); }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: var(--kora-s8); }
  .flip > :first-child { order: 0; }
  .split > img { width: 100%; max-height: none; }
  .layers, .inhouse .layers { grid-template-columns: auto auto; gap: var(--kora-s3) var(--kora-s6); }
}
