/* ============================================================
   ColoursInVision — styles.css
   Applied AI/MLOps development · Dublin, Ireland
   ============================================================ */

/* ---------- palette ---------- */
:root {
  --paper:  #efeae0;
  --ink:    #1a1612;
  --shadow: #6b6258;  /* ~5.0:1 vs paper — secondary text */
  --faint:  #8c8375;  /* ~3.1:1 vs paper — link underlines (UI) */
  --accent: #9a3324;  /* cinnabar */
  --grid:   #9a9080;  /* ~2.6:1 vs paper — register marks, separators */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #0c0907;
    --ink:    #e8ddc4;
    --shadow: #9a8d78;  /* ~6.1:1 vs paper — secondary text */
    --faint:  #6a5f50;  /* ~3.2:1 vs paper — link underlines (UI) */
    --accent: #c85a2a;  /* ember */
    --grid:   #5a5246;  /* ~2.8:1 vs paper — register marks, separators */
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', Menlo, 'JetBrains Mono', Consolas, 'Liberation Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  font-feature-settings: "kern" 1, "liga" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ---------- register marks (corners) ---------- */
.reg {
  position: fixed;
  color: var(--grid);
  font-size: 13px;
  line-height: 16px;
  user-select: none;
  pointer-events: none;
  z-index: 10;
  font-weight: 400;
}
.reg .mark  { display: block; }
.reg .coord { display: block; font-size: 9px; line-height: 16px; letter-spacing: 0.06em; }

.reg.tl { top: 24px;    left: 24px;  }
.reg.tr { top: 24px;    right: 24px; text-align: right; }
.reg.bl { bottom: 24px; left: 24px;  }
.reg.br { bottom: 24px; right: 24px; text-align: right; }

/* ---------- main column ---------- */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 32px;
}

/* progressive-enhancement fade: only when JS is available */
.js main {
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.js main.ready { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js main { opacity: 1; transition: none; }
}

/* ---------- typography ---------- */
.label {
  font-size: 11px;
  line-height: 16px;
  color: var(--shadow);
  letter-spacing: 0.06em;
  margin: 0 0 24px;
  font-weight: 400;
}

h1 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: 0;
}

p {
  margin: 0 0 8px;
  color: var(--ink);
}

.sub {
  color: var(--shadow);
  font-size: 13px;
  line-height: 24px;
}

.sub.gap { margin-top: 16px; }

.dot {
  color: var(--accent);
  font-weight: 500;
  margin-right: 4px;
}

/* ---------- definition list (status) ---------- */
dl {
  margin: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  row-gap: 0;
  column-gap: 16px;
  font-size: 13px;
  line-height: 24px;
}
dt { color: var(--shadow); font-weight: 400; }
dd { margin: 0; color: var(--ink); }

/* ---------- links ---------- */
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 1px;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
a:hover { border-bottom-color: var(--ink); }

/* ---------- colophon ---------- */
.colophon p {
  font-size: 13px;
  line-height: 24px;
  color: var(--shadow);
  margin: 0;
}
.colophon .copy {
  font-size: 11px;
  line-height: 16px;
  color: var(--shadow);   /* moved from --faint → AA-compliant text */
  margin-top: 24px;
  letter-spacing: 0.02em;
}

/* ---------- plate separators: centred + on axis ---------- */
.sep {
  display: block;
  text-align: center;
  color: var(--grid);
  font-size: 13px;
  line-height: 16px;
  padding: 32px 0;
  user-select: none;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  main { padding: 64px 24px; }
  h1 { font-size: 22px; line-height: 32px; }
  .reg.tl, .reg.tr { top: 16px; }
  .reg.bl, .reg.br { bottom: 16px; }
  .reg.tl, .reg.bl { left: 16px; }
  .reg.tr, .reg.br { right: 16px; }
  dl { grid-template-columns: 80px 1fr; }
}

@media (min-width: 1600px) {
  main { max-width: 720px; padding: 128px 32px; }
}
