/* ==========================================================================
   Blog + command centre. Loaded only on those pages; styles.css carries the
   tokens these rules depend on, so it must be linked first.
   ==========================================================================
   Blog, article pages and the post list
   ========================================================================== */

.prose { padding-block: clamp(2rem, 1rem + 4vw, 4rem) var(--space-band); }
.prose__back { margin-block: 1.5rem; }
.prose__back a { color: var(--ink-mute); text-decoration: none; }
.prose__back a:hover { color: var(--accent); }

.prose__head { padding-bottom: var(--space-tight); margin-bottom: var(--space-tight); border-bottom: var(--edge); }
.prose__date { color: var(--accent-ink); margin-bottom: 1rem; }
.prose__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 18ch;
}
.prose__dek { font-size: var(--text-lead); color: var(--ink-soft); margin-top: 1.25rem; max-width: 46ch; text-wrap: pretty; }
.prose__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }

/* Measure is capped on the body only, the header above runs wider. */
.prose__body { max-width: var(--measure); font-size: var(--text-lead); line-height: 1.65; }
.prose__body > * + * { margin-top: 1.25rem; }
.prose__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  text-wrap: balance;
}
.prose__body a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose__body a:hover { color: var(--accent); }
.prose__body ul, .prose__body ol { padding-left: 1.25rem; }
.prose__body li + li { margin-top: 0.5rem; }
.prose__body blockquote {
  padding-left: 1.25rem;
  border-left: 4px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}
.prose__body strong { font-weight: 600; box-shadow: inset 0 -0.4em 0 color-mix(in oklab, var(--accent-soft) 55%, transparent); }

.postlist { display: grid; gap: 0; border-top: var(--edge); }
.postlist__item { border-bottom: var(--edge); }
.postlist__link {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 780px) {
  .postlist__link { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
}
.postlist__date { color: var(--ink-mute); padding-top: 0.4rem; }
.postlist__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.postlist__dek { color: var(--ink-soft); max-width: var(--measure); margin-top: 0.4rem; text-wrap: pretty; }
@media (hover: hover) {
  .postlist__link:hover .postlist__title { color: var(--accent); transform: translateX(8px); }
}

/* ==========================================================================
   Command centre, private staging page, not linked from the public site
   ========================================================================== */

.cc { display: grid; gap: clamp(1rem, 0.6rem + 1.6vw, 2rem); }
@media (min-width: 900px) { .cc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }

.cc__panel { padding: clamp(1.25rem, 1rem + 1.4vw, 2rem); background: var(--card); border: 2px solid var(--ink); border-radius: 16px; }
.cc__panelhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.cc__h { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; text-transform: uppercase; }
.cc__meta { color: var(--ink-mute); margin-bottom: 0.75rem; }
.cc__text {
  width: 100%;
  padding: 1rem;
  background: var(--paper);
  border: var(--edge);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  resize: vertical;
}
.cc__hint { margin-top: 0.6rem; font-size: var(--text-sm); color: var(--ink-mute); }

.cc__list { display: grid; gap: 0; }
.cc__item { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding-block: 0.7rem; border-bottom: var(--edge); align-items: baseline; }
.cc__item a { color: var(--ink); text-decoration: none; }
.cc__item a:hover { color: var(--accent); }
.cc__itemdate { color: var(--ink-mute); }
.cc__empty { color: var(--ink-mute); padding-block: 0.7rem; }

.btn--sm { padding: 0.4rem 0.9rem; font-size: var(--text-micro); letter-spacing: 0.04em; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Tables in a post ----------------------------------------------------- */
/* Extraction registers are the point of the teardown pieces, so they need to be
   readable rather than default browser furniture. The wrapper scrolls on a
   phone instead of pushing the page sideways. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.75rem;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.prose thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid var(--ink);
  padding: 0.5rem 0.9rem 0.5rem 0;
  white-space: nowrap;
}
.prose tbody td {
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--paper-edge);
  text-wrap: pretty;
}
.prose tbody tr td:first-child { font-weight: 600; min-width: 9rem; }
.prose tbody tr td:last-child { color: var(--ink-soft); font-size: 0.9rem; }
