/* retinue.run. One static page, no script, no third-party requests.
   Palette follows the cockpit's tokens (pkgs/assent-web/src/tokens.css); the six dot
   colours are the app icon's and appear nowhere else. */

:root {
  color-scheme: dark;
  --bg: #0f1013;
  --surface: #17191d;
  --line: #2a2e35;
  --line-strong: #3a3e46;
  --text: #e8e8ec;
  --text-2: #b4b4bc;
  --muted: #8e8e98;
  --dot-plain: #ffffff;

  /* System faces only, so nothing is fetched from another site. */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 62ch;
  --page: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f7f5;
    --surface: #ffffff;
    --line: #e2e2df;
    --line-strong: #d4d4d0;
    --text: #18181b;
    --text-2: #52525b;
    --muted: #6b6b73;
    --dot-plain: #18181b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--text); margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

.top, main, .foot {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.3rem;
  text-decoration: none;
}
.top-link { font-size: 0.95rem; }

/* Hero */

.hero { padding-block: clamp(2.5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.04;
  max-width: 14ch;
}
.lede {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: 1.2rem;
  line-height: 1.5;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { opacity: 0.88; }
.note { color: var(--muted); font-size: 0.95rem; }

/* The staff figure: the mark drawn large, with a name on each dot. */

.staff-figure { margin: 0; padding-block: clamp(1rem, 4vw, 3rem); }

.orbit {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  aspect-ratio: 640 / 400;
}
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-you { fill: var(--muted); font: 15px var(--body); }

.staff { list-style: none; margin: 0; padding: 0; }
.staff li {
  position: absolute;
  top: var(--y);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 13rem;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--muted);
}
.staff li.r { left: calc(var(--x) - 11px); }
.staff li.l { right: calc(100% - var(--x) - 11px); flex-direction: row-reverse; text-align: right; }

.dot {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
}
.who b { display: block; color: var(--text); font-weight: 600; }
.staff li.waiting .who { color: var(--text); }

/* The one moving thing on the page: the agent that is waiting on you. */
.staff li.waiting .dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .staff li.waiting .dot::after { animation: wait 2.6s ease-out infinite; }
}
@keyframes wait {
  from { transform: scale(0.75); opacity: 0.7; }
  to   { transform: scale(1.5);  opacity: 0; }
}

.ask {
  max-width: 34rem;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
}
.ask b { color: var(--text); }
code { font: 0.92em var(--mono); color: var(--text); }

/* Below 44rem the ring cannot carry labels: the same list becomes a roster. */
@media (max-width: 44rem) {
  .orbit { aspect-ratio: auto; max-width: 34rem; }
  .orbit-ring { display: none; }
  .staff { border-top: 1px solid var(--line); }
  .staff li,
  .staff li.r,
  .staff li.l {
    position: static;
    transform: none;
    flex-direction: row;
    text-align: left;
    max-width: none;
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line);
  }
  .who b { display: inline; margin-right: 0.4rem; }
  .ask { margin-inline: 0; max-width: 34rem; }
}

/* Wide enough for both: the headline on the left, the staff on the right. */
@media (min-width: 66rem) {
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding-block: 2rem;
  }
  .intro h1 { font-size: clamp(3rem, 4.6vw, 3.9rem); }
  .intro .lede { max-width: 34ch; }
}

/* Sections */

.how, .names, .status, .access { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); line-height: 1.15; margin-bottom: 1.5rem; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.how-grid > div { border-top: 1px solid var(--line-strong); padding-top: 1rem; }
h3 { font: 600 1.05rem/1.35 var(--body); margin-bottom: 0.5rem; }

.shot { margin: 0; padding-block: 1rem; }
.shot-frame {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
}
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.shot figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }

.names dl { margin: 0; max-width: var(--measure); }
.names dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.names dt { font-family: var(--display); font-size: 1.25rem; color: var(--text); }
.names dd { margin: 0; }
@media (max-width: 30rem) {
  .names dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

.status ul { margin: 0; padding-left: 1.1rem; max-width: var(--measure); }
.status li { padding-block: 0.25rem; }
.status li::marker { color: var(--muted); }

.access p { max-width: var(--measure); font-size: 1.15rem; }

.foot {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
