:root {
  --paper: #e9efec;
  --paper-bright: #f8faf7;
  --ink: #121615;
  --muted: #52605c;
  --line: #aebdb8;
  --water: #087d89;
  --water-light: #89c9c9;
  --marker: #e34a32;
  --signal: #e9c93d;
  --measure: 72rem;
  --reading: 45rem;
  --display: "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", sans-serif;
  --body: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--water);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--water);
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  display: flex;
  width: min(calc(100% - 2rem), var(--measure));
  min-height: 4.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.masthead__brand {
  text-decoration: none;
}

.language-nav {
  display: flex;
  gap: 0.3rem;
}

.language-nav a {
  display: inline-flex;
  min-width: 2.9rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
}

.hero {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
  padding: clamp(3.2rem, 8vw, 7.5rem) 0 2.25rem;
}

.eyebrow,
.figure-label,
.section-label,
.source-line,
.measure-label,
.table-head,
.method-meta {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--water);
}

.eyebrow::before {
  width: 3.25rem;
  height: 0.4rem;
  content: "";
  background: repeating-linear-gradient(90deg, var(--marker) 0 0.35rem, transparent 0.35rem 0.58rem);
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  font-family: var(--display);
  font-size: clamp(3.7rem, 10.6vw, 8.9rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-wrap: balance;
}

.deck {
  max-width: 49rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1.22rem, 1.05rem + 0.72vw, 1.72rem);
  line-height: 1.38;
}

.source-line {
  max-width: 47rem;
  color: var(--muted);
  letter-spacing: 0.055em;
  text-transform: none;
}

.instrument {
  position: relative;
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto clamp(5rem, 10vw, 8rem);
  padding: 2.8rem clamp(1rem, 3vw, 2.5rem) 3.25rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-bright);
}

.instrument::before,
.instrument::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 0.8rem;
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 1.1rem, var(--paper) 1.1rem 2.05rem, transparent 2.05rem 3.1rem);
  opacity: 0.78;
}

.instrument::before {
  top: 0.28rem;
}

.instrument::after {
  bottom: 0.28rem;
}

.instrument__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.instrument h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.animal-control label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--water-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.animal-control select {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid #70817c;
  border-radius: 0;
  padding: 0.65rem 2.7rem 0.65rem 0.85rem;
  background: var(--paper-bright);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #5b6965;
  border-bottom: 1px solid #5b6965;
}

.readout {
  min-width: 0;
  padding: 1rem clamp(0.4rem, 2vw, 1.2rem);
  border-right: 1px solid #5b6965;
}

.readout:last-child {
  border-right: 0;
}

.measure-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--water-light);
}

.measure-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.oscillograph {
  position: relative;
  margin: 2rem 0 0;
}

.oscillograph svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 13rem;
}

.oscillograph .grid-line {
  stroke: #4d5d58;
  stroke-width: 1;
}

.oscillograph .wave {
  fill: none;
  stroke: var(--water-light);
  stroke-linecap: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.oscillograph .axis-label {
  fill: #a9b8b3;
  font-family: var(--body);
  font-size: 19px;
}

.oscillograph .phase-dot {
  fill: var(--marker);
  stroke: var(--paper-bright);
  stroke-width: 3;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.oscillograph.is-updating .phase-dot {
  transform: translateX(16px);
}

.cycle-strip {
  display: flex;
  min-height: 2.2rem;
  margin-top: 0.8rem;
  gap: 0.18rem;
  align-items: stretch;
}

.cycle-mark {
  min-width: 2px;
  flex: 1 1 0;
  border-top: 0.35rem solid var(--signal);
  background: repeating-linear-gradient(135deg, rgba(233, 201, 61, 0.2) 0 4px, transparent 4px 8px);
}

.cycle-mark.is-partial {
  opacity: 0.45;
}

.instrument figcaption {
  max-width: 58rem;
  margin-top: 1rem;
  color: #c5cfcc;
  font-size: 0.86rem;
  line-height: 1.5;
}

.reading {
  width: min(calc(100% - 2rem), var(--reading));
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 1.3rem;
  font-family: var(--display);
  font-size: clamp(2.55rem, 6.4vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.052em;
  line-height: 0.94;
  text-wrap: balance;
}

.section h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.section p {
  margin-bottom: 1.15rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem);
  line-height: 1.48;
}

.equation {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.2rem;
  border-top: 0.45rem solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(2.45rem, 8vw, 6rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
}

.equation small {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.force-sketch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2.5rem 0;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.force-sketch__half {
  min-height: 14rem;
  padding: 1.4rem;
  background: var(--paper-bright);
}

.force-sketch__half strong {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1;
}

.hair {
  position: relative;
  height: 8rem;
  margin: 1rem 0;
  overflow: hidden;
  border-bottom: 0.3rem solid var(--ink);
}

.hair::before,
.hair::after {
  position: absolute;
  bottom: 0;
  width: 0.28rem;
  height: 6.6rem;
  content: "";
  background: var(--ink);
  transform-origin: bottom;
}

.hair::before {
  left: 42%;
  transform: rotate(-13deg);
}

.hair::after {
  left: 58%;
  transform: rotate(13deg);
}

.drop {
  position: absolute;
  top: 1.2rem;
  left: calc(50% - 1.1rem);
  width: 2.2rem;
  height: 2.8rem;
  border-radius: 60% 40% 58% 42% / 66% 56% 44% 34%;
  background: var(--water);
}

.release .drop {
  left: auto;
  right: 0.9rem;
  background: var(--marker);
  transform: rotate(35deg);
}

.anatomy-rule {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr;
  margin: 2.2rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.anatomy-rule div {
  padding: 1rem 0.6rem;
  border-right: 1px solid var(--ink);
}

.anatomy-rule div:last-child {
  border-right: 0;
}

.anatomy-rule strong,
.dryness strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.anatomy-rule span,
.dryness span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dryness {
  display: grid;
  grid-template-columns: 7fr 3fr;
  margin: 2.3rem 0;
  border: 1px solid var(--ink);
}

.dryness div {
  padding: 1.2rem;
}

.dryness__gone {
  background: var(--water);
  color: white;
}

.dryness__gone span {
  color: #d9f1ef;
}

.evidence-table {
  margin: 2.2rem 0;
  border-top: 0.45rem solid var(--ink);
}

.evidence-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.35fr) repeat(3, minmax(5.5rem, 0.72fr));
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.evidence-row strong {
  font-size: 0.97rem;
}

.evidence-row span {
  font-variant-numeric: tabular-nums;
}

.table-head {
  color: var(--muted);
}

.limits {
  color: #24302d;
}

.source-list {
  padding-left: 1.15rem;
}

.source-list li + li {
  margin-top: 0.85rem;
}

.method-meta {
  color: var(--muted);
  text-transform: none;
}

.site-footer {
  margin-top: 5rem;
  background: var(--ink);
  color: var(--paper-bright);
}

.site-footer__inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--measure));
  min-height: 9rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration-color: var(--water-light);
}

.back-top {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

noscript p {
  margin: 1rem 0 0;
  color: var(--paper);
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.8rem;
  }

  h1 {
    font-size: clamp(3.55rem, 17.5vw, 5.3rem);
  }

  .instrument__head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .readouts {
    grid-template-columns: 1fr 1fr;
  }

  .readout:nth-child(2) {
    border-right: 0;
  }

  .readout:nth-child(-n + 2) {
    border-bottom: 1px solid #5b6965;
  }

  .force-sketch {
    grid-template-columns: 1fr;
  }

  .evidence-row {
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
  }

  .evidence-row > :nth-child(4) {
    grid-column: 2 / 4;
  }

  .table-head > :nth-child(4) {
    display: none;
  }

  .site-footer__inner {
    min-height: 11rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
  }
}

@media (max-width: 430px) {
  .masthead,
  .hero,
  .instrument,
  .reading,
  .site-footer__inner {
    width: min(calc(100% - 1.25rem), var(--measure));
  }

  .instrument {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .measure-value {
    font-size: 1.45rem;
  }

  .oscillograph svg {
    min-height: 10rem;
  }

  .anatomy-rule {
    grid-template-columns: 1fr;
  }

  .anatomy-rule div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .anatomy-rule div:last-child {
    border-bottom: 0;
  }

  .evidence-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 0.7rem;
  }

  .evidence-row > :first-child {
    grid-column: 1 / -1;
  }

  .evidence-row > :nth-child(4) {
    grid-column: auto;
  }

  .table-head {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .masthead,
  .animal-control,
  .back-top {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .instrument {
    break-inside: avoid;
    background: white;
    color: black;
    border: 1px solid black;
  }
}

.og-card {
  width: 1200px;
  height: 630px;
  overflow: hidden;
  background: var(--paper);
}

.og-card__inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding: 62px 68px;
}

.og-card__copy {
  position: relative;
  z-index: 2;
}

.og-card .eyebrow {
  margin-bottom: 32px;
  font-size: 16px;
}

.og-card h1 {
  max-width: 720px;
  margin: 0;
  font-size: 92px;
  line-height: 0.86;
}

.og-card__plot {
  position: relative;
  height: 100%;
  border-right: 8px solid var(--ink);
  border-left: 8px solid var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(18, 22, 21, 0.16) 15px 17px);
}

.og-card__plot::before,
.og-card__plot::after {
  position: absolute;
  right: -8px;
  left: -8px;
  height: 26px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--ink) 0 16px, transparent 16px 28px);
}

.og-card__plot::before {
  top: 0;
}

.og-card__plot::after {
  bottom: 0;
}

.og-card__wave {
  position: absolute;
  inset: 80px 32px;
}

.og-card__wave svg {
  width: 100%;
  height: 100%;
}

.og-card__wave path {
  fill: none;
  stroke: var(--water);
  stroke-width: 7;
}

.og-card__stamp {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 12px;
  background: var(--marker);
  color: white;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
