/* AussieYardWild — direction A: light field guide, photo-led.
   Photos carry the page; the yellow wildlife sign is the one graphic accent. */
@font-face { font-family: "Lora"; src: url(/assets/fonts/lora-var.woff) format("woff"); font-weight: 400 700; font-style: normal; font-display: optional; }
@font-face { font-family: "Inter Display"; src: url(/assets/fonts/interdisplay-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/assets/fonts/interdisplay-800.woff) format("woff"); font-weight: 800; font-display: optional; }

:root {
  --ink: #18231e;
  --muted: #5b6862;
  --paper: #f8f9f6;
  --card: #ffffff;
  --mist: #eef2ee;
  --line: #dfe5e0;
  --gum: #2f6450;
  --wattle: #f3c11b;
  --deep: #16211c;
  --warn: #fbefc4;
  --danger: #f6d5ce;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --head: "Inter Display", "Helvetica Neue", Arial, system-ui, sans-serif;
  --measure: 68ch;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7ece8; --muted: #a5b1aa; --paper: #121815; --card: #19211d; --mist: #1d2722;
    --line: #2b3731; --gum: #8cc7ad; --deep: #0c110e; --warn: #3a321b; --danger: #3b2420; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 var(--body); font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wattle); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -0.018em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---------- header & footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--head); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font: 600 .95rem/1 var(--head); }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--wattle); }
.site-footer { margin-top: 96px; background: var(--deep); color: #b9c4be; padding: 44px 0 32px; font: 400 .95rem/1.6 var(--head); }
.site-footer a { color: #eef2ee; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr; }
.footer-sos { display: flex; gap: 14px; align-items: flex-start; color: #eef2ee; }
.footer-sos img { flex: none; }
.footer-sos p { margin: 0; }
.footer-sos strong { color: var(--wattle); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.fine { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid #2c3832; padding-top: 16px; margin: 0; }

/* ---------- photo hero (home + hubs) ---------- */
.hero { position: relative; margin-top: 20px; border-radius: var(--r); overflow: hidden; min-height: 540px; display: flex; align-items: flex-end; background: var(--deep); color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,12,.8) 0, rgba(10,16,12,.4) 50%, rgba(10,16,12,0) 78%); }
.hero-text { position: relative; z-index: 1; padding: 48px; max-width: 660px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero-text p { font-size: 1.2rem; line-height: 1.6; margin: 16px 0 0; color: #e8ece9; max-width: 46ch; }
.hero-text .sign { margin-bottom: 16px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.hero-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0; font: 600 .72rem/1.3 var(--head); color: rgba(255,255,255,.82); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hero-credit a { color: inherit; }
.hero-hub { min-height: 380px; margin-top: 8px; }
.hero-hub h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.section-h { margin: 64px 0 20px; font-size: clamp(1.5rem, 3vw, 2rem); }

/* category tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile a { display: block; color: inherit; text-decoration: none; height: 100%; }
.tile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-sign { position: absolute; top: 12px; left: 12px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.tile-body { display: block; padding: 14px 16px 18px; }
.tile-title { display: block; font: 800 1.3rem/1.2 var(--head); }
.tile-blurb { display: block; color: var(--muted); font-size: .98rem; line-height: 1.45; margin-top: 4px; }
.tile a:hover .tile-title { color: var(--gum); }
.tile a:hover .tile-img { filter: saturate(1.1); }
.tile-soon .tile-img { filter: grayscale(.45) brightness(.95); }
.tile-soon .tile-blurb { font-family: var(--head); font-weight: 600; font-size: .88rem; }
.tile-credits { font: 400 .78rem/1.5 var(--head); color: var(--muted); margin: 14px 0 0; }
.tile-credits a { color: inherit; }

/* ---------- guide ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font: 600 .88rem/1.4 var(--head); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; opacity: .55; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.g-head { padding-bottom: 8px; }
.g-title { display: flex; gap: 18px; align-items: flex-start; margin: 18px 0 12px; max-width: 920px; }
.g-title .sign { flex: none; margin-top: 4px; }
.byline { font: 400 .95rem/1.5 var(--head); color: var(--muted); margin: 0 0 0 74px; }
.byline time { color: var(--ink); font-weight: 600; }
.page-head .byline { margin-left: 0; }
.page-head h1 { margin: 40px 0 10px; }
.g-hero { margin: 24px auto 0; }
.g-hero img { width: 100%; max-height: 500px; object-fit: cover; object-position: 50% 38%; border-radius: var(--r); }
.g-hero figcaption, .figure figcaption { font: 400 .82rem/1.5 var(--head); color: var(--muted); margin-top: 8px; }
.g-hero figcaption a, .figure figcaption a, .species figcaption a { color: inherit; }

.g-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 44px; }
.g-toc { position: sticky; top: 24px; align-self: start; font: 600 .92rem/1.4 var(--head); }
.g-toc p { margin: 0 0 10px; color: var(--muted); }
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.g-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.g-toc li a:hover { color: var(--ink); border-left-color: var(--wattle); }
.g-body { max-width: var(--measure); }
.toc-inline { display: none; margin: 0 0 32px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font: 600 .95rem/1.4 var(--head); }
.toc-inline summary { padding: 12px 0; cursor: pointer; }
.toc-inline ol { margin: 0 0 12px; padding-left: 1.3em; }
.toc-inline li { margin: 6px 0; }

.quick { margin: 0 0 28px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--wattle); border-radius: var(--r); padding: 20px 24px 18px; }
.quick h2 { font-size: 1rem; margin: 0 0 6px; color: var(--gum); }
.quick p { margin: 0; font-size: 1.1rem; line-height: 1.65; }
.quick .applies { margin-top: 12px; font: 400 .88rem/1.4 var(--head); color: var(--muted); }

.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 18px; margin: 0 0 40px; border-top: 2px solid var(--ink); }
.glance div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance dt { font: 600 .85rem/1.3 var(--head); color: var(--muted); }
.glance dd { margin: 3px 0 0; font: 800 1.05rem/1.3 var(--head); }

.figure { margin: 28px 0 36px; }
.figure img { width: 100%; border-radius: var(--r); }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; font: 400 .95rem/1.45 var(--head); }
.legend li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
.legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wattle); color: #1a1714; border: 2px solid #1a1714; font: 800 .85rem/1 var(--head); }

/* species comparison cards */
.compare { margin: 28px 0 32px; }
.compare h3 { margin: 0 0 14px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.compare-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .compare-grid, .compare-4 { grid-template-columns: 1fr; } .species img { aspect-ratio: 16 / 9; } }
.species { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.species figure { margin: 0; position: relative; }
.species img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.species figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 4px; font: 600 .66rem/1.3 var(--head); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.species-noimg { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--mist); font: 600 .8rem/1 var(--head); color: var(--muted); }
.species-body { padding: 12px 16px 14px; font: 400 .95rem/1.45 var(--head); }
.species h4 { font-size: 1.08rem; }
.species .sci { margin: 2px 0 8px; font: italic 400 .9rem/1.3 var(--body); color: var(--muted); }
.species ul { margin: 0; padding-left: 1.1em; }
.species li { margin: 3px 0; }
.species-src { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }

.prose h2 { scroll-margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { font-family: var(--head); font-weight: 800; color: var(--gum); }
.prose strong { font-weight: 650; }
.cite { font: 600 .7em/0 var(--head); }
.cite a { text-decoration: none; }

.callout { margin: 24px 0; padding: 16px 20px; background: var(--mist); border-left: 6px solid var(--gum); border-radius: 0 var(--r) var(--r) 0; }
.callout-warning { background: var(--warn); border-left-color: var(--wattle); }
.callout-danger { background: var(--danger); border-left-color: #b23a2a; }
.callout-title { font: 800 1rem/1.3 var(--head); margin: 0 0 4px; }
.callout > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { border-collapse: collapse; width: 100%; font: 400 .95rem/1.5 var(--head); }
caption { text-align: left; font-weight: 600; color: var(--muted); padding-bottom: 8px; }
th, td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 800; }
tbody th { font-weight: 800; white-space: nowrap; }
.state-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; font: 800 .9rem/1 var(--head); }
.state-jump a { padding: 9px 14px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; border-radius: 999px; }
.state-jump a:hover { background: var(--wattle); border-color: var(--wattle); color: #1a1714; }
.rules tr:target { background: var(--warn); }

/* identifier */
.ident { margin: 28px 0; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--gum); padding: 22px 24px; border-radius: var(--r); }
.ident h3 { margin: 0 0 4px; }
.ident-intro { color: var(--muted); margin: 0 0 18px; font: 400 .95rem/1.5 var(--head); }
.ident fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.ident legend { font: 800 1rem/1.3 var(--head); margin-bottom: 8px; }
.ident label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font: 400 .98rem/1.45 var(--head); background: var(--paper); }
.ident label:hover { border-color: var(--muted); }
.ident label:has(input:checked) { border-color: var(--gum); background: var(--mist); box-shadow: inset 3px 0 0 var(--gum); }
.ident input { margin-top: 4px; accent-color: var(--gum); }
.ident-result { background: var(--wattle); color: #1a1714; padding: 16px 18px; border-radius: var(--r); margin: 4px 0 18px; font-family: var(--head); }
.ident-result h4 { margin: 0 0 4px; font-size: 1.2rem; }
.ident-result p { margin: 0 0 6px; }
.ident-result a, .ident-reset { color: #1a1714; font-weight: 800; }
.ident-reset { font: inherit; font-weight: 600; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.ident .table-wrap { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font: 800 1.05rem/1.4 var(--head); }
.faq details p { margin: 8px 0 0; }
.sources ol { font: 400 .92rem/1.55 var(--head); padding-left: 1.4em; }
.sources li { margin: .5em 0; overflow-wrap: anywhere; }
.about-guide { margin-top: 32px; padding: 18px 20px; background: var(--mist); border-radius: var(--r); font: 400 .92rem/1.6 var(--head); display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gum); color: #fff; font: 800 1rem/1 var(--head); letter-spacing: .02em; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.9rem; flex: none; }
.author-head { display: flex; gap: 24px; align-items: flex-start; margin-top: 28px; }
.author-head h1 { margin: 6px 0 10px; }
.author-bio { font-size: 1.12rem; max-width: 60ch; margin: 0 0 10px; }
.author-head .byline { margin: 0; }
@media (max-width: 700px) { .author-head { flex-direction: column; gap: 12px; } .avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; } }
.about-guide p { margin: 0; }

.rows { list-style: none; padding: 0; margin: 16px 0; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); align-items: start; }
.rows a:hover .row-title { color: var(--gum); text-decoration: underline; }
.row-title { display: block; font: 800 1.12rem/1.3 var(--head); }
.row-desc { display: block; color: var(--muted); font-size: .98rem; line-height: 1.55; margin-top: 2px; }
.hub-list { margin-top: 28px; }
.home-recent { margin-top: 8px; }

@media (max-width: 980px) {
  .g-grid { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .g-toc { display: none; }
  .toc-inline { display: block; }
}
@media (max-width: 700px) {
  body { font-size: 1.02rem; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 0; padding-top: 12px; gap: 6px; }
  .site-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .hero, .hero-hub { display: block; min-height: 0; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .hero::after { display: none; }
  .hero-img { position: static; height: 240px; }
  .hero-img-home { object-position: 72% 40%; }
  .hero-text { padding: 22px 20px 12px; }
  .hero-credit { position: static; padding: 0 20px 16px; color: rgba(255,255,255,.6); text-shadow: none; }
  .hero-text p { font-size: 1.05rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile-title { font-size: 1.05rem; }
  .tile-blurb { font-size: .85rem; }
  .tile-sign { width: 34px; height: 34px; top: 8px; left: 8px; }
  .g-title { gap: 12px; }
  .g-title .sign { width: 40px; height: 40px; }
  .byline { margin-left: 0; }
  .g-hero { padding: 0; }
  .g-hero img { border-radius: 0; max-height: 360px; }
  .g-hero figcaption { padding: 0 16px; }
  .quick { padding: 16px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ident { padding: 18px 16px; margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .crumbs li[aria-current] { display: none; }
  .section-h { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
