/* object: one object. First screen LANDING: the object in the real sky above, its name and one sentence on the ground below
   the horizon (the pose puts the horizon at two thirds of the height). Below: WORKING, tone and space, no boxes, no rules. */

html[data-mode='red'] .obj { --accent: var(--ink); }

.obj { padding: 0 var(--edge) var(--sp-9); }

/* the first screen: the words stand on the ground */
.obj-head { min-height: calc(100svh - var(--tabs-h)); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(var(--sp-6), 6svh, var(--sp-8)); padding-top: calc(var(--bar-h) + 50svh); }
.obj-title { font-size: var(--fs-1); font-weight: 460; font-stretch: var(--wide); line-height: var(--lh-tight); letter-spacing: -.015em; max-width: 16ch; }
.obj-title--long { font-size: var(--fs-2); line-height: 1.06; max-width: 20ch; }
.obj-sum { margin-top: var(--sp-4); font-size: var(--fs-lead); line-height: 1.3; max-width: 40ch; color: var(--ink); }
.obj-now { margin-top: var(--sp-4); max-width: 52ch; color: var(--ink-soft); min-height: 1.5em; }
.obj-now-live { color: var(--accent); font-weight: 600; }

/* the rest: heading in the wide face on the left, the content beside it */
.obj-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(32px, 6vw, 112px); align-items: start; }
.obj-part + .obj-part { margin-top: var(--sp-9); }
.obj-body { padding-top: var(--sp-8); }
.obj-h { font-size: var(--fs-3); font-weight: 470; font-stretch: var(--wide); line-height: 1.15; letter-spacing: -.008em; max-width: 14ch; position: sticky; top: calc(var(--bar-h) + var(--sp-5)); }
.obj-place { display: inline; padding: 0; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: var(--ink-faint); transition: text-decoration-color var(--touch) var(--shutter); }
.obj-place:hover { text-decoration-color: var(--accent); }
.obj-part > :not(.obj-h) { grid-column: 2; }

/* tonight: three moments, big times, compass words */
.obj-arc { min-height: 7rem; }
.obj-arc-wait { color: var(--ink-soft); max-width: 40ch; }
.obj-arc-line { font-size: var(--fs-lead); line-height: 1.32; font-stretch: 106%; max-width: 34ch; margin-bottom: var(--sp-6); }
.obj-arc-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sp-6) var(--sp-6); }
.obj-arc-item { display: grid; align-content: start; gap: var(--sp-1); }
.obj-arc-word { font-size: var(--fs-lead); font-stretch: 112%; line-height: 1.2; color: var(--ink-soft); }
.obj-arc-time { font-size: var(--fs-2); font-weight: 440; font-stretch: var(--wide); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: var(--sp-1); }
.obj-arc-dir { color: var(--ink-soft); max-width: 22ch; margin-top: var(--sp-2); }
.obj-acts { margin-top: var(--sp-7); }
.obj-acts .act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* facts: the label in the wide face, the value plain beside it */
.facts { display: grid; gap: var(--sp-5); }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: var(--sp-6); align-items: baseline; }
.fact dt { font-size: var(--fs-lead); font-stretch: 112%; font-weight: 470; line-height: 1.25; }
.fact dd { color: var(--ink-soft); line-height: var(--lh-text); font-variant-numeric: tabular-nums; }
.obj-src { margin-top: var(--sp-7); color: var(--ink-soft); max-width: var(--measure); }

/* neighbours: names that stretch like the Home routes */
.obj-near-list { display: grid; }
.obj-near-link { display: grid; gap: var(--sp-1); padding: var(--sp-4) var(--sp-4); margin: 0 calc(-1 * var(--sp-4)); border-radius: 18px; text-decoration: none; transition: background var(--touch) var(--shutter); }
.obj-near-link:hover, .obj-near-link:focus-visible { background: var(--ground-up); }
.obj-near-name { font-size: var(--fs-3); font-weight: 470; font-stretch: var(--wide); line-height: 1.15; display: inline-block; justify-self: start; transform-origin: left center; transition: transform var(--sheet) var(--shutter); }
.obj-near-link:hover .obj-near-name { transform: scaleX(1.035); }
.obj-near-what { color: var(--ink-soft); }
.obj-back { margin-top: var(--sp-6); }

/* the ring round the object, drawn on the sky's own pixels */
.obj-mark { position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none; color: var(--ink); width: 0; height: 0; transition: opacity var(--sheet) var(--shutter); }
.obj-mark.is-off, .obj-mark.is-leaving { opacity: 0; }
.obj-mark svg { position: absolute; left: calc(var(--size) / -2); top: calc(var(--size) / -2); overflow: visible; }
.obj-mark circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset var(--draw) var(--shutter); }
.obj-mark.is-drawn circle { stroke-dashoffset: 0; }
.obj-mark-name { position: absolute; left: calc(var(--size) / 2 + 10px); top: 0; transform: translateY(-50%); white-space: nowrap; font-size: 17px; font-weight: 560; font-stretch: 112%;
  text-shadow: 0 0 8px var(--ground), 0 0 2px var(--ground); opacity: 0; transition: opacity var(--sheet) var(--shutter) var(--turn); }
.obj-mark.is-drawn .obj-mark-name { opacity: 1; }

@media (max-width: 820px) {
  .obj-part { grid-template-columns: minmax(0, 1fr); }
  .obj-part > :not(.obj-h) { grid-column: 1; }
  .obj-h { position: static; max-width: none; margin-bottom: var(--sp-5); }
  .obj-part + .obj-part { margin-top: var(--sp-8); }
  .fact { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-1); }
}
@media (max-width: 640px) {
  .obj-head { padding-top: calc(var(--bar-h) + 44svh); padding-bottom: var(--sp-6); }
  .obj-title--long { font-size: 32px; }
  .obj-arc-items { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .obj-arc-item { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--sp-4); align-items: baseline; }
  .obj-arc-word { grid-row: 1 / span 2; font-size: 19px; }
  .obj-arc-time { font-size: 34px; margin-top: 0; }
  .obj-arc-dir { margin-top: 0; }
  .obj-acts .act { width: 100%; }
}
@media (hover: none) { .obj-near-link:hover { background: none; } .obj-near-link:hover .obj-near-name { transform: none; } }
