/* IntroStatsCalc — shared styles
   Colors are from the approved mockup; every text/background pair meets
   WCAG 2.1 AA (4.5:1 for text, 3:1 for input borders and focus rings). */
:root {
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --border: #E4E1D8;
  --input-border: #7D796F;   /* darkened from #CFCBBF for 3:1 non-text contrast */
  --text: #1A1D21;
  --text-2: #3E4248;
  --text-3: #5B5F66;
  --accent: #1D5F7A;
  --accent-tint: #E8F0F3;
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
  z-index: 10; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font: 500 1.15rem/1 var(--mono);
}
.brand-name { font: 700 1.3rem/1 var(--serif); letter-spacing: -0.01em; }
.edition {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  background: var(--accent-tint); border-radius: 999px; padding: 4px 12px;
}

/* Hero */
.hero { padding: 56px 0 32px; max-width: 760px; }
.eyebrow {
  margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
h1 { font: 700 clamp(2rem, 5vw, 3rem)/1.12 var(--serif); margin: 0 0 16px; letter-spacing: -0.015em; }
.lede { font-size: 1.15rem; color: var(--text-2); margin: 0; }
.class-note {
  margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--accent);
  background: var(--accent-tint); border-radius: 0 10px 10px 0; color: var(--text-2);
}

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin: 0 0 32px;
}
h2 { font: 600 1.4rem/1.25 var(--serif); margin: 0 0 16px; }
h3 { font: 600 1rem/1.3 var(--sans); margin: 0 0 4px; }
.tool-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.tool-grid li { border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.tool-grid p { margin: 0; color: var(--text-3); font-size: 0.95rem; }

/* Ad slot (public site only) */
.ad-slot {
  display: grid; place-items: center; min-height: 100px; margin: 0 0 32px;
  border: 1px dashed var(--border); border-radius: 10px; color: var(--text-3); font-size: 0.85rem;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--text-3); font-size: 0.875rem; }
.site-footer p { margin: 4px 0; }

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