:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: var(--ch-shadow-focus);
  outline: 1px solid var(--ch-clay);
  outline-offset: 3px;
}

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

.ch-link,
.ch-text-link,
.ch-under-link,
.ch-link-button,
.ch-footer a {
  color: var(--ch-ink-soft);
  transition:
    border-color var(--ch-transition-fast),
    color var(--ch-transition-fast),
    opacity var(--ch-transition-fast);
}

.ch-link:hover,
.ch-text-link:hover,
.ch-under-link:hover,
.ch-link-button:hover,
.ch-link-button:focus-visible,
.ch-footer a:hover {
  color: var(--ch-state-muted-hover);
  opacity: 0.72;
}

.ch-link--muted {
  color: var(--ch-ink-muted);
}

p .ch-link,
li .ch-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ch-button,
.ch-nav-button,
.ch-tag,
.ch-choice,
.ch-link-button,
.ch-quantity button {
  transition:
    background-color var(--ch-transition-fast),
    border-color var(--ch-transition-fast),
    color var(--ch-transition-fast),
    opacity var(--ch-transition-fast),
    transform var(--ch-transition-fast);
}

.ch-button {
  appearance: none;
  align-items: center;
  border: 1px solid var(--ch-hairline-2);
  border-radius: 0;
  display: inline-flex;
  font-family: var(--ch-sans);
  font-size: 13px;
  font-weight: 400;
  height: 49px;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  min-width: 143px;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
}

.ch-button:hover {
  transform: translateY(-1px);
}

.ch-button:active {
  transform: translateY(0);
}

.ch-button:disabled,
.ch-button[aria-disabled="true"] {
  background: var(--ch-state-disabled-bg);
  border-color: var(--ch-hairline-2);
  color: var(--ch-state-disabled-fg);
  opacity: 0.74;
  transform: none;
}

.ch-button--dark,
.ch-button--primary {
  background: var(--ch-ink);
  border-color: var(--ch-ink);
  color: var(--ch-surface);
}

.ch-button--dark:hover,
.ch-button--primary:hover {
  background: var(--ch-state-hover-ink);
  border-color: var(--ch-state-hover-ink);
  color: var(--ch-surface);
}

.ch-button--light,
.ch-button--secondary,
.ch-button--ghost {
  background: transparent;
  border-color: var(--ch-hairline-2);
  color: var(--ch-ink-soft);
}

.ch-button--light:hover,
.ch-button--secondary:hover,
.ch-button--ghost:hover {
  background: var(--ch-state-hover-paper);
  border-color: var(--ch-ink-soft);
  color: var(--ch-ink);
}

.ch-button--text {
  background: transparent;
  border-color: transparent;
  color: var(--ch-ink-soft);
  min-width: 0;
  padding-inline: 0;
}

.ch-button--text:hover {
  background: transparent;
  color: var(--ch-state-muted-hover);
}

.ch-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ch-ink);
  cursor: pointer;
  font: inherit;
  padding: 0 0 2px;
}

.ch-button--small {
  font-size: 11px;
  height: 40px;
  min-width: 0;
  padding-inline: 16px;
}

.ch-button--full {
  width: 100%;
}

.ch-button--icon,
.ch-nav-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  justify-content: center;
  padding: 0;
}

.ch-button.ch-button--icon {
  border: 1px solid var(--ch-hairline-2);
  font-family: var(--ch-sans);
  font-size: 18px;
  height: 36px;
  letter-spacing: 0;
  line-height: 1;
  min-width: 36px;
  padding: 0;
  text-transform: none;
  width: 36px;
}

.ch-button--icon:hover,
.ch-nav-button:hover {
  color: var(--ch-state-muted-hover);
}

.ch-nav-link,
.ch-nav-button {
  color: var(--ch-ink-soft);
  font-family: var(--ch-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: uppercase;
}

.ch-nav-link {
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  transition:
    border-color var(--ch-transition-fast),
    color var(--ch-transition-fast),
    opacity var(--ch-transition-fast);
}

.ch-nav-link:hover,
.ch-nav-button:hover {
  color: var(--ch-state-muted-hover);
}

.ch-nav-link[aria-current="page"],
.ch-nav-link--active {
  border-bottom-color: currentColor;
  color: var(--ch-ink);
}

.ch-tag {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--ch-hairline-2);
  color: var(--ch-ink-muted);
  display: inline-flex;
  font-family: var(--ch-mono);
  font-size: 10px;
  justify-content: center;
  letter-spacing: 0.12em;
  min-height: 34px;
  padding: 0 14px;
  text-transform: uppercase;
}

.ch-tag:hover {
  border-color: var(--ch-ink-soft);
  color: var(--ch-ink-soft);
}

.ch-tag--filled,
.ch-tag[aria-pressed="true"] {
  background: var(--ch-ink);
  border-color: var(--ch-ink);
  color: var(--ch-surface);
}

.ch-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ch-field__label,
.ch-field__hint,
.ch-field__error {
  font-family: var(--ch-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ch-field__label {
  color: var(--ch-ink-muted);
}

.ch-field__hint {
  color: var(--ch-ink-muted);
  letter-spacing: 0;
  text-transform: none;
}

.ch-field__error {
  color: var(--ch-state-danger);
}

.ch-field-control,
.ch-field input,
.ch-field select,
.ch-field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ch-hairline-2);
  border-radius: 0;
  color: var(--ch-ink-soft);
  min-height: 44px;
  padding: 0 0 10px;
  width: 100%;
}

.ch-field textarea,
textarea.ch-field-control {
  min-height: 104px;
  padding-top: 10px;
  resize: vertical;
}

.ch-field-control:hover,
.ch-field input:hover,
.ch-field select:hover,
.ch-field textarea:hover {
  border-bottom-color: var(--ch-ink-muted);
}

.ch-field-control:disabled,
.ch-field input:disabled,
.ch-field select:disabled,
.ch-field textarea:disabled {
  color: var(--ch-state-disabled-fg);
  opacity: 0.74;
}

.ch-field--invalid .ch-field-control,
.ch-field--invalid input,
.ch-field--invalid select,
.ch-field--invalid textarea {
  border-bottom-color: var(--ch-state-danger);
}

.ch-choice {
  align-items: start;
  background: var(--ch-surface);
  border: 1px solid var(--ch-hairline-2);
  color: var(--ch-ink-soft);
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 18px;
  position: relative;
}

.ch-choice__input {
  height: 1px;
  opacity: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 1px;
}

.ch-choice:hover,
.ch-choice:focus-within,
.ch-choice--selected,
.ch-choice[aria-checked="true"],
.ch-choice[aria-pressed="true"],
.ch-choice:has(.ch-choice__input:checked) {
  border-color: var(--ch-ink);
}

.ch-choice:focus-within {
  box-shadow: var(--ch-shadow-focus);
}

.ch-choice small {
  color: var(--ch-ink-muted);
  font-family: var(--ch-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ch-quantity {
  align-items: center;
  border: 1px solid var(--ch-hairline-2);
  display: inline-grid;
  grid-template-columns: 40px minmax(42px, auto) 40px;
  min-height: 42px;
}

.ch-quantity button {
  background: transparent;
  border: 0;
  color: var(--ch-ink-soft);
  height: 40px;
}

.ch-quantity button:hover {
  background: var(--ch-state-hover-paper);
  color: var(--ch-ink);
}

.ch-quantity span,
.ch-quantity__input {
  background: transparent;
  border: 0;
  color: var(--ch-ink);
  font-family: var(--ch-mono);
  font-size: 11px;
  min-width: 42px;
  padding: 0;
  text-align: center;
}

.ch-rule {
  background: var(--ch-hairline);
  height: 1px;
  width: 100%;
}

.ch-notice,
.ch-empty,
.ch-loading {
  background: var(--ch-surface);
  border: 1px solid var(--ch-hairline-2);
  color: var(--ch-ink-muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 18px;
}

.ch-notice--success {
  border-color: var(--ch-state-success);
  color: var(--ch-state-success);
}

.ch-notice--danger {
  border-color: var(--ch-state-danger);
  color: var(--ch-state-danger);
}
