@font-face {
  font-family: 'Helvetica Now';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/HelveticaNowVar.woff2') format('woff2-variations'), url('../fonts/HelveticaNowVar.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Parslay';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Parslay.woff2') format('woff2');
}

:root {
  --night: #050f26;
  --navy: #0a1a3a;
  --navy-2: #10285a;
  --navy-3: #1a3672;
  --royal: #1269b2;
  --royal-deep: #00509e;
  --gold: #ffb530;
  --gold-deep: #e89a0c;
  --white: #ffffff;
  --mist: #d9d3c6;
  --ice: #e3eefa;
  --line: rgb(255 255 255 / 0.16);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --script: 'Parslay', 'Brush Script MT', cursive;
  --sans: 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-h: 68px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

html {
  scrollbar-color: var(--navy-3) var(--night);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 2px solid var(--bg);
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg);
  font: 800 0.95rem/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.btn:hover {
  background: #ffc456;
  border-color: #ffc456;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgb(255 181 48 / 0.6);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--white);
  border-color: rgb(255 255 255 / 0.7);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  box-shadow: none;
}
.btn--navy {
  --bg: var(--navy);
  --fg: var(--white);
}
.btn--navy:hover {
  background: var(--night);
  border-color: var(--night);
  box-shadow: 0 10px 24px -10px rgb(5 15 38 / 0.7);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Billboard slab (CQ FIRST | AUSTRALIA ALWAYS) ---------- */
.slab {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.35em;
  font: 800 clamp(1.25rem, 2.4vw, 1.9rem) / 1 var(--sans);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.slab > span {
  display: inline-flex;
  align-items: center;
  padding: 0.28em 0.38em 0.22em;
}
.slab .solid {
  background: var(--gold);
  color: var(--royal-deep);
}
.slab .open {
  color: var(--gold);
  padding-left: 0;
}

/* ---------- Commonwealth star ---------- */
.cstar {
  fill: currentColor;
}
