/* kt8.com shared look: colours, type, buttons, the top bar and the footer.
   Every page links this file; page-specific layout stays in each page's own <style>. */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f7;          /* alternate bands, recessed panels */
  --sheet: #ffffff;         /* cards */
  --ink: #101215;
  --ink-soft: #50565e;
  --ink-faint: #868c95;
  --line: #e6e7ea;
  --line-2: #d6d8dc;
  --post: #c8102e;          /* UK postbox red, the one accent */
  --post-deep: #a00c24;
  --post-soft: #fdeef0;
  --pass: #16794a;
  --pass-soft: #e5f4ec;
  --night: #0b0c0f;         /* dark bands (film, privacy, PRO) */
  --night-2: #14161b;
  --night-line: rgba(255,255,255,.09);
  --night-ink: #f4f5f7;
  --night-soft: #a2a8b2;
  --shadow-sm: 0 1px 2px rgba(16,18,21,.05), 0 1px 1px rgba(16,18,21,.03);
  --shadow: 0 1px 2px rgba(16,18,21,.04), 0 8px 24px -8px rgba(16,18,21,.10);
  --shadow-lg: 0 2px 4px rgba(16,18,21,.04), 0 24px 64px -16px rgba(16,18,21,.22), 0 60px 120px -40px rgba(200,16,46,.18);

  --f-sans: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f; --bg-2: #101216; --sheet: #15171c; --ink: #f2f3f5; --ink-soft: #a7adb6; --ink-faint: #737a85;
    --line: #23262d; --line-2: #2f333b; --post: #f04a5d; --post-deep: #d93348; --post-soft: #2a1418;
    --pass: #4fc68a; --pass-soft: #12281e; --night: #06070a; --night-2: #111318;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 64px -16px rgba(0,0,0,.7), 0 60px 120px -40px rgba(240,74,93,.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f; --bg-2: #101216; --sheet: #15171c; --ink: #f2f3f5; --ink-soft: #a7adb6; --ink-faint: #737a85;
  --line: #23262d; --line-2: #2f333b; --post: #f04a5d; --post-deep: #d93348; --post-soft: #2a1418;
  --pass: #4fc68a; --pass-soft: #12281e; --night: #06070a; --night-2: #111318;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 64px -16px rgba(0,0,0,.7), 0 60px 120px -40px rgba(240,74,93,.22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, video, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--post); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--post); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.9375rem/1 var(--f-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  padding: 0 18px; height: 44px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--post); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(200,16,46,.55); }
.btn-red:hover { background: var(--post-deep); }
.btn-ghost { background: var(--sheet); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn svg { flex: none; }

/* Small label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.75rem/1 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--post);
}

/* Logo */
.mark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.125rem/1 var(--f-sans); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.mark svg { flex: none; display: block; }

/* Top bar: logo, menu, call to action. On phones the menu folds behind a button. */
.top {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 1rem; }
.menu a { text-decoration: none; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .15s, background-color .15s; }
.menu a:hover { color: var(--ink); background: var(--bg-2); }
.menu a.on, .menu a[aria-current] { color: var(--ink); }
.top .btn { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { display: block; }
@media (max-width: 960px) {
  .menu-btn { display: grid; order: 3; margin-left: 8px; }
  .top .btn { margin-left: auto; order: 2; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 8px 12px 16px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.25);
    display: none;
  }
  .menu a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .top.open .menu { display: flex; }
}
@media (max-width: 420px) { .top .btn { padding: 0 13px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg); padding-block: 56px 40px; font-size: 0.9375rem; color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot h2 { font: 600 0.8125rem/1 var(--f-sans); color: var(--ink); margin: 6px 0 16px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.foot ul a:hover, .foot ul a[aria-current] { color: var(--ink); }
.foot-about p { margin: 16px 0 0; max-width: 30em; color: var(--ink-faint); line-height: 1.6; }
.foot-about p a { color: var(--ink-soft); }
.foot-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.8125rem; }
.foot-base a { color: inherit; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }

/* Fade-up as sections come into view (only when scripts run and motion is welcome). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
