/* Langotime — component stylesheet.
   Variables the token format does not carry (font roles, weights, sizes,
   leading, tracking, motion), the blueprint pattern utilities and element
   defaults, from tokens/typography.css, spacing.css, patterns.css and
   base.css of langotime/langotime-design-system@4c31a77. Colours, spacing, radii,
   shadows, layout and pattern geometry come from tokens.json. */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Chakra+Petch:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* family roles */
  --font-display: var(--font-sans);
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --font-label: var(--font-techno);

  /* weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* font sizes (--text-body is the colour token; the body size is --text-base) */
  --text-display-1: 72px;
  --text-display-2: 56px;
  --text-h1: 44px;
  --text-h2: 34px;
  --text-h3: 26px;
  --text-h4: 20px;
  --text-title: 18px;
  --text-body-lg: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 13px;
  --text-mono: 14px;

  /* line heights */
  --leading-tight: 1.04;
  --leading-snug: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* letter spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;

  /* motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --press-scale: 0.97;
}

/* ---- Telemetry grid: faint square lattice ---- */
.lt-grid-field {
  background-image:
    linear-gradient(to right, var(--pattern-grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pattern-grid-color) 1px, transparent 1px);
  background-size: var(--pattern-grid-size) var(--pattern-grid-size);
}

/* ---- Diagonal hatch (engineering stripe) ---- */
.lt-hatch {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--pattern-hatch-color) 0,
    var(--pattern-hatch-color) 1.5px,
    transparent 1.5px,
    transparent 9px
  );
}

/* ---- Crop / registration frame ---- */
.lt-crop-frame { position: relative; }
.lt-crop-frame::before,
.lt-crop-frame::after,
.lt-crop-frame > .lt-crop-bl,
.lt-crop-frame > .lt-crop-br {
  content: "";
  position: absolute;
  width: var(--crop-mark-len);
  height: var(--crop-mark-len);
  pointer-events: none;
}
.lt-crop-frame::before {
  top: -1px; left: -1px;
  border-top: var(--crop-mark-weight) solid var(--crop-mark-color);
  border-left: var(--crop-mark-weight) solid var(--crop-mark-color);
}
.lt-crop-frame::after {
  top: -1px; right: -1px;
  border-top: var(--crop-mark-weight) solid var(--crop-mark-color);
  border-right: var(--crop-mark-weight) solid var(--crop-mark-color);
}
.lt-crop-frame > .lt-crop-bl {
  bottom: -1px; left: -1px;
  border-bottom: var(--crop-mark-weight) solid var(--crop-mark-color);
  border-left: var(--crop-mark-weight) solid var(--crop-mark-color);
}
.lt-crop-frame > .lt-crop-br {
  bottom: -1px; right: -1px;
  border-bottom: var(--crop-mark-weight) solid var(--crop-mark-color);
  border-right: var(--crop-mark-weight) solid var(--crop-mark-color);
}

/* ---- Base layer ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-strong);
  font-weight: var(--weight-black);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: pretty;
}
p { margin: 0; text-wrap: pretty; }
a {
  color: var(--text-link);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard);
}
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--accent); color: var(--accent-contrast); }
:focus-visible {
  outline: var(--border-width-strong) solid var(--focus-ring);
  outline-offset: 2px;
}
hr { border: none; border-top: 1px solid var(--border-default); margin: var(--space-7) 0; }
