/* Base: reset, page background, typography utilities. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  /* the page colour sits on html; a transparent body lets the fixed brand light (z-index -1) show through */
  background: transparent; color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
/* soft brand light from the top, a faint second glow lower; fixed so it never moves with content */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -18%, rgb(var(--core-rgb) / 0.16), transparent 62%),
    radial-gradient(70% 40% at 100% 110%, rgb(var(--core-rgb) / 0.07), transparent 70%);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
::selection { background: var(--core); color: #fff; }
:focus-visible { outline: 2px solid var(--core-hi); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }

.k-display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
.k-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.k-tabular { font-variant-numeric: tabular-nums; }
.k-muted { color: var(--mute); }
.k-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k-skip { position: fixed; left: 12px; top: -80px; z-index: 400; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.k-skip:focus { top: 12px; }

/* the blue square that ends KUDEN headings (from the logo core) */
.k-dot { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.06em; background: var(--core); box-shadow: 0 0 0.3em rgb(var(--core-rgb) / 0.85); vertical-align: baseline; }

/* simple centered page (404) */
.k-center { display: grid; place-items: center; padding: 24px; }
.k-404 { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 420px; }
.k-404 h1 { font-size: 30px; }
.k-404 p { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
