:root {
  --paper: #f3f6f1;
  --paper-strong: #ffffff;
  --ink: #12263a;
  --blue: #2456d3;
  --red: #c83b2f;
  --yellow: #f2ca52;
  --rule: #b7c0bc;
  --muted: #60706f;
  --mint: #b9dfd3;
  --max-width: 1240px;
  --radius: 0;
  --shadow-offset: 7px 7px 0 var(--ink);
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--blue);
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.eyebrow,
.registry-label,
.category-label,
.dialog-step,
.specimen-topline,
.ruler-caption,
.result-count,
.odd-number,
.copyright {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button-ink {
  background: var(--ink);
  color: white;
}

.button-outline {
  background: transparent;
}

.text-button,
.text-link {
  padding: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}

.header-inner {
  display: grid;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 76px;
  align-items: stretch;
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
  border-right: 1px solid var(--rule);
}

.brand-mark {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 5px 4px;
  background: var(--ink);
}

.brand-mark i {
  display: block;
  width: 2px;
  background: white;
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) { height: 8px; }
.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) { height: 14px; }
.brand-mark i:nth-child(3) { height: 23px; background: var(--red); }

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-type strong {
  font-family: Arial Black, "Yu Gothic", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-type small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  margin-left: 22px;
}

.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
}

.primary-nav a::after {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.header-write {
  align-self: center;
  min-height: 43px;
}

.menu-button {
  display: none;
  width: 48px;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  padding: 12px 24px 24px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 800;
}

.mobile-nav .text-button {
  margin-top: 24px;
}

/* Hero */
.hero {
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}

.hero-grid {
  display: grid;
  min-height: 680px;
  align-items: center;
  padding-block: 66px 78px;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: clamp(52px, 7vw, 110px);
}

.hero-copy {
  position: relative;
}

.registry-label {
  display: flex;
  max-width: 550px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Arial Black, "Yu Gothic", sans-serif;
  font-size: clamp(54px, 6.2vw, 89px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.hero h1 span {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: 0.02em;
  left: -0.02em;
  height: 0.28em;
  background: var(--yellow);
  content: "";
}

.hero-lede {
  margin: 28px 0 32px;
  color: #31465a;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.75;
}

.object-search {
  position: relative;
  z-index: 10;
  max-width: 580px;
}

.object-search > label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}

.search-control {
  display: grid;
  min-height: 62px;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: 6px 6px 0 var(--ink);
  grid-template-columns: 49px minmax(0, 1fr) auto;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.search-control:focus-within {
  box-shadow: 8px 8px 0 var(--blue);
  transform: translate(-2px, -2px);
}

.search-control svg {
  width: 21px;
  align-self: center;
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-control input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}

.search-control input:focus {
  outline: 0;
}

.search-control button {
  min-width: 82px;
  margin: 5px;
  background: var(--red);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 6px 6px 0 var(--ink);
}

.search-result {
  display: grid;
  width: 100%;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid var(--rule);
  background: white;
  cursor: pointer;
  text-align: left;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: #e8edff;
}

.search-result-glyph {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--yellow);
  font-weight: 900;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result > span:nth-child(2),
.search-create strong,
.specimen-heading h2,
.review-target strong,
.detail-header h2,
.detail-header p,
.ledger-mobile-axis,
.axis-input-row > label:first-child,
.voice-meta {
  overflow-wrap: anywhere;
}

.search-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.search-result em {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.search-create {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  text-align: left;
}

.search-create strong {
  font-size: 13px;
}

.search-create span {
  color: var(--yellow);
  font-size: 20px;
}

.demo-switcher {
  display: flex;
  max-width: 590px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 23px;
  font-size: 11px;
}

.demo-switcher > span {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.demo-switcher button {
  min-height: 40px;
  padding: 3px 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.demo-switcher button:hover,
.demo-switcher button.is-active {
  border-color: var(--red);
  color: var(--red);
}

.demo-switcher button.is-active {
  padding-inline: 6px;
  border-bottom-width: 3px;
  background: var(--yellow);
  color: var(--ink);
}

.specimen {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: var(--shadow-offset);
}

.specimen::before {
  position: absolute;
  top: -2px;
  left: 42px;
  width: 92px;
  height: 9px;
  background: var(--red);
  content: "";
}

.specimen-topline {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid var(--rule);
}

.specimen-topline p {
  display: flex;
  gap: 20px;
  margin: 0;
  color: var(--muted);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.icon-button svg {
  width: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-button.is-saved {
  border-color: var(--ink);
  background: var(--yellow);
}

.icon-button.is-saved svg {
  fill: var(--ink);
}

.specimen-heading {
  display: grid;
  align-items: start;
  padding: 26px 25px 23px;
  grid-template-columns: 66px 1fr;
  gap: 17px;
}

.object-glyph {
  display: grid;
  width: 66px;
  height: 66px;
  border: 1.5px solid var(--ink);
  background: var(--blue);
  color: white;
  font-size: 25px;
  font-weight: 900;
  place-items: center;
}

.category-label {
  margin: 2px 0 5px;
  color: var(--blue);
}

.specimen-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.specimen-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ruler-panel {
  margin: 0 25px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-block: 15px 19px;
}

.ruler-caption {
  display: flex;
  justify-content: space-between;
  margin-bottom: 19px;
  color: var(--muted);
}

.measure-row + .measure-row {
  margin-top: 19px;
}

.measure-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}

.measure-meta span {
  font-size: 12px;
  font-weight: 750;
}

.measure-meta strong {
  color: var(--red);
  font-family: ui-monospace, monospace;
  font-size: 14px;
}

.measure-track {
  position: relative;
  height: 18px;
  border-top: 1px solid var(--ink);
}

.measure-ticks {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(11, 1fr);
}

.measure-ticks i {
  width: 1px;
  height: 7px;
  background: var(--rule);
}

.measure-ticks i:nth-child(1),
.measure-ticks i:nth-child(6),
.measure-ticks i:nth-child(11) {
  height: 12px;
  background: var(--ink);
}

.measure-needle {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-top: 0;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--red);
  border-left: 6px solid transparent;
  transform: translateX(-50%);
  transition: left 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.measure-needle::after {
  position: absolute;
  top: 8px;
  left: -1px;
  width: 2px;
  height: 16px;
  background: var(--red);
  content: "";
}

.reselect-block {
  display: grid;
  align-items: center;
  padding: 21px 25px 22px;
  grid-template-columns: 126px 1fr;
  gap: 21px;
}

.reselect-block > div {
  border-right: 1px solid var(--rule);
}

.reselect-block p {
  margin: 0;
}

.reselect-block > div p {
  font-size: 11px;
  font-weight: 800;
}

.reselect-block strong {
  display: block;
  margin-top: -3px;
  font-family: ui-monospace, monospace;
  font-size: 45px;
  line-height: 1;
}

.reselect-block strong small {
  font-size: 15px;
}

.reselect-block > p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.specimen-actions {
  display: grid;
  padding: 0 25px 25px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Category index */
.category-index {
  border-bottom: 1.5px solid var(--ink);
  background: var(--blue);
  color: white;
}

.category-track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-track::-webkit-scrollbar {
  display: none;
}

.category-track button {
  flex: 1 0 auto;
  min-width: 108px;
  min-height: 75px;
  padding: 12px 18px;
  border-right: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.category-track button:first-child {
  border-left: 1px solid rgba(255,255,255,0.3);
}

.category-track button span {
  display: block;
  margin-bottom: 4px;
  color: #e5ebff;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}

.category-track button:hover,
.category-track button.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.category-track button:hover span,
.category-track button.is-active span {
  color: var(--ink);
}

/* Index ledger */
.index-section,
.voices-section {
  padding-block: 100px 112px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.section-heading .eyebrow {
  margin: 0 0 13px;
  color: var(--red);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 51px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.17;
}

.section-heading > p {
  max-width: 310px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.index-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.filter-tabs {
  display: flex;
  border: 1.5px solid var(--ink);
}

.filter-tabs button {
  min-height: 44px;
  padding: 8px 15px;
  border-right: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.filter-tabs button:last-child {
  border-right: 0;
}

.filter-tabs button:hover,
.filter-tabs button.is-active {
  background: var(--ink);
  color: white;
}

.result-count {
  color: var(--muted);
}

.ledger {
  border-top: 2px solid var(--ink);
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 88px minmax(220px, 1.55fr) minmax(190px, 1fr) 112px 82px 44px;
  gap: 16px;
}

.ledger-head {
  align-items: center;
  min-height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ledger-row {
  position: relative;
  align-items: center;
  min-height: 105px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--rule);
  transition: background 180ms ease;
}

.ledger-row::before {
  position: absolute;
  top: 50%;
  left: -11px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--red);
  content: "";
  opacity: 0;
  transform: translate(-8px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ledger-row:hover,
.ledger-row:focus-within {
  background: white;
}

.ledger-row:hover::before,
.ledger-row:focus-within::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.ledger-category {
  align-self: start;
  padding-top: 3px;
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
}

.ledger-object {
  display: grid;
  align-items: center;
  grid-template-columns: 46px 1fr;
  gap: 13px;
}

.ledger-object > *,
.specimen-heading > div,
.review-target > div,
.detail-header > div {
  min-width: 0;
}

.ledger-glyph {
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  font-weight: 900;
  place-items: center;
}

.tone-blue { background: #cbd7ff; }
.tone-yellow { background: var(--yellow); }
.tone-mint { background: var(--mint); }
.tone-red { background: #f4c1bc; }
.tone-paper { background: white; }

.object-glyph.tone-blue,
.object-glyph.tone-yellow,
.object-glyph.tone-mint,
.object-glyph.tone-red,
.object-glyph.tone-paper {
  color: var(--ink);
}

.ledger-name {
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.ledger-name strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ledger-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ledger-mobile-axis {
  display: none;
}

.ledger-axis {
  align-self: center;
}

.ledger-axis-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 700;
}

.ledger-axis-label strong {
  color: var(--red);
  font-family: ui-monospace, monospace;
}

.mini-scale {
  position: relative;
  height: 5px;
  border-top: 1px solid var(--ink);
}

.mini-scale::before,
.mini-scale::after {
  position: absolute;
  top: -1px;
  width: 1px;
  height: 5px;
  background: var(--ink);
  content: "";
}

.mini-scale::before { left: 0; }
.mini-scale::after { right: 0; }

.mini-scale i {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 9px;
  background: var(--red);
  transform: translateX(-50%);
}

.ledger-again strong {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 22px;
  line-height: 1;
}

.ledger-again span,
.ledger-reviews span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.ledger-reviews strong {
  font-family: ui-monospace, monospace;
  font-size: 14px;
}

.row-action {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: background 160ms ease, color 160ms ease;
}

.row-action:hover {
  background: var(--ink);
  color: white;
}

.empty-state {
  padding: 60px 20px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.empty-state p {
  margin: 0 0 20px;
  font-weight: 800;
}

.more-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  margin-top: 24px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.more-button:hover {
  background: var(--ink);
  color: white;
}

.more-button[hidden] {
  display: none;
}

/* Oddly specific */
.odd-section {
  padding-block: 96px 110px;
  background: var(--ink);
  color: white;
}

.section-heading-light .eyebrow {
  color: var(--yellow);
}

.section-heading-light > p {
  color: #b8c1cb;
}

.odd-list {
  display: grid;
  border-top: 1px solid #6c7a88;
  grid-template-columns: repeat(3, 1fr);
}

.odd-list button {
  position: relative;
  display: grid;
  min-height: 275px;
  padding: 22px 26px 26px;
  border-right: 1px solid #6c7a88;
  border-bottom: 1px solid #6c7a88;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: left;
  grid-template-rows: auto 1fr auto;
  transition: background 200ms ease, color 200ms ease;
}

.odd-list button:first-child {
  border-left: 1px solid #6c7a88;
}

.odd-list button:hover {
  background: var(--yellow);
  color: var(--ink);
}

.odd-number {
  color: #9ba6b1;
}

.odd-list button:hover .odd-number {
  color: var(--ink);
}

.odd-name {
  align-self: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.odd-axis {
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
}

.odd-axis strong {
  float: right;
  font-family: ui-monospace, monospace;
  font-size: 15px;
}

.odd-arrow {
  position: absolute;
  top: 20px;
  right: 23px;
  font-size: 20px;
}

/* Voices */
.voices-section {
  border-bottom: 1.5px solid var(--ink);
}

.voice-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(50px, 8vw, 110px);
}

.voice-feed {
  border-top: 2px solid var(--ink);
}

.voice-note {
  display: grid;
  padding: 27px 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 145px 1fr;
  gap: 24px;
}

.voice-meta {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.8;
}

.voice-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 12px;
}

.voice-body button {
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.voice-body blockquote {
  margin: 10px 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.voice-tags span {
  padding: 3px 7px;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.voice-tags .is-disclosed {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.weekly-scale {
  position: sticky;
  top: 110px;
  padding: 29px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}

.weekly-scale .eyebrow {
  margin: 0 0 18px;
  color: var(--ink);
}

.weekly-scale h3 {
  margin: 0;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.weekly-scale > p:not(.eyebrow) {
  margin: 18px 0 25px;
  font-size: 12px;
  font-weight: 650;
}

.weekly-items {
  border-top: 1.5px solid var(--ink);
}

.weekly-items button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(18,38,58,.55);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.weekly-items button span {
  font-family: ui-monospace, monospace;
  font-size: 15px;
}

/* About */
.about-section {
  padding-block: 110px;
  background: #dfe8e2;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(60px, 10vw, 145px);
}

.about-intro .eyebrow {
  margin: 0 0 18px;
  color: var(--red);
}

.about-intro h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.28;
}

.principles {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.principles li {
  display: grid;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--ink);
  grid-template-columns: 52px 1fr;
  gap: 12px;
}

.principles li > span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
}

.principles h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.principles p {
  max-width: 560px;
  margin: 0;
  color: #3d5051;
  font-size: 13px;
  font-weight: 600;
}

/* CTA and footer */
.closing-cta {
  padding-block: 82px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--red);
  color: white;
}

.closing-grid {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr minmax(300px, 0.65fr);
  gap: 80px;
}

.closing-grid .eyebrow {
  margin: 0 0 13px;
  color: white;
}

.closing-grid h2 {
  margin: 0;
  font-size: clamp(39px, 5vw, 67px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.giant-action {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.giant-action span:last-child {
  font-size: 29px;
}

.giant-action:hover {
  background: white;
  color: var(--red);
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.site-footer {
  padding-block: 48px;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr auto;
  gap: 36px;
}

.footer-grid > div:first-child strong {
  font-family: Arial Black, sans-serif;
  letter-spacing: 0.07em;
}

.footer-grid > div:first-child p {
  margin: 7px 0 0;
  color: #aeb9c4;
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 25px;
  font-size: 10px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--yellow);
}

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid #4e5c69;
  color: #84919d;
}

/* Dialogs */
.dialog {
  width: min(calc(100% - 32px), 720px);
  max-height: min(900px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.detail-dialog {
  width: min(calc(100% - 32px), 810px);
}

.dialog::backdrop {
  background: rgba(18, 38, 58, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-frame {
  position: relative;
  overflow-y: auto;
  max-height: min(900px, calc(100vh - 32px));
  padding: clamp(27px, 5vw, 52px);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: inset 0 7px 0 var(--red);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  place-items: center;
}

.dialog-step {
  margin: 0 0 12px;
  padding-top: 10px;
  color: var(--red);
}

.dialog h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.dialog-intro {
  max-width: 560px;
  margin: 13px 0 29px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.review-target {
  display: grid;
  align-items: center;
  margin: 0 0 29px;
  padding: 17px;
  border: 1.5px solid var(--ink);
  background: white;
  grid-template-columns: 50px 1fr;
  gap: 15px;
}

.review-target .ledger-glyph {
  width: 50px;
  height: 50px;
}

.review-target p {
  margin: 0 0 3px;
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-target strong {
  font-size: 18px;
}

.review-form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.review-form legend {
  width: 100%;
  margin-bottom: 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.review-form legend span {
  float: right;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.axis-input-row {
  display: grid;
  align-items: center;
  margin-top: 13px;
  grid-template-columns: minmax(142px, 0.7fr) minmax(180px, 2fr) 44px;
  gap: 14px;
}

.axis-input-row > label:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.axis-input-row > label:first-child strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.axis-input-row > label:first-child small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

input[type="range"] {
  width: 100%;
  height: 28px;
  accent-color: var(--red);
  cursor: pointer;
}

.axis-output {
  font-family: ui-monospace, monospace;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.field-label {
  display: block;
  margin: 21px 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.field-label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.dialog input[type="text"],
.dialog select,
.dialog textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  background: white;
}

.dialog input[type="text"],
.dialog select {
  height: 50px;
  padding: 0 14px;
}

.dialog textarea {
  min-height: 138px;
  padding: 13px 14px;
  resize: vertical;
}

.dialog input[type="text"]:focus,
.dialog select:focus,
.dialog textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 0;
}

.disclosure-check {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.disclosure-check input {
  margin-top: 3px;
  accent-color: var(--red);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px solid var(--ink);
}

.rule-note {
  margin-top: 26px;
  padding: 15px 17px;
  border-left: 5px solid var(--yellow);
  background: white;
}

.rule-note strong {
  font-size: 11px;
}

.rule-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.detail-header {
  display: grid;
  align-items: start;
  padding: 14px 0 27px;
  border-bottom: 2px solid var(--ink);
  grid-template-columns: 68px 1fr auto;
  gap: 18px;
}

.detail-header .object-glyph {
  width: 68px;
  height: 68px;
}

.detail-header h2 {
  font-size: clamp(25px, 4vw, 39px);
}

.detail-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-again {
  display: grid;
  justify-items: end;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
  text-align: right;
}

.detail-again .icon-button {
  margin: -5px 0 9px;
}

.detail-again span {
  display: block;
  font-size: 9px;
  font-weight: 800;
}

.detail-again strong {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 31px;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  background: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.like-button:hover,
.like-button.is-liked {
  background: var(--red);
  color: white;
}

.detail-measures {
  padding: 27px 0 10px;
}

.detail-measures .eyebrow {
  margin: 0 0 18px;
  color: var(--red);
}

.detail-reviews {
  margin-top: 23px;
  border-top: 2px solid var(--ink);
}

.detail-review {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 135px 1fr;
  gap: 22px;
}

.detail-review-meta {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.8;
}

.detail-review-meta strong {
  display: block;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 11px;
}

.detail-review blockquote {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.review-disclosures {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0 0;
}

.review-disclosures span {
  padding: 3px 7px;
  border: 1px solid var(--ink);
  background: white;
  font-size: 9px;
  font-weight: 800;
}

.review-disclosures .is-disclosed {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 27px;
}

.detail-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 18px;
  border: 1.5px solid white;
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--yellow);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .primary-nav {
    justify-content: center;
  }

  .primary-nav a {
    padding-inline: 11px;
    font-size: 11px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr);
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(52px, 6.7vw, 71px);
  }

  .ledger-head,
  .ledger-row {
    grid-template-columns: 72px minmax(190px, 1.4fr) minmax(160px, 1fr) 90px 63px 44px;
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    border-right: 0;
  }

  .primary-nav,
  .header-write {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-grid {
    min-height: 0;
    padding-block: 48px 70px;
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(54px, 11vw, 82px);
  }

  .specimen {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .ledger-head {
    display: none;
  }

  .ledger-row {
    grid-template-columns: 80px minmax(0, 1fr) 82px 44px;
    min-height: 116px;
    padding-bottom: 31px;
    gap: 12px;
  }

  .ledger-object {
    grid-template-columns: 42px 1fr;
  }

  .ledger-glyph {
    width: 42px;
    height: 42px;
  }

  .ledger-axis {
    display: none;
  }

  .ledger-mobile-axis {
    display: block;
    margin-top: 4px;
    color: var(--red);
    font-family: ui-monospace, monospace;
    font-size: 9px;
    font-weight: 800;
  }

  .ledger-reviews {
    position: absolute;
    bottom: 17px;
    left: 104px;
  }

  .ledger-reviews strong,
  .ledger-reviews span {
    display: inline;
    font-size: 9px;
  }

  .voice-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }

  .voice-note {
    grid-template-columns: 110px 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
  }
}

@media (max-width: 680px) {
  .page-shell,
  .header-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .brand {
    gap: 9px;
    padding-right: 0;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-type strong {
    font-size: 14px;
  }

  .brand-type small {
    display: none;
  }

  .hero-grid {
    padding-block: 35px 55px;
    gap: 49px;
  }

  .registry-label {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 66px);
    line-height: 1.03;
  }

  .hero-lede {
    margin: 22px 0 26px;
    font-size: 15px;
  }

  .search-control {
    min-height: 57px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .search-control input {
    padding-inline: 10px;
    font-size: 13px;
  }

  .search-control button {
    min-width: 62px;
    font-size: 11px;
  }

  .demo-switcher {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 17px;
  }

  .demo-switcher > span {
    margin-bottom: 3px;
  }

  .specimen-heading {
    padding: 22px 18px 18px;
    grid-template-columns: 54px 1fr;
    gap: 13px;
  }

  .object-glyph {
    width: 54px;
    height: 54px;
    font-size: 21px;
  }

  .specimen-heading h2 {
    font-size: 24px;
  }

  .ruler-panel {
    margin-inline: 18px;
  }

  .reselect-block {
    padding: 18px;
    grid-template-columns: 103px 1fr;
    gap: 15px;
  }

  .reselect-block strong {
    font-size: 37px;
  }

  .reselect-block > p {
    font-size: 11px;
  }

  .specimen-actions {
    padding: 0 18px 18px;
    grid-template-columns: 1fr;
  }

  .category-track {
    width: 100%;
    padding-inline: 16px;
  }

  .category-track button {
    min-width: 96px;
    min-height: 66px;
  }

  .index-section,
  .voices-section {
    padding-block: 72px 80px;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading > p {
    margin-top: 15px;
  }

  .index-toolbar {
    align-items: flex-end;
    gap: 14px;
  }

  .filter-tabs button {
    padding-inline: 10px;
    font-size: 9px;
  }

  .result-count {
    white-space: nowrap;
  }

  .ledger-row {
    min-height: 132px;
    padding: 14px 7px 31px;
    grid-template-columns: minmax(0, 1fr) 75px 44px;
  }

  .ledger-category {
    position: absolute;
    top: 14px;
    left: 62px;
  }

  .ledger-object {
    grid-template-columns: 44px 1fr;
    padding-top: 17px;
  }

  .ledger-name strong {
    font-size: 14px;
  }

  .ledger-name small {
    font-size: 9px;
  }

  .ledger-reviews {
    bottom: 10px;
    left: 62px;
  }

  .ledger-again strong {
    font-size: 18px;
  }

  .odd-section {
    padding-block: 72px 80px;
  }

  .odd-list {
    grid-template-columns: 1fr;
  }

  .odd-list button,
  .odd-list button:first-child {
    min-height: 190px;
    border-right: 1px solid #6c7a88;
    border-left: 1px solid #6c7a88;
  }

  .odd-name {
    font-size: 28px;
  }

  .voice-layout {
    grid-template-columns: 1fr;
  }

  .voice-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .voice-meta strong,
  .voice-meta span {
    display: inline;
  }

  .voice-meta span::before {
    content: " / ";
  }

  .weekly-scale {
    position: static;
  }

  .about-section {
    padding-block: 77px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-intro h2 {
    font-size: 39px;
  }

  .closing-cta {
    padding-block: 65px;
  }

  .closing-grid {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .closing-grid h2 {
    font-size: 41px;
  }

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

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .axis-input-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .axis-input-row > label:first-child {
    grid-column: 1 / -1;
  }

  .detail-header {
    grid-template-columns: 52px 1fr;
  }

  .detail-header .object-glyph {
    width: 52px;
    height: 52px;
  }

  .detail-again {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 13px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
    grid-column: 1 / -1;
  }

  .detail-again .icon-button {
    margin: 0;
  }

  .detail-review {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .detail-review-meta strong,
  .detail-review-meta span {
    display: inline;
  }

  .detail-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .voice-layout {
    grid-template-columns: 1fr;
  }

  .weekly-scale {
    position: static;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 41px;
  }
}

@media (max-width: 360px) {
  .index-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs button {
    flex: 1;
    padding-inline: 4px;
    white-space: nowrap;
  }

  .result-count {
    align-self: flex-end;
  }
}

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