/* Strata — the terraces.
   Pigments measured off the banner and the mark, not guessed from a screenshot. */
:root {
  --ink: #10312e;
  --pine: #345c5b;
  --teal: #426962;
  --sky: #6f8c81;
  --mint: #8fd3b0;
  --mint-lo: #5fa884;
  --mint-hi: #c3ebd6;
  --marble: #f4f0e8;
  --marble-2: #e6dfd2;
  --sand: #d9d3c6;
  --gold: #efcc92;
  --gold-dp: #c98f4e;
  --mist: #a7ac92;

  --panel: rgba(244, 240, 232, 0.82);
  --panel-edge: rgba(16, 49, 46, 0.14);
  --panel-soft: rgba(244, 240, 232, 0.55);
  --text: #10312e;
  --text-2: #3f5f59;
  --text-3: #6d8781;

  --rail: 72px;
  --dock: 372px;
  --gutter: 16px;
  --r: 14px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #2c4f4b;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* The boot cover is removed from the tree, never merely faded: a node that is only ever
   transitioned away stays over the page forever the day one transition does not fire. */
#boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(180deg, #37605a 0%, #6f8c81 55%, #d9c39a 100%);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease;
}
#boot img { width: 84px; height: 84px; opacity: 0.9; }

/* ------------------------------------------------------------------ chrome */

header.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(32, 72, 68, 0.62), rgba(32, 72, 68, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--marble);
}
.brand img { width: 30px; height: 30px; display: block; }
.brand b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.01em;
}

nav.routes {
  display: flex;
  gap: 2px;
  margin-left: auto;
  background: rgba(244, 240, 232, 0.14);
  border: 1px solid rgba(244, 240, 232, 0.2);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(8px);
}
nav.routes a {
  display: block;
  padding: 6px 15px;
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.82);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
nav.routes a:hover { color: #fff; background: rgba(244, 240, 232, 0.12); }
nav.routes a[aria-current] {
  background: var(--marble);
  color: var(--ink);
  font-weight: 500;
}

/* ------------------------------------------------------------------ layout */

main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dock);
  pointer-events: none;
}

.column {
  grid-column: 1;
  align-self: end;
  max-width: 560px;
  padding: 0 var(--gutter) 28px var(--gutter);
  max-height: calc(100vh - 86px);
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  scrollbar-width: thin;
}

.dock {
  grid-column: 2;
  align-self: stretch;
  padding: 78px var(--gutter) 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  pointer-events: auto;
  scrollbar-width: thin;
}

/* -------------------------------------------------------------------- panel */

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--r);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 18px 48px -28px rgba(10, 36, 34, 0.75);
}

.panel.pad { padding: 20px; }
.panel.tight { padding: 14px 16px; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 8px;
}
h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
p { margin: 0 0 12px; color: var(--text-2); }
p.lede { font-size: 17px; color: var(--text); }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); }
strong { font-weight: 600; color: var(--text); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dp);
  margin: 0 0 12px;
}

/* --------------------------------------------------------------- readouts */

.read {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(16, 49, 46, 0.08);
}
.read:last-child { border-bottom: 0; }
.read dt { font-size: 13.5px; color: var(--text-3); }
.read dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
dl { margin: 0; }

.big {
  font-family: var(--mono);
  font-size: 27px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- the rungs */

.rungs { display: flex; flex-direction: column; gap: 3px; }

.rung {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.rung:hover { border-color: rgba(16, 49, 46, 0.18); background: rgba(255, 255, 255, 0.64); }
.rung[aria-selected="true"] {
  background: var(--marble);
  border-color: rgba(16, 49, 46, 0.26);
}
.rung .no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.rung .band {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.rung .holds {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.rung .side {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--mist);
}
.rung .side.bid { background: var(--mint-lo); }
.rung .side.ask { background: var(--gold-dp); }
.rung .side.engaged { background: var(--ink); }

/* ------------------------------------------------------------------ bits */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(16, 49, 46, 0.2);
  color: var(--text-2);
}
.tag.live { border-color: rgba(95, 168, 132, 0.6); color: #2f6e53; }
.tag.demo { border-color: var(--gold-dp); color: var(--gold-dp); }

a.act, button.act {
  display: inline-block;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--marble);
  cursor: pointer;
}
a.act:hover, button.act:hover { background: #1a4541; }
button.act[disabled] { opacity: 0.4; cursor: default; }
a.act.ghost, button.act.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 49, 46, 0.3);
}
a.act.ghost:hover, button.act.ghost:hover { background: rgba(16, 49, 46, 0.06); }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: rgba(16, 49, 46, 0.1); margin: 14px 0; }

input.amount {
  font: inherit;
  font-family: var(--mono);
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 49, 46, 0.22);
  background: rgba(255, 255, 255, 0.6);
  width: 100%;
  color: var(--ink);
}
input.amount:focus { outline: 2px solid rgba(95, 168, 132, 0.5); outline-offset: 1px; }

.note {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.45;
}

.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text-2);
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: rgba(16, 49, 46, 0.08);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  display: grid;
  place-items: center;
}
.steps li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

.page { display: none; }
.page[data-on] { display: block; }

footer.feet {
  position: fixed;
  left: var(--gutter);
  bottom: 8px;
  z-index: 30;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 240, 232, 0.55);
  pointer-events: auto;
}
footer.feet a { color: inherit; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  :root { --dock: 318px; }
  .column { max-width: 460px; }
}

@media (max-width: 860px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .column {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    align-self: end;
    max-height: 56vh;
    padding-bottom: 12px;
  }
  .dock {
    grid-column: 1;
    grid-row: 2;
    padding: 0 var(--gutter) 12px var(--gutter);
    max-height: 34vh;
  }
  header.bar { gap: 10px; padding: 10px var(--gutter); }
  nav.routes { padding: 2px; }
  nav.routes a { padding: 5px 10px; font-size: 12.5px; }
  footer.feet { display: none; }
}

@media (max-width: 560px) {
  nav.routes a { padding: 5px 8px; font-size: 12px; }
  nav.routes {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    top: 56px;
    justify-content: space-between;
    overflow-x: auto;
  }
  .column { padding-top: 104px; max-height: 58vh; }
  .brand b { font-size: 19px; }
}
