:root {
  font-family: system-ui, sans-serif;
  color: #172b27;
  background: #eef4ef;
  --line: #cbdad2;
  --ink: #172b27;
  --accent: #13574b;
  --paper: #fff;
  --chart-one: #167565;
  --chart-two: #b75837;
  --chart-three: #615682;
  --chart-rest: #406aa4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
.mast,
footer {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1rem max(1.25rem, calc((100% - 72rem) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font:
    700 1.3rem Georgia,
    serif;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  width: 2rem;
  height: 2rem;
}
nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.94rem;
}
main {
  max-width: 74.5rem;
  margin: auto;
  padding: 2rem 1.25rem 4rem;
}
h1,
h2,
h3 {
  margin: 0.2em 0 0.45em;
  font-family: Georgia, serif;
  line-height: 1.12;
}
h1 {
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.52rem;
}
h3 {
  font-size: 1.14rem;
}
.hero {
  background: #0d4c41;
  color: white;
  border-radius: 1.2rem;
  padding: clamp(2rem, 8vw, 6rem);
  max-width: 100%;
  min-height: 26rem;
}
.hero p {
  max-width: 35rem;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
}
.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  color: #c7e4d9;
}
.hero .text-link {
  color: white;
  margin-left: 0.6rem;
}
.card {
  background: var(--paper);
  padding: clamp(1rem, 3vw, 1.8rem);
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.page-heading p {
  margin: 0;
}
.auth {
  max-width: 32rem;
  margin: 1rem auto;
}
.auth form {
  display: grid;
  gap: 1rem;
}
.auth label {
  display: grid;
  gap: 0.25rem;
}
.auth input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #839b8e;
  border-radius: 0.35rem;
  font: inherit;
}
.button,
button {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 0.45rem;
  padding: 0.55rem 0.9rem;
  font: 600 1rem system-ui;
  text-decoration: none;
  cursor: pointer;
}
.hero .button {
  background: #e2f3e7;
  color: #123d33;
  border-color: #e2f3e7;
}
.actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.6rem 0;
}
.token,
pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eaf3ed;
  padding: 1rem;
  border-radius: 0.4rem;
  color: #1b342d;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font-weight: 700;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.63rem 0.45rem;
  white-space: nowrap;
}
th {
  font-size: 0.9rem;
}
.plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.plot {
  margin: 0;
}
.plot canvas {
  width: 100%;
  height: 12rem;
  display: block;
}
.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  padding: 0;
  font-size: 0.9rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.timeline li > div {
  display: flex;
  gap: 0.5rem 0.9rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.timeline time {
  margin-left: auto;
  font-size: 0.85rem;
  color: #406353;
}
.event-data {
  display: flex;
  gap: 0.15rem 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}
.event-data dt {
  font-weight: 600;
}
.event-data dd {
  margin: 0 0.6rem 0 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.positive {
  color: #116848;
}
.negative {
  color: #a22d31;
}
summary {
  cursor: pointer;
}
footer {
  border-top: 1px solid var(--line);
  border-bottom: none;
}
@media (max-width: 700px) {
  .plots {
    grid-template-columns: 1fr;
  }
  .mast {
    align-items: start;
  }
  .timeline time {
    margin-left: 0;
  }
}

.composition {
  padding: 0;
  list-style: none;
  max-width: 58rem;
}
.composition li {
  display: grid;
  grid-template-columns: minmax(4.25rem, 1fr) minmax(2.5rem, 3fr) max-content max-content;
  gap: 0.6rem;
  align-items: center;
  padding: 0.3rem 0;
}
.composition meter {
  width: 100%;
  height: 1rem;
}
.composition meter::-webkit-meter-optimum-value {
  background: var(--chart-one);
}
.composition meter.negative::-webkit-meter-optimum-value {
  background: var(--chart-three);
}
.composition strong, .composition span {
  font-variant-numeric: tabular-nums;
}

.episode {
  margin: 0.55rem 0;
}
.episode summary {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.55rem 0.8rem;
}
.episode audio {
  display: block;
  width: min(100%, 34rem);
}
