:root {
  --bg: #0f0f0f;
  --surface: #171717;
  --surface-2: #1d1d1d;
  --surface-3: #252525;
  --line: #30302e;
  --line-strong: #484844;
  --text: #f2f1ed;
  --muted: #aaa9a2;
  --faint: #77766f;
  --primary: #35b995;
  --primary-hover: #4bc7a5;
  --danger: #e47795;
  --warning: #d6a85f;
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Aptos, "IBM Plex Sans", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

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

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  background: #121212;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  outline: 0;
  transition: border-color 140ms ease, background-color 140ms ease;
}

input,
select {
  height: 38px;
  padding: 0 11px;
}

textarea {
  min-height: 88px;
  padding: 9px 11px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #5b5b56;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(53, 185, 149, 0.15);
}

button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::placeholder {
  color: #73736d;
}

code {
  color: #b7ddd3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button,
.quiet-button,
.icon-button {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 14px;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.primary-button {
  background: var(--primary);
  color: #071813;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--primary-hover);
}

.secondary-button {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--surface-3);
  border-color: #5b5b56;
}

.quiet-button,
.icon-button {
  background: transparent;
  color: var(--muted);
}

.quiet-button:hover,
.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

button:disabled {
  cursor: default;
  opacity: 0.46;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span,
.field > label {
  color: var(--muted);
  font-size: 13px;
}

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

[hidden] {
  display: none !important;
}
