/* ---------- Theme variables ---------- */
:root {
  --bg: #fafbfc;
  --text: #20262e;

  --accent: #ff4fa3;

  --muted: #68707b;
  --link: #2f7dd3;

  --border: #dde3ea;
  --code-bg: #f3f6fa;

  --syn-comment: #7d8590;
  --syn-keyword: #d63384;
  --syn-string: #23864b;
  --syn-function: #0969da;
  --syn-number: #b7791f;
  --syn-punctuation: #6b7280;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --text: #e6e6e6;
  --accent: #ff4fa3;
  --muted: #9aa0a6;
  --link: #6fa8dc;
  --border: #22262c;
  --code-bg: #161b22;
  --syn-comment: #7a828e;
  --syn-keyword: #ff4fa3;
  --syn-string: #6fd68a;
  --syn-function: #6fa8dc;
  --syn-number: #e0af68;
  --syn-punctuation: #9aa0a6;
  color-scheme: dark;
}

[data-theme="gruvbox"] {
  --bg: #282828;
  --text: #ebdbb2;
  --accent: #fe8019;

  --muted: #a89984;
  --link: #83a598;

  --border: #3c3836;
  --code-bg: #32302f;

  --syn-comment: #928374;
  --syn-keyword: #fb4934;
  --syn-string: #b8bb26;
  --syn-function: #83a598;
  --syn-number: #d3869b;
  --syn-punctuation: #a89984;

  color-scheme: dark;
}

[data-theme="rose-pine"] {
  --bg: #191724;
  --text: #e0def4;
  --accent: #ebbcba;
  --muted: #908caa;
  --link: #9ccfd8;
  --border: #26233a;
  --code-bg: #1f1d2e;
  --syn-comment: #6e6a86;
  --syn-keyword: #c4a7e7;
  --syn-string: #f6c177;
  --syn-function: #9ccfd8;
  --syn-number: #eb6f92;
  --syn-punctuation: #908caa;
  color-scheme: dark;
}

[data-theme="matrix"] {
  --bg: #000000;
  --text: #00ff41;
  --accent: #00ff41;
  --muted: #008f11;
  --link: #39ff6a;
  --border: #003b00;
  --code-bg: #0d0d0d;
  --syn-comment: #008f11;
  --syn-keyword: #00ff41;
  --syn-string: #7fff9e;
  --syn-function: #39ff6a;
  --syn-number: #00cc33;
  --syn-punctuation: #00b32d;
  color-scheme: dark;
}

[data-theme="fsociety"] {
  --bg: #0a0a0a;
  --text: #c9c9c9;
  --accent: #e01b24;
  --muted: #5c5c5c;
  --link: #8a8a8a;
  --border: #1f1f1f;
  --code-bg: #141414;
  --syn-comment: #4d4d4d;
  --syn-keyword: #e01b24;
  --syn-string: #9a9a9a;
  --syn-function: #c9c9c9;
  --syn-number: #7a1418;
  --syn-punctuation: #5c5c5c;
  color-scheme: dark;
}

/* Selection highlight — subtle, on-brand instead of default blue */
[data-theme="fsociety"] ::selection {
  background: #e01b24;
  color: #fff;
}

/* Custom scrollbar — thin, black track, red thumb */
[data-theme="fsociety"] ::-webkit-scrollbar {
  width: 10px;
}
[data-theme="fsociety"] ::-webkit-scrollbar-track {
  background: #0a0a0a;
}
[data-theme="fsociety"] ::-webkit-scrollbar-thumb {
  background: #4d1013;
  border-radius: 5px;
}
[data-theme="fsociety"] ::-webkit-scrollbar-thumb:hover {
  background: #e01b24;
}
[data-theme="fsociety"] * {
  scrollbar-color: #4d1013 #0a0a0a; /* Firefox */
}

/* Blinking cursor next to the site title only — one contained spot, not in body copy */
[data-theme="fsociety"] .site-title::after {
  content: "_";
  color: #e01b24;
  animation: fsociety-cursor 1s steps(1) infinite;
}
@keyframes fsociety-cursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Links get a quiet red underline instead of the default accent, no motion */
[data-theme="fsociety"] a {
  text-decoration-color: #4d1013;
  text-underline-offset: 3px;
}
[data-theme="fsociety"] a:hover {
  text-decoration-color: #e01b24;
}


[data-theme="amber-crt"] {
  --bg: #0f0a00;
  --text: #ffb000;
  --accent: #ffb000;
  --muted: #a66f00;
  --link: #ffc94d;
  --border: #3d2600;
  --code-bg: #1a1200;
  --syn-comment: #a66f00;
  --syn-keyword: #ffb000;
  --syn-string: #ffd480;
  --syn-function: #ffc94d;
  --syn-number: #cc8c00;
  --syn-punctuation: #a66f00;
  color-scheme: dark;
}

[data-theme="amber-crt"] body {
  position: relative;
}

[data-theme="amber-crt"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0px,
    rgba(0, 0, 0, 0.35) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 999;
  animation: crt-flicker 6s infinite;
}

[data-theme="amber-crt"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 130%);
  pointer-events: none;
  z-index: 998;
}

@keyframes crt-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.85; }
  98% { opacity: 1; }
  99% { opacity: 0.9; }
}

[data-theme="amber-crt"] * {
  text-shadow: 0 0 1px currentColor;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  width: auto;
  height: 2rem;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
}

#theme-toggle:hover,
#theme-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-picker {
  position: relative;
  display: inline-block;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  z-index: 20;
}

[data-theme="dark"] .theme-menu {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.theme-menu li.theme-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(#000) !important;
  font-weight: 400;
}

.theme-menu li.theme-option:hover {
  background: var(--bg);
}

.theme-menu li.theme-option[aria-selected="true"] {
  font-weight: 600 !important;
  color: var(--text) !important;
}

.theme-menu .swatch-group {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.theme-menu .swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.theme-menu .theme-name {
  flex: 1;
}

.theme-menu .check {
  color: var(--accent);
  font-size: 0.75rem;
}

.swatch-group {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.theme-name {
  flex: 1;
}

.check {
  color: var(--accent);
  font-size: 0.75rem;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

html {
  font-size: 110%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Mono", monospace;
  transition: background 0.15s ease, color 0.15s ease;
}

main {
  max-width: 45rem;
  margin: 0 auto;
  padding: 3.75rem 1.25rem 5rem;
  text-align: center;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Top bar: nav + theme toggle ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 103;
  background: var(--bg);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space between buttons */
}

.topbar.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .topbar.is-stuck {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

nav a {
  color: var(--muted);
  margin-right: 1rem;
  font-size: 0.9rem;
}

nav a:last-child {
  margin-right: 0;
}

nav a.active {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  cursor: pointer;
}


#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}


#smooth-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

#smooth-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* ---------- ASCII art ---------- */
pre.ascii {
  color: var(--link);
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 1.25rem auto 0.625rem;
  display: inline-block;
  text-align: left;
}

/* ---------- Headings ---------- */
h1.name {
  color: var(--accent);
  font-size: 2rem;
  font-weight: bold;
  margin: 0.625rem 0 0;
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

h2 {
  color: var(--muted);
  font-weight: normal;
  font-size: 1.25rem;
  text-transform: lowercase;
  margin: 2.25rem 0 0.5rem;
}

.page-content h3 {
  color: var(--text);
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: none;
  margin: 1.5rem 0 0.4rem;
}

/* ---------- Text blocks ---------- */
p {
  line-height: 1.6;
  margin: 0.375rem 0;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 1.875rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Code ---------- */
code, pre {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:not(pre) > code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  color: var(--accent);
}

pre:not(.ascii) {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 0.9rem;
  margin: 1.25rem 0;
  position: relative;
}

pre:not(.ascii) code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text);
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Syntax highlighting (Prism, build-time) ---------- */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--syn-comment);
  font-style: italic;
}

.token.keyword,
.token.selector,
.token.important,
.token.atrule,
.token.directive.keyword,
.token.tag {
  color: var(--syn-keyword);
}

.token.string,
.token.char,
.token.attr-value,
.token.regex {
  color: var(--syn-string);
}

.token.function,
.token.class-name,
.token.builtin {
  color: var(--syn-function);
}

.token.number,
.token.boolean,
.token.constant,
.token.symbol {
  color: var(--syn-number);
}

.token.punctuation,
.token.operator,
.token.directive-hash {
  color: var(--syn-punctuation);
}

.token.property,
.token.macro.property {
  color: var(--syn-keyword);
}

/* ---------- Markdown typography (lists, quotes, tables, images) ---------- */
.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
  line-height: 1.6;
}

.page-content li + li {
  margin-top: 0.25rem;
}

.page-content blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.page-content th {
  color: var(--muted);
  font-weight: normal;
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25rem auto;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.page-content figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

/* ---------- Content pages (about/projects/writings) ---------- */
.page-content {
  text-align: left;
  margin-top: 1.25rem;
}

.page-content h1 {
  color: var(--accent);
  font-size: 1.5rem;
  text-align: center;
}

.entry {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.entry:last-child {
  border-bottom: none;
}

.entry h3 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 1.05rem;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  scroll-margin-top: 5rem;
}

.page-content h2, .page-content h3 {
  position: relative;
}

.heading-anchor {
  opacity: 0;
  margin-left: 0.5rem;
  color: var(--accent);
  font-size: 0.8em;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.page-content h2:hover .heading-anchor,
.page-content h3:hover .heading-anchor {
  opacity: 1;
}

.entry .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.375rem;
}

.entry a {
  color: var(--link);
}

/* ---------- Writings feed (short snippets/thoughts) ---------- */
.feed {
  max-height: 65vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 1.25rem;
  margin-top: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.feed::-webkit-scrollbar {
  width: 8px;
}

.feed::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0.25rem;
}

.feed::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.snippet {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.snippet:last-child {
  border-bottom: none;
}

.snippet .date {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0 0 0.375rem;
}

.snippet p {
  margin: 0;
  line-height: 1.55;
}

.snippet p + p {
  margin-top: 0.5rem;
}

.feed-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.625rem;
}

/* ---------- Site footer ---------- */
footer {
  max-width: 45rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.slot {
  display: inline-block;
  height: 1.6rem;
  overflow: hidden;
  vertical-align: bottom;
  border-bottom: 1px dashed var(--border);
}

.slot-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slot-track span {
  height: 1.6rem;
  line-height: 1.6rem;
  color: var(--accent);
  font-weight: bold;
  white-space: nowrap;
}

.link-draw {
  position: relative;
  text-decoration: none;
  color: var(--link);
}

.link-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--link);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.link-draw:hover::after {
  transform: scaleX(1);
}

pre.ascii {
  animation: float 4s ease-in-out infinite;
}

/* Floating ascii cat */
.ascii::after {
  content: "_";
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse-dot 2s infinite;
}
.status-dot-not {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 0 rgba(191, 16, 16, 0.6);
  animation: pulse-dot-not 2s infinite;
}


@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@keyframes pulse-dot-not {
  0%   { box-shadow: 0 0 0 0 rgba(220, 61, 61, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* Audio Controls */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
  margin: 1.25rem 0;
}

.audio-btn {
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-family: inherit;
  font-size: 0.7rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.audio-btn:hover {
  opacity: 0.85;
}

.audio-name {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.audio-track {
  flex: 1;
  position: relative;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  cursor: pointer;
  transition: transform 0.15s ease;
  transform-origin: center;
}

.audio-track::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
}

.audio-track:hover {
  transform: scaleY(3.5);
}

.audio-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
}

.audio-time {
  font-size: 0.7rem;
  color: var(--muted);
  min-width: 1.8rem;
  text-align: right;
}



/* post sidebar */
.toc {
  position: fixed;
  z-index: 101;
  top: 6rem;
  left: calc((100vw - 45rem) / 2 - 12rem);
  width: 10rem;
  font-size: 0.75rem;
  display: none;
}

.toc-title {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}

.toc a {
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin-left: -1px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-level-3 a {
  padding-left: 1.5rem;
  font-size: 0.7rem;
}

.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

@media (min-width: 1400px) {
  .toc {
    display: block;
  }
}

.term-hint {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.6;
  font-style: italic;
  margin-top: 0.3rem;
}

.term-ref.active .term-hint {
  display: none;
}

.term-ref {
  position: relative;
  border-bottom: 1px dotted var(--accent);
  cursor: help;
}

.term-ref::after {
  content: "[i]";
  font-size: 0.7em;
  color: var(--accent);
  margin-left: 0.15em;
  vertical-align: super;
}

.term-link {
  display: block;
  font-size: 0.8rem;
  color: var(--link);
  margin-top: 0.4rem;
  text-decoration: none;
}

.term-link:hover {
  text-decoration: underline;
}

.term-popover {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-0.5rem);
  width: 360px;
  max-width: min(360px, calc(100vw - 2rem));
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: none;
  z-index: 102;
  text-align: left;
}

@media (max-width: 480px) {
  .term-popover {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
    max-height: 60vh;
    overflow-y: auto;
  }
}

.page-content .term-popover img {
  width: 100%;
  border-radius: 0.25rem;
  display: block;
  margin: 0;
}

.term-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.term-ref:hover .term-popover,
.term-ref:focus .term-popover,
.term-ref.active .term-popover {
  display: block;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}


.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.5rem;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    pre.ascii, .shimmer, .status-dot { animation: none; }
  }


.dir-path {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin: 1rem 0;
}

.dir-prompt {
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}

.dir-text {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

.dir-path .copy-btn {
  position: static;
  flex-shrink: 0;
}



.callout {
  border-left: 3px solid var(--muted);
  background: var(--code-bg);
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

.callout-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: bold;
}

.callout-body {
  font-size: 0.9rem;
  line-height: 1.55;
}

.callout-tip {
  border-left-color: var(--accent);
}

.callout-tip .callout-label {
  color: var(--accent);
}

.callout-warning {
  border-left-color: #e0af68;
}

.callout-warning .callout-label {
  color: #e0af68;
}


.steps {
  counter-reset: step-counter;
  margin: 1.5rem 0;
}

.step {
  counter-increment: step-counter;
  margin-bottom: 1.1rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.step-marker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: bold;
}

.step-marker::before {
  content: "[" counter(step-counter, decimal-leading-zero) "]";
}

.step-title {
  font-weight: bold;
  margin: 0;
}

.step-content {
  margin: 0;
  padding-left: 2.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.step-code {
  margin-left: 2.5rem;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}
