/* Shared styles for every page in this repo. Loaded via <link rel="stylesheet" href="/assets/site.css">
   after the Tailwind CDN script + /assets/tailwind.config.js. */

:root {
  color-scheme: dark;
}

* {
  scrollbar-color: #232a3a #0b0e17;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0b0e17;
  color: #ede9dd;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
}

/* Visible, on-brand focus ring everywhere — buttons, links, form fields */
:focus-visible {
  outline: 2px solid #4d8eff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero ambient glow — tinted with the real app's brand blue */
.hero-glow {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(77, 142, 255, 0.12) 0%,
    rgba(11, 14, 23, 0) 70%
  );
}

/* Frosted surface used for screenshot frames + section cards */
.ledger-card {
  background: rgba(19, 24, 38, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(35, 42, 58, 0.8);
}

.primary-text {
  background: linear-gradient(135deg, #adc6ff 0%, #4d8eff 60%, #005ac2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow labels — small-caps mono tags, styled like a ledger column header */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- Hub diagram (hero signature element) ---- */

.hub-diagram {
  position: relative;
  aspect-ratio: 1 / 1;
}

.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 0;
  animation: hub-node-in 0.6s ease-out forwards;
}

.hub-lines line {
  stroke: #4d8eff;
  stroke-opacity: 0.35;
  stroke-width: 0.4;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: hub-line-draw 1s ease-out forwards;
}

.hub-center {
  animation: hub-center-in 0.5s ease-out forwards;
}

@keyframes hub-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hub-node-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes hub-center-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hub-node,
  .hub-center,
  .hub-lines line {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---- Ledger-style pricing table ---- */

.ledger-table td,
.ledger-table th {
  font-family: "IBM Plex Mono", monospace;
}

/* ---- Blog typography ---- */

.blog-content {
  color: #d6d0c4;
  line-height: 1.8;
  font-size: 1.06rem;
}

.blog-content > :first-child {
  margin-top: 0;
}

.blog-content > :last-child {
  margin-bottom: 0;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: "Fraunces", serif;
  color: #ede9dd;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.blog-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.blog-content h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
}

.blog-content h4 {
  font-size: clamp(1.1rem, 1.9vw, 1.25rem);
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content pre {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.25rem;
}

.blog-content li {
  margin: 0.45rem 0;
}

.blog-content a {
  color: #7fabff;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.blog-content a:hover {
  color: #adc6ff;
}

.blog-content strong {
  color: #ede9dd;
}

.blog-content em {
  color: #e8e2d6;
}

.blog-content blockquote {
  border-left: 3px solid rgba(77, 142, 255, 0.55);
  padding-left: 1rem;
  color: #cfc8ba;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid rgba(35, 42, 58, 0.9);
  margin: 2.25rem 0;
}

.blog-content code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  background: rgba(35, 42, 58, 0.65);
  color: #ede9dd;
  border: 1px solid rgba(35, 42, 58, 1);
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
}

.blog-content pre {
  overflow-x: auto;
  background: rgba(35, 42, 58, 0.6);
  border: 1px solid rgba(35, 42, 58, 1);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
}

.blog-content pre code {
  border: 0;
  background: transparent;
  padding: 0;
}
