/* Shared by the owner app and the sub page. The look borrows from the shop
   floor: galvanized-duct grey for the page, the canary copy of a carbon work
   order for anything that is a job ticket, and gauge blue for actions. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --steel: #e4e8eb;
  --steel-deep: #d3d9de;
  --paper: #ffffff;
  --ink: #1b2632;
  --ink-2: #4b5865;
  --ink-3: #697582;
  --rule: #c4ccd3;
  --ticket: #f8da4e;
  --ticket-shade: #e9c93a;
  --ticket-ink: #2b2400;
  --serial: #a8261f;
  --blue: #1c5dc0;
  --blue-deep: #144a9c;
  --blue-wash: #e2ebf9;
  --red: #b3302a;
  --red-wash: #fbe6e3;
  --green: #256d41;
  --green-wash: #dff0e5;
  --amber: #8a5a00;
  --amber-wash: #fdf0d2;
  --radius: 4px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  margin: 0;
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
}

img {
  max-width: 100%;
  display: block;
}

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

/* ------------------------------------------------------------ controls */

label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

input[type='text'],
input[type='tel'],
input[type='date'],
input[type='number'],
input[type='password'],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-wash);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

button:hover,
.button:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.quiet,
.button.quiet {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--rule);
}

button.quiet:hover,
.button.quiet:hover {
  border-color: var(--blue);
  background: var(--blue-wash);
}

button.text,
.button.text {
  min-height: 36px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button.text:hover,
.button.text:hover {
  background: transparent;
  border-color: transparent;
  color: var(--blue-deep);
}

button.danger {
  background: var(--paper);
  color: var(--red);
  border-color: var(--rule);
}

button.danger:hover {
  background: var(--red-wash);
  border-color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
