/* Neutral specimen sheets, inspired by the supplied Fonts Ninja reference. */
body.landing-mode,
body.result-mode {
  --bg: #ffffff;
  --ink: #171717;
  --muted: #77777c;
  --line: #e8e8eb;
  --surface: #f1f1f3;
  /* Sheets and glyph cells are just off white, so they read on the white page. */
  --sheet: #f7f7f8;
  background: var(--bg);
  color: var(--ink);
}

.result-mode .hero > .note {
  background: transparent;
}

.result-mode .specimen-surface,
.result-mode .specimen-column,
.result-mode .reading-sample,
.result-mode .display-specimen,
.result-mode .letter-pair,
.result-mode .editorial-copy,
.result-mode .wide-specimen,
.result-mode .print-cover,
.result-mode .number-study,
.result-mode .phrase-study,
.result-mode .final-proof,
.result-mode .font-story,
.result-mode .type-waterfall,
.result-mode .glyph-inspector {
  background: var(--sheet);
  color: var(--ink);
}

.result-mode .type-waterfall {
  border: 0;
}

/* Every specimen belongs to the same family of off-white, rounded sheets. */
.result-mode .specimen-surface,
.result-mode .specimen-column,
.result-mode .reading-sample,
.result-mode .display-specimen,
.result-mode .letter-pair,
.result-mode .editorial-copy,
.result-mode .wide-specimen,
.result-mode .print-cover,
.result-mode .number-study,
.result-mode .phrase-study,
.result-mode .final-proof,
.result-mode .font-story,
.result-mode .type-waterfall {
  border-radius: 28px;
}

.result-mode .display-specimen textarea {
  color: var(--ink);
}

.result-mode .display-specimen small {
  color: var(--muted);
}

.result-mode .display-toolbar > span,
.result-mode .reading-controls > span {
  background: var(--surface);
  color: var(--ink);
}

.result-mode .glyph-button {
  background: var(--sheet);
}

.result-mode .glyph-button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.result-mode > header,
.result-mode > footer {
  background: transparent;
}

.landing-mode::after,
.result-mode::after {
  background: linear-gradient(transparent, rgb(247 247 248 / .35));
}

@media (hover: hover) and (pointer: fine) {
  .result-mode .glyph-button:not([aria-pressed="true"]):hover {
    background: #ececee;
  }
}

@media (max-width: 700px) {
  .result-mode .specimen-surface,
  .result-mode .specimen-column,
  .result-mode .reading-sample,
  .result-mode .display-specimen,
  .result-mode .letter-pair,
  .result-mode .editorial-copy,
  .result-mode .wide-specimen,
  .result-mode .print-cover,
  .result-mode .number-study,
  .result-mode .phrase-study,
  .result-mode .final-proof,
  .result-mode .font-story,
  .result-mode .type-waterfall {
    border-radius: 24px;
  }
}

/* The specimen page ends with the font, without the landing-page footer. */
body.result-mode > footer{display:none}
