@charset "UTF-8";
/* ==========================================================================
   blog de mitsuakki. terminal-pro theme
   Reverse engineering blog by Alexis M. Daugé (@mitsuakki)

   Dark. Monospace-heavy. Code-first. No JS. No trackers.
   ========================================================================== */
/* --- CSS Variables --------------------------------------------- */
:root {
  /* Palette: GitHub-dark inspired, tuned for readability */
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-highlight: #1c2128;
  --bg-overlay: #21262d;
  --fg: #c9d1d9;
  --fg-dim: #8b949e;
  --fg-muted: #6e7681;
  --accent: #58a6ff;
  --accent-emph: #79c0ff;
  --green: #3fb950;
  --green-dim: #2ea043;
  --yellow: #d2991d;
  --orange: #db6d28;
  --red: #f85149;
  --purple: #a371f7;
  --pink: #db61a2;
  --cyan: #39c5cf;
  --border: #30363d;
  --border-light: #21262d;
  /* Semantic */
  --info: var(--accent);
  --warn: var(--yellow);
  --err: var(--red);
  --ok: var(--green);
  --note: var(--purple);
  /* Typography */
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code",
                     "SF Mono", "Consolas", "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
                     Helvetica, Arial, sans-serif;
  /* Spacing */
  --content-width: 820px;
  --content-pad: 1.5rem;
  --radius: 6px;
  /* Transitions */
  --ease: 0.2s ease;
}

/* --- Reset & Base ---------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Selection ------------------------------------------------- */
::selection {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}

/* --- Scrollbar ------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-muted);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

/* --- Layout ---------------------------------------------------- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--content-pad) 1.25rem 3rem;
}

/* --- Navigation ------------------------------------------------ */
.top-nav {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  align-items: baseline;
}

.top-nav a {
  color: var(--fg-dim);
  text-decoration: none;
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

/* --- Site Header ----------------------------------------------- */
.site-header {
  margin-bottom: 3rem;
  padding: 1rem 0;
}

/* --- Profile Block (avatar + text) ----------------------------- */
.profile-block {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  image-rendering: auto;
}

.profile-text {
  min-width: 0;
}

.profile-text h1 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  border-bottom: none;
  padding-bottom: 0;
}

.profile-text h1 + p {
  margin-bottom: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.tagline {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* --- Post List ------------------------------------------------- */
.post-list h2 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-transform: lowercase;
}

.post-list h2::before {
  content: "$ ls ";
  color: var(--green);
  font-weight: 400;
}

.post-list ul {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-entry {
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--ease);
}

.post-entry:last-child {
  border-bottom: none;
}

.post-entry:hover {
  background: var(--bg-highlight);
}

.post-date {
  color: var(--fg-muted);
  font-size: 0.78rem;
  min-width: 5.5rem;
  flex-shrink: 0;
}

.post-entry a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ease);
}

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

.post-entry .post-tags {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

/* --- Post Article ---------------------------------------------- */
.post {
  margin-bottom: 2rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: #f0f6fc;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-dim);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.post-content {
  margin-bottom: 3rem;
}

/* --- Typography ------------------------------------------------ */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-emph);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--fg);
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
  scroll-margin-top: 1rem;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

h3 {
  font-size: 1.1rem;
  color: #e6edf3;
}

h4 {
  font-size: 1rem;
  color: var(--fg-dim);
}

h5 {
  font-size: 0.9rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h6 {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* Auto-anchor on headings */
h2[id], h3[id], h4[id], h5[id], h6[id] {
  position: relative;
}

h2[id]:hover::after,
h3[id]:hover::after,
h4[id]:hover::after,
h5[id]:hover::after {
  content: "#";
  position: absolute;
  right: -1.2em;
  color: var(--fg-muted);
  font-size: 0.8em;
  top: 50%;
  transform: translateY(-50%);
}

p {
  margin-bottom: 1rem;
}

strong, b {
  color: #f0f6fc;
  font-weight: 600;
}

em, i {
  color: #e6edf3;
}

small {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

mark {
  background: rgba(210, 153, 29, 0.3);
  color: var(--fg);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

del {
  color: var(--fg-muted);
  text-decoration-color: var(--red);
}

ins {
  color: var(--green);
  text-decoration-color: var(--green);
}

abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
  cursor: help;
}

/* --- Lists ----------------------------------------------------- */
ul, ol {
  margin: 0.75rem 0 0.75rem 1.5rem;
}

li {
  margin-bottom: 0.2rem;
}

li::marker {
  color: var(--fg-muted);
}

ul ul, ol ol, ul ol, ol ul {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

/* Definition lists */
dl {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

dt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.875rem;
}

dd {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.9rem;
}

/* --- Blockquotes ----------------------------------------------- */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1rem;
  margin: 1.25rem 0;
  color: var(--fg-dim);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote strong {
  color: var(--fg);
}

/* --- Code ------------------------------------------------------ */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-highlight);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  color: var(--orange);
  word-break: break-word;
}

a code {
  color: var(--accent);
}

pre {
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.825rem;
  line-height: 1.55;
  tab-size: 4;
  -moz-tab-size: 4;
  text-align: left;
}

pre code {
  background: none;
  padding: 0;
  color: var(--fg);
  font-size: inherit;
  border-radius: 0;
}

/* Inline code in headings */
h1 code, h2 code, h3 code, h4 code {
  font-size: 0.9em;
  background: var(--bg-overlay);
}

/* Code block with language label */
pre[data-lang] {
  position: relative;
  padding-top: 2.2rem;
}

pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.2rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Inline semantic ------------------------------------------- */
/* Keyboard */
kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0.15em 0.5em;
  color: var(--fg-dim);
  box-shadow: 0 1px 0 var(--border);
  white-space: nowrap;
}

/* --- Tables ---------------------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

thead {
  background: var(--bg-alt);
}

th, td {
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.85rem;
  text-align: left;
}

th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

tbody tr:hover {
  background: var(--bg-highlight);
}

/* --- Horizontal Rule ------------------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Images & Figures ------------------------------------------ */
.post-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  margin: 1.25rem auto;
}

figure {
  margin: 1.5rem 0;
  text-align: center;
}

figure img {
  margin-bottom: 0.5rem;
}

figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* --- Details / Summary ----------------------------------------- */
details {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

details[open] {
  padding-bottom: 1rem;
}

summary {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--accent);
  padding: 0.3rem 0;
  user-select: none;
}

summary:hover {
  color: var(--accent-emph);
}

summary::marker {
  color: var(--fg-muted);
  font-size: 0.8em;
}

details > *:last-child {
  margin-bottom: 0;
}

/* --- Footnotes ------------------------------------------------ */
.footnotes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.footnotes ol {
  padding-left: 1rem;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

.footnotes p {
  display: inline;
}

sup a {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--accent);
  text-decoration: none;
  padding: 0 0.1em;
}

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

/* --- Tags ------------------------------------------------------ */
.tag,
.post-tags code,
.post-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-overlay);
  color: var(--green);
  border: 1px solid var(--border);
  padding: 0.15em 0.55em;
  border-radius: 3px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease);
}

a.tag:hover {
  background: var(--bg-highlight);
  border-color: var(--green);
  text-decoration: none;
}

/* --- Post Navigation ------------------------------------------- */
.post-nav {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  gap: 1rem;
}

.post-nav a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color var(--ease);
  max-width: 48%;
}

.post-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-nav .next {
  margin-left: auto;
  text-align: right;
}

/* --- Status Badges --------------------------------------------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.badge-green {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.badge-red {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}

.badge-yellow {
  background: rgba(210, 153, 29, 0.15);
  color: var(--yellow);
}

.badge-blue {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent);
}

.badge-purple {
  background: rgba(163, 113, 247, 0.15);
  color: var(--purple);
}

/* --- Terminal Prompt ------------------------------------------- */
.prompt {
  color: var(--green);
  font-family: var(--font-mono);
  user-select: none;
}

/* --- Footer ---------------------------------------------------- */
footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

footer .prompt {
  color: var(--green);
  margin-right: 0.3rem;
}

footer a {
  color: var(--fg-dim);
}

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

.footer-links {
  display: flex;
  gap: 1rem;
}

/* --- Print Styles --------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .top-nav,
  .post-nav,
  footer,
  .post-tags {
    display: none;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  pre, code {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #000;
  }
  blockquote {
    border-left-color: #999;
    background: #f9f9f9;
  }
  .post-header h1 {
    color: #000;
  }
}
/* --- Responsive ------------------------------------------------ */
@media (max-width: 700px) {
  :root {
    --content-pad: 1rem;
  }
  html {
    font-size: 15px;
  }
  .container {
    padding: 1rem;
  }
  .profile-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .profile-avatar {
    width: 56px;
    height: 56px;
  }
  .top-nav {
    gap: 1rem;
    font-size: 0.8rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .post-entry {
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.6rem 0.8rem;
  }
  .post-entry .post-tags {
    margin-left: 0;
    margin-top: 0.3rem;
  }
  .post-header h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  h3 {
    font-size: 1rem;
  }
  pre {
    font-size: 0.75rem;
    padding: 0.8rem;
    margin: 1rem -0.5rem;
    border-radius: 0;
  }
  table {
    font-size: 0.8rem;
  }
  th, td {
    padding: 0.35rem 0.5rem;
  }
  .post-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .post-nav .next {
    text-align: left;
    margin-left: 0;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dt {
    margin-top: 0.5rem;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}
@media (max-width: 420px) {
  .post-meta {
    flex-direction: column;
    gap: 0.3rem;
  }
}
/* --- Reduced Motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ==========================================================================
   Rouge Syntax Highlighting. GitHub Dark inspired
   Classes below override Rouge's default spans. Keep in sync with _config.yml
   highlighter: rouge
   ========================================================================== */
/* --- Base highlight container ---------------------------------- */
.highlight {
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  overflow-x: auto;
}

.highlight pre {
  border: none;
  margin: 0;
  padding: 1rem 1.15rem;
  background: transparent;
}

.highlight code {
  background: transparent;
  padding: 0;
}

/* --- Tokens ---------------------------------------------------- */
/* Comments */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs,
.highlight .cp {
  color: var(--fg-muted);
  font-style: italic;
}

/* Keywords */
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: var(--red);
  font-weight: 500;
}

/* Keywords: pseudo, builtin */
.highlight .ow,
.highlight .nb {
  color: var(--red);
}

/* Names */
.highlight .n {
  color: var(--fg);
}

.highlight .na {
  color: var(--fg);
}

.highlight .nc {
  color: var(--purple);
  font-weight: 500;
}

.highlight .nd {
  color: var(--purple);
}

.highlight .ne {
  color: var(--red);
}

.highlight .nf {
  color: var(--purple);
}

.highlight .nl {
  color: var(--fg);
}

.highlight .nn {
  color: var(--fg);
}

.highlight .no {
  color: var(--orange);
}

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

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

.highlight .nx {
  color: var(--fg);
}

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

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

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

/* Strings */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr {
  color: var(--cyan);
}

/* String interpolation / escape */
.highlight .si {
  color: var(--pink);
}

.highlight .se {
  color: var(--orange);
}

/* Numbers */
.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: var(--orange);
}

/* Operators */
.highlight .o {
  color: var(--fg);
}

.highlight .p {
  color: var(--fg-dim);
}

/* Preprocessor / directives */
.highlight .cp,
.highlight .cpf {
  color: var(--fg-muted);
  font-style: normal;
}

/* Generic */
.highlight .g {
  color: var(--fg);
}

.highlight .gd {
  color: var(--red);
  background: rgba(248, 81, 73, 0.1);
}

.highlight .gi {
  color: var(--green);
  background: rgba(63, 185, 80, 0.1);
}

.highlight .ge {
  font-style: italic;
}

.highlight .gr {
  color: var(--red);
}

.highlight .gh {
  color: var(--fg-dim);
  font-weight: 600;
}

.highlight .go {
  color: var(--fg-muted);
}

.highlight .gp {
  color: var(--fg-dim);
}

.highlight .gs {
  font-weight: 600;
}

.highlight .gu {
  color: var(--fg-dim);
}

.highlight .gt {
  color: var(--red);
}

/* Warnings / errors */
.highlight .w {
  color: var(--yellow);
}

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

/* Literals */
.highlight .l {
  color: var(--orange);
}

.highlight .ld {
  color: var(--cyan);
}

/* --- Line numbers ---------------------------------------------- */
.highlight .lineno {
  color: var(--fg-muted);
  user-select: none;
  padding-right: 0.75rem;
  border-right: 1px solid var(--border);
  margin-right: 0.75rem;
}

/* --- Multi-line string heredoc -------------------------------- */
.highlight .dl {
  color: var(--cyan);
}

/* --- RegExp ---------------------------------------------------- */
.highlight .sr {
  color: var(--pink);
}

/*# sourceMappingURL=style.css.map */