/* Australian Public Interest Alliance — apia.org.au
   One stylesheet. No frameworks, no JavaScript, no external requests. */

:root {
  --green:      #6F8F7A;
  --green-dark: #3F5A48;
  --ink:        #1B1B1B;
  --muted:      #5A5F5C;
  --bg:         #FDFDFC;
  --panel:      #F4F6F5;
  --rule:       #E1E6E2;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green:      #8FB09B;
    --green-dark: #A8CBB5;
    --ink:        #E9ECEA;
    --muted:      #9BA39E;
    --bg:         #151816;
    --panel:      #1E2320;
    --rule:       #2C332E;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: 42rem; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.35rem;
}
.brand { display: inline-flex; }
.brand img { width: 15.5rem; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
}
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.01em;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.75rem 0 0.85rem; }
h3 { font-size: 1.1rem; margin: 2rem 0 0.5rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1.15rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.925rem; }

main { padding-block: 3.5rem 4.5rem; }
.page-intro { border-bottom: 1px solid var(--rule); padding-bottom: 2.25rem; margin-bottom: 2.5rem; }

.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green-dark); margin: 0 0 0.9rem;
}

/* ---------- hero ---------- */

.hero { padding-block: 1rem 0.5rem; }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 44ch; }

/* ---------- three columns ---------- */

.cols {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 3.5rem; padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.cols h3 { margin-top: 0; }
.cols p { margin-bottom: 0; color: var(--muted); }

/* ---------- project card ---------- */

.card {
  border: 1px solid var(--rule); border-radius: 4px;
  background: var(--panel);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-top: 1.5rem;
}
.card h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block; vertical-align: 0.15em;
  margin-left: 0.6rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--green-dark);
  border: 1px solid var(--green); border-radius: 2px;
  padding: 0.15rem 0.45rem;
}

/* ---------- definition table ---------- */

.facts { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1.5rem; }
.facts th, .facts td {
  text-align: left; vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.facts th { color: var(--muted); width: 14rem; font-size: 0.95rem; }

.note {
  border-left: 3px solid var(--green);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.75rem 0;
  color: var(--muted);
}
.note strong { color: var(--ink); }

ul.plain { padding-left: 1.15rem; }
ul.plain li { margin-bottom: 0.5rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  color: var(--muted); font-size: 0.925rem;
}
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .mark { width: 3rem; margin-bottom: 1rem; }
.colophon {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: 0.875rem;
}

@media (max-width: 40rem) {
  .brand img { width: 12.5rem; }
  main { padding-block: 2.5rem 3rem; }
  .facts th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .facts td { display: block; padding-top: 0.15rem; }
}
