/* gapsinc.xyz: the company page. One screen, two products. It shares its look with
   referred.io: IBM's Carbon Design System, white theme, written by hand. Light only. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --layer: #f4f4f4;
  --layer-hover: #e8e8e8;
  --border-subtle: #e0e0e0;
  --text-primary: #161616;
  --text-secondary: #525252;
  --interactive: #0f62fe;
  --focus: #0f62fe;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 400 0.875rem/1.43 var(--font);
  letter-spacing: 0.16px;
  -webkit-font-smoothing: antialiased;
}
h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--interactive); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.page { min-height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; }

.top { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--border-subtle); }
/* The mark is two bars with a gap between them. */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 600; font-size: 1.125rem; line-height: 1; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { fill: var(--text-primary); }

.main { flex: 1; padding: clamp(40px, 9vh, 96px) 0 48px; }
h1 { max-width: 14em; font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.375rem); line-height: 1.19; text-wrap: balance; }
.lede { margin-top: 16px; font-size: 1.25rem; line-height: 1.4; letter-spacing: 0; color: var(--text-secondary); }

/* Each product is one large link. */
.products { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 208px;
  padding: 16px;
  background: var(--layer);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
}
.product:hover { background: var(--layer-hover); }
.product-name { font-weight: 400; font-size: 1.75rem; line-height: 1.29; letter-spacing: 0; }
.product-what { max-width: 30em; font-size: 1rem; line-height: 1.5; letter-spacing: 0; color: var(--text-secondary); }
.product-go { color: var(--interactive); }

.foot { padding: 16px 0 24px; border-top: 1px solid var(--border-subtle); font-size: 0.75rem; letter-spacing: 0.32px; color: var(--text-secondary); }

@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; }
  .product { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
