@font-face { font-family: 'Magra'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/magra-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Magra'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/magra-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/outfit-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/outfit-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/outfit-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/outfit-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5f9fc;
  --fg-light-base-body: #0c2336;
  --fg-light-base-heading: #0c2336;
  --fg-light-base-muted: #3d5569;
  --fg-light-base-link: #1f5f8f;
  --fg-light-base-inverse: #0c2336;
  --bg-light-card: #e3edf5;
  --fg-light-card-body: #0c2336;
  --fg-light-card-heading: #0c2336;
  --fg-light-card-muted: #3d5569;
  --fg-light-card-link: #1f5f8f;
  --fg-light-card-inverse: #0c2336;
  --bg-light-elevated: #ffffff;
  --fg-light-elevated-body: #0c2336;
  --fg-light-elevated-heading: #0c2336;
  --fg-light-elevated-muted: #3d5569;
  --fg-light-elevated-link: #1f5f8f;
  --fg-light-elevated-inverse: #0c2336;
  --brand-light-accent: #1f5f8f;
  --brand-light-accent-hover: #154870;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #1f5f8f;
  --border-light-default: #6c8597;
  --border-light-subtle: #c2d3e1;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --ink: var(--fg-light-base-heading);
  --harbour: var(--brand-light-accent);
  --harbour-deep: var(--brand-light-accent-hover);
  --on-harbour: var(--brand-light-on-accent);
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --white: var(--bg-light-elevated);
  --wash: var(--bg-light-card);
  --ground: var(--bg-light-base);
  --display: 'Magra', 'Trebuchet MS', Arial, sans-serif;
  --text: 'Outfit', 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --frame: 74rem;
  --measure: 40rem;
  --cell: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  padding: 0.5rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--harbour);
}
.skip-link:focus { top: 0.5rem; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--harbour-deep); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--harbour); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}
h2 { font-size: clamp(1.55rem, 3.2vw, 2rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.05rem; }

/* Header: brand row over a pale topic rail */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
}
.brand .site-logo { width: 2rem; height: auto; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  min-width: 0;
}

.site-menu { flex: none; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.menu-icon {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.site-menu[open] > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 35;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 2px solid var(--harbour);
}
.site-menu ul ul { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--line-soft); }
.site-menu li a { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); }

.topic-rail { display: none; border-top: 1px solid var(--line-soft); }
.topic-rail-inner { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); }
.site-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav > ul > li { position: relative; border-left: 1px solid var(--line-soft); }
.site-nav > ul > li:last-child { border-right: 1px solid var(--line-soft); }
.site-nav > ul > li > a,
.site-nav-group > summary {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav > ul > li > a:hover { text-decoration: underline; }
.site-nav-group > summary { cursor: pointer; list-style: none; }
.site-nav-group > summary::-webkit-details-marker { display: none; }
.site-nav-group > summary::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2rem) rotate(45deg);
}
.site-nav-group[open] > ul {
  position: absolute;
  left: -1px;
  top: 100%;
  z-index: 36;
  min-width: 16rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--harbour);
}
.site-nav-group li a { display: block; padding: 0.5rem 1rem; white-space: nowrap; }

@media (min-width: 1000px) {
  .site-menu { display: none; }
  .topic-rail { display: block; }
  .brand-name { font-size: 1.3rem; }
  html { scroll-padding-top: 9rem; }
}

/* Page sheet */
.sheet {
  flex: 1;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter) 4.5rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 0.55rem; color: var(--line); }

main h1 { margin: 0; color: var(--ink); }

figure { margin: 2rem 0; }
.photo-hero { margin: 1.75rem 0 2rem; }
.photo-hero img, main figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* Shared blueprint grid surface */
.report-head,
.specimen-grid {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}

/* Home: lab-report header over a grid band, then stepped findings */
.home { counter-reset: finding; }
.report-head {
  margin: 1.5rem calc(var(--gutter) * -1) 0;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  border-top: 3px solid var(--harbour);
  border-bottom: 1px solid var(--line);
}
.report-grid { display: grid; gap: 1.75rem; }
.report-title h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.report-lines {
  align-self: end;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--harbour);
  box-shadow: 6px 6px 0 var(--harbour);
}
.report-lines:empty { display: none; }
.report-lines .display-line { margin: 0; font-size: 1.08rem; }
.report-lines .display-line + .display-line {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.findings { padding-top: 1rem; }
.findings > .photo-hero { max-width: 56rem; }
.findings > h2 {
  counter-increment: finding;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.findings > h2::before {
  content: counter(finding, decimal-leading-zero);
  flex: none;
  min-width: 2.6rem;
  padding: 0.25rem 0.4rem;
  font-size: 1rem;
  text-align: center;
  color: var(--on-harbour);
  background: var(--harbour);
}
.findings > p, .findings > ul { max-width: var(--measure); }

@media (min-width: 900px) {
  .report-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
  .report-head { margin-left: 0; margin-right: 0; padding-left: 2.5rem; padding-right: 2.5rem; }
  .findings > h2, .findings > p, .findings > ul { margin-left: 0; }
  .findings > h2:nth-of-type(2), .findings > h2:nth-of-type(2) ~ p, .findings > h2:nth-of-type(2) ~ ul { margin-left: 4rem; }
  .findings > h2:nth-of-type(3), .findings > h2:nth-of-type(3) ~ p, .findings > h2:nth-of-type(3) ~ ul { margin-left: 8rem; }
  .findings > h2:nth-of-type(n+4), .findings > h2:nth-of-type(4) ~ p, .findings > h2:nth-of-type(4) ~ ul { margin-left: 12rem; }
  .findings > h2 { max-width: calc(var(--measure) + 3.5rem); }
}

/* About: method statement as numbered protocol steps */
.method { counter-reset: step; padding-top: 2.25rem; }
.method-head { max-width: 52rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--harbour); }
.method-title h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.protocol { max-width: var(--measure); }
.protocol > h2 {
  counter-increment: step;
  position: relative;
  margin-top: 2.25rem;
  padding: 1.1rem 0 0 3.4rem;
  border-top: 1px solid var(--harbour);
}
.protocol > h2::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border: 1.5px solid var(--harbour);
  border-radius: 50%;
  color: var(--harbour);
}
@media (min-width: 900px) {
  .protocol { max-width: 50rem; }
  .protocol > h2:nth-of-type(2), .protocol > h2:nth-of-type(2) ~ * { margin-left: 2rem; }
  .protocol > h2:nth-of-type(3), .protocol > h2:nth-of-type(3) ~ * { margin-left: 4rem; }
  .protocol > h2:nth-of-type(n+4), .protocol > h2:nth-of-type(4) ~ * { margin-left: 6rem; }
  .protocol > p { max-width: var(--measure); }
}

/* Article: research brief, summary box then margin callouts */
.brief { padding-top: 2rem; }
.brief-head { max-width: 50rem; margin-bottom: 1.75rem; }
.brief-title h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
.brief-body > p:first-of-type {
  padding: 1.1rem 1.25rem;
  font-size: 1.12rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--harbour);
}
.brief-body > h2 {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.brief-body > h2::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.65rem;
  border: 2px solid var(--harbour);
  vertical-align: 0.1em;
}
.brief-body > ul, .brief-body > ol {
  padding: 0.9rem 1rem 0.9rem 2.1rem;
  background: var(--wash);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.brief-body li + li { margin-top: 0.4rem; }
.brief-body strong { color: var(--ink); }
.brief-body > figure:not(.photo-hero) {
  padding: 0.6rem;
  background: var(--white);
  border: 1px dashed var(--harbour);
}
@media (min-width: 1000px) {
  .brief-body {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: start;
  }
  .brief-body > * { grid-column: 1; }
  .brief-body > .photo-hero { grid-column: 1 / -1; }
  .brief-body > figure:not(.photo-hero) {
    grid-column: 2;
    grid-row: span 3;
    position: relative;
    margin-top: 0.5rem;
  }
  .brief-body > figure:not(.photo-hero)::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: -3rem;
    width: 2.6rem;
    border-top: 1px dashed var(--harbour);
  }
}

/* Topic hub: specimen chart on a blueprint grid */
.chart { padding-top: 2rem; }
.chart-head { max-width: 50rem; margin-bottom: 1.5rem; }
.chart-title h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
.chart-intro { max-width: var(--measure); }
.specimen-grid {
  margin-top: 3rem;
  padding: var(--cell);
  border: 1px solid var(--line);
}
.specimen-grid > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--cell);
  margin: 0;
  padding: 0;
  list-style: none;
}
.specimen-grid li {
  position: relative;
  min-height: calc(var(--cell) * 5);
  padding: 2.25rem 1rem 1rem;
  background: var(--white);
  border: 1px solid var(--harbour);
}
.specimen-grid li::before {
  content: "+";
  position: absolute;
  top: 0.35rem;
  left: 0.6rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--harbour);
}
.specimen-grid a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: none;
}
.specimen-grid a:hover { text-decoration: underline; }

/* Contact: ruled intake sheet beside the copy */
.intake { display: grid; gap: 2.5rem; padding-top: 2rem; }
.intake-title h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.25rem; }
.intake-copy { max-width: var(--measure); }
.intake-sheet {
  align-self: start;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--harbour);
}
.intake-form { display: grid; gap: 0.3rem; }
.intake-form label { font-weight: 600; margin-top: 0.9rem; }
.intake-form label:first-child { margin-top: 0; }
.intake-form input, .intake-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.2rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
}
.intake-form textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 2rem;
  background-image: linear-gradient(transparent calc(2rem - 1px), var(--line-soft) calc(2rem - 1px));
  background-size: 100% 2rem;
}
.intake-form input:focus-visible, .intake-form textarea:focus-visible {
  outline: 2px solid var(--harbour);
  outline-offset: 2px;
}
.intake-form button {
  justify-self: start;
  margin-top: 1.4rem;
  padding: 0.7rem 1.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--on-harbour);
  background: var(--harbour);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.intake-form button:hover { background: var(--harbour-deep); }
.intake-form button:focus-visible { outline: 2px solid var(--harbour); outline-offset: 3px; }
@media (min-width: 900px) {
  .intake { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .intake-sheet { margin-top: 0.5rem; }
}

/* Thank-you: result slip */
.slip { max-width: var(--measure); margin: 0 auto; padding-top: 3rem; }
.slip-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--harbour);
}
.slip-check { width: 3.75rem; height: 3.75rem; flex: none; color: var(--harbour); }
.slip-title h1 { font-size: clamp(2rem, 6vw, 3rem); }
.slip-body { padding-top: 1rem; }

/* Footer */
.site-footer { border-top: 2px solid var(--harbour); padding: 2rem var(--gutter); }
.footer-grid { display: grid; gap: 0.5rem; max-width: var(--frame); margin: 0 auto; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.footer-line { margin: 0; max-width: 36rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
