@charset "UTF-8";
/* ===== Lab instrument theme: grid, glass panels, mono labels, glowing figures ===== */
body {
  /* the liquid background canvas (liquid-fluid-background.js) sits behind everything */
  background-color: var(--background);
}

/* let the liquid background show through every section (the template gives sections an opaque fill) */
main > section,
main > section.background {
  background-color: transparent !important;
  background-image: none !important;
}

main > section:nth-of-type(even) {
  background-color: color-mix(in srgb, var(--background-alt) 45%, transparent) !important;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  backdrop-filter: blur(2px);
}

/* page-wide hydrogen layer */
#lab-h2-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

/* ===== header: thermal camera banner ===== */
header.background {
  overflow: hidden;
  background: #1f2226;
  color: #f1ece5;
  border-bottom: 1px solid rgba(201, 165, 152, 0.3333333333);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
}

header.background:before {
  display: none;
}

header.background a {
  color: #f1ece5;
}

#lab-thermal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  image-rendering: auto;
}

header.background:after {
  /* scanlines + vignette so text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.0784313725) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(31, 34, 38, 0.5333333333) 0%, rgba(31, 34, 38, 0.2) 45%, transparent 75%), radial-gradient(ellipse at center, transparent 40%, rgba(31, 34, 38, 0.6) 100%);
}

/* lab name: Avenir Next (Apple), three times the template size */
header .title {
  font-family: var(--title);
  font-size: clamp(1.3rem, 3vw, 1.75rem); /* inner pages: the header is sticky, keep it compact */
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: normal;
  text-wrap: balance;
  color: #f4efe8;
  text-shadow: 0 2px 18px rgba(31, 34, 38, 0.8);
}

/* home page: three times the template size */
header[data-big] .title {
  font-size: clamp(2.2rem, 6.6vw, 4.8rem);
  line-height: 1.08;
}

header .subtitle {
  font-family: var(--code);
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.85;
}

header nav a {
  font-family: var(--code);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 8px #000;
}

header nav a:hover {
  color: #e8cbb8;
  text-shadow: 0 0 10px #1f2226;
}

.thermal-readout {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-family: var(--code);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(241, 236, 229, 0.7019607843);
  text-shadow: 0 0 6px #000;
  pointer-events: none;
}

.thermal-scale {
  display: inline-block;
  width: 90px;
  height: 6px;
  margin: 0 6px;
  vertical-align: middle;
  border: 1px solid rgba(241, 236, 229, 0.3333333333);
  background: linear-gradient(90deg, #3a4660, #686280, #a67076, #c98c6c, #dec092, #f3ece2);
}

/* ===== headings: mono labels + vapour bubbles ===== */
h1 {
  position: relative;
  font-family: var(--heading);
  letter-spacing: 3px;
}

h2 {
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

h2::before {
  content: "▸ ";
  color: var(--secondary);
}

h1,
h2 {
  isolation: isolate;
}

.vapour {
  position: absolute;
  inset: -30px 0 0 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.vapour i {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0;
  animation: rise linear infinite;
}

@keyframes rise {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.55;
  }
  100% {
    transform: translate(var(--dx, 6px), -90px) scale(1.15);
    opacity: 0;
  }
}
/* ===== glass panels ===== */
.card,
.citation,
.portrait,
.post-excerpt,
.feature {
  background: var(--panel);
  backdrop-filter: blur(6px);
  border: 1px solid var(--light-gray);
  border-radius: var(--rounded);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover,
.citation:hover,
.portrait:hover {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
}

.card-subtitle,
.citation-details,
.portrait-description,
.portrait-affiliation,
.tag {
  font-family: var(--code);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.button {
  font-family: var(--code);
  letter-spacing: 0.5px;
}

/* ===== glowing instrument figures ===== */
.lab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.lab-stat {
  position: relative;
  padding: 18px 16px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--rounded);
  background: var(--panel);
  text-align: left;
  overflow: hidden;
}

.lab-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px var(--glow);
}

.lab-stat-value {
  display: block;
  font-family: var(--code);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--primary);
  text-shadow: 0 0 16px var(--glow);
}

.lab-stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--code);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.lab-funders {
  font-family: var(--code);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--gray);
  text-align: center;
}

.lab-funders b {
  color: var(--text);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .vapour {
    display: none;
  }
}
/* ===== responsive type scale =====
   Body text is 16px on phones and grows smoothly with the screen to about 18px on laptops
   (19px on large monitors). Built on rem, so a visitor's own browser font-size setting still applies. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
}

@media (min-width: 1800px) {
  html {
    font-size: 1.1875rem;
  }
}
/* small monospace labels never drop below about 12.5px */
.card-subtitle,
.citation-details,
.portrait-description,
.portrait-affiliation,
.tag,
.lab-funders {
  font-size: max(0.8rem, 12.5px);
}

/* phones: give the text more of the screen width and avoid justified gaps */
@media (max-width: 600px) {
  body main section {
    padding-left: 18px;
    padding-right: 18px;
  }
  body main p {
    text-align: left;
    line-height: 1.75;
  }
}
/* the sticky header keeps its previous size, so it doesn't grow on inner pages */
body header:not([data-big]) .title {
  font-size: clamp(20.8px, 3vw, 28px);
}

body header .subtitle,
body header nav a {
  font-size: 13.6px;
}

@media (max-width: 600px) {
  body header nav a {
    font-size: 12.8px;
  }
  body h1 {
    font-size: 1.4rem;
  }
  body h2 {
    font-size: 1.35rem;
  }
  body h3 {
    font-size: 1.25rem;
  }
  .thermal-readout {
    display: none;
  }
}
/* ===== panel padding: text never touches a panel's edge ===== */
body .feature {
  padding: clamp(16px, 2.4vw, 28px);
  gap: clamp(20px, 3vw, 36px);
}

body .feature-text {
  min-width: 0;
}

body .portrait {
  box-sizing: border-box;
  width: 220px;
  padding: 16px 14px 18px;
  align-self: stretch;
  justify-content: flex-start;
  overflow-wrap: break-word;
}

body .portrait[data-style=small] {
  width: 130px;
  padding: 12px;
}

body .portrait[data-style=tiny] {
  width: unset;
  padding: 10px 18px 10px 10px;
}

body .portrait .icon {
  left: 8px;
  top: 8px;
}

@media (max-width: 600px) {
  body .portrait {
    width: 240px;
    margin: 12px;
  }
}

/*# sourceMappingURL=lab.css.map */