/* BTC Marco — rebuilt 2026 */
:root {
  --bg: #0f0d0b;
  --surface: #171310;
  --surface-2: #1e1813;
  --line: #2c231a;
  --fg: #f3ede3;
  --muted: #b09f8d;
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 420px at 50% -120px, rgba(247, 147, 26, 0.13), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* giant bitcoin watermark behind the hero */
.btc-mark {
  position: absolute;
  top: 30px;
  right: -40px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.btc-mark svg {
  width: 340px;
  height: 340px;
  opacity: 0.09;
}
.wrap { position: relative; }
.wrap > *:not(.btc-mark) { position: relative; z-index: 1; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.4em; }
h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 56px 0 18px;
}
h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 2px;
}
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: #d8cfc2; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- header / nav ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
}
.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 0.95rem;
}
.top .brand img { width: 30px; height: 30px; border-radius: 50%; }
.top .brand .btc-ic { width: 26px; height: 26px; display: block; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); font-size: 0.92rem; }
.top nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 52px 0 8px;
}
.hero img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 44px rgba(247, 147, 26, 0.35);
  flex-shrink: 0;
}
.hero h1 { font-size: 2rem; margin: 0 0 4px; }
.hero .tagline { margin: 0; color: var(--muted); font-size: 1.02rem; }
.hero .tagline b { color: var(--accent); font-weight: 600; }
.flags { letter-spacing: 0.2em; }
.flag { border-radius: 3px; vertical-align: baseline; margin: 0 1px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }

/* ---------- quote ---------- */
.quote {
  margin: 40px 0 0;
  padding: 22px 26px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem;
  color: var(--fg);
  font-style: italic;
}
.quote .who { display: block; margin-top: 8px; font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* ---------- story timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .when { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.timeline p { margin: 2px 0 0; }

/* ---------- cards & grids ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  text-decoration: none;
  transform: translateY(-1px);
}
.card .ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.card .ic img { width: 22px; height: 22px; display: block; }
.card .t { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.card .d { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }

.wide { grid-template-columns: 1fr; }

/* ---------- press / media list ---------- */
.press { display: grid; gap: 12px; }
.press .card { align-items: flex-start; }
.press .kicker,
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 2px 10px;
  margin-bottom: 6px;
}

/* ---------- featured project ---------- */
.feature {
  background: linear-gradient(135deg, var(--accent-soft), transparent 75%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature h3 a { color: var(--fg); }
.feature h3 a:hover { color: var(--accent); text-decoration: none; }
.feature .card { margin-top: 4px; }

/* ---------- support ---------- */
.bolt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 12px;
}
.bolt .addr {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--accent);
  word-break: break-all;
}

/* ---------- page footer ---------- */
footer {
  margin: 72px 0 0;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ---------- subpages ---------- */
.page-head { padding: 52px 0 0; }
.page-head h1 { font-size: 1.7rem; margin: 0 0 6px; }
.page-head .sub { color: var(--muted); margin: 0; }
.back { font-size: 0.9rem; color: var(--muted); }
.back:hover { color: var(--accent); }

.list { display: grid; gap: 10px; margin-top: 26px; }

/* ---------- whitepaper ---------- */
.paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  margin-top: 26px;
}
.paper h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
  color: var(--fg);
  margin: 34px 0 10px;
}
.paper h2::after { display: none; }
.paper .authors { color: var(--muted); font-size: 0.95rem; margin-bottom: 30px; }
.paper p { font-size: 0.95rem; }
.paper .src { margin-top: 30px; font-size: 0.85rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 560px) {
  .hero { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero h1 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: center; gap: 10px; }
  .top nav { justify-content: center; }
}
