@font-face {
  font-family: "Inter";
  src: url("/vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

:root {
  --bg: #030405;
  --text: #e8e6e1;
  --body: rgba(232, 230, 225, 0.66);
  --quiet: rgba(232, 230, 225, 0.42);
  --hair: rgba(232, 230, 225, 0.08);
  --accent: #b6e3dc;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --col: 880px;
  --gutter: clamp(20px, 5vw, 56px);
  --line-y: 64%;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
::selection { background: rgba(182, 227, 220, 0.22); color: var(--text); }

.wrap { width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding: 22px var(--gutter);
  font-size: 14px;
  font-weight: 400;
}
.wordmark { color: var(--text); font-weight: 500; letter-spacing: -0.01em; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.nav-links a { color: var(--quiet); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { color: #050607; }

/* ---------- horizon: still black water at night ---------- */
.horizon {
  position: relative;
  height: 300px;
  overflow: hidden;
  isolation: isolate;
  margin-top: -68px; /* the sky runs up behind the nav */
}
.horizon .sky {
  position: absolute; inset: 0 0 calc(100% - var(--line-y)) 0;
  background:
    radial-gradient(120% 140% at 50% 100%, rgba(120, 170, 165, 0.10) 0%, rgba(40, 60, 62, 0.06) 30%, rgba(3, 4, 5, 0) 62%),
    linear-gradient(180deg, #030405 0%, #05080a 55%, #0a1113 100%);
}
.horizon .glow {
  position: absolute; left: -10%; right: -10%;
  top: calc(var(--line-y) - 70px); height: 70px;
  background:
    radial-gradient(60% 100% at 38% 100%, rgba(182, 227, 220, 0.16), rgba(182, 227, 220, 0) 70%),
    linear-gradient(180deg, rgba(182, 227, 220, 0) 0%, rgba(182, 227, 220, 0.07) 100%);
  filter: blur(6px);
}
.horizon .line {
  position: absolute; left: 0; right: 0;
  top: var(--line-y); height: 1px;
  background: linear-gradient(90deg,
    rgba(182, 227, 220, 0) 0%,
    rgba(182, 227, 220, 0.35) 14%,
    rgba(214, 240, 236, 0.85) 38%,
    rgba(182, 227, 220, 0.55) 66%,
    rgba(182, 227, 220, 0.12) 90%,
    rgba(182, 227, 220, 0) 100%);
  box-shadow: 0 0 14px 1px rgba(182, 227, 220, 0.22), 0 0 46px 6px rgba(182, 227, 220, 0.06);
}
.horizon .water {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(var(--line-y) + 1px);
  background:
    /* long soft reflections of the line, stretched down toward the viewer */
    radial-gradient(18% 100% at 38% 0%, rgba(214, 240, 236, 0.14), rgba(182, 227, 220, 0) 100%),
    radial-gradient(8% 70% at 30% 0%, rgba(182, 227, 220, 0.08), rgba(182, 227, 220, 0) 100%),
    radial-gradient(10% 85% at 52% 0%, rgba(182, 227, 220, 0.07), rgba(182, 227, 220, 0) 100%),
    /* faint horizontal sheen, brighter near the line */
    linear-gradient(180deg, rgba(182, 227, 220, 0.06) 0px, rgba(182, 227, 220, 0) 3px, rgba(182, 227, 220, 0.025) 9px, rgba(182, 227, 220, 0) 13px, rgba(182, 227, 220, 0.018) 24px, rgba(182, 227, 220, 0) 30px),
    radial-gradient(42% 120% at 38% 0%, rgba(182, 227, 220, 0.10), rgba(182, 227, 220, 0) 70%),
    linear-gradient(180deg, #071012 0%, #040607 45%, #030405 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0) 100%);
}
.horizon::after {
  /* the water dissolves into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(180deg, rgba(3, 4, 5, 0), var(--bg));
  z-index: 1;
}
.horizon-title {
  position: absolute; left: 0; right: 0;
  top: var(--line-y);
  z-index: 2;
}
.horizon h1, .horizon .reflection {
  margin: 0;
  font-weight: 300;
  font-size: clamp(46px, 9vw, 84px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.horizon h1 {
  position: absolute; bottom: 0;
  left: var(--gutter); right: var(--gutter);
  padding-bottom: 0.02em;
  line-height: 0.86;
  text-shadow: 0 0 40px rgba(182, 227, 220, 0.10);
}
.horizon .reflection {
  position: absolute; top: 3px;
  left: var(--gutter); right: var(--gutter);
  line-height: 0.86;
  transform: scaleY(-1);
  transform-origin: center;
  filter: blur(2px);
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 75%);
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 75%);
}

/* ---------- content ---------- */
.page { padding-top: 24px; padding-bottom: 120px; }
section { padding: 56px 0; border-top: 1px solid var(--hair); }
.page > section:first-child, .page > p.lede + section { border-top: 0; }
h2 { margin: 0 0 18px; color: var(--text); font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; }
h3 { margin: 28px 0 8px; color: var(--text); font-weight: 400; font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; max-width: 64ch; }
p.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text); opacity: .86; max-width: 40ch; margin: 8px 0 40px; font-weight: 300; letter-spacing: -0.01em; }
p.note { font-size: 13.5px; color: var(--quiet); }
ul, ol { margin: 0 0 16px; padding-left: 20px; max-width: 64ch; }
li { margin: 6px 0; }
li::marker { color: var(--quiet); }
strong { color: var(--text); font-weight: 400; }
p a, li a { border-bottom: 1px solid rgba(232, 230, 225, 0.2); }
p a:hover, li a:hover { border-color: var(--accent); }

code, .mono, code.mono { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
p code, li code { background: rgba(232, 230, 225, 0.05); padding: 2px 6px; border-radius: 6px; }
a.addr { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
a.addr:hover { color: var(--accent); }

/* facts */
dl.kv { margin: 0; }
dl.kv > div {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 24px;
  padding: 15px 0; border-top: 1px solid var(--hair); align-items: baseline;
}
dl.kv > div:last-child { border-bottom: 1px solid var(--hair); }
dl.kv dt { color: var(--quiet); font-size: 14px; }
dl.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; min-width: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* rows */
div.rows { border-top: 1px solid var(--hair); }
.rows > a.row, .rows > div.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 20px; align-items: baseline;
  padding: 14px 0; margin: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
  color: var(--text); transition: background-color .2s ease;
}
a.row:hover { background: rgba(182, 227, 220, 0.045); box-shadow: -12px 0 0 rgba(182, 227, 220, 0.045), 12px 0 0 rgba(182, 227, 220, 0.045); color: var(--text); }
div.row a { color: var(--text); border-radius: 4px; transition: color .2s ease, background-color .2s ease; }
div.row a:hover { color: var(--accent); background: rgba(182, 227, 220, 0.06); }
div.row .a, div.row .b, div.row .c { min-width: 0; }
div.row .b { color: var(--body); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
div.row .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
div.row .c { color: var(--quiet); font-size: 13.5px; text-align: right; white-space: nowrap; }
a.row .a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.row .b { min-width: 0; color: var(--body); font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.row .c { color: var(--quiet); font-size: 13.5px; text-align: right; white-space: nowrap; }

/* search */
form.search { margin: 0 0 36px; position: relative; }
form.search + section { border-top: 0; padding-top: 24px; }
form.search input[type="search"] {
  width: 100%; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(232, 230, 225, 0.14); padding: 12px 0; outline: none;
  font: 300 18px/1.4 "Inter", system-ui, sans-serif; color: var(--text); transition: border-color .2s ease;
}
form.search input[type="search"]::placeholder { color: var(--quiet); }
form.search input[type="search"]:focus { border-bottom-color: var(--accent); }
form.search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
form.search button, form.search input[type="submit"] { position: absolute; left: -9999px; }

/* commands */
pre.cmd {
  position: relative; margin: 14px 0 22px; padding: 18px 92px 18px 20px;
  background: rgba(232, 230, 225, 0.04); border-radius: 10px; border: 0;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
pre.cmd > button.copy { position: absolute; top: 14px; right: 14px; }
button.copy {
  appearance: none; background: none; border: 0; padding: 4px 6px; margin: 0;
  font: inherit; font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 400;
  color: var(--quiet); cursor: pointer; transition: color .2s ease;
}
button.copy:hover { color: var(--accent); }

/* buttons */
.btn {
  display: inline-block; background: var(--text); color: #050607; font-weight: 500;
  font-size: 14px; line-height: 1.2; padding: 14px 20px; border-radius: 10px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #ffffff; color: #050607; }
.btn.btn-sm { padding: 9px 14px; font-size: 13.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split > * { min-width: 0; }

/* token */
.token { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.token-ca { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.token-label { color: var(--quiet); font-size: 14px; }
.token-ca a.addr { min-width: 0; }

/* footer */
.foot { padding: 0 0 48px; font-size: 13.5px; }
.foot-in { display: flex; gap: 22px; padding-top: 28px; border-top: 1px solid var(--hair); }
.foot a { color: var(--quiet); }
.foot a:hover { color: var(--text); }

/* lost */
.lost p { font-size: 18px; color: var(--body); }

@media (max-width: 640px) {
  :root { --line-y: 66%; }
  .nav { padding: 18px var(--gutter) 14px; }
  .horizon { height: 220px; margin-top: -24px; }
  section { padding: 40px 0; }
  h2 { font-size: 22px; }
  dl.kv > div { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
  .rows > a.row, .rows > div.row { grid-template-columns: 1fr auto; gap: 4px 14px; }
  .rows > a.row .b, .rows > div.row .b { grid-column: 1 / -1; grid-row: 2; }
  .split { grid-template-columns: 1fr; gap: 0; }
  pre.cmd { padding: 46px 16px 16px; font-size: 12.5px; }
  pre.cmd > button.copy { top: 10px; right: 10px; }
}
dl.kv dd > button.copy { padding-left: 0; padding-right: 0; }
