/* transfer.scribes.net — Joe's back-end design standard (cowork-memory
   website/back-end-standard.md, the Dashboard layer): Atkinson Hyperlegible
   Next; grayscale with one alert orange; 18px body, 14px floor; 8-point
   spacing; 5px buttons and fields; lines no wider than 670px; phone text
   on a 41px edge. */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;600;700&display=swap');

:root {
  --ink: #202428;
  --gray-700: #4B5259;
  --gray-500: #5B636B;
  --field-edge: #8A9299;
  --gray-300: #C7CCD1;
  --gray-100: #ECEEF0;
  --gray-50: #F5F6F7;
  --alert: #D9731C;
  --fine: #3E8E5A;
  --font: "Atkinson Hyperlegible Next", "Avenir Next", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
main { max-width: 670px; margin: 0 auto; padding: 48px 24px; }

h1 { font-size: 31px; font-weight: 600; line-height: 1.2; margin: 0 0 24px; }
h2 { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 48px 0 16px; }
h3 { font-size: 22px; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 17px; }
a { color: var(--ink); text-underline-offset: 3px; }
strong { font-weight: 600; }

.frame { font-size: 14px; color: var(--gray-500); margin: 0 0 8px; }
.muted { font-size: 16px; color: var(--gray-500); }
.nav { font-size: 16px; margin-bottom: 24px; }
.hidden { display: none !important; }
.btn + .muted { margin-top: 8px; }   /* a note under its button, e.g. the passkey explainer */

label { display: block; font-size: 14px; color: var(--gray-500); margin: 16px 0 2px; }
input[type="text"], input[type="email"] {
  display: block; width: 100%; height: 40px; padding: 0 12px;
  font: inherit; font-size: 18px; color: var(--ink);
  border: 1px solid var(--field-edge); border-radius: 5px; background: #fff;
}
/* focus: the edge itself darkens and thickens, no ring with a gap
   (back-end standard: no thick-and-thin combination borders) */
input:focus-visible, .btn:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input.code { font-size: 24px; letter-spacing: 0.15em; max-width: 220px; }

.btn {
  display: inline-block; height: 40px; padding: 0 24px; margin: 24px 8px 0 0;
  font: inherit; font-size: 18px; font-weight: 400; line-height: 38px; text-decoration: none;
  color: var(--ink); background: #fff; border: 1px solid var(--gray-500); border-radius: 5px; cursor: pointer;
}
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.btn.primary:focus-visible { background: var(--gray-700); border-color: var(--gray-700); box-shadow: none; }   /* the filled button shows focus by its fill, no ring */
.btn.quiet { border-color: transparent; color: var(--gray-700); padding: 0 8px; }
.btn.small { margin: 0; padding: 0 16px; }   /* the row button keeps the full 40/44 height and 18px text */
.btn:disabled { opacity: 0.5; cursor: default; }

/* messages: the words are ink; a mark beside them carries the state */
.error, .ok { font-size: 16px; color: var(--ink); padding-left: 20px; position: relative; margin-top: 16px; }
.error::before, .ok::before { content: ""; position: absolute; left: 0; top: 0.45em; border-radius: 50%; }
.error::before { width: 12px; height: 12px; background: var(--alert); }
.ok::before { width: 8px; height: 8px; top: 0.55em; left: 2px; background: var(--fine); }

.devrow {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-300);
}
.devrow .frame { margin: 0; }

@media (max-width: 640px) {
  main { padding: 32px 41px; }
  h1 { font-size: 26px; }
  .btn, .btn.small { height: 44px; line-height: 42px; }
  input[type="text"], input[type="email"] { height: 44px; }
}
