/* DabenQR foundations.
   Visual language: bright and direct. White page, soft warm-grey panels, black pill buttons,
   bold Inter headings, the DabenWorks orange used only as a small accent. */

:root {
  /* surfaces, lightest to darkest: depth comes from these steps */
  --canvas: #ffffff;
  --s1: #f7f6f3;
  --s2: #f1f0ec;
  --s3: #ebeae5;
  --s4: #e1e0da;

  --ink: #0f0f10;
  --ink-2: #3a3b40;
  --ink-3: #5f6066;
  --ink-4: #8a8b91;

  --line: #e4e3de;
  --line-2: #cfcec8;

  --accent: #F15B22;
  --accent-hover: #d94a14;
  --accent-press: #bf3f0f;
  --on-accent: #ffffff;
  --link: #1f5eff;
  --danger: #c62828;
  --ok: #1b7a3a;

  --paper: #ffffff;

  --margin: clamp(16px, 2.2vw, 32px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --step-display: clamp(2.75rem, 1.6rem + 5.4vw, 5rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
h3 { font-weight: 700; letter-spacing: -0.02em; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 3px solid #2f6bff;
  outline-offset: 3px;
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px; /* taste-skill-ignore: visually hidden text, not a rule */
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The logo sits in an <img>: replace assets/logo-dark.svg (and logo.svg for dark pages) to change it everywhere. */
.brand-logo { height: 28px; width: auto; max-width: none; flex: none; display: block; }

/* One button shape for the whole project: black pill, white text. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 0;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 13px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: #2b2b2e; }
.btn:active { background: #000; transform: scale(0.98); }
.btn-quiet { background: var(--s3); color: var(--ink); }
.btn-quiet:hover { background: var(--s4); }
.btn-quiet:active { background: var(--s2); transform: scale(0.98); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }

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