/* Work — an evidence list of six rows, no cards. Builds on theme.css (section, headings).
   Everything snaps to the 8px unit; the pixel is 4px, matching the theme's border and shadow. */
#work .work-title { font-family: var(--font-mono); font-size: 24px; line-height: 40px; margin: 0 0 16px; }

/* Dithered rule: a 4px checkerboard, hard stops only. */
#work .work-dither {
  height: 8px;
  margin-bottom: 32px;
  background-color: var(--bg);
  background-image: repeating-conic-gradient(#29366F 0% 25%, #1A1C2C 0% 50%);
  background-size: 8px 8px;
  image-rendering: pixelated;
}

#work .work-list { list-style: none; margin: 0; padding: 0; }

/* Each row: figure, body, links. 200px holds the widest figure, "13.6×": 5 glyphs of 1em each
   in the bitmap font at 40px. */
#work .work-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 176px;
  gap: 32px;
  align-items: start;
  max-width: none;
  margin: 0;
  padding: 32px 0;
}
/* The only line: 4px between the rows, none above the first or below the last. */
#work .work-row + .work-row { border-top: 4px solid #29366F; }

/* Bitmap type for the short figure only. Yellow clears 4.5:1 on --bg. */
#work .work-num {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 48px;
  color: #FFCD75;
  max-width: none;
  margin: 0;
  white-space: nowrap;
}
#work .work-label {
  font-size: 14px;
  line-height: 20px;
  color: #F4F4F4;
  max-width: none;
  margin: 8px 0 0;
}

#work .work-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--fg);
  margin: 0 0 8px;
}
#work .work-stack { font-weight: 400; font-size: 14px; margin-left: 8px; }
#work .work-line {
  font-size: 16px;
  line-height: 24px;
  color: var(--fg);
  max-width: 60ch;
  margin: 0 0 16px;
}

/* Evidence points: one per line, each marked by an 8px square drawn in CSS. */
#work .work-evidence { list-style: none; margin: 0; padding: 0; }
#work .work-evidence li {
  position: relative;
  font-size: 16px;
  line-height: 24px;
  color: var(--fg);
  max-width: 60ch;
  margin: 0;
  padding-left: 24px;
}
#work .work-evidence li + li { margin-top: 8px; }
#work .work-evidence li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: #FFCD75;
}

/* Links: bitmap labels in yellow (the theme red fails contrast on --bg), 48px tall for touch. */
#work .work-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
#work .work-links li { max-width: none; margin: 0; }
#work .work-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  color: #FFCD75;
  text-decoration: none;
}
#work .work-links a:hover,
#work .work-links a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
#work .work-links a:focus-visible { outline: 4px solid #41A6F6; outline-offset: 4px; }

/* Project name for screen readers only. */
#work .work-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The flagship row: a larger figure and name. */
#work .work-row-flagship .work-num { font-size: 56px; line-height: 64px; }
#work .work-row-flagship .work-name { font-size: 24px; line-height: 32px; }

/* Under 900px: figure and body, with the links in a wrapping row under the body. The figure
   steps down so "13.6×" (5 glyphs) stays inside the 144px column. */
@media (max-width: 899px) {
  #work .work-row { grid-template-columns: 144px minmax(0, 1fr); gap: 16px 32px; }
  #work .work-num { font-size: 24px; line-height: 32px; }
  #work .work-row-flagship .work-num { font-size: 40px; line-height: 48px; }
  #work .work-links { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 0 32px; }
}

/* Under 560px: one column, figure first, at its full size again. */
@media (max-width: 559px) {
  #work .work-row { grid-template-columns: minmax(0, 1fr); }
  #work .work-num { font-size: 40px; line-height: 48px; }
  #work .work-row-flagship .work-num { font-size: 56px; line-height: 64px; }
  #work .work-links { grid-column: 1; }
}
