/* Xandriq - base.css
 * Reset + custom properties + font imports.
 */

:root {
  /* Color palette - Factory Telemetry */
  --c-bg:           #0A0E16;
  --c-surface:      #141923;
  --c-surface2:     #1C2430;
  --c-border:       #2A3240;
  --c-border-hi:    #38445A;
  --c-text:         #D8DFE9;
  --c-text-dim:     #7E8896;
  --c-accent:       #3ED0E0;
  --c-accent-hover: #56DCE9;
  --c-accent-sec:   #E8CC48;
  --c-special:      #101622;
  --c-white:        #EFF2F7;
  --c-error:        #EC5F5F;
  --c-success:      #6DD66B;

  /* Typography */
  --f-heading: 'Syne', 'Saira Condensed', system-ui, sans-serif;
  --f-body:    'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono:    'Geist Mono', 'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Spacing - 8px grid */
  --s-4:   0.25rem;
  --s-8:   0.5rem;
  --s-12:  0.75rem;
  --s-16:  1rem;
  --s-24:  1.5rem;
  --s-32:  2rem;
  --s-40:  2.5rem;
  --s-48:  3rem;
  --s-64:  4rem;
  --s-80:  5rem;
  --s-96:  6rem;
  --s-120: 7.5rem;

  /* Radius - square industrial */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.32, 0.08, 0.24, 1);
  --dur:  220ms;

  /* Layout */
  --max-w: 1120px;
  --header-h: 92px;
  --header-h-collapsed: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 var(--s-16);
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.125rem, 4.8vw, 3.375rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1875rem, 2.1vw, 1.5625rem);
  line-height: 1.28;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0 0 var(--s-16);
}

a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover {
  color: var(--c-accent-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

ul, ol {
  margin: 0 0 var(--s-16);
  padding-left: var(--s-24);
}

li {
  margin-bottom: var(--s-8);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-text);
}

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--s-32) 0;
}

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

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

main {
  display: block;
  min-height: 50vh;
}
