@font-face {
  font-family: 'Berkeley Mono';
  src: url('/static/fonts/berkeley-mono-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
:root { color-scheme: dark; background: #111410; color: #e6e9de; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Berkeley Mono', monospace; }
main { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
h1 { display: flex; align-items: center; gap: .5em; margin: 0; font-size: clamp(26px, 6vw, 48px); font-weight: 500; letter-spacing: -.055em; }
.logo { display: block; width: 80px; height: 80px; flex: none; object-fit: contain; }

.signup { width: min(100%, 440px); }
h1 { justify-content: center; }
form { margin-top: 40px; }
label { display: block; margin-bottom: 10px; font-size: 14px; }
.email-row { display: flex; gap: 8px; }
input, button { font: inherit; font-size: 14px; border: 1px solid #555b50; border-radius: 0; padding: 13px; min-height: 48px; }
input { background: transparent; color: inherit; min-width: 0; width: 100%; }
input::placeholder { color: #969d90; }
button { background: #e6e9de; color: #111410; cursor: pointer; }
button:hover { background: #fff; }
:focus-visible { outline: 2px solid #d6edaf; outline-offset: 3px; }
.message { font-size: 12px; line-height: 1.6; }
.message { margin: 12px 0 0; }
.message:empty { display: none; }
.error { color: #ffb5a7; }
.inline-form { display: inline; }
.inline-form button { min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.credit { margin: 24px 0 0; text-align: center; font-size: 12px; color: #a7afa0; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { color: #e6e9de; text-decoration: underline; }

@media (max-width: 600px) { .logo { width: 48px; height: 48px; } }

hr { margin: 28px 0; border: 0; border-top: 1px solid #555b50; }
.about { margin: 0; padding-left: 1.8em; font-size: 14px; line-height: 1.7; }
.about li + li { margin-top: 14px; }

.title-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

.privacy { width: min(100%, 720px); }
.privacy-copy { margin-top: 32px; font-size: 13px; line-height: 1.7; }
.privacy-copy h2 { margin: 24px 0 8px; font-size: 15px; font-weight: 500; }
.privacy-copy h2:first-child { margin-top: 0; }
.privacy-copy p { margin: 0 0 14px; }
.privacy-copy a { color: inherit; text-underline-offset: .15em; }
.privacy-back { margin-top: 28px !important; }

/* Admin pages */
.admin { width: min(100%, 720px); align-self: start; padding-top: 24px; }
.admin h1 { justify-content: flex-start; }
.admin a { color: inherit; text-underline-offset: .15em; }
.muted { color: #969d90; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; background: #2c3229; border: 1px solid #2c3229; }
.stats > div { background: #111410; padding: 14px 14px 12px; }
.stats dt { font-size: 12px; color: #969d90; }
.stats dd { margin: 6px 0 0; font-size: 28px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dd.stat-note { margin-top: 2px; font-size: 11px; letter-spacing: 0; color: #969d90; }
.chart { margin: 32px 0 0; }
.chart figcaption { margin-bottom: 10px; font-size: 13px; }
.chart figcaption span { margin-left: .6em; font-size: 11px; color: #969d90; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #2c3229; stroke-width: 1; }
.chart .grid.axis { stroke: #555b50; }
.chart .tick { font: 11px 'Berkeley Mono', monospace; fill: #969d90; }
.chart .mark-label { font: 12px 'Berkeley Mono', monospace; fill: #e6e9de; }
.chart .bar { fill: #c9cfbf; }
.chart .line { fill: none; stroke: #c9cfbf; stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: #c9cfbf; fill-opacity: .08; }
.chart .end-dot { fill: #e6e9de; stroke: #111410; stroke-width: 2; }
.chart .hit-area { fill: transparent; }
.chart .hit:hover .hit-area { fill: #e6e9de; fill-opacity: .06; }
.chart .hit:hover .bar { fill: #fff; }
.hbars { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.hbars th { width: 40%; max-width: 0; padding: 5px 12px 5px 0; text-align: left; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars td { padding: 5px 0 5px 10px; text-align: right; white-space: nowrap; }
.hbars td.hbar-cell { width: 100%; padding-left: 0; }
.hbar { display: block; height: 10px; min-width: 2px; background: #c9cfbf; }
.addresses { margin-top: 32px; font-size: 13px; }
.addresses summary { cursor: pointer; }
.addresses summary span { margin-left: .6em; font-size: 11px; color: #969d90; }
.addresses .scroll { max-height: 420px; overflow-y: auto; margin-top: 10px; border-top: 1px solid #2c3229; }
.addresses table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.addresses td { padding: 5px 0; border-bottom: 1px solid #1d211b; overflow-wrap: anywhere; }
.addresses td + td { padding-left: 12px; text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats dd { font-size: 22px; }
  /* Names get their own line above the bar so nothing is cut off. */
  .hbars tr { display: flex; flex-wrap: wrap; align-items: center; padding: 4px 0; }
  .hbars th { flex: 0 0 100%; width: auto; max-width: none; padding: 0 0 4px; white-space: normal; overflow-wrap: anywhere; }
  .hbars td { flex: none; padding: 0 0 0 10px; }
  .hbars td.hbar-cell { flex: 1 1 0; width: auto; padding: 0; }
  /* The SVG scales to about half size on a phone; keep its text readable. */
  .chart .tick { font-size: 20px; }
  .chart .mark-label { font-size: 22px; }
}
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.chart-grid .hbars th { width: 34%; }
@media (max-width: 600px) {
  .stats-3 { grid-template-columns: 1fr 1fr 1fr; }
  .stats-3 dd { font-size: 18px; }
  .chart-grid { grid-template-columns: 1fr; }
}
