/*
 * ArabicGenius design system — tokens and base styles.
 *
 * Stylesheets are loaded in alphabetical path order:
 *   application.css → components.css → layouts.css → screens/*.css → utilities.css
 * so later files can build on (and override) earlier ones.
 */

:root {
  /* Surfaces */
  --paper: #F5EFE3;          /* page background */
  --card: #FBF8F1;           /* cards, inputs on paper */
  --sand: #EFE7D8;           /* chips, segmented controls */
  --sand-hover: #F2EADB;
  --ink: #1C2321;            /* primary text, dark surfaces */
  --ink-raised: #2C3532;     /* hover/active on dark surfaces */
  --ink-line: #3A4441;       /* borders on dark surfaces */

  /* Lines */
  --line: #E4DACA;
  --line-soft: #EDE5D6;
  --line-strong: #CFC3AE;
  --line-dashed: #B9AB92;

  /* Text */
  --text: var(--ink);
  --text-body: #4F5551;
  --text-muted: #5D635E;
  --text-faint: #7F857F;
  --text-on-dark: var(--paper);
  --text-on-dark-muted: #C9C4B8;
  --text-on-dark-faint: #8E948E;
  --text-on-accent: #FFF8F2;

  /* Accents */
  --clay: #A8482A;           /* primary accent (terracotta) */
  --clay-hover: #8E3B21;
  --clay-deep: #7E3218;
  --clay-soft: #F2DED3;
  --green: #2E5A4C;          /* secondary accent, progress, "known" */
  --green-deep: #264D41;
  --green-soft: #DCE7DF;
  --green-bright: #8FD1B0;   /* positive text on dark */
  --peach: #E9B48F;          /* highlight on dark */
  --gold: #B8862A;

  /* Type */
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-arabic: Amiri, "Noto Naskh Arabic", serif;

  /* Shape */
  --radius-sm: 6px;
  --radius-input: 10px;
  --radius-md: 14px;
  --radius-card: 18px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-float: 0 30px 60px -30px rgba(28, 35, 33, .25);
  --shadow-menu: 0 24px 50px -20px rgba(28, 35, 33, .45);

  --gutter: clamp(20px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-deep); text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

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

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

[hidden] { display: none !important; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 72, 42, .45); }
  100% { box-shadow: 0 0 0 22px rgba(168, 72, 42, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
