/* Engineering notes — three featured posts as pressable panel rows, then one button to the full
   list. Builds on theme.css (section, headings, the stepped transition on links). Everything
   snaps to the 8px unit; the pixel is 4px, matching the theme's border and shadow. */
#notes .notes-title { font-family: var(--font-mono); font-size: 24px; line-height: 40px; margin: 0 0 16px; }

/* Dithered rule: a 4px checkerboard, hard stops only. */
#notes .notes-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;
}

#notes .notes-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; }
#notes .notes-item { max-width: none; margin: 0; padding: 0; }

/* The whole row is the link. White text on the panel, never the theme's red. */
#notes .notes-row {
  display: block;
  box-sizing: border-box;
  padding: 16px 24px;
  background: #333C57;
  color: #F4F4F4;
  border: 4px solid #F4F4F4;
  border-radius: 0;
  box-shadow: 4px 4px 0 #29366F;
  text-decoration: none;
}

#notes .notes-row-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  overflow-wrap: anywhere;
}
/* Bitmap type for the short meta line only. Yellow clears 4.5:1 on the panel. */
#notes .notes-row-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 24px;
  color: #FFCD75;
  overflow-wrap: anywhere;
}

/* The link to everything, styled as a button: 24px line + 8px padding + 4px border = 48px. */
#notes .notes-all {
  display: inline-block;
  box-sizing: border-box;
  min-height: 48px;
  margin-top: 32px;
  padding: 8px 16px;
  background: #FFCD75;
  color: #1A1C2C;
  border: 4px solid #FFCD75;
  border-radius: 0;
  box-shadow: 4px 4px 0 #29366F;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

/* Stepped press: the panel moves onto its own shadow. The theme supplies the steps() transition. */
#notes .notes-row:hover,
#notes .notes-row:active,
#notes .notes-all:hover,
#notes .notes-all:active { transform: translate(4px, 4px); box-shadow: none; }

#notes .notes-row:focus-visible,
#notes .notes-all:focus-visible { outline: 4px solid #FFCD75; outline-offset: 4px; }
