/* ============================================================
   NDIS Investigations — shared editorial design system
   ============================================================ */

:root {
  --bg: #14213D;
  --bg-soft: #1B2A4A;
  --ink: #F2EBDA;
  --ink-soft: #B8B0A0;
  --ink-mute: #8A8472;
  --rule: #2A3654;
  --rule-strong: #3F4D70;
  --copper: #D0704A;
  --copper-deep: #B85C38;
  --serif: "IBM Plex Serif", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Oswald", "Impact", "Helvetica Neue Condensed", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Type utilities ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow--ink { color: var(--ink); }
.meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.nav-link {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.copper-link {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.copper-link:hover { color: var(--copper-deep); }
.copper-cta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
  display: inline-block;
}
.copper-cta:hover { color: var(--copper-deep); border-color: var(--copper-deep); }
.ink-cta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-block;
}

/* ---------- Top nav ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a { color: var(--ink-soft); transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }
.nav a.is-current { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.nav a.is-copper { color: var(--copper); }
.nav a.is-copper:hover { color: var(--copper-deep); }

/* ---------- Hero image (full-bleed banner) ---------- */
.hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 560px;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

/* ---------- Petition counter strip ---------- */
.counter-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.counter-strip__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
}
.counter-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  display: inline-block;
}
.counter-strip__figure {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin: 0;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.counter-strip__figure b {
  font-weight: 600;
  font-size: 26px;
  margin-right: 6px;
}
.counter-strip__action {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- Section headers (page header on non-hero pages) ---------- */
.page-head {
  padding: 112px 0 64px;
}
.page-head__eyebrow { display: inline-block; margin-bottom: 28px; }
.page-head__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 18ch;
  color: var(--ink);
}
.page-head__dek {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}

/* ---------- Footer (shared) ---------- */
.footer {
  padding: 72px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.footer__wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 14px;
}
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 30ch;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.footer__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.footer__list li {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.footer__list li b {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.footer__list a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  max-width: 70ch;
}
.footer__corrections {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Honeypot ---------- */
/* Hidden form field that humans never fill but bots auto-complete.
   Positioned off-screen (not display:none — some bots skip those). */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Forms (shared) ---------- */
.form-shell {
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
}
.field label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 160px; line-height: 1.55; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--copper); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23F2EBDA' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.submit {
  margin-top: 8px;
  background: var(--copper);
  color: #F5F1E8;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.submit:hover { background: var(--copper-deep); }
.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Form feedback ---------- */
.form-error {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #E85D4A;
  margin: 0 0 22px;
}
.form-success {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}
.form-success p { margin: 0 0 14px; }
.form-success__title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--ink);
}
.form-success__prompt {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 28px 0 14px;
}
.form-success__actions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Rich text body (rendered from Trix HTML) ---------- */
/* !important used defensively: rich-body content is injected via JS into
   containers that may already carry typography rules (.blurb__body, .form-success).
   This guarantees Anton + uppercase regardless of inherited context. */
.rich-body h1,
.rich-body h2 {
  font-family: var(--display) !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.005em !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
  margin: 36px 0 14px !important;
}
.rich-body h3 {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--copper) !important;
  margin: 28px 0 10px !important;
}
.rich-body a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 3px;
}
.rich-body a:hover { color: var(--copper-deep); }
.rich-body strong { font-weight: 700; }
.rich-body em { font-style: italic; }
.rich-body ul,
.rich-body ol { padding-left: 24px; margin: 0 0 18px; }
.rich-body li { margin: 0 0 8px; line-height: 1.55; }
.rich-body blockquote {
  border-left: 3px solid var(--copper);
  padding: 4px 0 4px 22px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Video embed ---------- */
.page-video {
  margin: 0 0 36px;
  max-width: 64ch;
}
.page-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--rule-strong);
}
.page-video__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Progress bar ---------- */
.progress {
  padding: 0 0 8px;
}
.progress__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.progress__label span {
  color: var(--ink);
}
.progress__track {
  height: 6px;
  background: var(--rule-strong);
  border-radius: 3px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: var(--copper);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .container, .container--narrow { padding: 0 28px; }
  .nav { gap: 22px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .counter-strip__inner { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; text-align: left; }
  .counter-strip__figure { text-align: left; }
}
@media (max-width: 560px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .wordmark { font-size: 22px; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .nav-link { font-size: 10.5px; }
}
