/* Orpheus, shared look: the colors and fonts of the welcome page (site/index.html), the night sky, the top bar,
   the centered card for signing in and choosing a collection, and the 3D graph panel. See README.md here. */
:root {
  --bg: #000005; --panel: rgba(18, 20, 52, .55); --line: rgba(120, 130, 255, .16); --text: #e9e7f5; --soft: #a6a8c6;
  --dim: #6f7193; --gold: #e8b95c; --gold-deep: #c8963e; --blue: #4f6bff; --cyan: #4fd4ff; --violet: #9b5cff; --bad: #ff8d8d;
  --grad: linear-gradient(100deg, var(--gold) 0%, #f4ead8 30%, #b9a8ff 60%, var(--blue) 100%);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 300 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
b { font-weight: 500; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; transition: opacity .8s; }
/* the 3D graph has stars of its own: while it shows, the page's sky goes dark */
body.graphed:not(.gate) #sky { opacity: 0; }
main, .bar, #gate { position: relative; z-index: 1; }
.muted { color: var(--soft); font-size: 13.5px; }
.bad { color: var(--bad); font-size: 13.5px; }
.bad:empty, .muted:empty { display: none; }
.brand { font-family: var(--display); letter-spacing: .3em; background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; text-decoration: none; }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(155, 140, 255, .4), rgba(232, 185, 92, .4), transparent); }

/* controls */
button, .btn { font: inherit; cursor: pointer; color: var(--text); border: 1px solid rgba(155, 140, 255, .4); border-radius: 999px;
  background: rgba(79, 107, 255, .06); padding: 7px 16px; font-size: 13px; text-decoration: none; display: inline-block;
  transition: background .3s, border-color .3s, transform .2s, box-shadow .3s; }
button:hover, .btn:hover { background: rgba(79, 107, 255, .16); }
button:disabled { opacity: .5; cursor: default; }
button.on { border-color: var(--gold); color: var(--gold); }
button.gold, .btn.gold { border: 0; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #140c00;
  background: linear-gradient(120deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(255, 220, 150, .3), 0 10px 40px -10px rgba(232, 185, 92, .6); }
button.gold:hover, .btn.gold:hover { transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 220, 150, .5), 0 14px 50px -8px rgba(232, 185, 92, .8); }
button.link { border: 0; background: none; padding: 0; color: var(--soft); text-decoration: underline; font-size: 13.5px; }
button.link:hover { color: var(--text); }
input[type=text], input[type=email], textarea, select { font: inherit; color: var(--text); background: rgba(0, 0, 10, .45);
  border: 1px solid rgba(120, 130, 255, .22); border-radius: 12px; padding: 10px 14px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { outline: 0; border-color: rgba(232, 185, 92, .6); box-shadow: 0 0 0 3px rgba(232, 185, 92, .12); }
select { padding: 5px 10px; border-radius: 999px; font-size: 13.5px; max-width: 100%; }
.card { border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(6px);
  background: linear-gradient(160deg, rgba(24, 26, 70, .7), rgba(6, 8, 24, .85)); box-shadow: 0 30px 80px -30px rgba(79, 107, 255, .45); }

/* the top bar: name, the pages, the open collection, who is signed in */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 40px); font-size: 13.5px; color: var(--soft); }
.bar .brand { font-size: 15px; }
.bar nav, .bar .me, #tabs { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.bar nav a:hover, .bar nav a.here { color: var(--text); }
.bar nav a.here { border-bottom: 1px solid var(--gold); }
.bar .me b { color: var(--text); }

/* the card in the middle of the page: signing in, and choosing a collection */
body.gate { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
body.gate main, body.gate .bar { display: none; }
#gate { width: min(440px, 100%); text-align: center; padding: 40px 32px 34px; animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
#gate h1 { font: 400 34px/1.2 var(--display); letter-spacing: .3em; margin: 0 -.3em 0 0; }
#gate > p { margin: 12px 0 0; font-size: 14.5px; color: var(--soft); }
#gate .rule { margin: 26px 0 24px; }
#gate .eyebrow { margin: 0 -.32em 16px 0; }
#gate .stack { display: flex; flex-direction: column; gap: 12px; }
#gate .stack.gap { margin-top: 14px; }
#gate input { width: 100%; padding: 13px 16px; text-align: center; }
#gate #code { font-size: 20px; letter-spacing: .4em; }
#gate #code::placeholder { font-size: 15px; letter-spacing: 0; }
#gate button.gold { padding: 14px 24px; }
#gate .bad, #gate button.link { margin-top: 10px; }
#gate .collection { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 7px 0;
  border-bottom: 1px solid var(--line); }
#gate .collection:last-child { border: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { #gate { animation: none; } }

/* the 3D graph of knowledge, in a frame with its buttons */
.graph { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #01020a; }
.graph .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.graph .tools .eyebrow { margin-right: auto; }
.graph .tools button { padding: 4px 12px; font-size: 12.5px; }
.graph iframe { display: block; width: 100%; height: min(72vh, 760px); border: 0; background: #01020a; }

/* the temperature bar: cold and empty at the start, hot and full at the end, with a dot for each milestone.
   `live` makes it shine while work goes on, `stopped` greys it, `compact` names only the newest milestone. */
.temp { margin: 0 6px; }
.track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .9s cubic-bezier(.2, .7, .2, 1);
  background: linear-gradient(90deg, var(--blue), var(--violet) 45%, var(--gold) 90%); background-size: 820px 100%;
  box-shadow: 0 0 16px rgba(232, 185, 92, .5); position: relative; }
.temp.live .track i::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); background-size: 160px 100%;
  background-repeat: no-repeat; animation: shine 1.8s linear infinite; }
@keyframes shine { from { background-position: -160px 0; } to { background-position: calc(100% + 160px) 0; } }
.temp.stopped .track i { background: linear-gradient(90deg, #3a3f78, #6a6fb0); box-shadow: none; }
.marks { position: relative; height: 44px; margin-top: -13px; }
.marks span { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; transition: color .5s; }
.marks span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #0b0d26; border: 2px solid rgba(120, 130, 255, .3);
  transition: background .5s, border-color .5s, box-shadow .5s; }
.marks span.hit { color: var(--text); }
.marks span.hit::before { background: var(--gold); border-color: #f4ead8; box-shadow: 0 0 14px rgba(232, 185, 92, .8); }
.marks span:first-child { transform: none; align-items: flex-start; }
.marks span:last-child { transform: translateX(-100%); align-items: flex-end; }
@media (max-width: 640px) { .marks span { font-size: 0; } .marks span.now { font-size: 11px; } }
.temp.compact .marks span { font-size: 0; }
.temp.compact .marks span.now { font-size: 11px; }
.dots::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
/* the two faces of the view: a pair of buttons joined into one, the chosen one lit */
.graph .tools .modes { display: inline-flex; margin-right: 6px; }
.graph .tools .modes button { border-radius: 0; margin: 0; }
.graph .tools .modes button:first-child { border-radius: 999px 0 0 999px; }
.graph .tools .modes button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.graph .tools .modes button.on { background: var(--gold); border-color: var(--gold); color: #0b0d26; }
