:root {
  color-scheme: dark;
  --bg: #121212;
  --fg: #ececec;
  --muted: #9a9a9a;
  --rule: #2a2a2a;
  --accent: #d6a46a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

header { padding: 28px 0; }

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Header icon: the heavier mark, drawn as a mask so it takes the accent color */
.brand::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--accent);
  -webkit-mask: url("mark-bold.svg") center / contain no-repeat;
          mask: url("mark-bold.svg") center / contain no-repeat;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}

nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

main { flex: 1; padding: 48px 0; }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 12px;
}

p { margin: 0 0 16px; }

.lede { font-size: 20px; color: var(--muted); }

.mark {
  display: block;
  color: var(--accent);
  margin-bottom: 24px;
}

a { color: var(--accent); }

footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}

footer a { color: var(--muted); }

.small { font-size: 14px; color: var(--muted); }

.list { padding-left: 20px; margin: 0 0 16px; }
.list li { margin-bottom: 8px; }

.card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}

.card h2 { margin: 12px 0 4px; }
.card p { margin: 0; color: var(--muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

.marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  margin: 32px 0;
  color: var(--accent);
}

.marks figure {
  width: 120px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.marks figcaption { font-size: 13px; color: var(--muted); }

.copy {
  position: relative;
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0 1.15em 0 0;
  cursor: copy;
  user-select: text;
}

.copy:hover { text-decoration: underline; }

footer .copy { color: var(--muted); }

/* Copy icon after the address */
.copy::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.8em;
  height: 0.8em;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='5' width='9' height='9' rx='2'/%3E%3Cpath d='M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='5' width='9' height='9' rx='2'/%3E%3Cpath d='M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}

/* Tooltip to the right of the address: "Click to copy" on hover, "Copied" after a click */
.copy::after {
  content: "Click to copy";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.copy:hover::after,
.copy:focus-visible::after { opacity: 1; }

.copy.copied::after {
  content: "Copied";
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
