/* ovelis UI parts v1.0 · shared paper / ink foundation */
:root {
  color-scheme: light;
  /* Brand sources: tokens/ovelis.tokens.css v1.2; other values: SPEC §2.1. */
  --op-bg: var(--bg);
  --op-surface: var(--surface);
  --op-surface-2: #EFEBE2;
  --op-surface-3: #E7E2D6;
  --op-ink: var(--ink);
  --op-ink-2: #4E4E4D;
  --op-ink-3: #6B6B69;
  --op-line: var(--line);
  --op-line-2: var(--line-strong);
  --op-on-ink: #F4F1EA;
  --op-gold: var(--gold);
  --op-gold-text: #8A6A1E;
  --op-gold-tint: var(--gold-tint);
  --op-ok: #2F7D4F;
  --op-alert: var(--alert);
  --op-jp: var(--jp);
  --op-lat: var(--lat);
  --op-r-lg: var(--r-lg);
  --op-r: var(--r);
  --op-r-sm: var(--r-sm);
  --op-ease: cubic-bezier(.2,.8,.2,1);
  --op-t1: 160ms;
  --op-t2: 260ms;
  --op-t3: 400ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Ink overrides from SPEC §2.1 (brand --dk-alert retained). */
    --op-bg: #111214;
    --op-surface: #18191C;
    --op-surface-2: #1E1F23;
    --op-surface-3: #26272B;
    --op-ink: #ECEBE6;
    --op-ink-2: #AFAEAB;
    --op-ink-3: #8A8A88;
    --op-line: rgba(236,235,230,.13);
    --op-line-2: rgba(236,235,230,.24);
    --op-on-ink: #111214;
    --op-gold-text: #C69A38;
    --op-gold-tint: rgba(198,154,56,.16);
    --op-ok: #5FBF86;
    --op-alert: var(--dk-alert);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --op-bg: #111214;
  --op-surface: #18191C;
  --op-surface-2: #1E1F23;
  --op-surface-3: #26272B;
  --op-ink: #ECEBE6;
  --op-ink-2: #AFAEAB;
  --op-ink-3: #8A8A88;
  --op-line: rgba(236,235,230,.13);
  --op-line-2: rgba(236,235,230,.24);
  --op-on-ink: #111214;
  --op-gold-text: #C69A38;
  --op-gold-tint: rgba(198,154,56,.16);
  --op-ok: #5FBF86;
  --op-alert: var(--dk-alert);
  color-scheme: dark;
}
.op, .op *, .op *::before, .op *::after { box-sizing: border-box; }
.op {
  min-width: 0;
  font-family: var(--op-jp);
  font-weight: 400;
  line-height: 1.5;
  color: var(--op-ink);
  overflow-wrap: anywhere;
}
:where(.op) :is(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.op) button { cursor: pointer; }
:where(.op) button:disabled { cursor: default; }
.op :focus-visible, .op:focus-visible {
  outline: 2px solid var(--op-gold-text);
  outline-offset: 2px;
}
.op [hidden] { display: none !important; }
.op .op-num, .op kbd, .op time {
  font-family: var(--op-lat);
  font-variant-numeric: tabular-nums;
}
.op .op-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .op, .op *, .op *::before, .op *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion="reduce"] .op,
:root[data-motion="reduce"] .op *,
:root[data-motion="reduce"] .op *::before,
:root[data-motion="reduce"] .op *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}
