/* log.brutalhq.dev. Loaded after site.css, a byte copy from the brutalhq.dev
   repository (see design.lock): its tokens, type, head, panels, status line
   and 404 apply here unchanged, and this file only adds what the build log
   needs. Nothing on a log page moves. Temper colours mark kinds, never text. */

/* The glow squares of head and status line stand still. site.css animates
   them unless reduced motion is asked for; the log never animates. */
.glow { animation: none; }

/* Kinds: a square in the kind's colour, then the word in muted text. */
.kinds {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  color: var(--muted); font: 600 13px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase;
}
.kind { display: inline-flex; align-items: center; gap: 6px; }
.kind::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c); }

/* List: one plate per entry, date in mono, title, kinds on the right. */
.log, .post { padding-block: clamp(48px, 10vh, 112px) clamp(56px, 10vh, 120px); }
.log h1, .post h1 { max-width: 22ch; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.entries { display: grid; gap: 8px; margin: 44px 0 0; padding: 0; list-style: none; }
.entry {
  --cut: 12px; position: relative;
  display: grid; grid-template-columns: 11ch minmax(0, 1fr) auto; align-items: baseline; gap: 6px 22px;
  padding: 16px 20px 17px; background: var(--plate);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.entry time { color: var(--faint); font: 13px/1.4 var(--f-mono); }
.entry > a {
  min-width: 0; color: var(--ink); text-decoration: none;
  font: 700 18px/1.3 var(--f-display); font-stretch: 106%; letter-spacing: -.01em; text-wrap: pretty;
}
/* The whole plate answers to the title's link. */
.entry > a::after { content: ""; position: absolute; inset: 0; }
.entry .kinds { justify-content: flex-end; }
.entry:hover { background: var(--plate-2); }
.entry:hover > a { text-decoration: underline; text-decoration-thickness: 2px; }
/* The chamfer would cut an outline off, so focus is a ring inside the plate. */
.entry > a:focus-visible { outline: none; }
.entry:has(> a:focus-visible) { background: var(--plate-3); box-shadow: inset 0 0 0 2px var(--ink); }
.feed { margin: 28px 0 0; font-size: 15px; }

/* Entry: one readable column, as the legal pages of the main site. */
.post { max-width: 46rem; }
.post > .label a { color: inherit; text-decoration: none; }
.post > .label a:hover { text-decoration: underline; }
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0 0;
  color: var(--faint); font: 13px/1.4 var(--f-mono);
}
.meta .chip { color: var(--muted); font-size: 13px; }

.body { margin-top: 40px; }
.body > :first-child { margin-top: 0; }
.body p, .body li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.body p, .body ul, .body ol { max-width: 68ch; margin: 0 0 1em; }
.body h2, .body h3, .body h4, .body h5, .body h6 {
  margin: 2em 0 .6em; font-family: var(--f-display); font-stretch: 106%; letter-spacing: -.01em; text-wrap: balance;
}
.body h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.body h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.body h4, .body h5, .body h6 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.body ul, .body ol { padding-left: 1.3em; }
.body li { margin-bottom: .4em; }
.body strong { color: var(--ink); font-weight: 600; }
.body code { color: var(--ink); }
/* A block wraps instead of scrolling, so it needs no focus stop. */
.body pre {
  --cut: 14px; margin: 0 0 1.2em; padding: 14px 16px; background: var(--plate);
  font: 13px/1.6 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.body pre code { font-size: inherit; }

/* Sources: a panel of site.css, one mono row per pull request. */
.sources { margin: 52px 0 0; padding-bottom: 6px; }
.sources h2 { margin: 0 0 4px; font-size: 13px; }
.refs { margin: 0; padding: 0; list-style: none; font: 13px/1.5 var(--f-mono); }
.refs li { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-block: 9px; }
.refs li + li { border-top: 1px solid var(--line); }
.pr { color: var(--ink); }
.sha { color: var(--muted); }

@media (max-width: 640px) {
  .entry { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .entry .kinds { justify-content: flex-start; margin-top: 4px; }
}

/* Plates lose their background in forced colours; a border keeps them apart. */
@media (forced-colors: active) {
  .entry, .sources, .body pre { border: 1px solid CanvasText; }
  .kind::before { forced-color-adjust: none; }
  .entry:has(> a:focus-visible) { outline: 2px solid Highlight; outline-offset: -4px; }
}
