:root {
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  font-size: var(--font-size);
  line-height: 1.25;
  text-rendering: optimizeLegibility;
  --font-size: 16px;
  --color: #080a3c;
  --muted: rgba(8, 10, 60, .48);
  --background: #efefef;
  --copy-link-underline: rgba(8, 10, 60, .99);
  --surface: #d9d9dc;
  --highlight: #dddce2;
  --focus: rgba(74, 76, 105, .4);
  --input-background: var(--surface);
  --field-focus-background: #fff;
  --field-focus-shadow: 0 0 0 .0001em transparent, 0 .1em .25em rgba(0, 0, 0, .1), 0 .5em .75em -.65em rgba(0, 0, 0, .18);
  --picker-background: rgba(255, 255, 255, .2);
  --picker-shadow: 0 0 0 1px rgba(8, 10, 60, .03), 0 .5em 2em rgba(8, 10, 60, .3);
  --option-focus-color: #fff;
  --option-focus-background: #4a4c69;
  --control-focus-icon-color: inherit;
  --control-focus-icon-filter: none;
  --search-focus-icon-opacity: .25;
  --sort-focus-icon-opacity: .4;
  color: var(--color);
  background: var(--background);
}

@media (min-width: 1920px) {
  :root { --font-size: min(.8dvw, 18px); }
}

@media (max-width: 976px) {
  :root { --font-size: 13px; }
}

@media (max-width: 768px) {
  :root { --font-size: 14px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-color-scheme]) {
    --color: #e1e1e1;
    --muted: #797979;
    --background: #212121;
    --copy-link-underline: rgba(225, 225, 225, .7);
    --surface: #292929;
    --highlight: #353535;
    --focus: rgba(255, 255, 255, .3);
    --input-background: var(--surface);
    --field-focus-background: #292929;
    --field-focus-shadow: 0 0 0 .0001em transparent, 0 .4em 1em rgba(0, 0, 0, .15);
    --picker-background: rgba(41, 41, 41, .5);
    --picker-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 .5em 2em rgba(0, 0, 0, .3);
    --option-focus-color: #1e1e1e;
    --option-focus-background: #efefef;
    --control-focus-icon-color: #3ce8b4;
    --control-focus-icon-filter: drop-shadow(0 0 .2em rgba(60, 232, 180, .9)) drop-shadow(0 0 .55em rgba(60, 232, 180, .45));
    --search-focus-icon-opacity: 1;
    --sort-focus-icon-opacity: 1;
  }
}

:root[data-color-scheme="dark"] {
  --color: #e1e1e1;
  --muted: #797979;
  --background: #212121;
  --copy-link-underline: rgba(225, 225, 225, .7);
  --surface: #292929;
  --highlight: #353535;
  --focus: rgba(255, 255, 255, .3);
  --input-background: var(--surface);
  --field-focus-background: #292929;
  --field-focus-shadow: 0 0 0 .0001em transparent, 0 .4em 1em rgba(0, 0, 0, .15);
  --picker-background: rgba(41, 41, 41, .5);
  --picker-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 .5em 2em rgba(0, 0, 0, .3);
  --option-focus-color: #1e1e1e;
  --option-focus-background: #efefef;
  --control-focus-icon-color: #3ce8b4;
  --control-focus-icon-filter: drop-shadow(0 0 .2em rgba(60, 232, 180, .9)) drop-shadow(0 0 .55em rgba(60, 232, 180, .45));
  --search-focus-icon-opacity: 1;
  --sort-focus-icon-opacity: 1;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--color);
  background: var(--background);
}

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

hr {
  height: 1px;
  margin-block: 2.5em;
  border: 0;
  background: currentColor;
  opacity: .1;
  -webkit-mask-image: linear-gradient(-90deg, transparent, #000 50%, #000);
  mask-image: linear-gradient(-90deg, transparent, #000 50%, #000);
}

@media (max-width: 768px) {
  hr {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
}

@media (min-resolution: 2dppx) {
  hr {
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='2' height='2' viewBox='0 0 2 2'><rect x='0' y='1' width='2' height='1' fill='rgba(8,10,60,0.15)'/></svg>");
    background-repeat: repeat-x;
    background-size: 1px;
    opacity: 1;
  }

  :root[data-color-scheme="dark"] hr {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='2' height='2' viewBox='0 0 2 2'><rect x='0' y='1' width='2' height='1' fill='rgba(225,225,225,0.15)'/></svg>");
  }
}

@media (min-resolution: 2dppx) and (prefers-color-scheme: dark) {
  :root:not([data-color-scheme]) hr {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='2' height='2' viewBox='0 0 2 2'><rect x='0' y='1' width='2' height='1' fill='rgba(225,225,225,0.15)'/></svg>");
  }
}

.logo-defs {
  position: absolute;
  overflow: hidden;
}

.logo-inline {
  position: relative;
  top: .05em;
  display: inline-block;
  height: .83em;
  aspect-ratio: 255 / 91.9;
  vertical-align: baseline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75em;
  left: 50%;
  padding: .45em .75em;
  color: var(--background);
  background: var(--color);
  border-radius: .4em;
  transform: translate(-50%, -200%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-path {
  position: fixed;
  z-index: 20;
  top: .6875em;
  left: .65625em;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 2em;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .18s ease;
}

[data-site-path-hidden] .site-path {
  opacity: 0;
  pointer-events: none;
}

.site-path a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.site-path a:hover,
.site-path a:focus-visible {
  color: var(--color);
}

.site-path-logo {
  display: block;
  flex: none;
  width: 2.5em;
}

.site-path-logo svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.site-path-parts,
.site-path-part {
  display: flex;
  align-items: center;
}

.site-path-part > a {
  will-change: transform, opacity;
}

.site-path-separator {
  flex: none;
  width: .078125em;
  height: 1.1875em;
  margin-inline: .75em;
  border-radius: 1em;
  background: currentColor;
  opacity: .625;
  transform: rotate(16deg);
  will-change: opacity;
}

.brand-shell {
  --section-nav-width: 11.5em;
  --section-nav-spacing: 2em;
  position: relative;
  left: 2.5em;
  width: 33.6em;
  max-width: calc(100vw - 6em);
  margin-inline: auto;
  padding-block: 13em;
}

.brand-rail {
  position: fixed;
  top: 12em;
  right: calc(50% + 10.85em + var(--section-nav-width) + var(--section-nav-spacing));
  width: 7em;
  color: var(--muted);
}

.section-nav {
  position: relative;
  left: .45em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--section-nav-width);
  isolation: isolate;
}

.section-nav a {
  position: relative;
  z-index: 1;
  left: -.857142857em;
  display: block;
  width: calc(100% + .857142857em);
  min-height: 1.857142857em;
  padding-left: .857142857em;
  color: inherit;
  font-size: 1.75em;
  line-height: 1.1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease;
}

.section-nav a:hover,
.section-nav a[aria-current="page"] {
  color: var(--color);
}

.nav-shape {
  position: relative;
  display: inline-block;
  margin-left: -.5em;
  padding: .37em .5em;
  white-space: nowrap;
}

.section-nav a[data-page-key="about"] .nav-shape {
  padding-right: .6em;
}

.section-nav a:is([data-page-key="brand"], [data-page-key="contact"]) .nav-shape {
  padding-right: .55em;
}

.section-nav a[aria-current="page"] .nav-shape::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 2em;
  background: var(--highlight);
}

@supports (corner-shape: superellipse(1.8)) {
  .section-nav a[aria-current="page"] .nav-shape::before {
    border-radius: 4em;
    corner-shape: superellipse(1.8);
  }
}

[data-nav-ready] .section-nav a[aria-current="page"] .nav-shape::before {
  opacity: 0;
}

.nav-highlight {
  position: absolute;
  z-index: 0;
  top: -3em;
  left: -4em;
  width: calc(100% + 8em);
  height: calc(100% + 6em);
  max-width: none;
  pointer-events: none;
}

.brand-main {
  width: 100%;
}

.brand-main:focus {
  outline: none;
}

.page-heading {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-body {
  font-size: 1.2em;
  line-height: 1.8;
}

.page-body > * + * {
  margin-top: calc(var(--font-size) * 1.5 * 1.2);
}

.content-section > * + * {
  margin-top: calc(var(--font-size) * 1.5 * 1.2);
}

.content-section + .content-section {
  margin-top: 8em;
}

.page-body p:first-child {
  margin-top: -.25em;
}

.page-body .lead {
  font-size: 1.125em;
}

.page-body .lead:first-child {
  margin-top: -.333em;
}

.page-body a:not(.without-underline, .button, .credits-name) {
  color: inherit;
  text-decoration: none;
  background-image:
    linear-gradient(var(--background), var(--background)),
    linear-gradient(var(--background), var(--background)),
    linear-gradient(var(--copy-link-underline), var(--copy-link-underline));
  background-position: -.5% 91%, 100.5% 91%, 0 87%;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 2px 4px, 2px 4px, 1px 1px;
  text-shadow:
    var(--background) .03em 0,
    var(--background) -.03em 0,
    var(--background) 0 .03em,
    var(--background) 0 -.03em,
    var(--background) .06em 0,
    var(--background) -.06em 0,
    var(--background) .09em 0,
    var(--background) -.09em 0,
    var(--background) .12em 0,
    var(--background) -.12em 0,
    var(--background) .15em 0,
    var(--background) -.15em 0;
}

.page-body a:not(.without-underline, .button, .credits-name)::selection {
  text-shadow: none;
}

.page-body a:not(.without-underline, .button, .credits-name):focus-visible {
  outline: .125em solid var(--focus);
  outline-offset: .25em;
}

.page-body h2,
.page-body h3 {
  color: var(--muted);
  font-size: .75em;
  font-weight: 500;
  letter-spacing: .035em;
  margin-top: 7.5em;
  margin-bottom: 3em;
  text-rendering: optimizeLegibility;
  text-transform: uppercase;
}

.content-section > h2 {
  scroll-margin-top: 4em;
  margin-top: 0;
}

.content-section > h2 + * {
  margin-top: 0;
}

.credits-maker {
  margin: -1.5em 0 4em;
}

.credits-name {
  position: relative;
  display: inline-block;
  color: inherit;
  font-size: clamp(2.5em, 5.2vw, 4.25em);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.05;
  text-decoration-thickness: .025em;
  text-underline-offset: .1em;
  white-space: nowrap;
}

.credits-name-svg {
  display: block;
  width: 2.052em;
  height: 1.802em;
  overflow: visible;
  color: var(--color);
}

.credits-name-svg path,
.credits-name-svg use {
  fill: currentColor;
}

.credits-name-muted {
  color: var(--muted);
}

.credits-name-glyph {
  opacity: 0;
  will-change: opacity, transform;
}

.credits-name-counter {
  fill: var(--muted);
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  font-size: 250px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -12px;
  text-anchor: middle;
}

.credits-name-measure {
  color: var(--muted);
  opacity: 0;
  will-change: opacity;
}

.credits-name-measure-lines {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 12;
}

.credits-name-counter-logo {
  opacity: 0;
}

.credits-section {
  margin-top: 6em;
}

.page-body .credits-section > h2 {
  margin: 0 0 1.25em;
  color: var(--color);
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-transform: none;
}

.credits-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credits-item {
  padding: 1.15em 0 1.25em;
}

.credits-item > hr {
  margin: -1.15em 0 1.15em;
}

.page-body .credits-item > h3 {
  margin: 0 0 .25em;
  color: var(--color);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.4;
  text-transform: none;
}

.credits-item > p {
  margin: 0;
}

.credits-item > p + p {
  margin-top: .35em;
}

.credits-item-meta {
  color: var(--muted);
  font-size: .8em;
}

.contact-form .Input-textarea {
  min-height: 10em;
}

.contact-form {
  line-height: 1.5;
}

.contact-form .Stack {
  --gap: 1em;
}

.contact-form .Input {
  padding: .6em .8em;
  background: #fff;
  box-shadow: none;
}

.contact-form .Input:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 .1875em var(--focus);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-color-scheme]) .contact-form .Input,
  :root:not([data-color-scheme]) .contact-form .Input:focus-visible {
    background: #161616;
  }
}

:root[data-color-scheme="dark"] .contact-form .Input,
:root[data-color-scheme="dark"] .contact-form .Input:focus-visible {
  background: #161616;
}

.principles {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: .666666667em;
  background: color-mix(in srgb, var(--color) 8%, transparent);
}

.principles p {
  display: grid;
  grid-template-columns: 7.111111111em 1fr;
  gap: .888888889em;
  padding: .888888889em 0;
  background: var(--background);
}

.principles strong {
  font-weight: 500;
}

.principles span {
  color: var(--muted);
}

.identity-stage,
.type-stage,
.control-specimen {
  padding: 2.222222222em;
  border: 1px solid color-mix(in srgb, var(--color) 12%, transparent);
  border-radius: .888888889em;
}

.identity-stage {
  display: grid;
  min-height: 13.333333333em;
  place-items: center;
}

.identity-stage svg {
  max-width: calc(100% - 2em);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  min-height: 10.666666667em;
  border-radius: .8em;
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25em;
  font-size: .711111111em;
  line-height: 1.35;
}

.swatch strong {
  font-weight: 600;
}

.swatch-ink { color: #efefef; background: #080a3c; }
.swatch-paper { color: #080a3c; background: #efefef; }
.swatch-signal { color: #080a3c; background: #3ce8b4; }

.type-stage {
  line-height: 1.7;
}

.type-display {
  font-size: 4.444444444em;
  line-height: 1;
  letter-spacing: -.06em;
  margin-bottom: .4em;
}

.corner-geometry {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color) 12%, transparent);
  border-radius: .888888889em;
}

.corner-geometry svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--color);
  background: color-mix(in srgb, var(--color) 2.5%, var(--background));
}

.corner-geometry-shape {
  fill: var(--highlight);
  stroke: currentColor;
  stroke-width: 1.5;
}

.corner-geometry-guide,
.corner-geometry-radius,
.corner-geometry-tangent {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.corner-geometry-guide {
  stroke: color-mix(in srgb, var(--color) 18%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.corner-geometry-radius {
  stroke: color-mix(in srgb, var(--color) 42%, transparent);
  stroke-width: 1;
}

.corner-geometry-tangent {
  stroke: var(--color);
  stroke-width: 1.5;
}

.corner-geometry-samples {
  fill: var(--color);
  stroke: var(--background);
  stroke-width: 1.5;
}

.corner-geometry-center {
  fill: var(--background);
  stroke: var(--color);
  stroke-width: 1.5;
}

.corner-geometry-label,
.corner-geometry-note {
  fill: currentColor;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
}

.corner-geometry-label {
  font-size: .833333333em;
  font-weight: 500;
}

.corner-geometry-note {
  fill: var(--muted);
  font-size: .601851852em;
}

.corner-equations {
  display: grid;
  gap: .888888889em;
  padding: 1.333333333em;
  border-top: 1px solid color-mix(in srgb, var(--color) 12%, transparent);
}

.corner-equations div {
  text-align: center;
}

.corner-equation-label,
.corner-geometry figcaption {
  color: var(--muted);
}

.corner-equation-label {
  display: block;
  font-size: .75em;
  letter-spacing: .035em;
  text-align: left;
  text-transform: uppercase;
}

.content-section > p code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: .8em;
  font-variant-numeric: tabular-nums;
}

.corner-equations .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: .35em 0 0;
  padding: .2em 0;
}

.corner-equations .katex {
  font-size: 1.05em;
}

.corner-geometry figcaption {
  padding: 0 1.777777778em 1.777777778em;
  font-size: .75em;
  line-height: 1.6;
}

.corner-construction {
  padding-left: 1.25em;
}

.corner-construction li + li {
  margin-top: .75em;
}

.corner-construction .katex,
.corner-sanity-check .katex {
  font-size: 1em;
}

.corner-bezier-equations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em 2.5em;
  margin: 1.25em 0 .5em;
}

.corner-bezier-equations .katex {
  font-size: 1.15em;
}

.corner-sanity-check {
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: .888888889em;
  margin-top: 1.777777778em;
}

.button {
  appearance: none;
  -webkit-appearance: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  border: 0;
  padding: .6em 1em;
  line-height: 1.5;
  color: inherit;
  background: transparent;
  border-radius: .375em;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  --hover-box-shadow-color: transparent;
  --active-overlay-box-shadow-color: transparent;
  --active-box-shadow-color: transparent;
  --focus-size: .1875em;
  --transition-duration: .3s;
  box-shadow: inset 0 .133em .333em var(--active-box-shadow-color), inset 0 0 0 9999em var(--active-overlay-box-shadow-color), inset 0 0 0 9999em var(--hover-box-shadow-color), 0 0 0 var(--focus-size) var(--focus);
  transition: box-shadow var(--transition-duration) ease;
}

@supports (corner-shape: squircle) {
  .button {
    border-radius: .75em;
    corner-shape: squircle;
  }
}

@media (hover: hover) {
  .button:hover { --hover-box-shadow-color: rgba(255, 255, 255, .2); }
}

.button:active {
  --transition-duration: 0s;
  --hover-box-shadow-color: transparent;
  --active-overlay-box-shadow-color: rgba(0, 0, 0, .08);
  --active-box-shadow-color: rgba(0, 0, 0, .2);
}

.button:focus { outline: none; }
.button:not(:focus-visible) { --focus-size: 0em; }
.button-is-primary { color: #fff; background: #4a4c69; font-weight: 500; }
.button-is-secondary { color: color-mix(in srgb, currentColor 80%, transparent); background: color-mix(in srgb, currentColor 20%, transparent); font-weight: 500; }

:root[data-color-scheme="dark"] .button-is-primary {
  color: #1a1a1a;
  background: #cdcdcd;
  font-weight: 500;
  letter-spacing: -.02em;
  border-radius: 1em;
}

@supports (corner-shape: squircle) {
  :root[data-color-scheme="dark"] .button-is-primary {
    border-radius: 2em;
    corner-shape: squircle;
  }
}

.library-controls {
  display: flex;
  gap: 1em;
  width: 26.666666667em;
  max-width: 100%;
  font-size: 1.125em;
}

.search-field {
  position: relative;
  flex: 1;
}

.search-field svg {
  position: absolute;
  top: -.15em;
  bottom: 0;
  left: .89em;
  width: 1.1em;
  height: 1.1em;
  margin: auto;
  opacity: .25;
  pointer-events: none;
  transition: color .2s ease, opacity .2s ease, filter .2s ease;
}

.sort-field { position: relative; }
.sort-field > svg { position: absolute; z-index: 1; top: 0; bottom: 0; width: 1.2em; height: 1.2em; margin: auto; opacity: .4; pointer-events: none; }
.sort-field .sort-icon { left: .925em; transition: color .2s ease, opacity .2s ease, filter .2s ease; }
.sort-field .sort-chevron { right: .75em; }

.search-input,
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  border: 0;
  border-radius: .5em;
  background-color: var(--input-background);
  transition: box-shadow .3s ease, background .3s ease;
}

@supports (corner-shape: squircle) {
  .search-input,
  .sort-select { border-radius: 1em; corner-shape: squircle; }
}

.search-input:focus-visible,
.sort-select:focus-visible {
  outline: none;
  background-color: var(--field-focus-background);
  box-shadow: var(--field-focus-shadow);
}

.search-input {
  width: 100%;
  padding: .7em 1em .7em 2.7em;
  font-weight: 500;
}

.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-input::placeholder { color: inherit; opacity: .5; }

.sort-select {
  cursor: pointer;
  width: 9.4em;
  padding: .7em 2.4em .7em 2.7em;
}

.sort-select > button { display: none; }
.sort-select:disabled { cursor: default; opacity: .45; }

@supports (appearance: base-select) {
  .sort-select {
    appearance: base-select;
    -webkit-appearance: base-select;
    text-shadow: color-mix(in srgb, currentColor, transparent) 0 0 0;
  }

  .sort-select:open { cursor: default; opacity: .5; }
  .sort-select > button { display: flex; align-items: center; width: 100%; box-sizing: border-box; padding: 0; border: 0; font: inherit; color: inherit; background: transparent; }
  .sort-select > button > selectedcontent { color: inherit; }
  .sort-select::picker-icon { display: none; }
  .sort-select::picker(select) {
    appearance: base-select;
    color: inherit;
    min-inline-size: anchor-size(width);
    padding: .5em;
    border: 0;
    border-radius: .75em;
    position-anchor: auto;
    inset-inline-start: calc(anchor(left) + var(--picker-offset-x, 0));
    inset-block-start: calc(anchor(bottom) + var(--picker-offset-y, 0));
    opacity: var(--picker-opacity, 0);
    background: var(--picker-background);
    -webkit-backdrop-filter: blur(1em);
    backdrop-filter: blur(1em);
    box-shadow: var(--picker-shadow);
  }

  @supports (corner-shape: squircle) {
    .sort-select::picker(select) { border-radius: 1.5em; corner-shape: squircle; }
  }

  .sort-select option { cursor: pointer; padding: .3em .5em; border-radius: .5em; }
  .sort-select option::checkmark {
    content: "";
    position: relative;
    top: -.04em;
    width: .8em;
    height: .8em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 9 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.84 7.4 1.1 5.7s-.5-.5 0-1 1 0 1 0l1.73 1.7 3.12-4.92s.41-.71 1.04-.33.11 1.05.11 1.05-3.12 4.95-3.36 5.3-.57.55-.93.51c-.38-.04-.69-.33-.97-.61'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 9 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.84 7.4 1.1 5.7s-.5-.5 0-1 1 0 1 0l1.73 1.7 3.12-4.92s.41-.71 1.04-.33.11 1.05.11 1.05-3.12 4.95-3.36 5.3-.57.55-.93.51c-.38-.04-.69-.33-.97-.61'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .sort-select option:focus-visible { color: var(--option-focus-color); background: var(--option-focus-background); outline: none; }

  @supports (corner-shape: squircle) {
    .sort-select option { border-radius: 1em; corner-shape: squircle; }
  }

  .sort-field:has(.sort-select:open) > svg { opacity: .2; }
}

.search-field:has(.search-input:focus) svg,
.sort-field:has(.sort-select:focus-visible) .sort-icon { color: var(--control-focus-icon-color); filter: var(--control-focus-icon-filter); }
.search-field:has(.search-input:focus) svg { opacity: var(--search-focus-icon-opacity); }
.sort-field:has(.sort-select:focus-visible) .sort-icon { opacity: var(--sort-focus-icon-opacity); }

.app-window {
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--color) 15%, transparent);
  border-radius: .8em;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  box-shadow: 0 1.333333333em 3.555555556em -2em rgba(0, 0, 0, .45);
}

.app-titlebar {
  display: flex;
  align-items: center;
  height: 2.666666667em;
  padding-inline: .8em;
  border-bottom: 1px solid color-mix(in srgb, var(--color) 10%, transparent);
}

.app-logo { width: 2.488888889em; margin-right: .8em; overflow: visible; }

.menubar-shell {
  position: relative;
  z-index: 40;
  align-self: stretch;
  font-size: .8em;
  user-select: none;
}

.menubar-shell[data-has-open-menu="true"] { z-index: 1400; }
.menubar-shell ul,
.menubar-shell li { margin: 0; padding: 0; list-style: none; }
.menubar-shell [role="menubar"] { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; cursor: pointer; }
.menubar-shell [role="menubar"] > li { position: relative; display: inline-flex; align-items: center; }
.menubar-shell [role="menubar"] > li > [role="menuitem"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 1.75em;
  margin-bottom: .2em;
  padding: .15em .4em;
  border-radius: .5em;
}

@supports (corner-shape: squircle) {
  .menubar-shell [role="menubar"] > li > [role="menuitem"] { border-radius: 1em; corner-shape: squircle; }
}

.menubar-shell [role="menubar"] > li > [role="menuitem"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  height: calc(100% + 1em);
}

.menubar-shell [role="menubar"] > li > [role="menuitem"][aria-expanded="true"]::after { display: block; }
.menubar-shell [role="menubar"] [role="menu"] {
  position: absolute;
  display: none;
  min-width: 18.5em;
  margin: 0;
  padding: .5em;
  color: var(--color);
  border-radius: .75em;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(1em);
  backdrop-filter: blur(1em);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 .5em 2em rgba(0, 0, 0, .3);
  cursor: default;
}

@supports (corner-shape: squircle) {
  .menubar-shell [role="menubar"] [role="menu"] { border-radius: 1.5em; corner-shape: squircle; }
}

.menubar-shell [role="menubar"] [role="menuitem"],
.menubar-shell [role="menubar"] [role="menuitemcheckbox"],
.menubar-shell [role="menubar"] [role="menuitemradio"] {
  padding: .25em .5em;
  color: inherit;
  border-radius: .5em;
}

@supports (corner-shape: squircle) {
  .menubar-shell [role="menubar"] [role="menuitem"],
  .menubar-shell [role="menubar"] [role="menuitemcheckbox"],
  .menubar-shell [role="menubar"] [role="menuitemradio"] { border-radius: 1em; corner-shape: squircle; }
}

.menubar-shell [role="menubar"] [role="menu"] [role="menuitem"],
.menubar-shell [role="menubar"] [role="menu"] [role="menuitemcheckbox"],
.menubar-shell [role="menubar"] [role="menu"] [role="menuitemradio"],
.menubar-shell [role="menubar"] [role="menu"] [role="separator"] {
  min-width: 17em;
  padding-inline: .666em;
}

.menubar-shell [role="menubar"] [role="menu"] [data-command] { display: flex; align-items: center; }
.menubar-shell [role="menubar"] [role="separator"] { position: relative; padding-top: .5em; padding-bottom: .5em; }
.menubar-shell [role="menubar"] [role="separator"]::after {
  content: "";
  position: absolute;
  inset: 0 .25em;
  height: 1px;
  margin: auto 0;
  background: currentcolor;
  opacity: .15;
}

.menubar-shell [role="menubar"] [aria-disabled="true"] { opacity: .5; }
.menubar-shell [role="menubar"] [role="menuitem"][aria-expanded="true"],
.menubar-shell [role="menubar"] [role="menuitem"]:focus,
.menubar-shell [role="menubar"] [role="menuitemcheckbox"]:focus,
.menubar-shell [role="menubar"] [role="menuitemradio"]:focus { color: var(--background); background: var(--color); outline: none; }
.menubar-shell .menu-shortcut { margin-left: auto; padding-left: .35em; white-space: nowrap; opacity: .5; }
.menubar-shell .menu-check { width: 1em; margin-left: -.3em; margin-right: .3em; pointer-events: none; text-align: center; }
.menubar-shell [role="menuitemcheckbox"][aria-checked="true"] .menu-check::before { content: "✓"; }

@media (hover: hover) {
  .menubar-shell:not(.focus) > [role="menubar"] > li > [role="menuitem"]:hover {
    background: color-mix(in srgb, var(--color) 12%, transparent);
  }
}

.app-workspace { position: relative; min-height: 19.555555556em; background-image: linear-gradient(color-mix(in srgb, var(--color) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--color) 5%, transparent) 1px, transparent 1px); background-size: .888888889em .888888889em; }
.app-workspace[data-grid-visible="false"] { background-image: none; }

.stamp-window {
  position: absolute;
  top: 3.555555556em;
  left: 5.333333333em;
  width: 16.888888889em;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color) 14%, transparent);
  border-radius: .711111111em;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(.888888889em);
  backdrop-filter: blur(.888888889em);
  box-shadow: 0 .888888889em 2.666666667em rgba(0, 0, 0, .25);
}

.stamp-dialog-toolbar {
  --toolbar-control-height: 1.95em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35em;
  padding: .5em;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  cursor: move;
}

.stamp-drag-icon {
  width: 1.5em;
  height: 1.5em;
  opacity: .5;
  rotate: 90deg;
  pointer-events: none;
}

.stamp-toolbar-controls {
  display: flex;
  align-items: center;
  gap: .35em;
  height: var(--toolbar-control-height);
  cursor: default;
}

.stamp-select,
.stamp-close-button {
  color: inherit;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: .5em;
  background-color: rgba(255, 255, 255, .3);
}

@supports (corner-shape: squircle) {
  .stamp-select,
  .stamp-close-button { border-radius: 1em; corner-shape: squircle; }
}

.stamp-select {
  appearance: none;
  height: 100%;
  padding: .3em 1.8em .25em .6em;
  font-size: .9em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2383827c' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M7 10l5-5 5 5m-10 5 5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right .25em center;
  background-size: 1.3em;
}

.stamp-select > button { display: none; }
.stamp-slot-select { width: 7em; }
.stamp-size-select { width: 6em; }

@supports (appearance: base-select) {
  .stamp-select { appearance: base-select; text-shadow: 0 0 0 color-mix(in srgb, currentColor, transparent); }
  .stamp-select:open { cursor: default; opacity: .5; }
  .stamp-select > button { display: flex; align-items: center; inline-size: 100%; padding: 0; color: inherit; border: 0; background: transparent; }
  .stamp-select::picker-icon { display: none; }
  .stamp-select::picker(select) { appearance: base-select; color: inherit; min-inline-size: anchor-size(width); padding: .5em; border: 0; border-radius: .75em; background: color-mix(in srgb, var(--surface) 85%, transparent); -webkit-backdrop-filter: blur(1em); backdrop-filter: blur(1em); box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 .5em 2em rgba(0, 0, 0, .3); }
  .stamp-select option { cursor: pointer; padding: .15em .5em .1em; border-radius: .75em; }
  @supports (corner-shape: squircle) {
    .stamp-select::picker(select),
    .stamp-select option { border-radius: 1.5em; corner-shape: squircle; }
  }
  .stamp-select option:focus { color: #fff; background: #575650; outline: none; }
  .stamp-select option:selected::checkmark,
  .stamp-select option:checked::checkmark { content: "✓"; }
}

.stamp-close-button {
  display: inline-flex;
  align-items: center;
  width: var(--toolbar-control-height);
  height: var(--toolbar-control-height);
  padding: .6em;
}

.stamp-fabric-outer { padding: .888888889em; background: color-mix(in srgb, var(--background) 55%, transparent); }
.stamp-fabric { display: grid; grid-template-columns: repeat(10, 1fr); width: 10.666666667em; aspect-ratio: 1; margin: auto; border-top: 1px solid color-mix(in srgb, var(--color) 15%, transparent); border-left: 1px solid color-mix(in srgb, var(--color) 15%, transparent); background: var(--background); }
.stamp-fabric i { border-right: 1px solid color-mix(in srgb, var(--color) 15%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color) 15%, transparent); }
.stamp-fabric i[data-stitch] { background: #3ce8b4; box-shadow: inset 0 0 0 1px color-mix(in srgb, #080a3c 18%, transparent); }

.demo-dialog,
.print-dialog {
  color: var(--color);
  border: 0;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  -webkit-backdrop-filter: blur(1.5em);
  backdrop-filter: blur(1.5em);
  box-shadow: 0 1.5em 5em rgba(0, 0, 0, .45);
}

.demo-dialog { width: min(28em, calc(100vw - 3em)); padding: 2.5em; border-radius: 1em; }
.demo-dialog::backdrop,
.print-dialog::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(.25em); backdrop-filter: blur(.25em); }
.dialog-title { font-size: 2em; font-weight: 400; line-height: 1.3; letter-spacing: -.05em; }
.dialog-content { margin: 1.333333333em 0; font-size: 1.125em; }
.dialog-actions { display: flex; gap: .888888889em; font-size: 1.125em; }

.print-dialog { width: min(72em, calc(100vw - 2em)); height: min(48em, calc(100vh - 2em)); padding: 0; overflow: hidden; border-radius: 1em; }
.print-dialog[open] { display: grid; grid-template-columns: 17em 1fr; }
.print-sidebar { display: flex; flex-direction: column; gap: 1em; padding: 2em; border-right: 1px solid color-mix(in srgb, var(--color) 10%, transparent); }
.print-sidebar h2 { font-size: 1.5em; font-weight: 400; }
.print-sidebar .button { margin-top: auto; }
.print-stage { position: relative; display: grid; overflow: auto; place-items: start center; padding: 4em; background: #515151; }
.print-close { position: fixed; top: 1.2em; right: 1.2em; width: 2em; height: 2em; color: #fff; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.paper { width: 29em; aspect-ratio: 8.5 / 11; padding: 2.5em; color: #080a3c; background: #fff; box-shadow: 0 1em 3em rgba(0, 0, 0, .35); }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; font-size: .7em; }
.paper-head svg { width: 7.142857143em; }
.paper-rule { height: 1px; margin-top: 2em; background: #080a3c; opacity: .25; }

@media (max-width: 768px) {
  .page-body h2,
  .page-body h3 {
    margin-top: 6em;
    margin-bottom: 2.5em;
  }

  .content-section > h2 {
    margin-top: 0;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .page-body { font-size: 1em; }
}

@media (max-width: 56.25em) {
  .brand-shell { left: 0; width: min(33.6em, calc(100vw - 3em)); max-width: none; padding-top: 7em; }
  .brand-rail { position: static; display: flex; align-items: center; width: 100%; margin-bottom: 3em; }
  .section-nav { left: 0; flex: 1; flex-direction: row; overflow-x: auto; width: auto; }
  .section-nav a { left: 0; flex: none; width: auto; min-height: 0; padding-left: 0; font-size: 1em; }
  .nav-highlight { display: none; }
  [data-nav-ready] .section-nav a[aria-current="page"] .nav-shape::before { opacity: 1; }
}

@media (max-width: 38.75em) {
  .site-path { font-size: 1.125em; }
  .brand-shell { width: calc(100vw - 2em); padding-top: 5em; }
  .brand-rail { display: block; }
  .identity-stage svg { width: 17.625em; }
  .library-controls { flex-direction: column; }
  .sort-select { width: 100%; }
  .swatches { grid-template-columns: 1fr; min-height: 24em; }
  .corner-equations .katex { font-size: .9em; }
  .corner-bezier-equations { justify-content: flex-start; }
  .principles p { grid-template-columns: 1fr; gap: .25em; }
  .stamp-window { left: 1em; width: calc(100% - 2em); }
  .print-dialog[open] { grid-template-columns: 1fr; }
  .print-sidebar { display: none; }
}

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

@media print {
  .brand-rail,
  .site-path,
  .skip-link { display: none; }
  .brand-shell { width: auto; max-width: none; padding: 0; }
}
