/* HUA HUA · the rings: layout only, tokens only, as hua.css. The letters' colours are each plant's own,
   from its splats, and the lens's, read from its tokens by rings.js. */

.rings > * { min-width: 0; }
.rings canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(360px, min(74vh, 112vw), 880px);  /* on a phone, as tall as the stump is wide */
  background: var(--ground);
  border-radius: var(--r3);
  box-shadow: var(--ring);
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}
.rings canvas:active { cursor: grabbing; }
.rings canvas:focus-visible { box-shadow: var(--focus); }
.rings-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0 24px; }
.rings-now { margin: 0; min-height: var(--lh-s); font-family: var(--f-mono); font-size: var(--t-xs); line-height: var(--lh-s); color: var(--ink-3); }
#again[hidden] { display: none; }
.rings .hua-legend { max-width: none; columns: 2 320px; column-gap: 48px; }
.rings .hua-legend p { margin-top: 0; break-inside: avoid; }

.rings-years {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px 32px;
}
.rings-years > li { min-width: 0; }
.rings-years h3 { margin: 0 0 4px; font-family: var(--f-mono); font-weight: 400; font-size: var(--t-l); line-height: var(--lh-l); color: var(--light); }
.rings-years p { margin: 0 0 8px; font-size: var(--t-s); line-height: var(--lh-s); color: var(--ink-3); }
.rings-years a { color: var(--ink-2); text-underline-offset: 3px; }
