/* ============================================================
   hdw lab — lab.hellodigitworks.com

   Its own site, its own stylesheet. Deliberately not sharing
   site/css/style.css: that file carries the whole agency site and this
   page is one list. Copying the forty lines it actually needs beats
   loading two thousand.

   Type:  Basis Grotesque Mono, and nothing else. Two sizes on the whole
          page: 18px for names, 13px for the lines under them.
   Theme: follows the device. No toggle. localStorage does not cross a
          subdomain boundary, so there is nothing to inherit from hdw
          anyway, and a toggle on a one-page site is clutter.
============================================================ */

@font-face {
  font-family: 'Basis Grotesque Mono';
  src: url('../fonts/Basis-Mono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --mono: 'Basis Grotesque Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  --fg: #0a0a0a;
  --bg: #ffffff;
  --grey: #6a6a6a;
  --line: #e6e6e6;
  --accent: #ff2e00;

  /* The bar is the inverse of the page. Light page, dark bar. */
  --bar-bg: #0a0a0a;
  --bar-fg: #ffffff;

  --pad: 20px;
  --bar-h: 38px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f1ec;
    --bg: #0d0d0c;
    --grey: #9a988f;
    --line: #2a2a26;
    /* Dark page, light bar. Same rule, flipped. */
    --bar-bg: #f2f1ec;
    --bar-fg: #0d0d0c;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--bar-h);          /* clears the fixed bar */
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }

/* ---------- the bar back to hdw ----------
   Nike/Jordan pattern: always there, never in the way. Inverted against
   the page so it reads as a different property rather than as this
   site's own header. */
.home-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  background: var(--bar-bg);
  color: var(--bar-fg);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}
/* No hover. The mark on its own, doing nothing until you click it. */
.home-bar svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- page ----------
   Full width. No centred column and no max-width, so the page runs the whole
   screen with only the gutter holding text off the edge.

   Two type sizes and nothing else: 18px for names, 13px for the lines under
   them. The heading is the same size as the list, so the page reads as
   something typed into a file rather than a designed hero with a list under it.

   No rules anywhere. Space does the separating. */
.wrap { padding: 0 var(--pad); }

.head { padding: clamp(64px, 11vh, 110px) 0 clamp(56px, 9vh, 96px); }
.title { font-weight: 400; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 8px; }
.lead { font-size: 13px; line-height: 1.55; color: var(--grey); }

/* ---------- the list ---------- */
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(20px, 2.4vw, 30px) 0;
}
.name { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 8px; }
.desc { display: block; font-size: 13px; line-height: 1.55; color: var(--grey); }

/* A row that goes somewhere. Only hdwOS is one at the moment, so the single
   arrow on the page is doing real work rather than decorating a list. */
.arrow-out { font-size: 18px; line-height: 1; transition: transform .25s cubic-bezier(.22,.61,.36,1), color .25s; }
a.item:hover .name { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
a.item:hover .arrow-out { transform: translate(3px, -3px); color: var(--accent); }

/* still being made: dimmed, and it says so. No box around it — a chip is a
   line by another name, and the point here is that there are none. */
.item.building { opacity: .55; }
.status { font-size: 11px; color: var(--grey); line-height: 1; white-space: nowrap; }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(80px, 14vh, 150px) 0 clamp(40px, 6vh, 70px);
  font-size: 12px;
  color: var(--grey);
}

@media (max-width: 600px) {
  .item { gap: 16px; padding: 18px 0; }
}

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