nav { font-family: monospace; font-size: 0.85em; padding: 12px 20px; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }

body { margin: 0; font-family: monospace; background: #f8f8f8; color: #222; }

main { max-width: 700px; margin: 0 auto; padding: 40px 20px 80px; }

h1 { font-size: 1rem; font-weight: normal; margin: 0 0 48px; color: #aaa; }

.section { margin-bottom: 56px; }

.section-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin: 0 0 4px;
}

h2 {
  font-size: 0.85rem;
  font-weight: normal;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* Palette swatches */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.swatch-card { display: flex; flex-direction: column; }

.swatch {
  height: 64px;
  border: 1px solid rgba(0,0,0,0.08);
}

.swatch-meta { padding: 8px 0 0; }
.swatch-name { font-size: 0.75em; color: #aaa; display: block; }
.swatch-hex  { font-size: 0.8em;  color: #222; display: block; }

/* Semantic roles table */
.roles-table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
.roles-table th {
  text-align: left;
  font-weight: normal;
  color: #aaa;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid #e0e0e0;
}
.roles-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}
.roles-table tr:last-child td { border-bottom: none; }
.role-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.1);
  vertical-align: middle;
  margin-right: 8px;
}

/* Contrast pairs */
.contrast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.contrast-card {
  padding: 20px 16px;
  border: 1px solid rgba(0,0,0,0.06);
}
.contrast-card-label { font-size: 0.65em; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; opacity: 0.6; }
.contrast-card-sample { font-size: 0.85em; line-height: 1.5; }
.contrast-card-meta { font-size: 0.65em; margin-top: 10px; opacity: 0.5; }
