/* Zary Lab hub v4. Medical informatics is named in the hero; palette, type
   and tone are unchanged from v3 (from the NeuroInk Press guidelines; no
   NeuroInk logo or name used as branding). Fonts are
   official SIL OFL cuts, self-hosted. */

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1f3b;
  --ink-deep: #000420;
  --ink-mid: #213a6e;
  --paper: #f3f5ff;
  --neuro: #9ac4ff;
  --neuro-mid: #4979bd;
  --neuro-soft: #e2eeff;
  --char: #1c1d1e;
  --bloom: #e3c7ff;
  --insight: #c7ffe3;
  --font-display: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(18px, 4vw, 36px);
  --max: 72rem;
  --radius-plate: 8px;
  --radius-pill: 999px;
  --control: 48px;
  --ease: cubic-bezier(0.22, 0.82, 0.2, 1);
  --fast: 0.18s;
}

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

html {
  color-scheme: only light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--paper);
  background-color: var(--ink-deep);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Quiet geometric field at the top-right of the page — a fragment, not a mark. */
body::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -16rem;
  width: min(36rem, 72vw);
  height: min(36rem, 72vw);
  border-radius: 50%;
  border: 2rem solid color-mix(in srgb, var(--neuro) 16%, transparent);
  box-shadow:
    inset 0 0 0 6rem color-mix(in srgb, var(--bloom) 8%, transparent),
    0 0 0 11rem color-mix(in srgb, var(--insight) 6%, transparent);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--neuro);
  outline-offset: 3px;
}

h1, h2, h3, p {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--neuro);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.topbar,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem var(--gutter) 0.75rem;
  background: color-mix(in srgb, var(--ink-deep) 88%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 1.05rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}

.brand:hover {
  background: var(--ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control);
  padding: 0 1.05rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--ink);
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.4rem, 7vh, 5.5rem) 0 4.5rem;
}

.hero-copy { position: relative; z-index: 1; max-width: 26em; }

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neuro);
}

.hero h1 {
  margin: 0 0 0.2em;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.headline {
  margin: 0 0 1.5rem;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--neuro);
}

.bio {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius-plate);
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 18px 28px -16px rgb(0 4 32 / 0.55);
}

.bio p {
  margin: 0;
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control);
  padding: 0 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--neuro);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.cta:hover {
  background: var(--neuro-soft);
}

.slash {
  position: relative;
  height: clamp(2.6rem, 8vw, 5.5rem);
  background: var(--neuro);
  clip-path: polygon(0 38%, 100% 0, 100% 62%, 0 100%);
}

.band {
  padding: 3.4rem 0 4.6rem;
}

.band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.band-lead {
  margin: 0 0 1.8rem;
  max-width: 34rem;
  color: var(--neuro-soft);
}

.plates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
  gap: 1.5rem 1.25rem;
}

.plate {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 0.95rem 1rem 1.1rem;
  border-radius: var(--radius-plate);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    0 6px 0 -1px rgb(0 4 32 / 0.4),
    0 18px 28px -14px rgb(0 4 32 / 0.5);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.plate:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    0 8px 0 -1px rgb(0 4 32 / 0.45),
    0 24px 32px -12px rgb(0 4 32 / 0.55);
}

.plate-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.plate-top .host {
  text-align: right;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
  text-transform: none;
}

.plate h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plate p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink-mid);
}

.plate .go {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-deep);
}

.plate:hover .go {
  color: var(--ink-mid);
}

.elsewhere-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .elsewhere-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer {
  padding: 1.4rem var(--gutter) 2.2rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neuro-soft);
}

.not-found {
  padding: clamp(3rem, 10vh, 6rem) 0 5rem;
  max-width: 20em;
}

.not-found h1 {
  margin: 0 0 0.35em;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  color: var(--neuro-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .plate:hover {
    transform: none;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }
}
