/* ==========================================================================
   Misyan — base
   One typeface, two themes, a mobile-app frame and a very small primitive set.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;

  --paper: #f3f0e9;
  --canvas: #e7e2d8;
  --surface: #ffffff;
  --surface-2: #f7f4ee;
  --ink: #111111;
  --ink-2: #565650;
  --ink-3: #6f6f68;
  --line: #e4dfd5;
  --line-strong: #d2ccc0;

  --accent: #ffc93c;
  --accent-2: #f2b900;
  --accent-soft: #fbebb6;
  --accent-ink: #111111;

  --feature: #0d1b24;
  --feature-2: #162b38;
  --on-dark: #f7f4ec;
  --on-dark-2: #b8b2a7;

  --live: #b3261e;
  --danger: #b3261e;
  --success: #2e6a4f;

  --dock: #111111;
  --dock-border: #2a2a2a;
  --dock-ink: #f7f4ec;

  --focus-ring: 0 0 0 3px rgba(255, 201, 60, 0.35);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.03),
    0 8px 24px rgba(17, 17, 17, 0.035);
  --shadow-frame: 0 28px 80px rgba(17, 17, 17, 0.14);
  --shadow-sheet: 0 30px 80px rgba(17, 17, 17, 0.22);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gap: 0px;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --paper: #0b0b0b;
  --canvas: #050505;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --ink: #f3f0e8;
  --ink-2: #b4afa6;
  --ink-3: #8d8880;
  --line: #262626;
  --line-strong: #383838;

  --accent: #ffc93c;
  --accent-2: #f2b900;
  --accent-soft: #44360e;
  --accent-ink: #111111;

  --feature: #191919;
  --feature-2: #222222;
  --on-dark: #f3f0e8;
  --on-dark-2: #b4afa6;

  --live: #e0675b;
  --danger: #e0675b;
  --success: #6ab68e;

  --dock: #1a1a1a;
  --dock-border: #333333;
  --dock-ink: #f3f0e8;

  --focus-ring: 0 0 0 3px rgba(255, 201, 60, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.24);
  --shadow-frame: 0 30px 90px rgba(0, 0, 0, 0.65);
  --shadow-sheet: 0 30px 80px rgba(0, 0, 0, 0.7);
}

@media (min-width: 560px) {
  :root {
    --gap: 24px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  padding: var(--gap) 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
dt {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 8vw, 2.55rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h4 {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--ink-2);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

input,
textarea,
select {
  min-width: 0;
}

textarea {
  resize: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.75rem;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.input:focus-visible,
.textarea:focus-visible,
.otp:focus-visible {
  outline: none;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.muted {
  color: var(--ink-2);
}

.subtle {
  color: var(--ink-3);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mark {
  display: inline;
  padding: 0 0.12em;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.between {
  justify-content: space-between;
}

.stack {
  display: flex;
  flex-direction: column;
}

.grow {
  flex: 1;
  min-width: 0;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sprite {
  position: absolute;
  overflow: hidden;
}

.noscript {
  padding: 24px;
  font-family: var(--font);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes mic-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 201, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 201, 60, 0);
  }
}

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

[hidden] {
  display: none !important;
}
