/* bitcoin.rich - design system */
:root {
  --orange: #f7931a;
  --orange-deep: #e07f00;
  --orange-wash: #fff7ee;
  --orange-line: #f6dfc4;
  --ink: #1a1408;
  --muted: #7a6f5c;
  --faint: #b3a68e;
  --white: #ffffff;
  --bg: #fffdf9;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Fraunces", Georgia, serif; }

a { color: var(--orange-deep); text-decoration-color: var(--orange-line); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

/* Header */
header.site {
  border-bottom: 1px solid var(--orange-line);
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
}
.headwrap {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 16px;
}
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
}
.logo em { font-style: normal; color: var(--orange-deep); }
nav.top { display: flex; gap: 4px; flex-wrap: wrap; }
nav.top a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 7px 12px; border-radius: 8px;
}
nav.top a:hover { color: var(--ink); background: var(--orange-wash); }
nav.top a.active { color: var(--orange-deep); background: var(--orange-wash); }

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

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h1 .o { color: var(--orange); }
.standfirst {
  font-size: 19px; color: var(--muted);
  max-width: 620px; margin: 0 auto 8px;
}

/* Price strip */
.strip {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 26px 0 10px;
}
.chip {
  background: var(--white); border: 1px solid var(--orange-line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; color: var(--muted);
}
.chip b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Calculator */
.calc {
  background: var(--white);
  border: 1px solid var(--orange-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px -30px rgba(247, 147, 26, 0.35);
  max-width: 680px; margin: 34px auto;
  padding: 34px 34px 30px;
  text-align: center;
}
.calc h2 { font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; margin-bottom: 6px; border: none; padding: 0; }
.calc .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.calc-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.calc input {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px; font-weight: 600; text-align: center;
  width: 240px; padding: 12px 16px;
  border: 2px solid var(--orange-line); border-radius: 12px;
  color: var(--ink); background: var(--bg);
}
.calc input:focus { outline: none; border-color: var(--orange); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600; font-size: 16.5px;
  border: none; border-radius: 12px; padding: 14px 26px; cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--orange-deep); color: #fff; }
.private-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

/* Result */
#result { display: none; margin-top: 26px; text-align: left; }
.verdict {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 4vw, 34px); font-weight: 700; line-height: 1.15;
  text-align: center; margin-bottom: 6px;
}
.verdict .o { color: var(--orange); }
.verdict-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.rcard {
  background: var(--orange-wash); border: 1px solid var(--orange-line); border-radius: 12px;
  padding: 14px 16px;
}
.rcard .v { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 700; }
.rcard .k { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Meter */
.meter { margin: 22px 0 6px; }
.meter-bar {
  height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-wash), var(--orange));
  position: relative;
  border: 1px solid var(--orange-line);
}
.meter-pin {
  position: absolute; top: -7px;
  width: 4px; height: 28px; border-radius: 2px;
  background: var(--ink);
}
.meter-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* Sections & prose */
section.band { padding: 44px 0; }
section.band.tint { background: var(--orange-wash); border-top: 1px solid var(--orange-line); border-bottom: 1px solid var(--orange-line); }
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; font-size: 30px; letter-spacing: -0.015em;
  margin: 34px 0 12px;
}
h3 { font-weight: 600; font-size: 18px; margin: 22px 0 8px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { color: var(--ink); }

.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.card {
  background: var(--white); border: 1px solid var(--orange-line); border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none; color: var(--ink);
  display: block;
}
a.card:hover { border-color: var(--orange); box-shadow: 0 12px 30px -22px rgba(247,147,26,.5); }
.card h3 { font-family: "Fraunces", Georgia, serif; font-size: 20px; margin: 0 0 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.tablewrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--orange-line); border-radius: var(--radius); background: var(--white); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.tablewrap th { background: var(--orange-wash); text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--orange-line); font-weight: 600; }
.tablewrap td { padding: 11px 16px; border-bottom: 1px solid #f3ead9; font-variant-numeric: tabular-nums; }
.tablewrap tr:last-child td { border-bottom: none; }

.note {
  background: var(--white); border: 1px solid var(--orange-line); border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; font-size: 15px;
}
.note .lbl { display: block; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 5px; }

.src { font-size: 13px; color: var(--faint); }
.crumbstamp { font-size: 13px; color: var(--faint); margin: 26px 0 6px; }

/* FAQ */
details {
  background: var(--white); border: 1px solid var(--orange-line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px;
}
details summary { font-weight: 600; cursor: pointer; font-size: 16.5px; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer.site {
  border-top: 1px solid var(--orange-line);
  background: var(--white);
  margin-top: 60px;
  padding: 26px 0;
}
.footwrap {
  max-width: 1040px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}
.footwrap a { color: var(--muted); text-decoration: none; }
.footwrap a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .headwrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  nav.top { margin-left: -8px; }
  .hero { padding: 44px 0 30px; }
  .calc { padding: 24px 18px; }
  .calc input { width: 100%; }
  .calc-row { flex-direction: column; }
}
