/* Rare Friends colour scheme and type: near-black page, off-white ink, grey secondary, hairline borders, square corners,
   Archivo for body, Sometype Mono for labels and buttons, Silkscreen (pixel) for big headings. Loaded last; dark is the default. */
:root, html[data-theme="dark"] { --paper: #111111; --ink: #eeeeee; --bg: #111111; --bg2: #171717; --bg3: #1f1f1f; --card: #171717; --line: #2a2a2a; --line2: #3a3a3a; --text: #eeeeee; --muted: #9a9a9a; --dim: #6b6b6b; --cream: #eeeeee; --lime: #eeeeee; --acc: #eeeeee; --acc2: #eeeeee; --accbg: rgba(238, 238, 238, 0.08); --up: #7fd79a; --up2: rgba(127, 215, 154, 0.12); --down: #ff7a66; --down2: rgba(255, 122, 102, 0.12); --warn: #e8b04b; --gold: #e8b04b; --radius: 0px; --shadow: none;
  --sans: "Archivo", "Archivo Variable", Inter, system-ui, sans-serif; --mono: "Sometype Mono", "JetBrains Mono", Consolas, monospace; --pixel: "Silkscreen", "Sometype Mono", monospace; }
html[data-theme="light"] { --paper: #eeeeee; --ink: #111111; --bg: #eeeeee; --bg2: #f6f6f6; --bg3: #e4e4e4; --card: #f6f6f6; --line: #d0d0d0; --line2: #bdbdbd; --text: #111111; --muted: #6b6b6b; --dim: #9a9a9a; --cream: #111111; --lime: #111111; --acc: #111111; --acc2: #111111; --accbg: rgba(17, 17, 17, 0.08); --up: #1f7a4d; --down: #c8321f; }
html, body { background-color: var(--bg) !important; background-image: none !important; color: var(--text); font-family: var(--sans); }
/* type */
h1, .banner h1, .whero h1 { font-family: var(--pixel) !important; text-transform: uppercase; letter-spacing: 0.04em !important; font-weight: 400 !important; line-height: 1.15; }
h2, h3, .h { font-family: var(--sans) !important; font-weight: 500 !important; letter-spacing: -0.01em !important; }
.lbl, .field > label, .im-kicker, .sec-h h3, .stat span, .stat5 > div span, .tabnote, .kh b, .tck span, .cid, .cst, .tag, .im-sech, .krow span, .reg th, .tk-sym, .nav a, .brand small, .fstats small, .note, .small { font-family: var(--mono) !important; }
.nav a { font-size: 11px !important; letter-spacing: 0.04em; color: var(--muted) !important; text-transform: none !important; } .nav a.on, .nav a:hover { background: transparent !important; color: var(--text) !important; }
.brand span { font-family: var(--pixel) !important; font-weight: 400 !important; letter-spacing: 0.08em !important; font-size: 14px !important; }
/* boxes: hairline, square */
.panel, .card, .ocard, .tcardh, .lcard, .ptok, .pcol, .ccard, .icard, .piece, .imodal-box, .kiosk, .hint, .wcard, .regwrap, .stat5 > div, .im-traits .tc, .fcard, .tfs, .kbox, .kdet, .tcard, .reg, .feat, .banner, .modal-box, .toast, .cstats { border: 1px solid var(--line) !important; background: var(--bg2) !important; border-radius: 0 !important; box-shadow: none !important; color: var(--text); }
.top { border-bottom: 1px solid var(--line) !important; background: var(--bg) !important; } .side { border-right: 1px solid var(--line) !important; }
.banner { background: var(--bg) !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; } .banner h1 { color: var(--text) !important; } .banner p, .banner .tag-line { color: var(--muted) !important; font-family: var(--sans); } .banner .lbl { color: var(--muted); }
.hint, .hint.green { background: var(--bg2) !important; color: var(--muted) !important; border: 1px solid var(--line) !important; } .hint b { color: var(--text); }
/* buttons: mono, square; primary = off-white on ink */
.btn, .chip, .chipx, .mpill, .segs button, .tabs button, .sizes button, .pager button, .im-dl, .drop { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: 0.02em !important; text-transform: none !important; border-radius: 0 !important; border: 1px solid var(--line2) !important; background: var(--bg2) !important; color: var(--text) !important; font-weight: 400 !important; }
.btn:hover, .chip:hover, .segs button:hover, .tabs button:hover, .sizes button:hover, .pager button:hover { background: var(--bg3) !important; border-color: var(--text) !important; color: var(--text) !important; }
.btn.primary, .btn.green, .btn.up, .mpill.on, .segs button.on, .tabs button.on, .sizes button.on, .pager button.on, .tfs button.on { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
.btn.primary:hover { background: #ffffff !important; color: #111111 !important; } html[data-theme="light"] .btn.primary:hover { background: #000 !important; color: #fff !important; }
.btn.down { background: var(--down) !important; color: #111 !important; border-color: var(--down) !important; }
input, select, textarea, .search input, .composer input, .numbox, .prefix { background: var(--bg) !important; border: 1px solid var(--line2) !important; color: var(--text) !important; border-radius: 0 !important; font-family: var(--sans) !important; } input:focus, select:focus, textarea:focus { outline: 1px solid var(--text) !important; outline-offset: 0; }
.drop { border: 1px dashed var(--line2) !important; background: var(--bg) !important; }
/* tables and stats */
.reg th { color: var(--muted) !important; border-bottom: 1px solid var(--line) !important; } .reg td { border-bottom: 1px solid var(--line) !important; } .reg tr:hover td { background: var(--bg3) !important; }
.stat b, .stat5 > div b, .fstats b, .bstats b { font-family: var(--sans) !important; font-weight: 500 !important; color: var(--text) !important; }
.muted, .dim, .note, .side-foot { color: var(--muted) !important; }
.ccard:hover, .piece:hover { outline: 1px solid var(--text) !important; outline-offset: -1px; transform: none !important; }
.fcard .frow img, .fcard .frow .lg, .fstrip .fempty img, .av, .ohead .av, .logo { border-radius: 0 !important; border: 1px solid var(--line) !important; }
.imodal { background: rgba(0, 0, 0, 0.75) !important; }
html[data-theme="dark"] .brand .brand-mark, .brand .brand-mark { content: url("/assets/brand/logo-dark-128.png?v=50"); } html[data-theme="light"] .brand .brand-mark { content: url("/assets/brand/logo-128.png?v=50"); }
/* links and the hero button */
a, .hint a, .lnk, .fcard a, .reg a { color: var(--text); } .hint a, .lnk { text-decoration: underline; text-underline-offset: 3px; }
.banner .btn.primary, html[data-theme="light"] .banner .btn.primary { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; opacity: 1 !important; font-weight: 500 !important; } .banner .btn.primary:hover { background: #fff !important; color: #111 !important; }
.banner .btn:not(.primary), .bacts .lnk { background: transparent !important; color: var(--text) !important; border-color: var(--line2) !important; }
.top-in .btn, .top .btn { background: var(--bg2) !important; color: var(--text) !important; }
.strip, .strip a { background: var(--bg) !important; border-color: var(--line) !important; } .strip .up, .strip .green { color: var(--up) !important; }
.btn.green, .btn.up { background: var(--ink) !important; color: var(--paper) !important; }
@media (max-width: 600px) { h1, .banner h1 { font-size: 26px !important; } }
.chart-wrap { position: relative; } .chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--muted); pointer-events: none; }
/* illustrated cards (Rare Friends "What you can do" layout) */
.ills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 14px; }
.ill img { display: block; width: 100%; aspect-ratio: 3 / 2; image-rendering: auto; background: var(--bg2); }
.ill h3 { font-family: var(--sans) !important; font-size: 19px !important; font-weight: 500 !important; margin: 14px 0 6px; color: var(--text); }
.ill p { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 34ch; }
@media (max-width: 900px) { .ills { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .ills { grid-template-columns: 1fr; } }
.wcard { display: grid !important; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; } .wcard .wimg { width: 100%; aspect-ratio: 3 / 2; image-rendering: auto; }
@media (max-width: 640px) { .wcard { grid-template-columns: 1fr; } }
/* ── How it works ── */
.hw { max-width: 1080px; margin: 0 auto; padding: 8px 0 60px; }
.hw-hero { padding: 26px 0 18px; border-bottom: 1px solid var(--line); } .hw-hero h1 { font-size: 40px !important; margin: 10px 0 14px; } .hw-hero .lead { color: var(--muted); max-width: 66ch; font-size: 16px; line-height: 1.65; }
.hw-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; } .hw-toc a { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; } .hw-toc a:hover { background: var(--bg3); border-color: var(--text); }
.hw-flowwrap { margin: 28px 0 8px; } .hw-flowwrap h3 { font-family: var(--mono) !important; font-size: 11px !important; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em !important; margin-bottom: 8px; }
.hw-flow { width: 100%; height: auto; display: block; } .hw-ft { font-family: var(--sans); font-size: 15px; font-weight: 500; fill: var(--text); } .hw-fs { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.hw-sec { display: grid; grid-template-columns: 420px 1fr; gap: 36px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; } .hw-sec:nth-of-type(even) { grid-template-columns: 1fr 420px; } .hw-sec:nth-of-type(even) .hw-media { order: 2; }
.hw-ill { width: 100%; aspect-ratio: 3 / 2; display: block; }
.hw-num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; } .hw-text h2 { font-size: 26px !important; margin: 6px 0 12px; }
.hw-text p, .hw-text li, .hw-plain p { color: var(--muted); font-size: 14.5px; line-height: 1.7; } .hw-text b, .hw-plain b { color: var(--text); font-weight: 500; }
.hw-text ul { padding-left: 18px; margin: 10px 0 0; } .hw-text li { margin: 6px 0; } .hw-text code, .hw-plain code { font-family: var(--mono); font-size: 12.5px; background: var(--bg3); padding: 1px 6px; color: var(--text); }
.hw-code { font-family: var(--mono); font-size: 12.5px; background: var(--bg2); border: 1px solid var(--line); padding: 12px 14px; overflow-x: auto; color: var(--text); margin: 12px 0; white-space: pre-wrap; }
.hw-tbl { width: 100%; margin: 12px 0; border-collapse: collapse; } .hw-tbl th, .hw-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; } .hw-tbl th { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; } .hw-tbl .r { text-align: right; }
.hw-plain { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; } .hw-plain h2 { font-size: 26px !important; margin-bottom: 16px; } .hw-sub { margin-top: 26px; font-size: 17px !important; }
.hw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .hw-grid > div { border: 1px solid var(--line); background: var(--bg2); padding: 14px; } .hw-grid h3 { font-size: 15px !important; margin-bottom: 6px; } .hw-grid p { font-size: 13px; margin: 0; }
.hw-q { border-bottom: 1px solid var(--line); padding: 12px 0; } .hw-q summary { cursor: pointer; font-size: 15px; color: var(--text); list-style: none; } .hw-q summary::before { content: "+ "; font-family: var(--mono); color: var(--muted); } .hw-q[open] summary::before { content: "− "; } .hw-q p { margin: 8px 0 0; }
.hw-cta { display: flex; gap: 10px; padding-top: 30px; flex-wrap: wrap; }
@media (max-width: 860px) { .hw-sec, .hw-sec:nth-of-type(even) { grid-template-columns: 1fr; gap: 18px; } .hw-sec:nth-of-type(even) .hw-media { order: 0; } .hw-grid { grid-template-columns: 1fr 1fr; } .hw-hero h1 { font-size: 28px !important; } }
/* header: How it works link */
.top-in .hw-link { font-family: var(--mono); font-size: 11px; color: var(--text); text-decoration: none; padding: 8px 10px; border: 1px solid transparent; white-space: nowrap; } .top-in .hw-link:hover, .top-in .hw-link.on { border-color: var(--line2); }
@media (max-width: 640px) { .top-in .hw-link { display: none; } }
/* header tabs */
.top-in .toptabs { display: flex; align-items: stretch; gap: 2px; margin: 0 8px; } .top-in .search { margin-left: auto; }
.toptabs a { font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; padding: 8px 12px; border: 1px solid transparent; white-space: nowrap; }
.toptabs a:hover { color: var(--text); border-color: var(--line2); } .toptabs a.on { color: var(--paper); background: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) { .top-in .search { display: none; } } @media (max-width: 640px) { .toptabs a { padding: 6px 7px; font-size: 11px; } .toptabs a:first-child { display: none; } }
/* ── header v2: one clean row, no drawer, no dividing lines ── */
.side, .drawer, #menu, .menu-btn, .drawer-x { display: none !important; }
.top { border: 0 !important; box-shadow: none !important; background: var(--bg) !important; }
.top-in { display: flex !important; align-items: center !important; gap: 10px !important; height: 68px; padding: 0 28px !important; max-width: none; }
.top-in .brand { flex: 0 0 auto; gap: 10px !important; margin-right: 14px !important; } .top-in .brand small { display: none !important; }
.top-in .brand .brand-mark { width: 26px !important; height: 26px !important; } .top-in .brand span { font-size: 15px !important; letter-spacing: 0.14em !important; }
.top-in .toptabs { margin: 0 !important; gap: 4px; }
.toptabs a { height: 36px; display: flex; align-items: center; padding: 0 14px; font-size: 12px; }
.top-in .search { margin-left: auto !important; flex: 0 1 280px; max-width: 280px !important; } .top-in .search input { height: 36px; width: 100%; font-size: 13px; padding: 0 12px; }
.top-in .btn, .top-in #wallet, .top-in #theme { height: 36px !important; min-height: 36px; display: inline-flex !important; align-items: center; justify-content: center; }
.top-in #theme { width: 36px !important; padding: 0 !important; }
.top-in .launch-btn { padding: 0 16px !important; }
.top-in #wallet { padding: 0 16px !important; }
.strip { border: 0 !important; border-top: 0 !important; border-bottom: 0 !important; padding: 2px 20px !important; }
.banner, .hw-hero, .whero { border-top: 0 !important; }
@media (max-width: 1100px) { .top-in .search { display: none !important; } }
@media (max-width: 760px) { .top-in { padding: 0 14px !important; gap: 6px !important; height: 60px; } .top-in .brand span { display: none; } .top-in .brand { margin-right: 4px !important; } .top-in .launch-btn { display: none !important; } .toptabs a { padding: 0 9px; font-size: 11px; } }
@media (max-width: 480px) { .top-in #theme { display: none !important; } .toptabs a:first-child { display: none; } }
