/* Rare Change: the "Specimen Plate" design. Blueprint navy, technical line drawings, mono data. */

@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ground: #0f1e33;
  --surface: #13253f;
  --surface-2: #182d4d;
  --rule: #2c4466;
  --text: #ece8dc;
  --text-2: #c3ccd8;
  --muted: #a9b6c8;
  --line: #8fb0dd;
  --callout: #ff7a7a;
  --accent: #f2d16b;
  --accent-ink: #0f1e33;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --gutter: 20px;
  --measure: 680px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    linear-gradient(rgba(143, 176, 221, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 221, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: #ffe7a0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.005em;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 19px;
}
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure {
  max-width: var(--measure);
}

.mono {
  font-family: var(--mono);
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(15, 30, 51, 0.86);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.wordmark b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}
.wordmark span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  display: none;
}
.nav a:not(.btn):hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(242, 209, 107, 0.1);
  color: var(--accent);
}
.btn-solid {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.btn-solid:hover {
  background: #ffe08a;
  color: var(--accent-ink);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap {
  display: grid;
  gap: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer a {
  color: var(--text-2);
}

/* Page head */

.page-head {
  padding-top: 28px;
}
.page-head h1 {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1.06;
}
.page-head h1 em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-2);
}
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}

section {
  margin-top: 44px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-sub {
  margin: 4px 0 14px;
  font-size: 15px;
  color: var(--text-2);
}

/* The plain answer */

.panel {
  margin-top: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.panel-body {
  padding: 18px 14px 20px;
}
.figure {
  font-family: var(--mono);
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}
.figure-note {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.figure-note strong {
  color: var(--text);
  font-weight: 600;
}
.panel-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

/* Prices by condition */

.conditions {
  border-top: 1px solid var(--rule);
}
.cond {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
/* On phones the chart takes its own full-width row under the name and price. */
.cond .whisker {
  grid-column: 1 / -1;
  grid-row: 2;
}
.cond.is-headline {
  background: linear-gradient(90deg, rgba(242, 209, 107, 0.07), transparent);
}
.cond-name {
  font-size: 15px;
}
.cond.is-headline .cond-name {
  color: var(--accent);
  font-weight: 600;
}
.cond-grade {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.cond-value {
  text-align: right;
  font-family: var(--mono);
  font-size: 15px;
}
.cond.is-headline .cond-value {
  color: #fff;
}
.cond-thin {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
.whisker {
  display: block;
  width: 100%;
  height: 26px;
  overflow: visible;
}
.whisker .w-line {
  stroke: var(--line);
  stroke-width: 1;
}
.whisker .w-box {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.cond.is-headline .whisker .w-box {
  fill: rgba(242, 209, 107, 0.22);
  stroke: var(--accent);
}
.whisker .w-dot {
  fill: var(--accent);
}
.axis {
  padding-top: 6px;
}
.axis > span:not(.axis-ticks) {
  display: none;
}
.axis-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.legend-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Recent sales */

.table-box {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
td {
  font-size: 13px;
}
thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.num {
  text-align: right;
  font-family: var(--mono);
}

/* Examination */

.exam-sides {
  display: grid;
  gap: 18px;
}
.exam-side {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(19, 37, 63, 0.6);
  padding: 10px 6px 4px;
}
.exam-side figcaption {
  padding: 0 8px 6px;
}
.dw {
  display: block;
  width: 100%;
  height: auto;
  color: var(--line);
}
/* A note schematic stays under three-quarters of a real note's size (RBA conditions): the
   smallest note here, the paper $1, is 140 mm, and 75% of that is about 400 CSS px. */
.dw-note {
  max-width: 400px;
  margin: 0 auto;
}
.exam-side:only-child {
  grid-column: 1 / -1;
}
.dw-axis {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 6 4;
}
.dw-edge {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
}
.dw-thin {
  stroke-width: 1;
}
.dw-dashed {
  stroke-dasharray: 4 3;
}
.dw-beads {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 0 6;
  stroke-linecap: round;
}
.dw-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.3;
}
.dw-glyph {
  color: var(--line);
}
/* Legend size is set per arc in the markup so long legends fit. */
.dw-legend {
  font-family: var(--serif);
  letter-spacing: 1px;
  fill: var(--text);
}
.dw-words {
  font-family: var(--serif);
  font-size: 27px;
  fill: var(--text);
}
.dw-small {
  font-size: 20px;
}
.dw-date {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 2px;
  fill: var(--text);
}
.dw-serial {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--text);
}
.dw-label {
  font-family: var(--mono);
  font-size: 8.5px;
  fill: var(--muted);
}
.dw-mark {
  fill: var(--callout);
}
.dw-ring {
  fill: none;
  stroke: var(--callout);
  stroke-width: 1.2;
}
.dw-leader {
  fill: none;
  stroke: var(--callout);
  stroke-width: 1;
}
.dw-letter {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  fill: var(--callout);
}

.checks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.check {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px;
}
.check-letter {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--callout);
  padding-top: 1px;
}
.check h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.check-where {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.check-answers {
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.check-answers div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
}
.check-answers dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 3px;
}
.check-answers dd {
  margin: 0;
}

.cta {
  margin-top: 24px;
}
.cta p {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.note-aside {
  margin-top: 34px;
  padding: 14px 16px;
  border-left: 2px solid var(--callout);
  background: rgba(255, 122, 122, 0.08);
}
.note-aside p + p {
  margin-top: 4px;
}
.note-aside .label {
  color: var(--callout);
}

/* Record, questions, sources */

.record {
  margin: 0;
}
.record div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.record dt {
  color: var(--muted);
}
.record dd {
  margin: 0;
  text-align: right;
}
.facts {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-2);
}
.facts sup a {
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
}

.qa {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}
.qa p {
  margin-top: 6px;
  color: var(--text-2);
}

.sources {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.sources a {
  color: var(--text-2);
}

/* Sign-up */

.signup {
  padding: 20px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.signup h2 {
  font-size: 22px;
}
.signup p.sub {
  margin: 6px 0 14px;
  font-size: 15px;
  color: var(--text-2);
}
.signup form {
  display: grid;
  gap: 8px;
}
.signup label.label {
  display: block;
}
.signup input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--ground);
  color: var(--text);
  font: inherit;
}
.signup input[type="email"]::placeholder {
  color: #7f8ea5;
}
.signup button {
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.signup button:hover {
  background: rgba(242, 209, 107, 0.1);
}
.signup .consent {
  font-size: 12px;
  color: var(--muted);
}
.signup .status {
  min-height: 20px;
  font-size: 14px;
}
.signup .status.ok {
  color: #9fe0b5;
}
.signup .status.err {
  color: var(--callout);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Home */

.hero {
  padding-top: 40px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.04;
  margin-top: 12px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede {
  max-width: 620px;
}
.proof-points {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.proof-points div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text-2);
  font-size: 15px;
}
.proof-points b {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
}
.finder {
  margin-top: 30px;
}
.finder input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.group {
  margin-top: 36px;
}
.group h2 {
  font-size: 23px;
}
.cards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(19, 37, 63, 0.7);
  color: var(--text);
  text-decoration: none;
}
.card a:hover {
  border-color: var(--line);
  background: var(--surface-2);
}
.card-name {
  font-family: var(--serif);
  font-size: 17px;
}
.card-meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.card-price {
  font-family: var(--mono);
  font-size: 15px;
  text-align: right;
}
.card-price.none {
  font-size: 12px;
  color: var(--muted);
  max-width: 110px;
}
.empty {
  margin-top: 16px;
  color: var(--muted);
}

/* Prose pages */

.prose {
  max-width: var(--measure);
}
.prose h2 {
  margin-top: 36px;
  font-size: 25px;
}
.prose p,
.prose ul {
  margin-top: 12px;
  color: var(--text-2);
}
.prose ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.prose strong {
  color: var(--text);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .nav a:not(.btn) {
    display: inline;
  }
  .page-head h1 {
    font-size: 54px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .figure {
    font-size: 60px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cond,
  .axis {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 90px;
    column-gap: 12px;
  }
  .cond .whisker {
    grid-column: 2;
    grid-row: 1;
  }
  .cond-thin {
    grid-column: 2 / 4;
    text-align: left;
    font-size: 14px;
  }
  .axis > span:not(.axis-ticks) {
    display: block;
  }
  .exam-sides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  th,
  td {
    padding: 11px 12px;
  }
  td {
    font-size: 14px;
  }
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 22px;
  }
}

@media (min-width: 1000px) {
  .type-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
  }
  .type-aside {
    position: sticky;
    top: 96px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.spaced {
  margin-top: 32px;
}
.spaced-sm {
  margin-top: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
