@charset "UTF-8";
/* ============================================================
   CryptoJones — CRT / phosphor theme (self-contained, no _sass)
   ============================================================ */
:root {
  --bg:#070b08;
  --bg-2:#0c130d;
  --panel:#0e1610;
  --panel-edge:#1c2a1f;
  --phosphor:#5ef38c;
  --phosphor-dim:#36a35c;
  --amber:#ffb454;
  --text:#cfe0d2;
  --muted:#7d917f;
  --faint:#4f5f52;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --disp:'Chakra Petch',var(--mono);
  --body:'Spline Sans',system-ui,sans-serif;
}

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

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

body {
  background: radial-gradient(120% 80% at 80% -10%, rgba(94, 243, 140, 0.06), transparent 60%), radial-gradient(100% 60% at 0% 110%, rgba(255, 180, 84, 0.05), transparent 55%), var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* scanline + vignette atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
  mix-blend-mode: multiply;
  opacity: .45;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 49;
  background: radial-gradient(120% 120% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.5) 100%);
}

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

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

a:hover {
  color: #aeffc8;
}

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

/* ---- masthead ---- */
.masthead {
  border-bottom: 1px solid var(--panel-edge);
  background: linear-gradient(180deg, var(--panel), transparent);
  padding: clamp(1.4rem, 4vw, 2.4rem) 0 1.4rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.masthead .prompt {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--phosphor-dim);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

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

.avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  border: 1px solid var(--phosphor-dim);
  box-shadow: 0 0 0 3px rgba(94, 243, 140, 0.08), 0 0 18px -6px rgba(94, 243, 140, 0.5);
}

.site-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}

.site-name a {
  color: #eafff0;
  text-shadow: 0 0 22px rgba(94, 243, 140, 0.25);
}

.site-name .x {
  color: var(--phosphor);
  text-shadow: 0 0 18px rgba(94, 243, 140, 0.6);
}

.site-description {
  color: var(--muted);
  font-size: .98rem;
  margin-top: .25rem;
}

nav {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: .85rem;
}

nav a {
  color: var(--muted);
  letter-spacing: .02em;
  position: relative;
}

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

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

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

/* ---- featured callout (homepage) ---- */
.featured {
  border: 1px solid var(--phosphor-dim);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 243, 140, 0.08), rgba(94, 243, 140, 0.02));
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.4rem;
  position: relative;
  overflow: hidden;
}

.featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--phosphor);
  box-shadow: 0 0 14px var(--phosphor);
}

.featured .tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin-bottom: .35rem;
}

.featured a {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.08rem;
}

/* ---- post feed (cards) ---- */
.posts {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.post-card {
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 1.3rem 1.4rem;
  transition: border-color .25s,transform .25s,box-shadow .25s;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.post-card:hover {
  border-color: var(--phosphor-dim);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -26px rgba(94, 243, 140, 0.5);
}

.post-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--phosphor-dim);
  text-transform: uppercase;
}

.post-title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.15;
  margin: .4rem 0 .5rem;
}

.post-title a {
  color: #e6f5ea;
}

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

.post-excerpt {
  color: var(--muted);
  font-size: .96rem;
}

.post-excerpt p {
  margin: 0;
}

.read-more {
  display: inline-block;
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--phosphor);
}

/* ---- single post / page ---- */
article.post, article.page {
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: clamp(1.4rem, 4vw, 2.6rem);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

article.post > h1, article.page > h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.08;
  color: #eafff0;
  text-shadow: 0 0 24px rgba(94, 243, 140, 0.2);
  margin-bottom: .4rem;
}

article.post .date {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--phosphor-dim);
  font-style: normal;
  letter-spacing: .06em;
  margin-top: 1.6rem;
  border-top: 1px solid var(--panel-edge);
  padding-top: 1rem;
}

/* ---- prose ---- */
.entry {
  margin-top: 1.2rem;
}

.entry p {
  margin: 1rem 0;
  color: var(--text);
}

.entry a {
  border-bottom: 1px solid var(--phosphor-dim);
}

.entry h1, .entry h2, .entry h3, .entry h4 {
  font-family: var(--disp);
  color: #e6f5ea;
  line-height: 1.2;
  margin: 1.8rem 0 .7rem;
}

.entry h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--panel-edge);
  padding-bottom: .3rem;
}

.entry h3 {
  font-size: 1.25rem;
}

.entry h4 {
  font-size: 1.05rem;
  color: var(--muted);
}

.entry ul, .entry ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text);
}

.entry li {
  margin: .35rem 0;
}

.entry strong {
  color: #eafff0;
}

.entry em {
  color: var(--text);
}

.entry img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--panel-edge);
}

.entry hr {
  border: 0;
  border-top: 1px solid var(--panel-edge);
  margin: 2rem 0;
}

.entry blockquote {
  margin: 1.4rem 0;
  border-left: 3px solid var(--amber);
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.06), transparent);
  padding: .6rem 1.1rem;
  color: #d8c6a6;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .92rem;
}

.entry th, .entry td {
  border: 1px solid var(--panel-edge);
  padding: .5rem .7rem;
  text-align: left;
}

.entry th {
  background: rgba(94, 243, 140, 0.05);
  color: #e6f5ea;
  font-family: var(--mono);
  font-size: .82rem;
}

/* ---- code ---- */
code {
  font-family: var(--mono);
  font-size: .86em;
  background: rgba(94, 243, 140, 0.08);
  color: var(--phosphor);
  padding: .12em .4em;
  border-radius: 5px;
  border: 1px solid rgba(94, 243, 140, 0.12);
}

pre {
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.65;
  background: var(--bg-2);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: .84rem;
}

.highlight {
  margin: 1.2rem 0;
}

.highlight pre {
  margin: 0;
}

/* Rouge tokens (dark phosphor palette) */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cd {
  color: var(--faint);
  font-style: italic;
}

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

.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .se {
  color: #9be8b4;
}

.highlight .nf, .highlight .nb {
  color: #9fd6ff;
}

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

.highlight .na {
  color: #9fd6ff;
}

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

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

.highlight .nv, .highlight .vg, .highlight .vi {
  color: #cfe0d2;
}

.highlight .err {
  color: #e07a7a;
}

/* ---- nebraska tagline ---- */
.tagline {
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .04em;
  margin: 2.5rem 0 0;
}

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

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--panel-edge);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: .8rem;
}

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

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

.site-footer .colophon {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--faint);
  letter-spacing: .04em;
}

::selection {
  color: #06140b;
  background: var(--phosphor);
}

::-moz-selection {
  color: #06140b;
  background: var(--phosphor);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  0%,49% {
    opacity: 1;
  }
  50%,100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }

  .post-card, article.post, article.page {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (max-width: 600px) {
  nav {
    flex-wrap: wrap;
    gap: .9rem 1.2rem;
  }

  .brand {
    gap: .8rem;
  }

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