/* Thanford style kit, 星际天宫. Every color is one of four source tokens or mixed from them:
   brand yellow and brand blue (chrome), marble and jade (Thanford style). tools/kit.py fails on any other literal color. */
@import url("tokens.css");

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--marble);
  font: 17px/1.6 var(--text);
}

/* The dimmed 天宫 scene. Its edges fade into --ground, so it extends to any width or height without a seam. */
.tg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--dim), var(--dim)),
    var(--ground) url("bg/tiangong-dim.webp") center calc(100% + 20vh) / max(100vw, 1280px) auto no-repeat;
}

/* Regular light belts: evenly spaced parallel lines, like a starship's running lights. Never rings around columns. */
.tg-belts {
  height: 7px;
  background: repeating-linear-gradient(to bottom, var(--belt-gold) 0 1px, transparent 1px 3px);
  filter: drop-shadow(0 0 4px var(--glow-gold));
  opacity: .85;
}
.tg-belts.blue {
  background: repeating-linear-gradient(to bottom, var(--belt-blue) 0 1px, transparent 1px 3px);
  filter: drop-shadow(0 0 4px var(--glow-blue));
}

/* 光焰: a quiet, steady flame of light. It breathes over 6 s and never flickers. */
@keyframes tg-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.tg-meander { height: 12px; background: var(--meander) left center / 12px 12px repeat-x; opacity: .7; }
.tg-cloud { height: 12px; background: var(--cloud) left center / 24px 12px repeat-x; opacity: .6; }

.tg-logo { width: 44px; height: 44px; display: block; border-radius: 50%; }

a { color: var(--gold); }

/* Gallery chrome, shared by docs/kit/*.html. */
.kit-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--hair);
  background: var(--veil);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 5;
}
.kit-head b { font: 600 15px/1 var(--caps); letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.kit-head nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 13px/1.4 var(--text); }
.kit-head nav a { color: var(--marble-dim); text-decoration: none; }
.kit-head nav a[aria-current] { color: var(--yellow); }
.kit-main { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 96px; }
.kit-intro { max-width: 760px; color: var(--marble-dim); }
.kit-intro h1 { font: 500 clamp(30px, 4vw, 44px)/1.1 var(--display); color: var(--marble); margin: 0 0 10px; letter-spacing: .01em; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-top: 28px; }
.cand {
  margin: 0; display: flex; flex-direction: column;
  border: 1px solid var(--hair);
  background: color-mix(in oklab, var(--night) 55%, transparent);
  backdrop-filter: blur(3px);
}
.cand .stage { flex: 1; min-height: 190px; padding: 28px 22px; display: grid; place-items: center; overflow: hidden; }
.cand figcaption { padding: 10px 14px; border-top: 1px solid var(--hair); font: 13px/1.45 var(--text); color: var(--marble-dim); }
.cand figcaption b { display: block; font: 600 13px/1.3 var(--caps); letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.cand figcaption b span { color: var(--marble-dim); font-family: var(--text); letter-spacing: 0; margin-right: 6px; }
@media (max-width: 700px) {
  .kit-head { flex-wrap: wrap; position: static; }
  .kit-head nav { margin-left: 0; width: 100%; }
}
