/* ==========================================================
   RoomSet — industrial technical design tokens
   ========================================================== */
:root {
  /* Core palette */
  --bg-0: #0B0B0C;
  --bg-1: #0E0E0E;
  --bg-2: #141416;
  --bg-3: #1A1A1C;
  --bg-4: #22222A;
  --line: #2A2A2E;
  --line-2: #3A3A40;
  --line-3: #55555C;

  --fg-0: #F7F7F5;
  --fg-1: #E4E4E1;
  --fg-2: #B4B4B0;
  --fg-3: #8A8A86;
  --fg-4: #5C5C58;

  /* Accent — hazard amber */
  --accent: #FFB800;
  --accent-ink: #0B0B0C;
  --accent-soft: rgba(255, 184, 0, 0.12);

  /* Status */
  --green: #86EFAC;
  --blue:  #7CC4FF;
  --red:   #FF5C5C;

  /* Type */
  --ff-sans: "Inter", "Inter Display", -apple-system, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 4px;

  /* Grid column */
  --col: 80px;
  --gutter: 24px;
  --edge: 40px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--ff-sans);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* Typography primitives */
.mono { font-family: var(--ff-mono); font-feature-settings: "zero"; }
.caps { text-transform: uppercase; letter-spacing: 0.08em; }
.micro {
  font-family: var(--ff-mono);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}

/* Display */
.h-display {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(48px, 7.2vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.h1 {
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h2 {
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-0);
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-1);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { border-color: var(--fg-2); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { background: #FFC433; border-color: #FFC433; }
.btn--ghost { background: transparent; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 11px; }

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}
.chip--dot::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Corner blueprint markers */
.bp {
  position: relative;
}
.bp::before, .bp::after,
.bp > .bp-t::before, .bp > .bp-t::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--line-2);
  border-style: solid;
  border-width: 0;
}
.bp::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.bp::after  { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.bp > .bp-t { position: absolute; inset: 0; pointer-events: none; }
.bp > .bp-t::before { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.bp > .bp-t::after  { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* Hide blueprint markers when opted out */
body[data-markers="off"] .bp::before,
body[data-markers="off"] .bp::after,
body[data-markers="off"] .bp > .bp-t::before,
body[data-markers="off"] .bp > .bp-t::after,
body[data-markers="off"] .coord { display: none; }

/* Coordinate marker (like 001/024, X+230) */
.coord {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  text-transform: uppercase;
  pointer-events: none;
}

/* Sections */
.section {
  position: relative;
  padding: 96px var(--edge);
  border-top: 1px solid var(--line);
}
.section--tight { padding: 56px var(--edge); }
.container { max-width: 1440px; margin: 0 auto; }

/* Section header (label + title) */
.sec-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 48px;
}
.sec-head .tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.sec-head .tag b { color: var(--accent); font-weight: 500; }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.grow { flex: 1; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

/* Selection */
::selection { background: var(--accent); color: var(--accent-ink); }
