/* ==========================================================================
   MCIdentity Documentation — Root theme tokens & base styles
   Theme: white, silver & transparent (glassmorphism)
   ========================================================================== */

:root {
  /* Silver / white palette */
  --white: #ffffff;
  --silver-050: #f6f8fb;
  --silver-100: #eef1f6;
  --silver-200: #e2e7ee;
  --silver-300: #d2d9e3;
  --silver-400: #b9c2d0;
  --silver-500: #9aa6b8;
  --silver-600: #78859a;

  /* Ink / text */
  --ink-900: #1b2430;
  --ink-700: #333f4f;
  --ink-500: #5a6676;
  --ink-400: #78859a;

  /* Accent (cool steel) */
  --accent: #5b7189;
  --accent-strong: #3f5872;
  --accent-soft: rgba(91, 113, 137, 0.12);

  /* Donation / sponsor accent */
  --sponsor: #d6336c;
  --sponsor-soft: rgba(214, 51, 108, 0.10);

  /* Transparent glass surfaces */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.90);
  --glass-faint: rgba(255, 255, 255, 0.40);
  --glass-border: rgba(255, 255, 255, 0.75);
  --hairline: rgba(120, 133, 154, 0.28);
  /* Near-opaque surface for overlays that fully cover page content
     (mobile menu, dropdowns) — stays readable even where backdrop-filter
     blur is unsupported or disabled. */
  --surface-solid: rgba(255, 255, 255, 0.98);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 36, 48, 0.06), 0 2px 8px rgba(27, 36, 48, 0.05);
  --shadow-md: 0 6px 22px rgba(27, 36, 48, 0.10);
  --shadow-lg: 0 18px 48px rgba(27, 36, 48, 0.16);

  /* Geometry */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --blur: saturate(160%) blur(14px);

  --maxw: 1120px;
  --header-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", "Cascadia Code",
    Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(900px 620px at 92% 4%, rgba(214, 221, 232, 0.55), transparent 55%),
    radial-gradient(1000px 800px at 78% 108%, rgba(198, 208, 222, 0.45), transparent 60%),
    linear-gradient(160deg, #eef1f6 0%, #e3e8ef 48%, #dbe1ea 100%);
  background-attachment: fixed;
}

/* Typography ------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
h4 { font-size: 1.02rem; margin-top: 1.2em; color: var(--ink-700); }

p { margin: 0 0 1em; }

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent); text-decoration: underline; }

strong { color: var(--ink-900); font-weight: 650; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: 0.3em 0; }

hr {
  border: none;
  height: 1px;
  background: var(--hairline);
  margin: 2rem 0;
}

/* Layout container ------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.4rem 1.4rem 4rem;
}

.container.narrow { max-width: 880px; }

.lead {
  font-size: 1.12rem;
  color: var(--ink-500);
  max-width: 68ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* Utility ---------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img { max-width: 100%; }
