:root {
  --bg: #fff;
  --text: #111;
  --muted: #7a7d85;
  --line: #e7e8ec;
  --ink: #1f3fd1;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: 0.92em; }

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 14px;
}
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 20px; }
.nav a, .link { color: var(--muted); text-decoration: none; }
.nav a:hover, .link:hover { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mcap { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mcap b { color: var(--text); font-weight: 500; }
.btn {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.btn:hover { background: var(--ink); }

/* one narrow column, like a sheet of paper */
.sheet { max-width: 720px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0 0; }
h2 { margin: 0 0 20px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }

.hero { padding-top: 12vh; }
.eyebrow { margin: 0 0 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
h1 {
  margin: 0;
  font-size: clamp(52px, 12vw, 112px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* the pen lies next to the sheet, in the right margin */
.hero { position: relative; }
.penline {
  position: absolute;
  top: calc(12vh + 150px);
  right: -300px;
  width: 360px;
  transform: rotate(-58deg);
}
.pen { display: block; width: 100%; height: auto; }
h1 { margin-bottom: 36px; }

.lede { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.45; }

.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 0;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  font-family: var(--mono);
  font-size: 13px;
}
.ca-label { color: var(--muted); }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.copy:hover { text-decoration: underline; }

/* why */
.why p { margin: 0 0 10px; font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; }
.why .note {
  margin-top: 28px;
  font-family: var(--hand);
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: left;
}

/* tek */
.after { margin: 20px 0 0; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--line);
  font-size: 19px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--hand);
  font-size: 34px;
  color: var(--ink);
}
.steps b { font-weight: 600; }

/* numbers: label, dotted leader, value */
.rows { margin: 0; }
.rows > div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.rows dt { color: var(--muted); white-space: nowrap; }
.rows dd {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 15px;
  text-align: right;
}
.rows dd::before {
  content: '';
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted #c5c7ce;
  transform: translateY(-4px);
}
.rows dd b { font-weight: 500; color: var(--ink); }
.sub { color: var(--muted); font-size: 13px; }
.addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration-color: var(--line); text-underline-offset: 3px; }
.addr:hover { color: var(--ink); }

/* burn log */
.burns-head { display: flex; align-items: baseline; justify-content: space-between; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
th {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--text);
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th:last-child, td:last-child { padding-right: 0; }
.r { text-align: right; }
td .sub { display: block; font-size: 11px; }
td.id { color: var(--muted); }
.burned-cell { color: var(--ink); }
.pending { color: var(--muted); }
.empty { padding: 28px 0; color: var(--muted); font-family: var(--sans); font-size: 15px; white-space: normal; }
.tx { margin-left: 10px; color: var(--muted); text-decoration: none; }
.tx:hover { color: var(--ink); }
tr.fresh td { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: #eef1ff; } to { background: transparent; } }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-family: var(--mono); font-size: 13px; }
.pg, .pg-n { border: 0; background: none; padding: 4px 9px; font: inherit; color: var(--muted); cursor: pointer; }
.pg:disabled { opacity: 0.3; cursor: default; }
.pg-n.on { color: var(--text); border-bottom: 1px solid var(--text); }
.pg-gap { color: var(--muted); }

.foot {
  max-width: 720px;
  margin: 96px auto 0;
  padding: 20px 24px 40px;
  display: flex;
  gap: 24px;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
.foot span { font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.foot p { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 16px; padding: 12px 16px; }
  .nav { display: none; }
  .sheet { padding: 0 16px; }
  section { padding-top: 56px; }
  .hero { padding-top: 8vh; }
  .lede { font-size: 19px; }
  .why p { font-size: 20px; }
  .hide-sm { display: none; }
  .rows > div { flex-wrap: wrap; }
  .foot { flex-direction: column; gap: 8px; padding: 20px 16px 32px; }
}


/* no side margin: small pen on the eyebrow row */
@media (max-width: 1140px) {
  .penline { top: calc(12vh - 6px); right: 0; width: 130px; transform: none; }
  .hero .eyebrow { padding-right: 150px; }
}
@media (max-width: 640px) {
  .penline { top: calc(8vh - 4px); width: 110px; }
  .hero .eyebrow { padding-right: 124px; line-height: 1.5; }
}
