/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --border: #e2ddd3;
  --border-strong: #c9c0af;
  --ink: #221f1a;
  --muted: #635c50;
  --accent: #21201d;
  --accent-hover: #35322c;
  --accent-ink: #ffffff;
  --accent-text: #86672b;
  --accent-strong: #6e5322;
  --accent-soft: #f1e7d2;
  --accent-border: #cdb579;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dfeae1;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f2e5da;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f2dedd;
  --danger-strong: #b91c1c;
  --chart-1: #92702f;
  --chart-2: #7c285c;
  --chart-3: #7c350c;
  --chart-4: #425605;
  --chart-5: #0b5668;
  --chart-6: #5152a5;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --eyebrow-tracking: 0.14em;
  --radius-card: 18px;
  --radius-btn: 999px;
  --shadow-card: 0 18px 40px -20px rgba(34, 31, 26, 0.28);
  --x-on-photo: #ffffff;
  --x-gold-line: linear-gradient(90deg, transparent, #b8974a, transparent);
}

html[data-theme="dark"] {
  --canvas: #050404;
  --surface: #1e1d1d;
  --surface-2: #121111;
  --border: #282727;
  --border-strong: #504f4f;
  --ink: #faf9f7;
  --muted: #989796;
  --accent: #434240;
  --accent-hover: #5f5e5d;
  --accent-ink: #ffffff;
  --accent-text: #8e8d8b;
  --accent-strong: #848381;
  --accent-soft: #131211;
  --accent-border: #21201f;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #091f11;
  --success-strong: #39935b;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2c1505;
  --warning-strong: #c06e2f;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2d0909;
  --danger-strong: #cd5c5c;
  --chart-1: #6a6966;
  --chart-2: #3b995a;
  --chart-3: #208cb5;
  --chart-4: #7f71c8;
  --chart-5: #b85d8c;
  --chart-6: #bd6630;
}

/*
 * app.css — THIS APP'S OWN CSS, for what no primitive and no utility covers:
 * the one screen that makes this app itself — a timer's dial, a kanban
 * board's columns, a seating plan, a game grid. Write those here, named for
 * what they are, in tokens only (var(--accent), var(--radius-card),
 * var(--font-display)). It loads last, after design.css and theme.css, and
 * wins. Ships empty.
 *
 * Not for restyling a primitive: those live in tailwind/components.css and
 * are yours to edit there. Not for colours: those live in theme.css.
 */

/* Ridhi Siddhi Hardware — mobile slide-in nav drawer */
.modal-top {
  top: 0;
  margin-top: 0;
  margin-right: 0;
  left: auto;
  right: 0;
  max-width: min(360px, 92vw);
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
}

.modal-top[open] {
  animation: rs-slide-in 220ms ease-out;
}

@keyframes rs-slide-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

html.reduced-motion .modal-top[open] {
  animation: none;
}
