/* ScanLoupe: shared design tokens and chrome for the landing page and the converter. */

:root {
  /* paper and ink */
  --paper:      #f6f5f1;
  --paper-2:    #fffefb;
  --paper-3:    #edece6;
  --ink:        #16211f;
  --ink-2:      #4d5b58;
  --ink-3:      #7c8783;
  --line:       #dcdad1;
  --line-soft:  #e8e6de;

  /* the 3D stage is dark so plaster-toned meshes read against it */
  --stage:      #141a19;
  --stage-2:    #1d2523;
  --stage-line: #2a3331;
  --stage-text: #dfe6e3;
  --stage-muted:#8b9995;

  /* one accent, plus two signal colors */
  --teal:       #0b6b62;
  --teal-deep:  #084f49;
  --teal-wash:  #e2eeeb;
  --amber:      #8a5a1b;
  --amber-wash: #f6ecdb;
  --red:        #96322a;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 24px;
  --maxw: 1140px;
  --radius: 3px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- */
/* wordmark and chrome                                               */
/* ---------------------------------------------------------------- */

.wordmark {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark i { font-style: normal; color: var(--teal); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.site-header nav a { color: var(--ink-2); }
.site-header nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- */
/* buttons                                                           */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 15px/1 var(--sans);
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-3); border-color: var(--ink-3); }
.btn.small { font-size: 13.5px; padding: 9px 14px; }

/* ---------------------------------------------------------------- */
/* type helpers                                                      */
/* ---------------------------------------------------------------- */

.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.num { font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.chip.ok { color: var(--teal); }
.chip.warn { color: var(--amber); }
.chip.off { color: var(--ink-3); }

code {
  font: 0.88em var(--mono);
  background: var(--paper-3);
  border-radius: 2px;
  padding: 1px 5px;
}
