/* signet, in Mission Control's shape: a top bar, a rail of sections, the
 * view beside it, and a pane over the view. design-kit/design-kit.css
 * carries the type, the fonts and the effects; this file sets the theme
 * and the page's own layout. signet's accent is fuchsia (#d946ef), which
 * no other estate site wears. */

:root {
  --dk-300: #f0abfc; --dk-400: #e879f9; --dk-500: #d946ef; --dk-600: #c026d3;
  --dk-500-rgb: 217, 70, 239;
  --dk-pop: #f0abfc;
  --accent: var(--dk-500);
  --accent-text: var(--dk-300);
  --bar: 3.5rem;
  --line: rgba(255, 255, 255, .08);
  --panel: rgba(15, 23, 42, .6);
  --mono: ui-monospace, 'JetBrains Mono', 'Fira Code', monospace;
  /* One clock for everything that moves. */
  --t-move: 300ms;
  --ease-move: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { background: #020617; }
body { margin: 0; background: #020617; color: #e2e8f0;
  font-family: 'Open Sans', system-ui, sans-serif; line-height: 1.6; }
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  overflow-x: clip; }
a { color: var(--dk-400); text-decoration: none;
  transition: color var(--t-move) var(--ease-move), border-color var(--t-move) var(--ease-move),
    background-color var(--t-move) var(--ease-move); }
a:hover { color: var(--dk-300); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The wordmark: two runs of Montserrat Black, white then the accent. */
.wordmark { font-family: 'Montserrat', sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; white-space: nowrap; }
.wordmark .lead { color: #fff; }
.wordmark .tail { color: var(--accent); }

/* The top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem;
  background: rgba(2, 6, 23, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .home { display: flex; align-items: center; gap: .6rem; }
.topbar .mark { display: block; width: 1.75rem; height: 1.75rem; }
.topbar .forge { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; }
.topbar .forge:hover { color: #fff; }

/* The rail and the view */
.shell { flex: 1; display: grid; grid-template-columns: 12rem minmax(0, 1fr); }
.rail { border-right: 1px solid var(--line); }
.rail nav { position: sticky; top: var(--bar); display: flex; flex-direction: column; gap: .25rem; padding: 1rem .75rem; }
.rail-link { display: block; padding: .6rem .85rem; border-radius: .5rem; border-left: 2px solid transparent;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
.rail-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.rail-link.current { color: #fff; border-left-color: var(--accent); background: rgba(var(--dk-500-rgb), .14); }
.content { min-width: 0; max-width: 64rem; padding: 0 1.5rem 2.5rem; }

/* The crumb bar: where the reader is. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 3.25rem;
  padding: .6rem 0; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.trail { display: flex; align-items: center; gap: .5rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.crumb.here { color: #fff; }

/* About: the line, what it answers, where it stands, then the cards. */
.intro { margin: .5rem 0 1.75rem; max-width: 46rem; }
h1.title { margin: 0 0 .75rem; font-family: 'Montserrat', sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.25rem); }
.tagline { margin: 0 0 1.25rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; color: #f0abfc; max-width: 46rem; }
.lead { margin: 0 0 .75rem; font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: #cbd5e1; max-width: 46rem; }
.status { display: inline-flex; align-items: center; gap: .6rem; margin: .5rem 0 0; padding: .4rem .9rem;
  border-radius: 999px; border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .06);
  color: #fde68a; font-size: .88rem; font-weight: 600; }
.status .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #fbbf24; flex: none; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.item-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem;
  border-radius: .9rem; color: inherit; background: var(--panel); border: 1px solid var(--line);
  border-top: 2px solid var(--accent); }
a.item-card:hover { color: inherit; border-color: rgba(var(--dk-500-rgb), .55); border-top-color: var(--accent);
  background: rgba(15, 23, 42, .85); }
.item-card h2, .way h2, .panel h2, .notice h2 { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.summary { color: #94a3b8; font-size: .92rem; }
.item-card.unavailable { border-top-color: #334155; }
.item-card.unavailable h2 { color: #94a3b8; }

/* Hooking in: the two ways, each with its first example. */
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.way { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border-radius: .9rem;
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); min-width: 0; }
.way .summary { margin: 0; }
.way .more { align-self: flex-start; margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--accent-text); }
.code { margin: .25rem 0; padding: .8rem 1rem; border-radius: .6rem; overflow-x: auto;
  background: #05070f; border: 1px solid rgba(255, 255, 255, .1); color: #dbe4f3;
  font-family: var(--mono); font-size: .8rem; line-height: 1.55; white-space: pre; }

/* Account and Operators */
.notice { margin: 0 0 1rem; padding: 1.1rem 1.2rem; border-radius: .9rem; max-width: 44rem;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid #fbbf24; }
.notice p { margin: .4rem 0 0; color: #cbd5e1; }
.holds { color: #94a3b8; font-size: .92rem; max-width: 44rem; margin: 1rem 0 0; }
.panel { margin: 0 0 1rem; padding: 1.1rem 1.2rem; border-radius: .9rem; max-width: 44rem;
  background: var(--panel); border: 1px solid var(--line); }
.panel h2 { margin-bottom: .6rem; }
.groups { margin: 0; padding-left: 1.1rem; font-family: var(--mono); font-size: .88rem; }
.sign-in, .sign-out, .danger { display: inline-block; padding: .65rem 1.2rem; border-radius: .5rem; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; }
.sign-in { background: var(--accent); color: #020617; border: 1px solid var(--accent); }
.sign-in:disabled { cursor: not-allowed; background: transparent; color: #64748b; border-color: #334155; }
.sign-out { background: transparent; color: #cbd5e1; border: 1px solid rgba(255, 255, 255, .18); }
.danger { margin-top: .6rem; background: transparent; color: #fda4af; border: 1px solid rgba(251, 113, 133, .45); }
.quiet { margin: .2rem 0 0; color: #64748b; font-size: .92rem; }

/* Facts: a key and its value, as in a pane. */
.facts { display: grid; gap: .65rem; margin: .5rem 0 1rem; }
.fact { display: grid; grid-template-columns: minmax(6.5rem, 30%) minmax(0, 1fr); gap: .75rem; font-size: .9rem; }
.fact .k { color: #94a3b8; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; padding-top: .2rem; overflow-wrap: anywhere; }
.fact .v { color: #e2e8f0; overflow-wrap: anywhere; }

/* The pane over the view: drawn only when an item is open, it fades in
 * over a scrim and slides the short way in on the one clock. */
@keyframes fade-in { from { opacity: 0; } }
.pane-root.open { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgba(2, 6, 23, .6);
  animation: fade-in var(--t-move) var(--ease-move) both; }
.pane { position: absolute; top: 0; right: 0; bottom: 0; width: min(36rem, 100%); overflow-y: auto;
  padding: 1.5rem 1.5rem 2rem; background: #0b1022; border-left: 1px solid var(--line);
  box-shadow: -1rem 0 3rem rgba(2, 6, 23, .6);
  animation: pane-in var(--t-move) var(--ease-move) both; }
@keyframes pane-in { from { opacity: 0; transform: translateX(1.5rem); } }
.pane .close { position: absolute; top: .9rem; right: .9rem; width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .5rem; border: 1px solid rgba(255, 255, 255, .14); color: #cbd5e1; font-size: 1rem; }
.pane .close:hover { color: #fff; border-color: var(--accent); }
.pane .kind { margin: 0 2.75rem .5rem 0; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pane-title { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.3; color: #fff; }
.pane p { color: #cbd5e1; }
.points { margin: 0 0 1rem; padding-left: 1.2rem; color: #cbd5e1; }
.points li { margin: .2rem 0; }

@media (prefers-reduced-motion: reduce) {
  .scrim, .pane { animation: none; }
}

/* Footer */
footer.chrome { border-top: 1px solid var(--line); padding: 1.5rem 0; color: #94a3b8; font-size: .85rem; }
footer.chrome .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: space-between; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
footer.chrome .wordmark { font-size: .95rem; }

/* Phones: the rail is a bar along the foot of the screen, and the pane a
 * sheet that rises from it. */
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; border-right: 0;
    border-top: 1px solid var(--line); background: rgba(2, 6, 23, .92); backdrop-filter: blur(12px); }
  .rail nav { position: static; flex-direction: row; padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom)); gap: .15rem; }
  .rail-link { flex: 1; text-align: center; border-left: 0; border-top: 2px solid transparent; border-radius: .4rem;
    padding: .55rem .2rem; font-size: .66rem; letter-spacing: .04em; white-space: normal; line-height: 1.2; }
  .rail-link.current { border-top-color: var(--accent); }
  .content { padding: 0 1rem 2rem; }
  .page { padding-bottom: 3.75rem; }
  footer.chrome .wrap { padding: 0 1rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .pane { top: auto; left: 0; width: 100%; max-height: 85svh; border-left: 0; border-top: 1px solid var(--line);
    border-radius: 1rem 1rem 0 0; animation-name: sheet-in; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(1.5rem); } }
}

/* The hero: the words, and the ring beside them (above them on a phone). */
.hero { display: grid; gap: 1.5rem; align-items: center; }
.hero .ring { width: min(60vw, 240px); height: auto; justify-self: center; order: -1; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
  .hero .ring { width: 300px; order: 0; }
}
