@charset "UTF-8";
/* ============================================================
   CryptoJones — CYBERDECK theme
   Cyan-on-blue-black, all monospace, hairline rules.
   Self-contained: no _sass partials are imported.
   ============================================================ */
:root {
  /* ground + surfaces */
  --bg:#07090f;
  --bg-2:#090d15;
  --panel:#0c1018;
  --panel-edge:#141a26;
  --hairline:#141a26;
  --hover:#101826;
  --active:#13233a;
  /* ink */
  --text:#cfd8e3;
  --bright:#eaf2fa;
  --muted:#88aaaa;
  --dim:#5a6678;
  --faint:#3a4456;
  /* signal */
  --accent:#27d4ff;
  /* the cyan everything keys off */
  --accent-soft:#7fe6ff;
  --stamp:#55ff99;
  /* values, confirmations, inline emphasis */
  --alert:#ff4f4f;
  --violet:#b8a8ff;
  /* legacy aliases kept so older markup keeps resolving */
  --phosphor:var(--accent);
  --phosphor-dim:var(--dim);
  --amber:#ff9b3d;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,'DejaVu Sans Mono',monospace;
  --disp:var(--mono);
  --body:var(--mono);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 1.5rem);
  width: 100%;
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  color: var(--accent-soft);
}

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

.blink {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  background: var(--accent);
  margin-left: .15em;
  vertical-align: -.18em;
  animation: blink 1.1s steps(1) infinite;
  box-shadow: 0 0 8px rgba(39, 212, 255, 0.55);
}

/* ── masthead ─────────────────────────────────────────────── */
.masthead {
  background: var(--panel);
  border-bottom: 2px solid var(--accent);
  padding: 1.5rem 0 1.25rem;
  margin-bottom: 2.75rem;
}

.masthead .prompt {
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--dim);
  margin-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.avatar img {
  width: 60px;
  height: 60px;
  border-radius: 2px;
  display: block;
  border: 1px solid var(--faint);
  filter: saturate(0.85);
}

.site-name {
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-weight: 700;
}

.site-name a {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(39, 212, 255, 0.35);
}

.site-name a:hover {
  color: var(--accent-soft);
}

.site-name .x {
  color: var(--stamp);
}

.site-description {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .3rem;
  letter-spacing: .02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  font-size: .82rem;
}

nav a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  padding-bottom: .3rem;
  position: relative;
}

nav a:hover {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .18s;
}

nav a:hover::after {
  right: 0;
}

/* ── featured pin ─────────────────────────────────────────── */
.featured {
  background: #0b1620;
  border-left: 5px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.featured::before {
  content: none;
}

.featured .tag {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .45rem;
}

.featured a {
  color: var(--bright);
  font-size: 1.02rem;
  line-height: 1.45;
  display: block;
}

.featured a:hover {
  color: var(--accent);
}

/* ── post list ────────────────────────────────────────────── */
.posts {
  border-top: 1px solid var(--hairline);
}

.post-card {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--hairline);
  transition: background .15s;
}

.post-card:hover {
  background: var(--hover);
}

.post-meta {
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--stamp);
  font-variant-numeric: tabular-nums;
  margin-bottom: .5rem;
}

.post-title {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: .6rem;
  text-wrap: balance;
}

.post-title a {
  color: var(--bright);
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--muted);
  font-size: .92rem;
  max-width: 68ch;
}

.post-excerpt p {
  margin: 0;
}

.read-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── article ──────────────────────────────────────────────── */
article.post, article.page {
  padding-bottom: 2rem;
}

article.post > h1, article.page > h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.12;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(39, 212, 255, 0.3);
  margin-bottom: 1.5rem;
  text-wrap: balance;
  letter-spacing: -.01em;
}

article.post .date {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ── narration player ─────────────────────────────────────── */
.article-audio {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--stamp);
  padding: .85rem 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.article-audio__button {
  background: transparent;
  border: 1px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  cursor: pointer;
  transition: background .15s,color .15s;
}

.article-audio__button:hover {
  background: var(--stamp);
  color: var(--bg);
}

.article-audio__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-audio audio {
  height: 32px;
  flex: 1;
  min-width: 210px;
  filter: invert(0.88) hue-rotate(180deg) saturate(0.55);
  opacity: .85;
}

.article-audio__volume {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.article-audio__volume input {
  accent-color: var(--accent);
  width: 76px;
}

/* ── article body ─────────────────────────────────────────── */
.entry {
  font-size: 1rem;
  line-height: 1.62;
}

.entry p {
  margin: 0 0 1.1rem;
  max-width: 68ch;
}

.entry a {
  color: var(--accent);
  border-bottom: 1px solid rgba(39, 212, 255, 0.3);
}

.entry a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.entry h1, .entry h2, .entry h3, .entry h4 {
  color: var(--accent);
  line-height: 1.2;
  text-wrap: balance;
  margin: 2.4rem 0 .9rem;
}

.entry h2 {
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--hairline);
}

.entry h2::before {
  content: "\259A  ";
  color: var(--faint);
}

.entry h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bright);
}

.entry h4 {
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.entry ul, .entry ol {
  margin: 0 0 1.1rem 1.35rem;
  max-width: 68ch;
}

.entry li {
  margin-bottom: .45rem;
}

.entry li::marker {
  color: var(--accent);
}

.entry strong {
  color: var(--bright);
  font-weight: 700;
}

.entry em {
  color: var(--stamp);
  font-style: normal;
}

.entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6rem 0;
  border: 1px solid var(--hairline);
}

.entry hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.4rem 0;
}

.entry blockquote {
  border-left: 5px solid var(--accent);
  background: #0b1620;
  padding: .95rem 1.2rem;
  margin: 0 0 1.3rem;
  color: var(--text);
}

.entry blockquote p {
  margin: 0;
  max-width: none;
}

.entry blockquote strong {
  color: var(--accent);
}

.entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  display: block;
  overflow-x: auto;
}

.entry th, .entry td {
  padding: .55rem .8rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.entry th {
  color: var(--faint);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
}

.entry tbody tr:hover {
  background: var(--hover);
}

.entry td strong {
  color: var(--stamp);
}

/* ── code ─────────────────────────────────────────────────── */
.entry code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--stamp);
  background: rgba(85, 255, 153, 0.07);
  padding: .1em .35em;
  border-radius: 2px;
}

pre {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--faint);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
  font-size: .82rem;
  line-height: 1.45;
}

/* must out-specify `.entry code` or the tint leaks into whole code blocks */
.entry pre code, .entry .highlight code, pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  font-size: inherit;
}

.highlight {
  background: none;
  margin: 0 0 1.4rem;
}

.highlight pre {
  margin: 0;
}

.highlight .c, .highlight .c1, .highlight .cm, .highlight .cd {
  color: var(--dim);
  font-style: italic;
}

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kc, .highlight .kr {
  color: var(--accent);
}

.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .se {
  color: var(--stamp);
}

.highlight .nf, .highlight .nb {
  color: var(--violet);
}

.highlight .nt {
  color: var(--accent);
}

.highlight .na {
  color: #ff9b3d;
}

.highlight .mi, .highlight .mf, .highlight .m {
  color: #ff9b3d;
}

.highlight .o, .highlight .ow, .highlight .p {
  color: var(--muted);
}

.highlight .nv, .highlight .vg, .highlight .vi {
  color: var(--bright);
}

.highlight .err {
  color: var(--alert);
}

/* ── misc ─────────────────────────────────────────────────── */
.tagline {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: .82rem;
  color: var(--dim);
  text-align: center;
}

.tagline em {
  color: var(--stamp);
  font-style: normal;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--hairline);
  background: var(--bg-2);
  padding: 1.75rem 0 2.5rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin-bottom: .9rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer .links a {
  color: var(--muted);
}

.site-footer .links a:hover {
  color: var(--accent);
}

.site-footer .colophon {
  font-size: .74rem;
  color: var(--faint);
  letter-spacing: .06em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  0%,49% {
    opacity: 1;
  }
  50%,100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.diagram-view {
  margin: 1.4rem 0 1.6rem;
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.diagram-toolbar {
  display: flex;
  gap: .4rem;
  align-items: center;
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--hairline);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.diagram-toolbar button {
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--hairline);
  padding: .25rem .55rem;
  cursor: pointer;
  font: inherit;
}

.diagram-toolbar button:hover {
  background: var(--hover);
}

.diagram-stage {
  height: 420px;
  overflow: hidden;
  cursor: grab;
  background: #07090f;
  touch-action: none;
}

.diagram-stage.is-grabbing {
  cursor: grabbing;
}

.diagram-stage img, .diagram-stage svg, .diagram-stage .mermaid {
  transform-origin: 0 0;
  max-width: none;
}

.diagram-caption {
  padding: .55rem .7rem .7rem;
  color: var(--muted);
  font-size: .85rem;
}

.diagram-open {
  margin-left: auto;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: none;
}

.diagram-view:fullscreen {
  background: var(--bg);
  width: 100%;
  height: 100%;
}

.diagram-view:fullscreen .diagram-stage {
  height: calc(100vh - 4.5rem);
}

@media (max-width: 600px) {
  body {
    font-size: .95rem;
  }

  .masthead {
    padding: 1.15rem 0 1rem;
    margin-bottom: 2rem;
  }

  .brand {
    gap: .8rem;
  }

  .avatar img {
    width: 48px;
    height: 48px;
  }

  .site-name {
    font-size: 1.3rem;
  }

  nav {
    gap: .3rem 1.1rem;
    font-size: .76rem;
  }

  .post-title {
    font-size: 1.15rem;
  }

  .article-audio {
    gap: .6rem;
  }

  .entry table {
    font-size: .82rem;
  }
}
