/* ==========================================================================
   ALARIC DESIGN V1 · base.css
   Design tokens, reset, typography, motion and accessibility primitives.
   No frameworks. No external fonts. No third-party UI kit.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ink */
  --ink:      #0b0c0f;
  --ink-2:    #3a3d44;
  --muted:    #787c85;
  --muted-2:  #9b9fa8;

  /* surfaces */
  --paper:    #ffffff;
  --paper-2:  #f7f7f8;
  --line:     rgba(11, 12, 15, .09);
  --line-2:   rgba(11, 12, 15, .17);

  /* accent — used sparingly */
  --accent:      #3b6ef5;
  --accent-soft: rgba(59, 110, 245, .10);
  --ok:          #2f9e6b;

  /* geometry */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  /* elevation */
  --shadow-1: 0 1px 2px rgba(11, 12, 15, .05);
  --shadow-2: 0 22px 48px -28px rgba(11, 12, 15, .40);

  /* motion */
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --dur-1: .18s;
  --dur-2: .32s;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-size: .875rem;
  border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- motion preference ---------- */

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