/* Blockchain B Limited — institutional quiet.
   Ink on warm paper · one honey-amber accent (derived from the honeycomb).
   System font stacks only — zero external requests. */

:root {
  --paper: #f7f3ec;
  --ink: #201c16;
  --ink-soft: #46403699;
  --ink-body: #443e34;
  --muted: #6a635c;
  --line: rgba(32, 28, 22, 0.13);
  --line-strong: rgba(32, 28, 22, 0.3);
  --accent: #8a5a12;         /* honey amber, AA on paper (5.3:1) */
  --honey: #c9971c;          /* graphic honey — device + markers only */
  --paper-inverse: #efeae1;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body > header, body > main, body > footer { width: 100%; }
main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

::selection { background: rgba(201, 151, 28, 0.22); }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper-inverse);
  padding: 10px 16px;
  font: 13px var(--mono);
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- masthead ---------- */

.masthead { padding-top: 30px; }

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 22px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}

.hex-mark {
  display: inline-block;
  width: 15px;
  height: 13px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--honey);
  flex: none;
}

.masthead-aux {
  font: 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.masthead-aux:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.masthead-nav {
  display: flex;
  gap: 26px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding-block: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}
.masthead-nav::-webkit-scrollbar { display: none; }

.masthead-nav a {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink-body);
  text-decoration: none;
  white-space: nowrap;
}
.masthead-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (min-width: 1120px) {
  .masthead-nav { justify-content: space-between; gap: 12px; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 118px);
}

.eyebrow {
  font: 12px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  max-width: 14ch;
}

.lede {
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-body);
  max-width: 58ch;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 44px;
}
.statement::before {
  content: '';
  display: block;
  width: 14px;
  height: 12px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--honey);
  margin-bottom: 18px;
}

/* the honeycomb device */

.hive-wrap {
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

.hive { width: 100%; height: auto; display: block; }

.hive .cell-fill {
  fill: var(--honey);
  fill-opacity: 0.04;
  animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { fill-opacity: 0.03; }
  to   { fill-opacity: 0.13; }
}

.hive .wall {
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
}
.hive .wall-outer  { stroke-opacity: 0.2; }
.hive .wall-shared { stroke-opacity: 0.42; }

.hive .pulse {
  stroke: var(--honey);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hive.is-paused .cell-fill { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hive .cell-fill { animation: none; }
}

.hive-toggle {
  display: block;
  margin: 14px 0 0 auto;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 2px 1px 4px;
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  min-height: 24px;
  min-width: 24px;
}
.hive-toggle:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hive-toggle[hidden] { display: none; }

/* ---------- sections ---------- */

.block { border-top: 1px solid var(--line); }

.block-inner {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  padding-block: clamp(60px, 7.5vw, 108px);
}

.rail { align-self: start; }
@media (min-width: 901px) {
  .rail { position: sticky; top: 44px; }
}

.rail .index {
  display: block;
  font: 12px var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 13ch;
}

.prose p {
  max-width: 62ch;
  color: var(--ink-body);
  margin-bottom: 1.35em;
}
.prose > :last-child { margin-bottom: 0; }

/* capability grid — What We Do */

.cap-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  margin: 26px 0 34px;
  max-width: 62ch;
}

.cap-grid li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

.cap-grid li::before {
  content: '';
  width: 10px;
  height: 9px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--ink);
  opacity: 0.32;
  flex: none;
  transform: translateY(-1px);
}

/* principles — Our Approach */

.principles { border-top: 1px solid var(--line-strong); }

.principle {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.principle dt {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}

.principle dd {
  color: var(--ink-body);
  font-size: 16.5px;
  max-width: 56ch;
}

/* closing — A Long-Term Institution */

.block--closing .block-inner {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.block--closing .rail { position: static; margin-bottom: 34px; }
.block--closing h2 { max-width: none; }
.block--closing .prose { max-width: 60ch; margin-inline: auto; text-align: left; }

.statement--closing {
  font-size: clamp(27px, 3vw, 38px);
  margin-top: 52px;
}
.statement--closing::before { margin-inline: auto; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper-inverse);
  padding-block: 60px 38px;
}

.footer-line {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.footer-tags {
  font: 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 234, 225, 0.68);
  margin-top: 20px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 234, 225, 0.16);
  font: 12px var(--mono);
  letter-spacing: 0.06em;
  color: rgba(239, 234, 225, 0.68);
}

.footer-meta a { color: rgba(239, 234, 225, 0.85); text-underline-offset: 4px; }
.footer-meta a:hover { color: var(--paper-inverse); }
.site-footer a:focus-visible { outline-color: var(--honey); }

/* ---------- privacy page ---------- */

.page-single {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(64px, 9vw, 128px);
}
.page-single h1 { font-size: clamp(34px, 3.6vw, 48px); margin-bottom: 26px; max-width: none; }
.page-single p { max-width: 62ch; color: var(--ink-body); margin-bottom: 1.35em; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: clamp(48px, 8vw, 80px); }
  .hive-wrap { justify-self: start; max-width: 480px; margin-top: 8px; }
  .block-inner { grid-template-columns: 1fr; gap: 28px; }
  h2 { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cap-grid { grid-template-columns: 1fr; gap: 0; }
  .principle { grid-template-columns: 1fr; gap: 6px; }
  .footer-meta { flex-direction: column; }
}
