/* Inspector site */
:root {
  --bg: #f4efe6;
  --fg: #2a2420;
  --muted: #6f655b;
  --line: #ddd3c4;
  --accent: #7a4f2a;
  --accent-fg: #fbf6ee;
  --code-bg: #ebe3d6;
  --cat-opacity: 0.16;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1815;
    --fg: #ece4d8;
    --muted: #a39786;
    --line: #38302a;
    --accent: #d39a62;
    --accent-fg: #1c1815;
    --code-bg: #2a231e;
    --cat-opacity: 0.2;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* the faded cat in the bottom right corner */
.cat {
  position: fixed;
  right: -2vw;
  bottom: -2vh;
  width: min(46vw, 560px);
  height: auto;
  opacity: var(--cat-opacity);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 96px;
}

.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.word { font-size: 20px; font-weight: 650; letter-spacing: 0.01em; }

h1 {
  font-size: clamp(28px, 5.6vw, 38px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
h2 { font-size: 22px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 17px; font-weight: 650; margin: 22px 0 6px; }

section { margin-bottom: 56px; }
p { margin: 0 0 14px; }

.lede { font-size: 19px; color: var(--fg); max-width: 34em; }

.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 650;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.button.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .quiet:focus-visible, .copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.quiet { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.quiet:hover { color: var(--fg); }

.meta { color: var(--muted); font-size: 14px; margin: 14px 0 4px; }
.note { color: var(--muted); font-size: 15px; }
.small { color: var(--muted); font-size: 14px; }

.label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: lowercase; color: var(--muted); margin-bottom: 12px; }

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-all;
}

.plain { padding-left: 1.1em; margin: 0 0 14px; }
.plain li { margin-bottom: 10px; }
.steps { padding-left: 1.3em; margin: 0 0 14px; }
.steps li { margin-bottom: 10px; padding-left: 4px; }

.copy {
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 8px;
  margin-left: 6px;
  cursor: pointer;
}
.copy:hover { color: var(--fg); border-color: var(--muted); }

.hash { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.faq dt { font-weight: 650; margin-top: 16px; }
.faq dd { margin: 2px 0 0; color: var(--muted); }

footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 28em; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { margin-bottom: 48px; }
  .cat { width: 72vw; right: -8vw; bottom: -2vh; --cat-opacity: 0.12; }
  .ca { font-size: 13px; padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* screenshot */
.shot {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(40, 28, 16, 0.18);
}

/* contract address pill (top right) */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  color: var(--fg);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.ca:hover { border-color: var(--accent); }
.ca:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ca-label { color: var(--muted); }
.ca-icon { flex: none; color: var(--muted); }
.ca:hover .ca-icon { color: var(--accent); }
.ca-check { display: none; color: var(--accent); }
.ca[data-state="copied"] .ca-copy { display: none; }
.ca[data-state="copied"] .ca-check { display: block; }
.ca[data-state="loading"] { cursor: default; color: var(--muted); }
.ca[data-state="loading"]:hover { border-color: var(--line); }
.ca[data-state="loading"] .ca-icon { visibility: hidden; }
