/*
  Satoshi on the Blockchain: site styles.
  Fonts are served from this site (assets/fonts/, SIL Open Font License 1.1, see the
  OFL-*.txt files). Nothing is loaded from other sites.
*/
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff") format("woff");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --abyss: #050b0a;
  --pcb: #08110f;
  --pcb-2: #0e1a17;
  --line: #1d2f29;
  --text: #eef4f1;
  --text-2: #a3b6ae;
  --btc: #f7931a;
  --btc-deep: #b84f00;
  --mint: #45d98f;
  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(60rem 30rem at 50% 38%, rgba(247, 147, 26, 0.16), transparent 70%),
    linear-gradient(to bottom, var(--pcb) 0%, var(--abyss) 100%);
  background-attachment: fixed;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem 2rem;
}

.chain {
  width: min(640px, 100%);
  height: auto;
  margin-bottom: 1.5rem;
  overflow: visible;
}
.chain .links path {
  stroke: var(--btc);
  stroke-width: 3;
  stroke-dasharray: 6 8;
  fill: none;
  opacity: 0.7;
  animation: flow 1.6s linear infinite;
}
.chain .side { fill: url(#side); stroke: #ffb347; stroke-width: 1.5; stroke-linejoin: round; }
.chain .face { fill: url(#top); stroke: #ffd59a; stroke-width: 1.5; stroke-linejoin: round; }
.chain .edge { stroke: #ffb347; stroke-width: 1.5; opacity: 0.6; }
.chain text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 36px;
  fill: #ffe2b8;
}
.chain .ticks { stroke: #ffe2b8; stroke-width: 3; stroke-linecap: round; }
.chain .ghost .side, .chain .ghost .face { fill: transparent; stroke: var(--btc); stroke-dasharray: 5 5; }
.chain .ghost .edge { stroke-dasharray: 5 5; }
.chain .ghost { animation: mining 2.4s ease-in-out infinite; }
.chain .block:not(.ghost) { animation: float 6s ease-in-out infinite; }
.chain .b2 { animation-delay: -1.5s !important; }
.chain .b3 { animation-delay: -3s !important; filter: drop-shadow(0 0 18px rgba(247, 147, 26, 0.55)); }

.kicker {
  margin: 0 0 0.4rem;
  color: var(--mint);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 span {
  display: block;
  color: var(--btc);
  text-shadow: 0 0 28px rgba(247, 147, 26, 0.45);
}

.status {
  margin: 1.4rem 0 2.2rem;
  color: var(--text-2);
  font-size: 1.15rem;
}

.more {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--btc);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.more:hover { background: var(--btc); color: #1a0d00; }
.more:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

footer {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.85rem;
  text-align: center;
}
footer p { margin: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes mining {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes flow {
  to { stroke-dashoffset: -28; }
}

@media (prefers-reduced-motion: reduce) {
  .chain *, .chain .block, .chain .links path { animation: none !important; }
}

footer .links { margin-top: 0.4rem; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--btc); }

/* Top bar and legal pages (privacy.html) */
.topbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--btc); }

.legal {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  line-height: 1.6;
}
.legal h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.legal h1 span { display: inline; }
.legal .lead { color: var(--text-2); font-size: 1.1rem; margin: 1rem 0 2rem; }
.legal h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--btc);
}
.legal h3 { margin: 1.2rem 0 0.3rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.3rem 0; }
.legal a { color: var(--btc); }
.legal code { font-size: 0.9em; color: var(--mint); }
.legal .kicker { color: var(--mint); }
