/* trips/atlas.css — shared tokens, type and the sign-in screen (display + admin) */
:root {
  --ink: #16233D;
  --ink-2: #2A3A57;
  --ink-soft: rgba(22, 35, 61, 0.62);
  --ink-faint: rgba(22, 35, 61, 0.38);
  --gold: #B99A6C;
  --gold-light: #D2B78F;
  --gold-deep: #8C6F45;
  --paper: #EFEAE0;
  --paper-2: #F7F3EA;
  --surface: #FBF9F3;
  --line: rgba(185, 154, 108, 0.34);
  --line-soft: rgba(22, 35, 61, 0.1);
  --glass: rgba(250, 247, 240, 0.84);
  --shadow: 0 30px 70px -28px rgba(22, 35, 61, 0.42), 0 2px 10px -4px rgba(22, 35, 61, 0.12);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; }

.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ── Sign-in ─────────────────────────────────────────────────────────────── */
.signin {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.65), transparent 60%),
    var(--paper);
  transition: opacity 0.5s var(--ease);
}
.signin.leaving { opacity: 0; pointer-events: none; }
.signin-card {
  width: min(420px, 88vw);
  text-align: center;
  padding: 56px 44px 40px;
  display: flex; flex-direction: column; align-items: stretch;
}
.signin-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold-deep);
}
.signin-title {
  font-family: var(--font-display); font-weight: 500; font-size: 72px; line-height: 0.95;
  margin: 10px 0 0; letter-spacing: -0.01em; color: var(--ink);
}
.signin-rule { width: 64px; height: 1px; background: var(--gold); margin: 26px auto 34px; }
.signin-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.signin input {
  font: 500 20px var(--font-body); text-align: center; letter-spacing: 0.08em;
  padding: 14px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.7); color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signin input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(185,154,108,0.18); }
.signin button {
  margin-top: 14px; padding: 15px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 500 12px var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase;
}
.signin button:active { transform: scale(0.98); }
.signin-error { min-height: 20px; margin: 16px 0 0; color: #9A4E4E; font-size: 14px; }
.shake { animation: shake 0.42s var(--ease); }
@keyframes shake {
  20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}

/* ── Avatars ─────────────────────────────────────────────────────────────── */
.av {
  display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  background: var(--pc, var(--ink)); color: #fff; font: 600 12px/1 var(--font-body); letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px var(--paper-2);
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.fam { background: var(--ink); }
.who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.stack { display: inline-flex; }
.stack .av + .av { margin-left: -7px; }
.who-n { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signin input + .signin-label { margin-top: 14px; }
