/* Tokens ark.church. Palette inspirée du vitrail : prune pour la marque,
   bleu lac en accent, ambre et rose réservés au motif et aux graphiques.
   Neutres teintés par la teinte de marque (brand/palette.md). */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Text";
  src: url("fonts/dm-serif-text-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Text", Georgia, "Times New Roman", serif;

  --prune-950: oklch(0.2 0.05 335);
  --prune-900: oklch(0.25 0.07 335);
  --prune-800: oklch(0.32 0.09 335);
  --primary: oklch(0.42 0.12 335);
  --primary-hover: oklch(0.36 0.12 335);
  --primary-soft: oklch(0.95 0.022 335);
  --primary-line: oklch(0.86 0.045 335);
  --on-primary: oklch(0.985 0.005 335);
  --on-dark-muted: oklch(0.84 0.035 335);

  --lake: oklch(0.5 0.09 215);
  --lake-soft: oklch(0.95 0.025 215);
  --lake-bright: oklch(0.74 0.1 215);
  --amber: oklch(0.8 0.13 80);
  --amber-soft: oklch(0.96 0.045 85);
  --rose: oklch(0.72 0.12 15);

  --bg-page: oklch(0.975 0.006 335);
  --bg-surface: oklch(1 0 0);
  --bg-sunken: oklch(0.955 0.008 335);
  --border: oklch(0.9 0.01 335);
  --border-strong: oklch(0.8 0.015 335);
  --text-primary: oklch(0.22 0.02 335);
  --text-secondary: oklch(0.42 0.02 335);
  --text-muted: oklch(0.5 0.015 335);

  --color-success: oklch(0.45 0.12 150);
  --color-success-soft: oklch(0.95 0.035 150);
  --color-error: oklch(0.48 0.17 25);
  --color-error-soft: oklch(0.95 0.03 25);
  --color-warning: oklch(0.47 0.12 70);
  --color-warning-soft: oklch(0.95 0.05 85);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-arch: 999px 999px var(--radius-s) var(--radius-s);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;

  --text-s: 13px;
  --text-m: 15px;
  --text-l: 18px;
  --text-xl: 22px;
  --text-2xl: 30px;

  --control-height: 40px;
  --shadow-float: 0 24px 60px -24px oklch(0.2 0.06 335 / 0.45);
}

@media (pointer: coarse) {
  :root {
    --control-height: 44px;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-m);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
}

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

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--text-s);
}

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

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

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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