/* uhoh: layout only, on the Kaleidoscope uhoh lens. Every colour, font, size, space and corner below is one of the
   lens's tokens; this file sets none of its own. What it adds is arrangement and the lens's own law of type: one face,
   regular weight, drawn tight at display sizes. */
html, body { margin: 0; background: var(--ground); }

/* the bar: the name, and the reading's state as a black pill */
.u-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s2); }
.u-mark { font: 500 var(--t-l)/var(--lh-l) var(--f-ui); letter-spacing: -.03em; color: var(--ink); }
.u-status { display: inline-flex; align-items: center; min-height: var(--h-s); padding: 0 var(--s4); border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink); font: 400 var(--t-xs)/var(--lh-xs) var(--f-ui); letter-spacing: -.01em; }

/* the hero: a very large regular-weight line on the green floor, the sentence and the action beside it */
.u-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s7); align-items: end; padding: var(--s8) 0 var(--s6); }
.u-title { margin: 0; font: 400 calc(var(--t-d4) * 1.5)/.95 var(--f-ui); letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.u-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.u-side p { margin: 0; font: 400 var(--t-l)/var(--lh-l) var(--f-ui); letter-spacing: -.01em; color: var(--ink); max-width: 34ch; }
.u-pill { border-radius: var(--r-pill); padding-inline: var(--s5); letter-spacing: -.02em; text-decoration: none; }

.u-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); }
.u-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s4); align-items: start; }

/* each section: its name large on the floor, then white cards */
.u-section { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.u-section > h2 { margin: var(--s8) 0 var(--s2); font: 400 var(--t-d3)/var(--lh-d3) var(--f-ui); letter-spacing: -.035em; color: var(--ink); }
.u-lede { margin: 0; max-width: 60ch; font: 400 var(--t-l)/var(--lh-l) var(--f-ui); letter-spacing: -.01em; color: var(--ink); }
.u-card { background: var(--surface); border-radius: var(--r3); box-shadow: var(--shadow); padding: var(--s6) var(--s6) var(--s5); }
.u-card.u-prose { max-width: 760px; }
/* the log fills its container up to 480 px: its card is given a definite width (a fitted one would shrink it to nothing) */
.u-fit { width: 100%; max-width: 560px; box-sizing: border-box; }

.u-prose p, .u-prose li { margin: 0 0 var(--s4); max-width: 68ch; font: 400 var(--t-m)/var(--lh-m) var(--f-ui); color: var(--ink-2); }
.u-prose ul { margin: 0; padding-left: var(--s5); }
.u-prose strong { font-weight: 500; color: var(--ink); }
.u-prose em { font-style: italic; }
.u-mono { font-family: var(--f-mono); font-size: .92em; overflow-wrap: anywhere; }

.u-foot { padding: var(--s8) 0 var(--s8); }
.u-foot p { margin: 0 0 var(--s2); max-width: 80ch; font: 400 var(--t-xs)/var(--lh-xs) var(--f-ui); color: var(--ink); }
.u-foot a, .u-prose a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .u-hero { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s7) 0 var(--s5); }
  .u-title { font-size: var(--t-d4); line-height: 1; }
  .u-section > h2 { font: 400 var(--t-d2)/var(--lh-d2) var(--f-ui); letter-spacing: -.03em; margin-top: var(--s7); }
}
@media (max-width: 480px) {
  .u-title { font-size: var(--t-d3); }
  .u-card { padding: var(--s5) var(--s4) var(--s4); }
  .u-two, .u-stats { grid-template-columns: 1fr; }
}
