/* denaro.org. Warm paper, ink, one metallic accent (the denarius), thin lines and a twelve-column grid: futuristic
   in its lines, plain in its words. Light and dark follow the system. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-v22-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-v22-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --bg2: #ffffff;
  --ink: #15171c;
  --ink2: #555a63;
  --line: rgba(21, 23, 28, .13);
  --line2: rgba(21, 23, 28, .06);
  --gold: #b48a2a;
  --gold2: #8f6d1e;
  --gold-soft: rgba(180, 138, 42, .14);
  --red: #b4322a;
  --btn: #15171c;
  --btn-ink: #ffffff;
  --globe-fill: #ffffff;
  --globe-dot: #15171c;
  --globe-grid: #b48a2a;
  --globe-rim: rgba(21, 23, 28, .2);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg2: #151821;
    --ink: #ecebe6;
    --ink2: #a3a7b0;
    --line: rgba(236, 235, 230, .15);
    --line2: rgba(236, 235, 230, .07);
    --gold: #d6ad4a;
    --gold2: #e4c36d;
    --gold-soft: rgba(214, 173, 74, .16);
    --red: #e06a60;
    --btn: #ecebe6;
    --btn-ink: #0e1014;
    --globe-fill: #12151c;
    --globe-dot: #ecebe6;
    --globe-grid: #d6ad4a;
    --globe-rim: rgba(236, 235, 230, .22);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .15em; }
a:hover { color: var(--gold2); }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
b { font-weight: 600; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* --- the temporary-address note */
.interim { margin: 0; padding: 9px 16px; text-align: center; background: var(--gold-soft); color: var(--ink); font: 500 13px/1.4 var(--sans); letter-spacing: .04em; border-bottom: 1px solid var(--line2); }
.interim b { color: var(--gold2); }

/* --- the top bar and the mark */
.top { border-bottom: 1px solid var(--line2); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; flex: none; }
.mark-disc { fill: var(--globe-fill); stroke: var(--ink); stroke-width: 1.6; }
.mark-grid { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.wordmark { font: 500 22px/1 var(--sans); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 22px; font: 500 15px/1 var(--sans); }
.nav a { text-decoration: none; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--btn-ink); }
@media (max-width: 560px) { .nav a:not(.btn) { display: none; } }

/* --- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px/1 var(--sans); letter-spacing: -.005em;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--btn);
  background: var(--btn); color: var(--btn-ink); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold2); background: transparent; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --- the hero */
.hero {
  position: relative; padding: 56px 0 40px; overflow: hidden;
  background-image: linear-gradient(to right, var(--line2) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  background-position: -1px 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.eyebrow { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); margin-bottom: 22px; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 500; max-width: 13em; }
h1 em { font-style: normal; color: var(--gold2); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink2); max-width: 34em; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.count { margin-top: 18px; font: 500 15px/1.4 var(--sans); color: var(--ink2); }
.count b { color: var(--ink); }
.globe-wrap { margin: 0; justify-self: center; width: min(100%, 520px); }
.globe { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; }
.globe::before {
  /* without JavaScript: a plain disc with a lattice */
  content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1px solid var(--globe-rim);
  background:
    linear-gradient(to right, var(--gold-soft) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
    linear-gradient(to bottom, var(--gold-soft) 1px, transparent 1px) 0 0 / 100% calc(100% / 6),
    var(--globe-fill);
}
.globe.drawn::before { display: none; }
.globe canvas { position: relative; width: 100%; height: 100%; }
.globe-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 14px; font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.globe-cap span { white-space: nowrap; }
.globe-cap span + span::before { content: "\00B7"; margin-right: 18px; color: var(--gold); }
@media (max-width: 420px) { .globe-cap { gap: 6px 14px; font-size: 11px; letter-spacing: .08em; } .globe-cap span + span::before { content: none; } }
@media (max-width: 880px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .globe-wrap { order: -1; width: min(72vw, 360px); }
  h1 { max-width: none; }
}

/* --- sections */
.section { padding: 72px 0; border-top: 1px solid var(--line2); }
.section-head { margin-bottom: 36px; }
.kicker { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); margin-bottom: 14px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 18em; }
.wide { max-width: 44em; font-size: 1.1rem; color: var(--ink2); }
.wide + .cards { margin-top: 36px; }
.cards + .wide { margin-top: 36px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards li { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; position: relative; }
.cards .num { font: 500 13px/1 var(--mono); color: var(--gold2); letter-spacing: .08em; }
.cards h3 { font-size: 1.45rem; margin: 14px 0 10px; }
.cards p { color: var(--ink2); }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* --- the matrix */
.matrix-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.matrix-grid p { color: var(--ink2); max-width: 36em; }
.matrix-grid p + p { margin-top: 14px; }
.matrix-grid h2 { margin-bottom: 18px; }
.lattice { width: min(100%, 360px); justify-self: center; aspect-ratio: 1; }
.lattice .lines { stroke: var(--line); stroke-width: .03; fill: none; }
.lattice .frame { stroke: var(--ink); stroke-width: .05; fill: none; }
.lattice .cells rect { fill: var(--gold); opacity: .8; }
.lattice .cells rect.dim { opacity: .3; }
@media (max-width: 800px) { .matrix-grid { grid-template-columns: 1fr; gap: 28px; } .lattice { width: min(100%, 280px); } }

/* --- the numbers */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; display: flex; flex-direction: column; }
.fact .big { font: 500 clamp(2rem, 3.2vw, 2.7rem)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact .label { margin-top: 14px; color: var(--ink2); font-size: .97rem; flex: 1; }
.fact .src { margin-top: 16px; font: 500 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--ink2); }
.fact .src a { text-decoration-color: var(--line); }
.why .fine { margin-top: 18px; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* --- the form */
.join-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.join-text p { color: var(--ink2); margin-top: 16px; max-width: 30em; }
.join-text h2 { margin-top: 0; }
.join-form { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
form { display: flex; flex-direction: column; gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
label { font: 500 14px/1.3 var(--sans); }
.opt { color: var(--ink2); font-weight: 400; }
input[type="text"], textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 92px; }
input[type="text"]:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input::placeholder, textarea::placeholder { color: var(--ink2); opacity: .7; }
.f.bad input, .f.bad textarea { border-color: var(--red); }
.err { color: var(--red); font-size: .88rem; min-height: 0; }
.err:empty { display: none; }
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-weight: 500; }
.go-row { margin: 0; display: flex; justify-content: flex-end; }
.fine { font-size: .9rem; color: var(--ink2); }
.done { padding: 8px 2px; }
.done h3 { font-size: 2rem; margin-bottom: 12px; }
.done p { color: var(--ink2); }
.done .cta { margin-top: 24px; }
.done:focus { outline: none; }
@media (max-width: 880px) { .join-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .join-form { padding: 20px; } .go-row .btn { width: 100%; } }

/* --- the footer */
.foot { border-top: 1px solid var(--line2); padding: 40px 0 48px; color: var(--ink2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font: 500 14px/1 var(--sans); }
.foot-links a { text-decoration: none; }
.small { font-size: .9rem; max-width: 60em; }
.small + .small { margin-top: 8px; }
.faint { opacity: .7; }

/* --- messages and the admin pages */
.message, .signin { padding: 64px 20px; }
.message h1, .signin h1 { font-size: 2.2rem; margin-bottom: 16px; }
.message p, .signin p { margin-top: 12px; color: var(--ink2); }
.message ul { color: var(--red); }
.status { font-weight: 500; color: var(--red); min-height: 1.5em; }
.status.info { color: var(--ink2); }
.hint { font-size: .95rem; }
.admin-who { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; font: 500 14px/1 var(--mono); color: var(--ink2); margin: 0; }
.admin { padding: 36px 20px 64px; }
.admin-head h1 { font-size: 2rem; }
.admin-sub { margin-top: 8px; color: var(--ink2); font-size: .95rem; }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--gold-soft); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 24px 0 0; }
.stats div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stats dt { font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.stats dd { margin: 8px 0 0; font: 500 1.6rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.roots { margin-top: 28px; }
.roots h2 { font-size: 1.1rem; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; }
.chip b { color: var(--gold2); }
.people { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.person { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.person-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.person-head h2 { font-size: 1.15rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0; word-break: break-all; }
.meta { font-size: .85rem; color: var(--ink2); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { font: 500 12px/1 var(--sans); letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); }
.badge.warn { border-color: var(--red); color: var(--red); }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: .95rem; }
.facts-list dt { color: var(--ink2); }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
.facts-list .note { white-space: pre-wrap; }
.actions { margin-top: 14px; }
.actions details summary { cursor: pointer; font: 500 14px/1 var(--sans); color: var(--ink2); }
.actions form { flex-direction: row; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.empty { margin-top: 28px; color: var(--ink2); }
.device { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.qr { width: 100%; max-width: 280px; border: 1px solid var(--line); border-radius: 10px; }
.device-how p + p { margin-top: 12px; }
.device-code { font: 500 2rem/1.2 var(--mono); letter-spacing: .06em; }
.device-form { flex-direction: row; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.device-input { flex: 1 1 200px; font-family: var(--mono); letter-spacing: .06em; }
@media (max-width: 640px) { .device { grid-template-columns: 1fr; } .facts-list { grid-template-columns: 1fr; gap: 2px; } .facts-list dt { margin-top: 8px; } }
