/* SonicRainAcademy — base.css
   Minimal, professional baseline (2025).
   Notes:
   - Color tokens live in themes (dark.css).
   - Keep typography clean; no playful "bubble" styles.
*/

/* 0) Brand font (drop your files into /public/assets/fonts/BorisFont/) */
@font-face {
  font-family: "SRA Brand";
  src: url("/assets/fonts/BorisFont/SRA-Brand.woff2") format("woff2"),
       url("/assets/fonts/BorisFont/SRA-Brand.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 1) Reset / base */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }

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

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

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

/* Reduce motion preference */
@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;
  }
}

/* 2) Global tokens fallback (theme overrides) */
:root {

/* Typography */
--font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
--font-brand: "SRA Brand", var(--font-sans);

  --bg: #0b0c10;
  --surface: rgba(255,255,255,.03);
  --surface2: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.16);
  --accent: #9ab8ff;
  --accent2: #6fa5ff;
  --danger: #ff4a4a;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 8px 24px rgba(0,0,0,.25);
  --shadow-md: 0 14px 38px rgba(0,0,0,.34);

  --wrap: 1120px;
  --nav-h: 72px;

  --fs-xxl: clamp(2.2rem, 3vw, 3.0rem);
  --fs-xl: clamp(1.55rem, 2vw, 2.05rem);
  --fs-lg: 1.125rem;
  --fs-md: 1rem;
  --fs-sm: .925rem;
  --fs-xs: .825rem;

  --lh: 1.75;
  --lh-tight: 1.25;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 240ms;
}

/* 3) Typography */
body {
  font-family: var(--font-sans);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--text);
  letter-spacing: .12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1 { font-size: var(--fs-xxl); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); line-height: var(--lh-tight); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; line-height: var(--lh-tight); }

p { color: var(--muted); }

/* 4) Focus ring (accessibility) */
:focus-visible {
  outline: 2px solid rgba(154,184,255,.65);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 5) Small helpers */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* 6) Admin edit markers (used later by editor.js)
   - Elements with [data-editable="true"] can be highlighted.
*/
[data-editable="true"].editable-outline {
  outline: 2px dashed rgba(255, 74, 74, .85);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .15px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
