/* =========================================================
   ROBCOM — BASE CSS
   Purpose:
   - reset browser quirks
   - define typography & defaults
   - NO branding decisions
   - NO palette values
   ========================================================= */

/* ---------------------------------------------------------
   1) Reset / Normalisation
   --------------------------------------------------------- */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
}

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  min-height: 100vh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.6;

  color: var(--text);
  background: var(--bg);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Prevent accidental horizontal scroll */
body{
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   2) Text & Inline Elements
   --------------------------------------------------------- */

p{
  margin: 0 0 1em;
}

strong, b{
  font-weight: 700;
}

em, i{
  font-style: italic;
}

small{
  font-size: 0.875em;
}

.muted{
  color: var(--muted);
}

.soft{
  color: var(--soft);
}

/* Links */
a{
  color: inherit;
  text-decoration: none;
}

a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-1) 35%, transparent);
  border-radius: 4px;
}

/* ---------------------------------------------------------
   3) Headings
   --------------------------------------------------------- */

h1, h2, h3, h4, h5, h6{
  margin: 0 0 0.6em;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}

h1{
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

h2{
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

h3{
  font-size: 1.4rem;
}

h4{
  font-size: 1.15rem;
}

h5{
  font-size: 1rem;
}

h6{
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------------------------------------------------------
   4) Lists
   --------------------------------------------------------- */

ul, ol{
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li{
  margin: 0.25em 0;
}

/* Remove bullets when explicitly requested */
.list-reset{
  list-style: none;
  padding-left: 0;
}

/* ---------------------------------------------------------
   5) Media
   --------------------------------------------------------- */

img,
svg,
video,
canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

figure{
  margin: 0;
}

/* ---------------------------------------------------------
   6) Forms & Inputs (neutral baseline)
   --------------------------------------------------------- */

button,
input,
select,
textarea{
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea{
  border-radius: var(--radius-sm, 10px);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-1) 30%, transparent);
}

/* Remove iOS input shadows */
input,
textarea{
  -webkit-appearance: none;
  appearance: none;
}

/* ---------------------------------------------------------
   7) Tables
   --------------------------------------------------------- */

table{
  width: 100%;
  border-collapse: collapse;
}

th, td{
  padding: 0.75em 0.5em;
  text-align: left;
}

th{
  font-weight: 700;
}

/* ---------------------------------------------------------
   8) Utility helpers (safe & minimal)
   --------------------------------------------------------- */

.hidden{
  display: none !important;
}

.sr-only{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-select{
  user-select: none;
}

/* ---------------------------------------------------------
   9) Reduced motion support
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@font-face{
  font-family: "DisplayOne";
  src: url("fonts/font1.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
