/* Engineering philosophy — the four rules as a 2 x 2 grid of theme cards, each rule over the
   sentence that proves it. Builds on theme.css (section, headings, .card). Everything snaps to
   the 8px unit; the pixel is 4px, matching the theme's border and shadow. */
#philosophy .philosophy-title { font-family: var(--font-mono); font-size: 24px; line-height: 40px; margin: 0 0 16px; }

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

#philosophy .philosophy-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
}

/* The theme card, pinned to the palette: panel, 4px border, hard shadow. Cards are not links,
   so they do not press. */
#philosophy .philosophy-item {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 24px;
  background: #333C57;
  color: #F4F4F4;
  border: 4px solid #F4F4F4;
  border-radius: 0;
  box-shadow: 4px 4px 0 #29366F;
}

/* The rule is a sentence, so it is set in the sans face, not the bitmap one. */
#philosophy .philosophy-rule {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  color: #F4F4F4;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
#philosophy .philosophy-proof {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: #F4F4F4;
  max-width: none;
  margin: 0;
}

@media (max-width: 720px) {
  #philosophy .philosophy-list { grid-template-columns: minmax(0, 1fr); }
}
