/* Measura — brand styles layered on top of Tailwind CDN utilities */

:root {
  --brand: #028C59;
  --brand-deep: #02774C;
  --brand-dark: #015C3B;
  --ink: #0B2E22;
  --mint: #E1F1EB;
  --chalk: #F7FBF9;
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); }

.font-display { font-family: "Space Grotesk", system-ui, sans-serif; }
.font-data { font-family: "Space Mono", ui-monospace, monospace; }

/* Blueprint grid — echoes the app icon background */
.blueprint {
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
}

/* App-icon presentation: lift the squircle off the matching green */
.app-icon {
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: -1px;
}

/* Dimension-line signature — the |———v1.0———| from the icon, repurposed as a divider */
.dim-line {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}
.dim-line::before,
.dim-line::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.55);
}
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand);
  padding: 0 12px;
  letter-spacing: 0.18em;
}

/* Ink-on-light variant of the dimension line, for use on the spec sheet */
.dim-line.on-light { background: rgba(11, 46, 34, 0.25); }
.dim-line.on-light::before,
.dim-line.on-light::after { background: rgba(11, 46, 34, 0.25); }
.dim-line.on-light .dim-label { background: var(--chalk); color: var(--ink); }

/* Ruler tick rule — a thin measured edge */
.tick-rule {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.45) 0 1px,
    transparent 1px 18px
  );
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 4px;
}
.on-light a:focus-visible,
.bg-chalk a:focus-visible,
.bg-mint a:focus-visible {
  outline-color: var(--brand-deep);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
