/* Argus Works corporate site.
 * Tokens follow design-assets/llms.txt. No web fonts are loaded: the brand
 * faces (IBM Plex Serif, Inter, JetBrains Mono) are used only if the visitor
 * has them installed, otherwise system fallbacks. No third-party requests.
 */

:root {
  --forge: #0E1116;
  --steel: #2A2F36;
  --ash: #6B7280;
  --mist: #E6E8EB;
  --paper: #F5F6F7;
  --amber: #F59E0B;
  --amber-deep: #B45309;

  --bg: var(--paper);
  --surface: #FFFFFF;
  --text: var(--forge);
  --muted: #4B5563;           /* ash darkened for body-size contrast on paper */
  --label: #5B616B;
  --rule: #D9DCE0;
  --accent-text: var(--amber-deep);
  --grid-line: rgba(14, 17, 22, 0.045);
  --btn-bg: var(--forge);
  --btn-text: var(--paper);
  --btn-bg-hover: var(--steel);
  --focus: var(--amber-deep);

  --font-display: "IBM Plex Serif", Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--forge);
    --surface: #151920;
    --text: var(--mist);
    --muted: #A9AFB8;
    --label: #8B929C;
    --rule: #262B33;
    --accent-text: var(--amber);
    --grid-line: rgba(230, 232, 235, 0.045);
    --btn-bg: var(--amber);
    --btn-text: var(--forge);
    --btn-bg-hover: #FBB13C;
    --focus: var(--amber);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Labels: mono, uppercase, tracked. Used for eyebrows and bylines. */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand picture, .brand img { width: 1.75rem; height: 1.75rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.005em;
  line-height: 1;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
}
.nav-link:hover { border-bottom-color: currentColor; }

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--rule);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.hero .wrap {
  padding-block: clamp(4rem, 12vw, 8.5rem);
}

.hero .label { margin: 0 0 1.5rem; }

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero .lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--muted);
}

.tagline {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent-text);
}

/* ---------- Product ---------- */

.product .wrap {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .product .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.product .label { margin: 0 0 2rem; }

.lockup {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin: 0;
}
.lockup picture, .lockup img { width: 4rem; height: 4rem; flex: none; }
.lockup-text { display: block; }
.lockup-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  letter-spacing: 0.005em;
}
.lockup-byline {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--label);
}
.lockup-byline b { font-weight: 500; color: var(--text); opacity: 0.85; }

.product-intro {
  margin: 1.75rem 0 0;
  max-width: 30rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.8125rem 1.375rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--btn-bg-hover); }
.button span[aria-hidden] { font-family: var(--font-mono); }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}

.features li {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.features h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.features .idx {
  display: block;
  margin-bottom: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}

.features p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.not-found .wrap { padding-block: clamp(4rem, 14vw, 9rem); }
.not-found .label { margin: 0 0 1.5rem; }
.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.15;
}
.not-found p { margin: 1.25rem 0 0; max-width: 34rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-block: 1.75rem; }
.site-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--label);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
