/* Antonio DC order system: shared tokens and primitives */
:root {
  --ink: #000;
  --paper: #fff;
  --wash: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #c9c9ce;
  --mute: #6b6b70;
  --accent: #3b37e8;
  --accent-soft: #ececfd;
  --ok: #0f7b4f;
  --ok-soft: #e2f4ea;
  --warn: #8a5300;
  --warn-soft: #fff1d6;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Wordmark: boxed name + heavy DC, drawn in CSS */
.mark { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.mark-name {
  font: 800 11px/1 var(--font-display);
  font-stretch: 100%;
  letter-spacing: .12em;
  border: 1.5px solid var(--ink);
  padding: 6px 7px 5px;
}
.mark-dc { font: 900 30px/1 var(--font-display); font-stretch: 90%; letter-spacing: -.03em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  font: 600 16px/1 var(--font-body);
  border: 1px solid var(--ink); border-radius: 12px;
  background: var(--ink); color: #fff; cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, opacity .15s ease, background .15s ease;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn.quiet { background: transparent; color: var(--ink); border-color: transparent; }
.btn.danger { background: var(--paper); color: var(--bad); border-color: var(--line-strong); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--ink); font: 600 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}

/* Fields */
.field { display: grid; gap: 6px; }
.field > label, .lbl { font: 600 14px/1.3 var(--font-body); }
.hint { font-size: 13px; color: var(--mute); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 52px; padding: 13px 14px;
  font: 400 16px/1.3 var(--font-body); color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 10px;
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 4px var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: #9a9aa0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13.5px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- ANTONIO DC logo (the real one, supplied by the owner) ---- */
.mark { line-height: 0; }
.mark .logo { display: block; height: 36px; width: auto; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .35); -webkit-user-drag: none; user-select: none; }
.mbar .mark .logo { height: 30px; }
.side > .mark .logo { height: 40px; }
.auth-card > .mark .logo { height: 52px; border-radius: 7px; }
html[data-theme="dark"] .mark .logo { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .22), 0 2px 10px rgba(0, 0, 0, .5); }
