/* aristoiq.com. One stylesheet, no inline styles (the CSP allows style-src 'self' only).
   Colour pairs are checked for WCAG AA by scripts/check.mjs, which reads the custom properties below. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/assets/fonts/atkinson-next.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/assets/fonts/atkinson-next-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14202e;
  --muted: #4a5568;
  --bg: #ffffff;
  --surface: #f3f6f9;
  --line: #cfd8e3;
  --brand: #0b5cad;
  --brand-hover: #084a8c;
  --navy: #0b2a4a;
  --navy-2: #123b63;
  --on-dark: #ffffff;
  --on-dark-muted: #d3deea;
  --gh: #0e6589;
  --gh-hover: #0b5170;
  --gh-soft: #edf6fa;
  --hc: #0b7a5f;
  --hc-hover: #08624c;
  --hc-soft: #ecf8f3;
  --notice-bg: #fff6db;
  --notice-ink: #4d3800;
  --notice-line: #e0b84a;
  --focus: #0b5cad;
  --focus-on-dark: #ffd166;
  --radius: 12px;
  --max: 72rem;
  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; color: inherit; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.375rem; }

a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-dark); }
main:focus { outline: none; }

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--bg); color: var(--brand); padding: 0.75rem 1rem; border: 2px solid var(--brand);
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

/* ---- Header ---- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.375rem 0.75rem;
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px;
}
.site-nav a:hover { color: var(--brand); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.4em; }

/* ---- Hero and dark bands ---- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); padding: 4.5rem 0 4rem; }
.hero h1 { max-width: 48rem; }
.hero .lead { color: var(--on-dark-muted); max-width: 44rem; }
.hero a:not(.btn) { color: var(--on-dark); }
.lead { font-size: 1.25rem; line-height: 1.55; }
.cta-band { background: var(--navy); color: var(--on-dark); padding: 3.5rem 0; }
.cta-band p { color: var(--on-dark-muted); max-width: 44rem; }
.cta-band a:not(.btn) { color: var(--on-dark); }

/* ---- Buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.25rem;
  border: 2px solid transparent; border-radius: 8px; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none;
}
.btn:hover { text-decoration: underline; }
.btn-primary { background: var(--brand); color: var(--on-dark); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--navy); }
.btn-light:hover { background: var(--surface); color: var(--navy); }
.btn-outline-light { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { background: var(--navy-2); color: var(--on-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: var(--bg); }
.btn-outline:hover { background: var(--surface); color: var(--brand-hover); }
.btn-gh { background: var(--gh); color: var(--on-dark); }
.btn-gh:hover { background: var(--gh-hover); color: var(--on-dark); }
.btn-hc { background: var(--hc); color: var(--on-dark); }
.btn-hc:hover { background: var(--hc-hover); color: var(--on-dark); }

/* ---- Sections and layout ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-intro { max-width: 46rem; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }

.page-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.page-header .lead { color: var(--muted); max-width: 46rem; }
.page-header-gh { background: var(--gh-soft); }
.page-header-hc { background: var(--hc-soft); }

/* ---- Cards ---- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.product-card { display: flex; flex-direction: column; border-top-width: 6px; padding: 2rem; }
.product-card .actions { margin-top: auto; padding-top: 1rem; }
.product-card-gh { border-top-color: var(--gh); }
.product-card-hc { border-top-color: var(--hc); }
.tag { display: inline-block; align-self: flex-start; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.75rem; }
.tag-gh { background: var(--gh-soft); color: var(--gh); }
.tag-hc { background: var(--hc-soft); color: var(--hc); }

/* Check list: the tick is drawn with borders (no generated text for screen readers to announce). */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.45em; width: 0.45rem; height: 0.8rem;
  border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.product-card-gh .checklist li::before, .page-gh .checklist li::before { border-color: var(--gh); }
.product-card-hc .checklist li::before, .page-hc .checklist li::before { border-color: var(--hc); }

/* Workflow phases */
.phases { list-style: none; padding: 0; counter-reset: phase; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.phases > li { counter-increment: phase; position: relative; margin: 0; padding: 1.5rem 1.5rem 1.25rem 4rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.phases > li::before {
  content: counter(phase); position: absolute; left: 1.25rem; top: 1.4rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--on-dark);
}
.page-gh .phases > li::before { background: var(--gh); }
.page-hc .phases > li::before { background: var(--hc); }
.phases h3 { font-size: 1.125rem; }
.phases ul { list-style: disc; padding-left: 1.1rem; color: var(--muted); margin-bottom: 0; }

/* Notices */
.notice { background: var(--notice-bg); color: var(--notice-ink); border: 1px solid var(--notice-line); border-left-width: 6px; border-radius: 8px; padding: 1rem 1.25rem; max-width: 46rem; }
.notice > :last-child { margin-bottom: 0; }
.notice a { color: var(--notice-ink); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; background: var(--bg); }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem; border-bottom: 1px solid var(--line); }
th { background: var(--surface); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 3rem 0 1.5rem; margin-top: 0; border-top: 1px solid var(--navy-2); }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-name { color: var(--on-dark); font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }
.footer-heading { color: var(--on-dark); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { border-top: 1px solid var(--navy-2); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.9375rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 40rem) {
  .hero { padding: 3rem 0 2.75rem; }
  .section { padding: 3rem 0; }
  .site-nav a { padding: 0.375rem 0.5rem; }
  .product-card { padding: 1.5rem; }
}

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

@media print {
  .site-header nav, .skip-link, .actions { display: none; }
  .hero, .cta-band, .site-footer { background: none; color: #000; }
  a { color: #000; }
}
