/* ============================================================
   iAccessDigital — design system
   Palette:  ink #111111 · paper #FDFDFB · brand red #EA0404
             high-vis #FFD23F (focus rings only) · slate #4A4A52
   Type:     Atkinson Hyperlegible (designed for low-vision readers)
   All colour pairs meet WCAG 2.2 AA contrast.
   ============================================================ */

:root {
  --ink: #111111;
  --paper: #FDFDFB;
  --hi-vis: #FFD23F;
  --brand: #EA0404;
  --brand-dark: #B50303;
  
  --slate: #4A4A52;
  --line: #D9D9DE;
  --card: #FFFFFF;
  --wash: #F6F5F3;
  --radius: 10px;
  --max: 72rem;
  font-size: 100%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Focus: visible by design ---------- */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--hi-vis);
}
.footer :focus-visible, .band-dark :focus-visible {
  outline-color: var(--hi-vis);
  box-shadow: 0 0 0 3px var(--ink);
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; box-shadow: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.15rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.35rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); color: var(--slate); max-width: 58ch; }
.eyebrow {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  border-bottom: 3px solid var(--brand);
  padding-bottom: .2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.mark {
  background: linear-gradient(transparent 88%, var(--brand) 88%);
  padding: 0 .1em;
}

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section--wash { background: var(--wash); }
.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header / nav ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .95rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .4rem 1.75rem;
  justify-content: flex-end; padding-top: .5rem; padding-bottom: .5rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; padding-bottom: .9rem; gap: 1rem;
}
.logo {
  font-weight: 800; font-size: 1.35rem; text-decoration: none; color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: var(--ink); color: #fff;
  border: 0; border-radius: var(--radius);
  padding: .6rem .9rem; font: inherit; font-weight: 700; cursor: pointer;
}
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; padding: .35rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brand); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .header .wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4.5rem; }
.hero h1 { max-width: 44ch; }
.hero .lede { margin-top: 1rem; }
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: .9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #3A3A3A; border-color: #3A3A3A; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Standards chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.chips li {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem; font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .35rem .85rem;
  background: #fff;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column;
}
.card h3, .card h2 { font-size: 1.35rem; line-height: 1.25; margin: .25rem 0 .6em; }
.card p { color: var(--slate); flex-grow: 1; }
.card .card-link { font-weight: 800; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card-kicker {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 700;
}

/* ---------- Feature list ---------- */
.checks { list-style: none; margin: 1.25rem 0; padding: 0; }
.checks li { padding-left: 2.1rem; position: relative; margin-bottom: .8rem; }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem;
  background: var(--brand-dark); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}

/* ---------- Dark band ---------- */
.band-dark {
  background: var(--ink); color: #fff;
  padding: 4.5rem 0;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: #D5DCE5; }
.band-dark a { color: #FFB3B3; }
.band-dark .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.band-dark .btn--primary:hover { background: #E8E8E8; border-color: #E8E8E8; color: var(--ink); }

/* ---------- Contract callout ---------- */
.callout {
  border: 3px solid var(--ink);
  border-left: 14px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  padding: 2rem;
}

/* ---------- Prose pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Contact ---------- */
.contact-card { border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; padding: 1.75rem; }
.contact-card p { margin-bottom: .4rem; }
.contact-label {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 700; display: block; margin-bottom: .35rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D5DCE5; padding: 3.5rem 0 2rem; }
.footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #FFB3B3; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.colophon {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid #33465C;
  font-size: .95rem; color: #AEBBCB;
}
.colophon a { color: #fff; text-decoration: underline; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
th, td { border: 2px solid var(--ink); padding: .7rem .9rem; text-align: left; }
th { background: var(--wash); }

/* ---------- Screen-reader-only text ---------- */
.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;
}

/* ---------- Logo images ---------- */
.logo img { height: 44px; width: auto; display: block; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-meta {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem; color: var(--slate); margin-bottom: 1.5rem;
}
.prose blockquote {
  border-left: 6px solid var(--brand);
  margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem;
  color: var(--slate); font-style: italic;
}
.awards-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .awards-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- GCA partner badge ---------- */
.footer-logo { height: 52px; }
.gca-link { display: inline-block; margin-top: 1.25rem; border-radius: 50%; }
.badge-gca {
  height: 84px; width: auto; display: block;
  background: #fff; border-radius: 50%; padding: 5px;
}
.badge-gca--light { background: transparent; padding: 0; height: 96px; }

/* Blog index: post titles in ink, not brand red */
.post-list h2 a, .post-list h3 a { color: var(--ink); }
.post-list h2 a:hover, .post-list h3 a:hover { text-decoration: underline; }

/* ---------- Level text across side-by-side cards ----------
   When cards sit in a row, reserve a consistent two-line zone for
   headings so paragraphs start at the same height in every card.
   Applied only at widths where grids are multi-column. */
@media (min-width: 760px) {
  .grid-3 .card h3,
  .grid-3 .card h2,
  .awards-grid .callout h3,
  .awards-grid .callout h2,
  .awards-grid .card h3 {
    min-height: 2.45em;
  }
  .post-list .card h2 {
    min-height: 3.6em; /* blog titles run longer: three-line zone */
    font-size: 1.35rem;
  }
  .grid-3 .card .card-kicker,
  .post-list .card .card-kicker {
    min-height: 1.2em;
  }
}

/* ---------- Founder photo: text wraps the circle ---------- */
.founder-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
  float: left;
  shape-outside: circle(52%);
  margin: .3rem 1.6rem .8rem 0;
}
@media (max-width: 600px) {
  .founder-photo { float: none; margin: 0 auto 1.5rem; display: block; }
}

/* GCA badge: use the vector version where supported (sharp at any size) */
.badge-gca {
  content: url("gca-international-partner.svg");
}
