@font-face {
  font-family: "Monaspace Neon";
  src: url("./fonts/MonaspaceNeonVar.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Monaspace Xenon";
  src: url("./fonts/MonaspaceXenonVar.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #101513;
  --panel: #171e1a;
  --ink: #edf2e8;
  --muted: #a9b5aa;
  --line: #364139;
  --signal: #b7ee85;
  --mono: "Monaspace Neon", ui-monospace, monospace;
  --serif: "Monaspace Xenon", ui-monospace, monospace;
}

/* UI themes are muted dark derivatives, not replacements for the logo tokens. */
:root[data-site-theme="blue"] {
  --canvas: #10131c;
  --panel: #181e2c;
  --ink: #e8efff;
  --muted: #acb8d2;
  --line: #394560;
  --signal: #9dc5ff;
}
:root[data-site-theme="amber"] {
  --canvas: #19140f;
  --panel: #241d15;
  --ink: #fff1df;
  --muted: #c6b59d;
  --line: #514334;
  --signal: #f5cb86;
}
:root[data-site-theme="violet"] {
  --canvas: #17121e;
  --panel: #211a2d;
  --ink: #f2eaff;
  --muted: #bfb0d2;
  --line: #493958;
  --signal: #cfb1ff;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 14px/1.8 var(--mono);
  font-feature-settings:
    "calt" 1,
    "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
::selection {
  color: var(--canvas);
  background: var(--signal);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--signal);
}
button,
input,
select {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 6px;
}
.shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 10;
  padding: 12px;
  background: var(--signal);
  color: var(--canvas);
}
.skip-link:focus {
  top: 12px;
  color: var(--canvas);
}
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -2px;
  text-decoration: none;
  line-height: 1;
}
.wordmark span {
  color: var(--signal);
  margin-left: 6px;
}
.header-label {
  color: var(--muted);
  font-size: 11px;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 12px;
}
nav a {
  text-decoration: none;
  padding-block: 12px;
}
.nav-download {
  border: 1px solid var(--line);
  padding-inline: 16px;
}
.nav-download span {
  margin-left: 12px;
}
.section-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.section-meta a {
  color: var(--ink);
}
.hero {
  padding-top: 38px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 10px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  margin-top: 68px;
  font-size: clamp(40px, 6.1vw, 88px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.075em;
}
em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  color: var(--signal);
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin: 32px 0 56px;
}
.hero-bottom p {
  max-width: 610px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
}
.button:hover {
  border-color: var(--signal);
}
.button-primary {
  color: var(--canvas);
  background: var(--signal);
  border-color: var(--signal);
  white-space: nowrap;
}
.button-primary:hover {
  color: var(--canvas);
  background: var(--signal);
  filter: brightness(1.1);
}
.identity-specimen {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.signature {
  padding: 24px;
  background-size: 40px 40px;
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
}
.signature-ms {
  background-color: #11152b;
  color: #bdeaff;
  border-right: 1px solid var(--line);
}
.signature-sd {
  background-color: #102a21;
  color: #d8fff0;
}
.specimen-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.signature img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.signature figcaption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
.signature figcaption span {
  font-size: 10px;
}
.specimen-joint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 24px;
  color: var(--signal);
}
.specimen-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.section {
  padding-block: 100px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin: 32px 0 44px;
}
h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.055em;
}
.section-heading > p {
  max-width: 410px;
  color: var(--muted);
}
h3 {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.04em;
}
.site-theme-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.site-theme-control select {
  max-width: 150px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  padding: 18px 22px;
  background: var(--panel);
  font-size: 12px;
}
.palette-control {
  display: flex;
  align-items: center;
  gap: 16px;
}
select {
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--muted);
  padding: 8px 34px 8px 12px;
  border-radius: 0;
}
.toggle-control {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--signal);
  width: 18px;
  height: 18px;
  margin: 0;
}
.toolbar-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}
.card {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stage {
  padding: 12px;
}
.stage img {
  width: 100%;
  height: auto;
  display: block;
}
.stage[data-transparent="true"] {
  background-image: conic-gradient(
    #88888820 25%,
    transparent 0 50%,
    #88888820 0 75%,
    transparent 0
  );
  background-size: 20px 20px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px;
  font-size: 10px;
}
.card-bottom a {
  padding-block: 6px;
  white-space: nowrap;
}
.note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 22px;
  max-width: 940px;
}
.shape-section,
.color-section,
.ship-section {
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.shape-brand {
  margin-top: 28px;
}
.shape-brand h3 {
  margin-bottom: 18px;
  font-size: 14px;
}
.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.shape-card {
  border: 1px solid var(--line);
  min-width: 0;
}
.shape-stage {
  padding: 24px;
  background: var(--canvas);
}
.shape-container {
  aspect-ratio: 1;
  overflow: hidden;
}
.shape-container img {
  display: block;
  width: 100%;
  height: auto;
}
.shape-rounded {
  border-radius: 25%;
}
.shape-circle {
  border-radius: 50%;
}
.shape-outline {
  border: 2px solid var(--brand-accent);
  border-radius: 25%;
  background: transparent;
}
/* Outline ink must remain readable regardless of the surrounding site theme. */
.shape-stage:has([data-mode="light"]) {
  background: #f3f1ec;
}
.shape-stage:has([data-mode="dark"]) {
  background: #101513;
}
.shape-card figcaption {
  padding: 12px 16px;
  font-size: 11px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.swatch {
  border: 1px solid var(--line);
}
.swatch h3 {
  padding: 16px;
  text-transform: capitalize;
  font-size: 13px;
}
.chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 24px 16px;
  font-size: 11px;
}
.token-integration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  margin-top: 56px;
}
.token-integration p {
  margin: 16px 0 24px;
  color: var(--muted);
}
.text-link {
  font-size: 12px;
}
pre {
  min-width: 0;
  margin: 0;
  padding: 26px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #1e1e2e;
  color: #cdd6f4;
  font: 400 12px/1.9 var(--mono);
  tab-size: 2;
}
code {
  font-family: var(--mono);
}
p code {
  color: var(--ink);
  overflow-wrap: anywhere;
}
pre code.hljs {
  display: block;
  padding: 0;
}
.type-specimens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.type-card {
  min-width: 0;
  padding: 28px;
}
.type-card + .type-card {
  border-left: 1px solid var(--line);
}
.type-display {
  margin: 60px 0 40px;
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: 1.45;
  letter-spacing: -0.06em;
}
.type-display span {
  color: var(--signal);
}
.type-alphabet {
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.04em;
}
.xenon .type-display,
.xenon .type-alphabet {
  font-family: var(--serif);
}
.xenon .type-display {
  color: var(--signal);
}
.download-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-block: 1px solid var(--line);
  padding-block: 24px;
  margin-bottom: 40px;
}
.download-bar > span {
  flex: 1;
  font-size: 12px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.steps article {
  min-width: 0;
}
.step-number {
  display: block;
  color: var(--signal);
  font-size: 12px;
  margin-bottom: 20px;
}
.steps p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 24px;
  min-height: 65px;
}
.steps pre {
  padding: 18px;
  font-size: 11px;
  min-height: 170px;
}
.integration-details {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 24px 0;
  cursor: pointer;
  font-size: 16px;
}
summary span {
  float: right;
  color: var(--signal);
}
details[open] summary span {
  transform: rotate(45deg);
}
.detail-content {
  padding-bottom: 28px;
}
.detail-content > p {
  max-width: 920px;
  color: var(--muted);
  margin-bottom: 24px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.two p {
  color: var(--muted);
  margin-top: 16px;
}
.design-notes h2 {
  margin: 32px 0 44px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-block: 36px;
}
.site-footer p,
.site-footer > a:last-child {
  color: var(--muted);
  font-size: 10px;
}

@media (min-width: 1500px) {
  h1 {
    font-size: 88px;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .header-label {
    display: none;
  }
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 20px;
  }
  .site-theme-control {
    margin-left: auto;
  }
  .section-heading {
    align-items: start;
    gap: 32px;
  }
  .section-heading > p {
    max-width: 340px;
  }
  .gallery,
  .shape-grid,
  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .signature img {
    max-height: 280px;
  }
  .toolbar-note {
    display: none;
  }
  .token-integration {
    gap: 32px;
  }
  .steps {
    gap: 16px;
  }
  .steps p {
    min-height: 90px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 13px;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .site-header {
    min-height: 80px;
    gap: 16px;
  }
  .site-theme-control {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .shape-stage {
    padding: 14px;
  }
  .wordmark {
    font-size: 26px;
  }
  nav {
    gap: 10px;
    font-size: 10px;
  }
  .nav-download {
    padding-inline: 10px;
  }
  .nav-download span {
    display: none;
  }
  .section-meta {
    font-size: 9px;
  }
  .section-meta > span:last-child:not(:first-child) {
    display: none;
  }
  .hero {
    padding-top: 26px;
  }
  h1 {
    margin-top: 42px;
    font-size: clamp(29px, 7.5vw, 48px);
  }
  .hero-bottom {
    align-items: start;
    flex-direction: column;
    margin: 24px 0 36px;
    gap: 24px;
  }
  .signature {
    padding: 12px;
  }
  .signature img {
    height: 170px;
  }
  .signature figcaption {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }
  .specimen-label {
    font-size: 8px;
  }
  .signature .specimen-label > span:last-child {
    display: none;
  }
  .specimen-joint {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .specimen-foot {
    font-size: 8px;
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }
  .section-heading > p {
    max-width: none;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 16px;
    gap: 16px;
    font-size: 11px;
  }
  .card-bottom {
    padding: 10px;
    font-size: 9px;
  }
  .stage {
    padding: 4px;
  }
  .swatches {
    gap: 12px;
  }
  .swatch h3 {
    padding: 12px;
  }
  .chip {
    font-size: 10px;
    padding: 20px 10px;
  }
  .token-integration,
  .steps,
  .two,
  .type-specimens {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .type-specimens {
    gap: 0;
  }
  .type-card + .type-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .type-display {
    font-size: 27px;
    margin-top: 36px;
  }
  .type-card .specimen-label {
    font-size: 10px;
  }
  .download-bar > span {
    flex-basis: 100%;
  }
  .steps p {
    min-height: 0;
  }
  .steps pre {
    min-height: 0;
  }
  .detail-content pre {
    padding: 16px;
  }
  .site-footer {
    gap: 20px;
  }
  .site-footer > a:last-child {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
