/* ============================================================
   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: 17px for names, 12px 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;
  /* Lab's accent, not hdw's orange. Only thing using it is ::selection, so
     highlighting text on this site comes up green. */
  --accent: #2CFF05;

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

  --pad: 20px;
  --bar-h: 62px;          /* 30px mark with 16px of air above and below */
}

@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: 14px;
  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: #0a0a0a; }   /* dark text, the green is bright */

/* ---------- 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: 30px; height: 30px; 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: 17px for names, 12px 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); }

/* Header sits higher up the page than it did, and the gap under it is bigger,
   so the block reads as a note at the top rather than a hero. */
.head { padding: clamp(40px, 6vh, 64px) 0 clamp(76px, 12vh, 130px); }
.title { font-weight: 400; font-size: 17px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 10px; }
.lead { font-size: 12px; line-height: 1.6; color: var(--grey); }

/* The blinking caret after the title, like a cursor left sitting in a field.
   A styled element rather than a text character, so it never gets selected,
   read out, or copied along with the heading. */
.caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  background: currentColor;
  margin-left: 6px;
  vertical-align: -0.16em;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }

/* ---------- the list ----------
   One column now. Name, one line under it, nothing to the right and nothing to
   click. Space between rows does all the separating. */
.item { padding: clamp(26px, 3vw, 38px) 0; }
.name { display: block; font-size: 17px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 10px; }
.desc { display: block; font-size: 12px; line-height: 1.6; color: var(--grey); }

/* ---------- footer ----------
   Stacked and left aligned, same as everything else on the page. */
.foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(100px, 17vh, 180px) 0 clamp(46px, 7vh, 80px);
  font-size: 11px;
  line-height: 1.6;
  color: var(--grey);
}

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

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