:root {
  --bg: #ffffff;
  --fg: #05101a;
  --muted: #5a6470;
  --accent: #2a7fba;
  --accent-soft: #3a96d2;
  --border: #e4e6ea;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-8: 72px;

  --radius: 6px;

  --type-small: 13px;
  --type-label: 14px;
  --type-base: 16px;
  --type-lead: 18px;
  --type-h2: 22px;
  --type-h1: 34px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --max-content: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--type-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image: url("/assets/background.svg");
  background-repeat: repeat;
  background-position: 0 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
h1 {
  font-size: var(--type-h1);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--type-h2);
}
h3 {
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

p {
  margin: 0 0 var(--space-3);
}

/* ==== Header (compact horizontal bar) ==== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
}
.wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: var(--space-3);
}
.site-nav a {
  color: var(--fg);
  font-size: var(--type-small);
}

/* ==== Main layout ==== */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
}
.site-main > section + section {
  margin-top: var(--space-8);
}

/* Landing variant: vertically center the single hero so header +
   hero + footer fit in one viewport on common desktop sizes. */
.site-main.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

/* ==== Hero ==== */
.hero h1 {
  max-width: 18ch;
}
.hero .lead {
  font-size: var(--type-lead);
  color: var(--muted);
  max-width: 60ch;
}
.hero .since {
  display: inline-block;
  font-size: var(--type-small);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* ==== Generic content sections ==== */
.section p {
  max-width: 62ch;
  color: var(--fg);
}
.section p.muted {
  color: var(--muted);
}

/* ==== Products ==== */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.product-list li {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}
.product-list li strong {
  font-weight: 600;
}
.product-list li .desc {
  display: block;
  color: var(--muted);
  font-size: var(--type-label);
  margin-top: 2px;
}

/* ==== Roles (careers) ==== */
.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.role {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}
.role h3 {
  font-size: var(--type-base);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}
.role-summary {
  margin: 0 0 var(--space-2);
  color: var(--fg);
  font-size: var(--type-label);
}
.role-meta {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
}
.role-meta + .role-meta {
  margin-top: 2px;
}
.role-meta strong {
  color: var(--fg);
  font-weight: 600;
}

/* ==== Footer (compact horizontal bar, same weight as header) ==== */
.site-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-5);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  font-size: var(--type-small);
}
.site-footer .copyright {
  margin: 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-left: auto;
}
.footer-links a {
  color: var(--fg);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.footer-contact a {
  color: var(--fg);
}
.phone {
  font-variant-numeric: tabular-nums;
}

/* ==== Responsive ==== */

/* Minimalistic rendering on narrow / tall viewports: drop the
   background pattern, tighten padding, stack the footer with
   Contact pushed to the bottom above the copyright. */
@media (max-width: 640px) {
  body {
    background-image: none;
  }
  .site-header {
    padding: var(--space-2) var(--space-4);
  }
  .site-main {
    padding: var(--space-5) var(--space-4);
  }
  .site-main.landing {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
  .site-main > section + section {
    margin-top: var(--space-6);
  }
  h1 {
    font-size: 24px;
  }
  .hero .lead {
    font-size: var(--type-base);
  }
  .hero .since {
    font-size: 11px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: 12px;
  }
  .footer-links {
    margin-left: 0;
    order: 1;
  }
  .footer-contact {
    order: 2;
  }
  .site-footer .copyright {
    order: 3;
  }
}

/* Short desktop windows (e.g. 1366x768 with chrome): the landing
   page should still not force a scroll. Trim hero padding further. */
@media (min-width: 960px) and (max-height: 820px) {
  .site-main.landing {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
  .site-footer {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }
}

/* Portrait / tall aspect ratios on non-phones (tablets, rotated
   monitors): keep landing as one viewport, just lose the pattern
   and let the hero sit comfortably centered. */
@media (min-width: 641px) and (orientation: portrait) {
  body {
    background-image: none;
  }
}
