/* Accessible CMS, Australian web accessibility resource hub
   Design: academic/editorial. Monochrome with single accent. WCAG AAA contrast. */

:root {
  --ink: #1a1d21;
  --ink-2: #2d3238;
  --muted: #5a6068;
  --muted-2: #8a9098;
  --line: #d8dde2;
  --line-soft: #ebeef1;
  --paper: #ffffff;
  --paper-2: #f6f7f8;
  --paper-3: #eef0f2;
  --accent: #1f4dba;       /* deep blue, AAA on white */
  --accent-deep: #163887;
  --warn: #b9442b;
  --good: #1f6f3f;
  --max: 1180px;
  --radius: 4px;
  --serif: Charter, Georgia, "Iowan Old Style", "Source Serif Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin-top: 1.6em; line-height: 1.25; letter-spacing: -0.005em; }
h1 { font-size: 2.4rem; font-weight: 600; margin: 0 0 0.4em; letter-spacing: -0.015em; }
h2 { font-size: 1.55rem; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 0.4em; margin-top: 2em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.6em; }
h4 { font-size: 1.02rem; font-weight: 600; text-transform: none; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
li > p { margin-bottom: 0.6em; }

code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-3); padding: 1px 5px; border-radius: 3px; }
pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: 0.86rem; line-height: 1.5; }
pre code { background: transparent; padding: 0; }

blockquote { margin: 1.4em 0; padding: 0.6em 1.2em; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; background: var(--paper-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; text-decoration: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 4px; align-items: center; justify-content: center; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-tag { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 1px; font-weight: 500; }
nav.primary { display: flex; gap: 26px; flex-wrap: wrap; }
nav.primary a { color: var(--ink-2); text-decoration: none; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.primary a:hover { border-bottom-color: var(--accent); color: var(--ink); }
nav.primary a.active { border-bottom-color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero .narrow { max-width: 880px; }
.kicker { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 16px; }
.hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 0.4em; }
.lede { font-size: 1.18rem; color: var(--ink-2); line-height: 1.55; max-width: 65ch; }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 0 0 8px; border: 0; padding: 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-meta { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

/* Article body */
article.post { padding: 48px 0 64px; }
article.post .post-head { max-width: 760px; margin: 0 auto 36px; padding: 0 28px; }
article.post .post-meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 16px; margin: 0 0 14px; }
article.post .post-meta span:not(:last-child)::after { content: "/"; color: var(--line); margin-left: 16px; }
article.post .post-body { max-width: 720px; margin: 0 auto; padding: 0 28px; font-size: 1.04rem; }
article.post .post-body p:first-of-type { font-size: 1.16rem; color: var(--ink-2); }
article.post .byline { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.byline .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--line); display: inline-block; }

/* Tables */
.t { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.95rem; font-family: var(--sans); }
.t th, .t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.t th { background: var(--paper-2); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.t tr:hover td { background: var(--paper-2); }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper-2); padding: 16px 20px; border-radius: var(--radius); margin: 24px 0; font-size: 0.97rem; }
.callout.warn { border-left-color: var(--warn); }
.callout.good { border-left-color: var(--good); }
.callout h4 { margin: 0 0 8px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* Contextual links block */
.related-links { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 26px; margin: 36px 0; }
.related-links h3 { margin: 0 0 8px; font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.related-links p { margin: 0; font-size: 0.95rem; line-height: 1.7; }

/* Audit list (sites we have audited) */
.audit-list { display: grid; gap: 0; margin: 30px 0; border-top: 1px solid var(--line); }
.audit-item { padding: 24px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: start; }
.audit-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.audit-item h3 a { color: var(--ink); text-decoration: none; }
.audit-item h3 a:hover { color: var(--accent); text-decoration: underline; }
.audit-item p { margin: 0 0 8px; font-size: 0.96rem; color: var(--ink-2); }
.audit-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.audit-score { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.audit-score.pass { background: #e3f2e8; color: var(--good); border: 1px solid #b8d9c4; }
.audit-score.partial { background: #fff4e0; color: #8a5a14; border: 1px solid #e9d09a; }
.audit-score.fail { background: #fce4dd; color: var(--warn); border: 1px solid #e9b9ad; }
.audit-score.review { background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line); }

/* PDF document card */
.doc-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.doc-item { padding: 18px 0 18px 38px; border-bottom: 1px solid var(--line-soft); position: relative; }
.doc-item::before { content: "PDF"; position: absolute; left: 0; top: 18px; font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 5px; border-radius: 2px; }
.doc-item h4 { margin: 0 0 4px; font-size: 1rem; }
.doc-item h4 a { color: var(--ink); text-decoration: none; }
.doc-item h4 a:hover { color: var(--accent); text-decoration: underline; }
.doc-item p { margin: 0; font-size: 0.9rem; color: var(--muted); font-family: var(--sans); }

/* Stats / facts row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin: 36px 0; }
.stat { padding: 22px 22px 20px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); display: block; line-height: 1.1; }
.stat-label { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: block; }

/* Toolbar / contents */
.contents { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 32px; font-family: var(--sans); font-size: 0.92rem; }
.contents strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.contents ol { margin: 0; padding-left: 22px; }
.contents li { margin-bottom: 4px; }
.contents a { color: var(--ink-2); text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 80px; padding: 56px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 16px; font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); font-weight: 600; }
.site-footer a { display: block; color: var(--ink-2); text-decoration: none; font-family: var(--sans); font-size: 0.92rem; padding: 5px 0; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; max-width: 50ch; }
.legal { padding: 28px 0 0; margin-top: 36px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 880px) {
  body { font-size: 17px; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 2.1rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }
  .cards, .cards-2 { grid-template-columns: 1fr; gap: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .audit-item { grid-template-columns: 1fr; gap: 12px; }
  .site-header .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  nav.primary { gap: 16px; font-size: 0.86rem; width: 100%; }
}
@media (max-width: 560px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* --- Editorial illustrations --- */
.hero-figure { margin: 0 0 28px; max-width: 880px; }
.hero-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.card-figure { margin: -24px -24px 18px; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-2); }
.card-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card { padding-top: 0; overflow: hidden; }
.card .card-meta { padding: 18px 0 0; }
.post-figure { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.post-figure img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) {
  .card-figure { margin: -22px -22px 16px; }
}
