/* BA Canada Applied AI Inc. — site styles. System fonts only, no external assets. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #15202d;
  --muted: #4a5767;
  --navy: #13294b;
  --accent: #a61c24;
  --border: #d9dee5;
  --badge-bg: #eef2f8;
  --focus: #1d5fd6;
  --radius: 12px;
  --max: 64rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}
.brand svg { flex: none; width: 2rem; height: 2rem; }
.brand .wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang-switch { flex: none; font-weight: 600; font-size: 0.95rem; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.lang-switch li + li::before { content: "|"; color: var(--muted); margin-right: 0.25rem; }
.lang-switch a,
.lang-switch [aria-current] { display: inline-block; padding: 0.35rem 0.4rem; }
.lang-switch [aria-current] { color: var(--accent); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 4rem 0 3.5rem; }
.hero h1 { margin: 0 0 0.75rem; font-size: clamp(1.4rem, 7.2vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
.hero p { margin: 0; max-width: 40rem; font-size: clamp(1.1rem, 3.2vw, 1.35rem); color: #e3e9f2; }
.hero .rule { display: block; width: 3.5rem; height: 4px; background: #e2434c; border-radius: 2px; margin-bottom: 1.5rem; }

/* Sections */
main section { padding: 3.5rem 0; }
main section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); line-height: 1.2; margin: 0 0 1.25rem; color: var(--navy); }
.lead { max-width: 46rem; margin: 0; }

/* Projects */
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--badge-bg);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.project-icon svg { width: 1.75rem; height: 1.75rem; }
.project h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--text); }
.badge {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--badge-bg);
  border: 1px solid #c9d3e3;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.project p { margin: 0; color: var(--text); }
.project .more { margin-top: auto; padding-top: 0.25rem; font-weight: 600; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.contact-list strong { display: inline-block; min-width: 6rem; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0 0 0.6rem; max-width: 52rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer .privacy { color: var(--text); font-weight: 600; }

@media (max-width: 30rem) {
  .hero { padding: 2.75rem 0 2.5rem; }
  main section { padding: 2.5rem 0; }
  .project { padding: 1.25rem; }
  .brand .wordmark { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Wordmark: "BA" + "AppliedAI" in accent, "Canada" in main text colour, same weight, no spaces */
.wordmark { font-weight: 700; letter-spacing: -0.005em; }
.wordmark .wm-accent { color: var(--accent); }
.wordmark .wm-main { color: var(--text); }
.hero .wordmark .wm-accent { color: #ff8a8f; }
.hero .wordmark .wm-main { color: #ffffff; }

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