/* Team CX @ UQ: static site stylesheet. No external resources. */
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f4f8f7;   /* cool seawater white */
  --ink: #13242e;     /* deep reef blue-black */
  --muted: #55666e;
  --teal: #1d6863;    /* links */
  --gold: #a87a1e;    /* Symbiodinium gold */
  --rule: #d3dfde;
  --wash: #e7efed;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1a20; --ink: #e3ecee; --muted: #9aacb2; --teal: #6fc2ba;
    --gold: #d9ae52; --rule: #253741; --wash: #15252d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; font-family: var(--sans); }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 1.6rem; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
i, em { font-style: italic; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding: 1.1rem 0; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-family: var(--sans); font-size: .95rem; }
nav a { color: var(--ink); text-decoration: none; padding-block: .25rem; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--rule); }
nav a[aria-current="page"] { border-bottom-color: var(--gold); }

main { padding: 3rem 0 4rem; }

/* Home hero */
.hero h1 { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); letter-spacing: -0.015em; line-height: 1.1; max-width: 24ch; margin: 0 0 1.4rem; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.track { margin: 2.8rem 0 0; }
.track svg { display: block; width: 100%; height: auto; overflow: visible; }
.track figcaption { font-family: var(--sans); font-size: .85rem; line-height: 1.5; color: var(--muted); max-width: 70ch; margin-top: .8rem; }
.gt-line { stroke: var(--ink); stroke-width: 1.5; }
.gt-gene { fill: var(--teal); opacity: .55; }
.gt-rep { fill: var(--gold); }
.gt-tick { stroke: var(--muted); stroke-width: 1; }
.gt-label { fill: var(--muted); font-family: var(--sans); font-size: 11px; }
@media (max-width: 40rem) { .gt-label { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .gt-rep { transform-box: fill-box; transform-origin: center bottom; animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
  .gt-rep.below { transform-origin: center top; }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Home grid */
.home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem 4rem; margin-top: 3.5rem; border-top: 1px solid var(--rule); }
@media (max-width: 52rem) { .home-grid { grid-template-columns: 1fr; } }
.more { font-family: var(--sans); font-size: .95rem; }

.callout { margin-top: 2.4rem; padding: 1.2rem 1.4rem; background: var(--wash); border-left: 3px solid var(--gold); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.quick-links { list-style: none; padding: 0; margin: 0 0 1rem; font-family: var(--sans); font-size: .95rem; line-height: 2; }

/* Inner pages */
.page-head { max-width: var(--measure); margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 0 0 .8rem; letter-spacing: -0.01em; }
.prose { max-width: var(--measure); line-height: 1.68; }
.prose h2:first-child { margin-top: 0; }

/* Section index (publications, CV) */
.section-index { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--sans); font-size: .95rem; }
.section-index .count { color: var(--muted); font-size: .85rem; }
[id] { scroll-margin-top: 1rem; }

/* Research themes */
.themes { display: grid; gap: 0; max-width: 52rem; }
.theme { padding: 2rem 0; border-top: 1px solid var(--rule); }
.theme:first-child { border-top: 0; padding-top: 0; }
.theme h2 { margin: 0 0 .5rem; }
.theme-summary { font-size: 1.2rem; color: var(--muted); }
.theme dl { display: grid; grid-template-columns: 8rem 1fr; gap: .4rem 1rem; margin: 1.2rem 0 0; font-size: .98rem; }
.theme dt { font-family: var(--sans); font-size: .85rem; color: var(--muted); padding-top: .2rem; }
.theme dd { margin: 0; }
@media (max-width: 40rem) { .theme dl { grid-template-columns: 1fr; } .theme dd { margin-bottom: .6rem; } }

/* People */
.person { display: flex; gap: 1.4rem; align-items: flex-start; }
.person h2, .person h3 { margin: 0 0 .3rem; }
.person p { margin: 0 0 .4rem; }
.person .role { font-family: var(--sans); font-size: .95rem; }
.person .quals, .person .research { font-size: .98rem; color: var(--muted); }
.lead-person { max-width: 52rem; margin-bottom: 1rem; }
.lead-person .bio { margin-top: .8rem; line-height: 1.65; }
.portrait { width: 160px; height: 160px; object-fit: cover; flex: none; border-radius: 2px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.8rem 2.5rem; }
.member-grid .portrait { width: 96px; height: 96px; }
.member-grid h3 a { color: var(--ink); }
@media (max-width: 40rem) { .person { flex-direction: column; } }

/* Publications */
.pub-cat { margin-bottom: 3rem; }
.pub-cat > h2 { font-size: 1.8rem; margin: 0 0 .5rem; }
.pub-year { margin-top: 1.4rem; }
.pub-year > h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--gold); margin: 0; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
.pubs { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.pubs li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.pub-title { display: block; font-weight: 600; line-height: 1.35; }
.pub-authors { display: block; color: var(--muted); font-size: 1rem; margin-top: .2rem; }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-note { display: block; color: var(--muted); font-size: .9rem; font-style: italic; }
.pub-venue { display: block; font-size: 1rem; }
.pub-links { display: inline-flex; flex-wrap: wrap; gap: .3rem .9rem; margin-left: .6rem; font-family: var(--sans); font-size: .85rem; }

/* Tables (genome data) */
.table-scroll { overflow-x: auto; margin: .5rem 0 2rem; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 1rem; }
th { text-align: left; font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--muted); padding: .5rem .8rem .5rem 0; border-bottom: 2px solid var(--rule); }
td { padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:last-child, th:last-child { font-family: var(--sans); font-size: .9rem; white-space: nowrap; }

/* CV */
.cv { max-width: 52rem; }
.cv h2 { padding-top: 1rem; border-top: 1px solid var(--rule); }
.cv h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.cv ul { padding-left: 1.2rem; }
.cv li { margin-bottom: .6rem; }
.cv li strong { font-family: var(--sans); font-size: .92rem; font-weight: 600; }
.cv li em { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--wash); font-family: var(--sans); font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding: 2rem 0 1rem; }
address { font-style: normal; line-height: 1.6; }
address strong { color: var(--ink); font-weight: 600; }
.contact { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.colophon { font-size: .8rem; padding-bottom: 1.5rem; margin: 0 auto; }

@media print {
  .site-header nav, .skip, .track { display: none; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}

/* generated */
.gt-rep.d0 { animation-delay: 0.25s; }
.gt-rep.d1 { animation-delay: 0.31s; }
.gt-rep.d2 { animation-delay: 0.37s; }
.gt-rep.d3 { animation-delay: 0.43s; }
.gt-rep.d4 { animation-delay: 0.49s; }
.gt-rep.d5 { animation-delay: 0.55s; }
.gt-rep.d6 { animation-delay: 0.61s; }
.gt-rep.d7 { animation-delay: 0.67s; }
.gt-rep.d8 { animation-delay: 0.73s; }
.gt-rep.d9 { animation-delay: 0.79s; }
.gt-rep.d10 { animation-delay: 0.85s; }
.gt-rep.d11 { animation-delay: 0.91s; }
.gt-rep.d12 { animation-delay: 0.97s; }
.gt-rep.d13 { animation-delay: 1.03s; }
