/* AuLotto Magic — loft space + quiet magic */
:root {
  --void: #1a1a18;
  --concrete: #3d3d38;
  --mist: #8a8984;
  --plaster: #e6e4df;
  --loft: #f3f1ec;
  --beam: #ffffff;
  --myst: #5c4d7a;
  --myst-soft: rgba(92, 77, 122, 0.12);
  --gold: #b8a063;
  --gold-dim: rgba(184, 160, 99, 0.35);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 2px;
  --line: rgba(26, 26, 24, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--void);
  background: var(--loft);
  -webkit-font-smoothing: antialiased;
}

/* Loft grid + star whisper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--myst-soft), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(184, 160, 99, 0.08), transparent 50%);
}

.magic-dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.magic-dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: rise 14s var(--ease) infinite;
}
.magic-dust span:nth-child(1) { left: 12%; bottom: -5%; animation-delay: 0s; }
.magic-dust span:nth-child(2) { left: 28%; bottom: -5%; animation-delay: 2.2s; }
.magic-dust span:nth-child(3) { left: 44%; bottom: -5%; animation-delay: 4s; }
.magic-dust span:nth-child(4) { left: 61%; bottom: -5%; animation-delay: 1s; }
.magic-dust span:nth-child(5) { left: 78%; bottom: -5%; animation-delay: 3.5s; }
.magic-dust span:nth-child(6) { left: 91%; bottom: -5%; animation-delay: 5.5s; }

@keyframes rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.55; }
  100% { transform: translateY(-120vh) scale(1); opacity: 0; }
}

a { color: var(--myst); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s var(--ease); }
a:hover { color: var(--concrete); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--void);
  color: var(--loft);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.site-wrap { position: relative; z-index: 1; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 236, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  min-height: 4rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--mist);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--void);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--concrete);
  letter-spacing: 0.03em;
}
.main-nav a:hover { color: var(--myst); }
.main-nav a[aria-current="page"] {
  color: var(--myst);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 4rem 0 auto 0;
    background: var(--beam);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    align-items: flex-start;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 38rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--concrete);
  margin: 0 0 2rem;
  max-width: 36rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary {
  background: var(--void);
  color: var(--loft);
  border-color: var(--void);
}
.btn--primary:hover { background: var(--concrete); color: var(--beam); }
.btn--ghost {
  background: transparent;
  color: var(--void);
  border-color: var(--concrete);
}
.btn--ghost:hover {
  border-color: var(--myst);
  color: var(--myst);
}

.badge-18 {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--void);
  margin-bottom: 1rem;
}

/* Sections */
section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.section-intro {
  margin: 0 0 2.5rem;
  max-width: 42rem;
  color: var(--concrete);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pillar {
  background: var(--beam);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pillar:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 24px 48px rgba(26, 26, 24, 0.06);
}
.pillar__icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--myst);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.pillar p { margin: 0; color: var(--concrete); font-size: 0.98rem; }

/* Content pages */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}
.page-hero p { margin: 0; max-width: 40rem; color: var(--concrete); }

.prose {
  max-width: 42rem;
  padding-bottom: 3rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.25rem 0 0.75rem;
}
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--concrete); }
.prose ul { padding-left: 1.25rem; }
.prose .callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--beam);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
}

/* Help strip AU */
.help-strip {
  background: var(--void);
  color: var(--plaster);
  padding: 2rem 0;
  margin-top: 2rem;
}
.help-strip h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--beam);
}
.help-strip a { color: #d4c4f0; }
.help-strip a:hover { color: var(--beam); }
.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}
.help-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.help-links a:hover { border-color: var(--gold); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  color: var(--mist);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { text-decoration: none; font-size: 0.92rem; }
.footer-bottom {
  font-size: 0.82rem;
  color: var(--mist);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Denser layouts (still loft: air + grid) */
section.section--plaster {
  background: var(--plaster);
  border-block: 1px solid var(--line);
}
section.section--beam {
  background: var(--beam);
  border-block: 1px solid var(--line);
}

.editorial-block {
  max-width: 40rem;
}
.editorial-block p {
  color: var(--concrete);
  margin: 0 0 1.1rem;
}
.editorial-block p:last-child { margin-bottom: 0; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--beam);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
  text-align: left;
}
.stat-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--void);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.stat-card__note {
  font-size: 0.88rem;
  color: var(--concrete);
  line-height: 1.45;
  margin: 0;
}

.myth-fact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.myth-fact__col {
  background: var(--beam);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem;
}
.myth-fact__col h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}
.myth-fact__col ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--concrete);
  font-size: 0.95rem;
}
.myth-fact__col li { margin-bottom: 0.5rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.topic-tile {
  display: block;
  padding: 1.35rem 1.25rem;
  background: var(--beam);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topic-tile:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 4px 14px rgba(26, 26, 24, 0.07);
  color: inherit;
}
.topic-tile h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--void);
}
.topic-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--concrete);
  line-height: 1.5;
}

.faq-block { margin-top: 2.5rem; max-width: 48rem; }
.faq-block h2 { margin-bottom: 1rem; }
.faq-list details {
  border: 1px solid var(--line);
  background: var(--beam);
  margin-bottom: 0.65rem;
  padding: 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 1rem 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-weight: 400;
  color: var(--mist);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-a {
  padding: 0 1.15rem 1.1rem;
  color: var(--concrete);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  margin: 0;
}

.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 3px solid var(--myst);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--void);
  line-height: 1.4;
  background: rgba(255,255,255,0.6);
}

.prose--wide { max-width: 52rem; }

.glossary {
  margin: 2rem 0;
  border: 1px solid var(--line);
  background: var(--beam);
  padding: 1.5rem 1.35rem;
}
.glossary dt {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--void);
}
.glossary dt:first-child { margin-top: 0; }
.glossary dd {
  margin: 0.35rem 0 0;
  color: var(--concrete);
  font-size: 0.95rem;
  padding-left: 0;
}

.split-highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .split-highlight {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.split-highlight__aside {
  background: var(--void);
  color: var(--plaster);
  padding: 1.5rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.split-highlight__aside strong { color: var(--beam); }

.step-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: step;
}
.step-list li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.15rem;
  color: var(--concrete);
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
