/* rostra-base.css
   Reset, base elements, primitives. Reads tokens. No theme selectors.
   Generated by scripts/build-css-bundle.mjs — edit sources, not this file. */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 280px),
    linear-gradient(90deg, transparent 0 31px, var(--bg-grid) 32px),
    var(--bg);
  background-size: auto, 32px 32px, auto;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 125, 115, 0.075), transparent 18%, transparent 82%, rgba(47, 110, 203, 0.06));
}

/* One quiet scrollbar language for every native scroll owner. Standards-based
   sizing preserves each platform's overlay/classic mechanics and hit testing. */
:root {
  --rostra-scrollbar-thumb-color: var(--rostra-text-muted, #87919f);
  --rostra-scrollbar-thumb-hover: var(--rostra-text-secondary, #c7ced8);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--rostra-scrollbar-thumb-color) transparent;
}

@media (prefers-contrast: more) {
  :root {
    --rostra-scrollbar-thumb-color: var(--rostra-text-secondary, #c7ced8);
    --rostra-scrollbar-thumb-hover: var(--rostra-text-primary, #ffffff);
  }
}

@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
}

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

button {
  border: 0;
  letter-spacing: 0;
}

button,
label,
summary,
.theme-choice {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 82%, transparent);
  outline-offset: 2px;
}

button:active:not(:disabled):not([draggable="true"]):not(.entry-scroll-viewport__thumb):not(.entry-side-panel__drag-handle):not(.entry-journey__module-drag-handle):not(.pro-session-composer__drag-handle):not(.entry-prepare-prompt__row-handle) {
  transform: scale(0.96);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  color: var(--rostra-text-primary, #111827);
  background: var(--rostra-surface-raised, #fff);
  border: 2px solid var(--rostra-focus, #2563eb);
  border-radius: var(--rostra-radius-md, 8px);
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 18ch;
  font-size: var(--step-4);
  font-weight: 760;
  line-height: 1.08;
}

h2 {
  font-size: var(--step-2);
  font-weight: 740;
  line-height: 1.22;
}

h3 {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 780;
  text-transform: uppercase;
}

.muted {
  max-width: 72ch;
  color: var(--ink-muted);
}
