@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary:    #0f1114;
  --bg-secondary:  #181b20;
  --bg-tertiary:   #1f2329;
  --bg-card:       #232830;
  --bg-input:      #1a1e24;

  --border-default: #2d333b;
  --border-focus:   #e8870e;
  --border-subtle:  #24292e;

  --text-primary:   #e6edf3;
  --text-secondary: #8b949e;
  --text-muted:     #575f6a;
  --text-label:     #b0b8c1;

  --accent-orange:      #e8870e;
  --accent-orange-dim:  #c47310;
  --accent-orange-glow: rgba(232, 135, 14, 0.15);
  --accent-green:       #3fb950;

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card:     0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--border-subtle);
  --shadow-elevated: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--border-subtle);

  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.8; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent-orange); color: var(--bg-primary); }

:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }

/* ── Shared layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Site nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  height: 52px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.nav-logo-mark {
  font-size: 20px;
  color: var(--accent-orange);
  line-height: 1;
}

.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-snap  { color: var(--text-primary); }
.logo-yakka { color: var(--accent-orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  opacity: 1;
}

.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  background: var(--accent-orange-glow) !important;
  border: 1px solid rgba(232, 135, 14, 0.3) !important;
  color: var(--accent-orange) !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: rgba(232, 135, 14, 0.25) !important;
}

/* ── Site footer ── */
.site-footer {
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
  padding: 40px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: block;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  margin-right: 4px;
}

.footer-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-primary); opacity: 1; }

.footer-contact p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-abn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Page hero ── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 56px;
}

.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Prose content ── */
.prose {
  max-width: 720px;
  margin-bottom: 80px;
}

.prose h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-default);
}

.prose h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-label);
  margin: 24px 0 8px;
}

.prose p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.prose li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.prose a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose .meta-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: block;
}

/* ── Responsive nav ── */
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
