/* Kannegieter Software, day one page. Brand v2.0 website tokens, dark theme leads.
   Layout: a floating bar with the lockup over a hero on the vertical hairline grid,
   a two tone Spectral headline, the contact action, a mono capability line and a
   thin facts band. The content block is a centred 1280px column. */

@font-face { font-family: Spectral; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("/fonts/ibm-plex-sans-variable.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/fonts/jetbrains-mono-variable.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/barlow-semi-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

:root {
  /* dark theme, the lead */
  --k-surface: #000D20;
  --k-surface-alt: #051733;
  --k-tint: #0A2143;
  --k-bar: #051733;
  --k-ink: #F1F4F8;
  --k-text: #C9D2D9;
  --k-muted: #9AA9BA;
  --k-tone2: #6B84A3;
  --k-eyebrow: #8DA2B5;
  --k-accent: #6E9FEA;
  --k-action: #1160D4;
  --k-action-hover: #08449B;
  --k-link: #6E9FEA;
  --k-link-hover: #ACC6EC;
  --k-rule-strong: #2A4670;
  --k-hair: rgba(172, 198, 236, 0.16);
  --k-hairsoft: rgba(172, 198, 236, 0.05);
  --k-lockup-2: #ACC6EC;
  --k-logo-filter: brightness(0) invert(1);
  --k-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  color-scheme: dark;

  --font-display: Spectral, Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-logo: "Barlow Semi Condensed", system-ui, sans-serif;

  --gutter: clamp(16px, 5.5vw, 80px);
  --radius-sm: 4px;
  --radius-lg: 16px;
  --motion-fast: 120ms;
}
:root[data-theme="light"] {
  --k-surface: #FFFFFF;
  --k-surface-alt: #F7F8FA;
  --k-tint: #F1F4F8;
  --k-bar: #FFFFFF;
  --k-ink: #021B41;
  --k-text: #333A45;
  --k-muted: #4B5563;
  --k-tone2: #7D8EA3;
  --k-eyebrow: #546F83;
  --k-accent: #1160D4;
  --k-action: #1160D4;
  --k-action-hover: #08449B;
  --k-link: #1160D4;
  --k-link-hover: #08449B;
  --k-rule-strong: #C2C8D0;
  --k-hair: rgba(2, 27, 65, 0.12);
  --k-hairsoft: rgba(2, 27, 65, 0.045);
  --k-lockup-2: #021B41;
  --k-logo-filter: none;
  --k-shadow: 0 18px 48px rgba(2, 27, 65, 0.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--k-surface);
  color: var(--k-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 3px; }

/* The grid starts at the left edge of the centred column, on any screen width. */
.stage {
  position: relative;
  container-type: inline-size;
  background-color: var(--k-surface);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--k-hairsoft) 1px, transparent 1px);
  background-size: 160px 100%;
  background-position: max(var(--gutter), calc((100cqw - 1280px) / 2)) 0;
}
.stage > * { position: relative; z-index: 1; }
.column { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Floating bar */
.bar-wrap { padding: 28px var(--gutter) 0; }
.bar {
  max-width: 1160px;
  margin-inline: auto;
  min-height: 72px;
  padding: 0 12px 0 clamp(16px, 2.4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--k-bar);
  border: 1px solid var(--k-hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--k-shadow);
}
.lockup { display: flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.lockup img { width: 44px; height: 44px; display: block; filter: var(--k-logo-filter); }
.lockup-type {
  display: flex;
  flex-direction: column;
  font-family: var(--font-logo);
  font-size: 14px;
  line-height: 13.8px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.lockup-type span:first-child { font-weight: 700; color: var(--k-ink); }
.lockup-type span:last-child { font-weight: 400; color: var(--k-lockup-2); }

.controls { display: flex; align-items: center; gap: 8px; }
.seg {
  display: flex;
  border: 1px solid var(--k-rule-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.seg a {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: var(--k-muted);
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.seg a[aria-current="page"] { background: var(--k-tint); color: var(--k-ink); }
.seg a:hover, .theme-btn:hover { color: var(--k-ink); }
.theme-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--k-muted);
  border: 1px solid var(--k-rule-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--motion-fast);
}
.theme-btn svg { width: 18px; height: 18px; display: block; }

/* Hero */
.hero {
  padding-block: clamp(72px, 10vw, 150px) clamp(64px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 36px);
}
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k-eyebrow);
}
h1 {
  margin: 0;
  max-width: 1160px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.6vw + 0.4rem, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--k-ink);
  text-wrap: balance;
}
h1 .tone2 { color: var(--k-tone2); }
.lead {
  margin: 0;
  max-width: 660px;
  font-size: clamp(1.0625rem, 1.2vw + 0.8rem, 1.3125rem);
  line-height: 1.55;
  color: var(--k-muted);
}
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 30px;
  border-radius: var(--radius-sm);
  background: var(--k-action);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--motion-fast);
}
.btn:hover { background: var(--k-action-hover); }
.btn svg { width: 18px; height: 18px; display: block; }
.address { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.address a {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--k-link);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.address a:hover { color: var(--k-link-hover); text-decoration: underline; }
.address small { font-size: 0.875rem; color: var(--k-muted); }
.caps {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-tone2);
}

/* Facts band */
.glance { padding-block: 36px; border-top: 1px solid var(--k-hair); background: var(--k-surface); }
.glance-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
}
.glance p { margin: 0; }
.glance .size { flex: 1 1 28rem; min-width: 0; max-width: 62ch; color: var(--k-text); }
.glance .facts {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-tone2);
}

/* 404 */
.notfound { padding-block: clamp(72px, 10vw, 150px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notfound a { color: var(--k-link); }
.notfound a:hover { color: var(--k-link-hover); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
