:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #202122;
  --muted: #54595d;
  --link: #36c;
  --link-hover: #3056a9;
  --line: #a2a9b1;
  --soft-line: #c8ccd1;
  --tint: #f8f9fa;
  --serif: "Linux Libertine", Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #a2a9b1 var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, p, dl, dd { margin: 0; }
a { color: var(--link); text-decoration: none; text-underline-offset: 0.14em; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button { font: inherit; color: inherit; }
button:enabled { cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
::selection { background: #dbe7fb; color: var(--link-hover); }
[id] { scroll-margin-top: 1.5rem; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 2; padding: 0.5rem 0.8rem; background: var(--paper); }

.shell { width: min(100% - 6rem, 77rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--soft-line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.75rem; gap: 1rem; }
.brand { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--ink); text-decoration: none; line-height: 1.14; }
.brand-mark { display: block; width: 3rem; height: 3rem; object-fit: contain; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.brand small { display: block; margin-top: 0.14rem; color: var(--ink); font-size: 0.83rem; }
.outline { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: 0.36rem 0.85rem; border: 1px solid #a2a9b1; border-radius: 2px; background: var(--tint); font-size: 0.875rem; font-weight: 650; text-decoration: none; }
.outline:hover, .outline:active { background: #eaecf0; text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }

.page { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 2.65rem; padding-top: 2.65rem; }
.contents { padding-top: 0.78rem; }
.contents-inner { position: sticky; top: 2rem; display: grid; align-content: start; }
.contents p { margin: 0 0 0.35rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--soft-line); color: var(--ink); font-size: 0.875rem; font-weight: 700; }
.contents a { padding: 0.3rem 0; color: var(--link); font-size: 0.875rem; }
.contents a:hover { color: var(--link); text-decoration: underline; }
.contents a[aria-current] { color: var(--ink); font-weight: 700; }

.article-head { margin-bottom: 1rem; }
h1 { padding-bottom: 0.24rem; border-bottom: 1px solid var(--line); font: 400 clamp(2.05rem, 3.9vw, 2.7rem)/1.22 var(--serif); }
.article-head p { margin-top: 0.42rem; color: var(--muted); font-size: 0.85rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14.5rem, 27%); column-gap: 2.1rem; row-gap: 2.75rem; align-items: start; }
.intro { max-width: 67ch; font-size: 1rem; line-height: 1.65; }
.intro strong { font-weight: 700; }
sup { margin-left: 0.18em; font: 600 0.66em/0 var(--sans); }
sup a { margin-right: 0.23em; text-decoration: none; }
sup a:hover { text-decoration: underline; }
.reading > section { margin-top: 2.35rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 0.7rem; padding-bottom: 0.32rem; border-bottom: 1px solid var(--line); margin-bottom: 1.02rem; }
h2 { font: 400 clamp(1.55rem, 2.5vw, 1.88rem)/1.2 var(--serif); text-wrap: balance; }
.refresh, .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2rem; gap: 0.37rem; padding: 0 0.24rem; border: 0; border-radius: 3px; background: none; color: var(--link); font-size: 0.875rem; font-weight: 650; }
.refresh:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.refresh[aria-disabled="true"] { color: var(--muted); cursor: wait; }

.tracker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 0.48fr); align-items: center; gap: 1rem; padding: 1.45rem 1.65rem; border: 1px solid #a2a9b1; background: var(--tint); color: var(--ink); }
.stat-label, .tracker-facts dt { color: #202122; font-size: 0.875rem; font-weight: 650; }
.total-value { margin: 0.2rem 0 0.32rem; font: 700 clamp(2.15rem, 3.6vw, 3rem)/1.05 var(--sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.total-source { color: #54595d; font-size: 0.8rem; }
.tracker-facts { display: grid; gap: 0.63rem; padding-left: 1.25rem; box-shadow: inset 1px 0 var(--soft-line); }
.tracker-facts dd { font-size: 0.96rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.data-note { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; margin-top: 0.7rem; color: var(--muted); font-size: 0.81rem; font-variant-numeric: tabular-nums; }
.feed-status { display: inline-flex; align-items: center; gap: 0.39rem; font-weight: 700; }
.status-dot { width: 0.46rem; height: 0.46rem; border-radius: 50%; background: #72777d; }
.feed-status[data-live="true"] { color: var(--ink); }
.feed-status[data-live="true"] .status-dot { background: #36c; }
.tracker-description { margin-top: 0.65rem; color: var(--muted); font-size: 0.93rem; }

.infobox { grid-column: 2; grid-row: 1; border: 1px solid var(--line); padding: 0.35rem; background: var(--tint); }
.infobox h2 { padding: 0.37rem 0.65rem; background: #eaecf0; color: var(--ink); font: 700 1.06rem/1.35 var(--sans); text-align: center; }
.coin-profile { display: grid; place-items: center; padding: 0.5rem; margin-top: 0.25rem; background: #fff; }
.coin-profile img { display: block; width: min(100%, 10rem); height: auto; }
.infobox-body { padding: 0.44rem 0.65rem 0.55rem; }
.token-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--soft-line); font-size: 0.875rem; }
.token-facts dt { color: var(--muted); }
.token-facts dd { text-align: right; font-weight: 650; }
.mint { margin-top: 0.78rem; }
.mint > p:first-child { color: var(--muted); font-size: 0.8125rem; }
.mint-control { display: flex; justify-content: space-between; gap: 0.25rem; align-items: center; margin-top: 0.2rem; }
.mint-address { min-width: 0; font: 0.79rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.copy { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--tint); border: 1px solid var(--line); border-radius: 2px; color: var(--link); }
.copy:hover, .copy:active { background: #eaecf0; }
.copy-feedback { overflow-wrap: anywhere; font-size: 0.8rem; color: var(--link); }
.copy-feedback:not(:empty) { padding-top: 0.3rem; }

.ledger { border-collapse: collapse; width: 100%; border: 1px solid var(--line); background: var(--tint); text-align: left; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.ledger th, .ledger td { padding: 0.5rem 0.65rem; border: 1px solid var(--line); }
.ledger th:last-child, .ledger td:last-child { text-align: right; }
.ledger th { background: #eaecf0; color: var(--ink); font-size: 0.84rem; font-weight: 650; vertical-align: bottom; }
.ledger th:nth-child(2), .ledger td:nth-child(2) { text-align: right; }
.ledger a { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.79rem; white-space: nowrap; }
.ledger .empty-row { padding-block: 1.1rem; color: var(--muted); text-align: left; }
.ledger-foot { min-height: 2.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.1rem 1rem; align-items: center; padding-top: 0.42rem; color: var(--muted); font-size: 0.81rem; }

.endnotes { grid-column: 1; }
.endnotes section + section { margin-top: 2.55rem; }
.endnotes p + p { margin-top: 0.38rem; }
.endnotes .outline { margin-top: 0.75rem; }
.references-list { padding-left: 1.4rem; margin: 0; }
.references-list li { padding-left: 0.15rem; margin-bottom: 0.34rem; }
.references-list li:target { background: var(--tint); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 3.65rem; padding-block: 1rem 1.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.81rem; }

@media (max-width: 68rem) {
  .shell { width: min(100% - 4rem, 77rem); }
  .page { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.6rem; }
  .article-grid { column-gap: 1.3rem; }
  .tracker { padding-inline: 1.15rem; }
}

@media (max-width: 54rem) {
  .page { display: block; padding-top: 0; }
  .contents { padding: 0.56rem 0 0; margin-bottom: 1.8rem; border-bottom: 1px solid var(--soft-line); }
  .contents-inner { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  .contents p { display: none; }
  .contents a { min-height: 2.55rem; display: inline-flex; align-items: center; padding: 0.25rem 0; border-left: 0; border-bottom: 2px solid transparent; font-size: 0.84rem; }
  .contents a[aria-current] { background: none; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2.15rem); }
  .masthead-inner { min-height: 4.15rem; gap: 0.55rem; }
  .brand { gap: 0.48rem; }
  .brand strong { font-size: 1.36rem; }
  .brand-mark { width: 2.55rem; height: 2.55rem; }
  .header-link { padding-inline: 0.48rem; font-size: 0.81rem; white-space: nowrap; }
  .contents { margin-bottom: 1.4rem; }
  .contents-inner { column-gap: 0.87rem; }
  .article-head { margin-bottom: 1.05rem; }
  .article-grid { display: block; }
  .intro { font-size: 1rem; }
  .reading > section { margin-top: 1.8rem; }
  .tracker { gap: 0.95rem; padding: 1rem; grid-template-columns: minmax(0, 1fr); }
  .tracker-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.65rem 0 0; border-left: 0; box-shadow: inset 0 1px #c8ccd1; }
  .total-value { font-size: clamp(2.15rem, 9.2vw, 3rem); }
  .tracker-description { font-size: 0.875rem; }
  .infobox { margin-block: 1.75rem; }
  .footer { margin-top: 2.2rem; }
}

@media (max-width: 25rem) {
  .column-detail { display: none; }
  .ledger th, .ledger td { padding-inline: 0.27rem; }
}
