/* MOTORYU / sector — web tokens and optional, prefixed components. */
:root,
[data-motoryu-theme="dark"] {
  --m-lime: #c6ff00;
  --m-ink: #050505;
  --m-white: #ffffff;
  --m-gray: #ababab;
  --m-line: #393939;
  --m-bg: var(--m-ink);
  --m-surface: #151515;
  --m-text: var(--m-white);
  --m-muted: var(--m-gray);
  --m-border: var(--m-line);
  --m-control-border: #737373;
  --m-accent: var(--m-lime);
  --m-on-accent: var(--m-ink);
  --m-link: var(--m-lime);
  --m-focus: var(--m-lime);
  --m-error: #ff9393;
  --m-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --m-font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --m-text-xs: 0.75rem;
  --m-text-sm: 0.875rem;
  --m-text-md: 1rem;
  --m-text-lg: 1.25rem;
  --m-text-xl: 1.5rem;
  --m-heading: clamp(2rem, 5vw, 4.5rem);
  --m-leading-tight: 1.06;
  --m-leading-body: 1.6;
  --m-space-1: 0.25rem;
  --m-space-2: 0.5rem;
  --m-space-3: 0.75rem;
  --m-space-4: 1rem;
  --m-space-5: 1.5rem;
  --m-space-6: 2rem;
  --m-space-7: 3rem;
  --m-space-8: 4rem;
  --m-space-9: 6rem;
  --m-radius: 0;
  --m-content-width: 75rem;
  --m-target-size: 2.75rem;
}

[data-motoryu-theme="dark"] { color-scheme: dark; }
[data-motoryu-theme="light"] {
  color-scheme: light;
  --m-bg: #ffffff;
  --m-surface: #f3f3f0;
  --m-text: #050505;
  --m-muted: #595959;
  --m-border: #d6d6d1;
  --m-control-border: #737373;
  --m-link: #050505;
  --m-focus: #050505;
  --m-error: #a61e17;
}

/* These classes are opt-in. Importing this file does not reset an existing site. */
.m-surface {
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font-sans);
  font-size: var(--m-text-md);
  line-height: var(--m-leading-body);
}
.m-container {
  box-sizing: border-box;
  width: min(100%, var(--m-content-width));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.m-heading {
  margin: 0;
  font-size: var(--m-heading);
  font-weight: 800;
  line-height: var(--m-leading-tight);
  letter-spacing: -0.045em;
}
.m-eyebrow {
  font-family: var(--m-font-mono);
  font-size: var(--m-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m-muted { color: var(--m-muted); }
.m-mono { font-family: var(--m-font-mono); }
.m-logo { display: block; max-width: 100%; height: auto; }
.m-icon { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; vertical-align: middle; }
.m-link {
  color: var(--m-link);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}
.m-button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: var(--m-target-size);
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--m-ink);
  border-radius: var(--m-radius);
  background: var(--m-accent);
  color: var(--m-on-accent);
  font-family: var(--m-font-sans);
  font-size: var(--m-text-sm);
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.m-button--secondary {
  border-color: var(--m-control-border);
  background: transparent;
  color: var(--m-text);
}
.m-button--icon { width: var(--m-target-size); padding: 0.5rem; }
@media (hover: hover) {
  .m-button:hover { background: var(--m-white); color: var(--m-ink); }
  .m-button--secondary:hover { background: var(--m-text); color: var(--m-bg); }
  .m-link:hover { text-decoration-thickness: 0.15em; }
}
.m-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.m-button:disabled:hover { background: var(--m-accent); color: var(--m-on-accent); }
.m-button--secondary:disabled:hover { background: transparent; color: var(--m-text); }
.m-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--m-border);
  color: var(--m-text);
  font-family: var(--m-font-mono);
  font-size: var(--m-text-xs);
  line-height: 1.5;
}
.m-tag--accent { border-color: var(--m-lime); background: var(--m-lime); color: var(--m-ink); }
.m-field { display: grid; gap: 0.5rem; }
.m-label { font-weight: 650; font-size: var(--m-text-sm); }
.m-input {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--m-target-size);
  padding: 0.75rem;
  border: 1px solid var(--m-control-border);
  border-radius: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font: inherit;
}
.m-input::placeholder { color: var(--m-muted); opacity: 1; }
.m-input[aria-invalid="true"] { border-color: var(--m-error); }
.m-error { color: var(--m-error); }
.m-button:focus-visible,
.m-link:focus-visible,
.m-input:focus-visible,
.m-focusable:focus-visible {
  outline: 3px solid var(--m-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--m-bg);
}
.m-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (forced-colors: active) {
  .m-button, .m-tag { border: 1px solid ButtonText; }
  .m-button:focus-visible, .m-link:focus-visible,
  .m-input:focus-visible, .m-focusable:focus-visible { outline-color: Highlight; }
}
