/* Theme base styles and reset from demo konfetki/prototip/index.html:21
   (body, a, box-sizing) and :53 (page root with --page-bg).
   --page-bg-outer is a demo literal outside the Figma palette.
   This file loads after stock styles so the !important button:focus-visible override wins. */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --page-bg: var(--warm-50);
  --page-bg-outer: #EDE7DF;
}

body {
  margin: 0;
  background: var(--page-bg-outer);
  color: var(--typo-primary);
  font-family: Onest, sans-serif;
}

.k-page {
  /* Demo index.html:53 (query root and header offsets), :1456 (tab bar). */
  --k-side: clamp(16px, 4.17cqw, 60px);
  --k-hdr-top: 20px;
  --k-hdr-h: 64px;
  --k-tabbar-h: 95px;
  container-type: inline-size;
  /* Unlike hidden, clip keeps the document as the sticky scroll container. */
  overflow-x: clip;
  background: var(--page-bg);
  min-height: 100vh;
}

a {
  color: var(--raspberry-600);
  text-decoration: none;
}

a:hover {
  color: var(--raspberry-700);
}

button, input, select, textarea {
  font-family: inherit;
}

.k-text-secondary {
  color: var(--typo-secondary);
}

h1, h2, h3, h4 {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--control-field-border-focus);
  outline-offset: 2px;
}

/* Override stock stylesheet.css: button:focus { outline: none !important; }. */
button:focus-visible {
  outline: 2px solid var(--control-field-border-focus) !important;
}
