/* ---------- self-hosted fonts (JetBrains Mono, Inter) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =====================================================================
   Shared stylesheet for every theoboursy.fr site.
   - Global: design tokens, base, header chrome, theme toggle, burger,
     status bar — identical across all sites.
   - Per-site: divergent tokens and page components are scoped under a
     body class: .site-www / .site-ascii / .site-app.
   ===================================================================== */

/* ---------- design tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --surface: #eefaff;
  --chrome: #eef4f7;
  --ink: #17212b;
  --heading: #101820;
  --muted: #526575;
  --faint: #8a9aa4;
  --go: #00add8;
  --go-dark: #007d9c;
  --accent-text: #007d9c;
  --line: #c9e9f2;
  --line-strong: #c6d8e0;
  --soft: #eaf8fd;
  --good: #1a8c5a;
  --bad: #c2185b;
  --syn-comment: #7a8c97;
  --syn-key: #c2185b;
  --syn-string: #1a8c5a;
  --syn-fn: #6f42c1;
  --topbar-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 54px rgba(0, 91, 116, 0.12);
  --shadow-sm: 0 8px 22px rgba(0, 91, 116, 0.08);
  --card-shadow: 0 10px 26px rgba(0, 91, 116, 0.06);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1016;
  --card: #121b24;
  --surface: #0f1720;
  --chrome: #0f1720;
  --ink: #c7d3dc;
  --heading: #eaf2f7;
  --muted: #8ea0ac;
  --faint: #5b6c78;
  --go: #12c2ef;
  --go-dark: #0b4d5f;
  --accent-text: #4fd3f4;
  --line: #223543;
  --line-strong: #2c4150;
  --soft: #10222b;
  --good: #3ecb8b;
  --bad: #ff77a0;
  --syn-comment: #7f93a0;
  --syn-key: #ff77a0;
  --syn-string: #3ecb8b;
  --syn-fn: #b892ff;
  --topbar-bg: rgba(11, 16, 22, 0.82);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.4);
  --card-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* per-site token deltas */
.site-www {
  --surface: #ffffff;
  --ink: #0f1f29;
  --muted: #5b6c78;
  --line: #dbe7ed;
  --topbar-bg: rgba(244, 248, 250, 0.82);
  --shadow: 0 18px 50px rgba(0, 91, 116, 0.12);
}

:root[data-theme="dark"] .site-www {
  --surface: #121b24;
  --ink: #dfe8ee;
  --muted: #93a4b0;
  --line: #223543;
  --topbar-bg: rgba(11, 16, 22, 0.82);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .site-ascii {
  --ink: #dfe8ee;
  --muted: #93a4b0;
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 40px;
  background:
    linear-gradient(180deg, rgba(0, 173, 216, 0.24), rgba(0, 173, 216, 0.08) 430px, transparent 760px),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
}

.grid,
.shell-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* ---------- top bar (shared chrome) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  height: 52px;
  margin: 0 auto;
}

.site-www .topbar-inner {
  width: min(1080px, calc(100% - 32px));
}

.site-ascii .topbar-inner {
  width: min(1180px, calc(100% - 32px));
}

.brand {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-prompt,
.site-www .prompt {
  color: var(--accent-text);
}

.cursor {
  color: var(--go);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.topnav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
}

.topnav a::before {
  content: "/";
  margin-right: 2px;
  color: var(--faint);
}

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

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--accent-text);
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.theme-toggle:hover {
  border-color: var(--go);
  color: var(--go);
}

.theme-toggle .icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-light {
  display: inline;
}

/* ---------- burger (mobile nav) ---------- */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--accent-text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.nav-burger:hover {
  border-color: var(--go);
  color: var(--go);
}

.nav-burger .ico-close {
  display: none;
}

.nav-burger.open .ico-open {
  display: none;
}

.nav-burger.open .ico-close {
  display: inline;
}

@media (max-width: 640px) {
  .nav-burger {
    display: inline-flex;
  }

  .topnav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 190px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .topnav:not(.open) {
    display: none;
  }
}

/* ---------- status bar (shared chrome) ---------- */
.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0;
  height: 26px;
  padding: 0 14px;
  background: var(--go-dark);
  color: #eaf8fd;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.statusbar .seg {
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.92;
}

.statusbar .seg.branch {
  background: rgba(0, 0, 0, 0.14);
  font-weight: 700;
}

.statusbar .git {
  margin-right: 4px;
}

.statusbar .seg.right {
  margin-left: auto;
  border-right: none;
}

.statusbar a.seg {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.statusbar a.seg:hover,
.statusbar a.seg:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

/* shared: eyebrow pill (www overrides below), hero dot, main */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 173, 216, 0.34);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 4px rgba(0, 173, 216, 0.15);
}

main {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 40px;
}

.stack li::before {
  content: "#";
  margin-right: 1px;
  color: var(--faint);
}

/* =====================================================================
   www  (portfolio homepage — IDE window style)
   ===================================================================== */
.site-www main {
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  padding: 44px 0 24px;
}

.site-www .window {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-www .window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.site-www .window-title {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
}

.site-www .traffic {
  display: inline-flex;
  gap: 7px;
}

.site-www .traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.site-www .traffic.sm i {
  width: 10px;
  height: 10px;
}

.site-www .traffic .r {
  background: #ff5f56;
}
.site-www .traffic .y {
  background: #ffbd2e;
}
.site-www .traffic .g {
  background: #27c93f;
}

.site-www .window-body {
  padding: clamp(26px, 5vw, 52px);
}

.site-www .intro {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.site-www .profile-picture {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.site-www .eyebrow {
  gap: 9px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--syn-comment);
}

.site-www h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-www .lead {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.7;
}

.site-www .comment {
  color: var(--syn-comment);
}

.site-www .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.site-www .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.site-www .button:hover {
  transform: translateY(-1px);
  border-color: var(--go);
  box-shadow: var(--shadow-sm);
}

.site-www .button.primary {
  background: var(--go);
  border-color: var(--go-dark);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 173, 216, 0.28);
}

.site-www .button.primary:hover {
  background: var(--go-dark);
}

:root[data-theme="dark"] .site-www .button.primary {
  color: #05141b;
}

.site-www .button .sigil {
  opacity: 0.85;
  font-weight: 800;
}

.site-www .button.primary .sigil {
  color: #d6f7ff;
}

.site-www .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.site-www .stack li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-text);
  background: var(--soft);
  border: 1px solid rgba(0, 173, 216, 0.28);
  border-radius: 6px;
  padding: 4px 9px;
}

.site-www .section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 44px 0 16px;
  font-family: var(--mono);
}

.site-www .section-title .hash {
  color: var(--syn-key);
  font-weight: 700;
}

.site-www .section-title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-www .section-title .count {
  color: var(--faint);
  font-size: 0.86rem;
}

.site-www .projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-www .project-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.site-www .project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.site-www .card-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.site-www .card-bar .file {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.site-www .card-bar .tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--go-dark);
  background: var(--soft);
  border: 1px solid rgba(0, 173, 216, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
}

/* keep tags grouped on the right: only the first one pushes off the filename */
.site-www .card-bar .file + .tag {
  margin-left: auto;
}

/* per-technology accents */
.site-www .card-bar .tag.go {
  color: #007d9c;
  background: #e6f8fd;
  border-color: rgba(0, 173, 216, 0.45);
}

.site-www .card-bar .tag.gcp {
  color: #188038;
  background: #e7f5ec;
  border-color: rgba(52, 168, 83, 0.45);
}

.site-www .card-bar .tag.scaleway {
  color: #6d28d9;
  background: #f3ebfe;
  border-color: rgba(124, 58, 237, 0.45);
}

.site-www .card-bar .tag.aws {
  color: #c05600;
  background: #fff1e3;
  border-color: rgba(255, 153, 0, 0.5);
}

.site-www .card-bar .tag.docker {
  color: #1d63ed;
  background: #e9f1fe;
  border-color: rgba(29, 99, 237, 0.45);
}

.site-www .card-bar .tag.django {
  color: #0c4b33;
  background: #e4f0ea;
  border-color: rgba(12, 75, 51, 0.4);
}

.site-www .card-bar .tag.python {
  color: #8a6d00;
  background: #fbf4d1;
  border-color: rgba(214, 180, 40, 0.55);
}

.site-www .card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.site-www .card-body h3 {
  margin: 2px 0;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
}

.site-www .desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-www .mono {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--syn-string);
}

.site-www .key {
  color: var(--syn-key);
}

.site-www .card-body .actions {
  margin-top: 6px;
}

@media (max-width: 820px) {
  .site-www main {
    width: min(100% - 22px, 680px);
    padding-top: 28px;
  }

  .site-www .intro {
    grid-template-columns: 1fr;
  }

  .site-www .profile-picture {
    width: min(160px, 100%);
  }

  .site-www .projects {
    grid-template-columns: 1fr;
  }

  .site-www .topnav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  /* on phones the filename + up to 3 tags overflow the card bar:
     drop the decorative filename and let the tags sit on the left */
  .site-www .card-bar .file {
    display: none;
  }

  .site-www .card-bar .file + .tag {
    margin-left: 0;
  }
}

/* =====================================================================
   ascii  (img2ascii — terminal style)
   ===================================================================== */
.site-ascii main {
  width: min(1180px, calc(100% - 32px));
}

.site-ascii .hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
  min-height: min(700px, calc(100vh - 96px));
}

.site-ascii h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--heading);
}

.site-ascii .lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.62;
}

.site-ascii .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.site-ascii .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--go);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 173, 216, 0.24);
}

.site-ascii .terminal {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.site-ascii .terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.site-ascii .lights {
  display: flex;
  gap: 7px;
}

.site-ascii .lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.site-ascii .lights span:nth-child(1) {
  background: #ff5f56;
}

.site-ascii .lights span:nth-child(2) {
  background: #ffbd2e;
}

.site-ascii .lights span:nth-child(3) {
  background: #27c93f;
}

.site-ascii pre {
  overflow: auto;
  margin: 0;
  padding: 8px 18px 20px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.48rem, 0.66vw, 0.62rem);
  line-height: 1.08;
}

.site-ascii .terminal-body {
  overflow: auto;
  max-height: 660px;
}

.site-ascii .prompt {
  padding: 18px 18px 6px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.55;
}

.site-ascii .prompt-muted {
  color: var(--muted);
}

.site-ascii .prompt-user {
  color: var(--accent-text);
}

.site-ascii .prompt-command {
  color: var(--heading);
}

.site-ascii .prompt-caret {
  color: var(--go);
}

.site-ascii .install {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.site-ascii .install p {
  margin: 0;
  color: var(--muted);
}

.site-ascii .install h2 {
  margin: 0;
  font-size: 1.08rem;
}

.site-ascii .commands {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.site-ascii .command {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
}

.site-ascii .command span {
  display: block;
  padding: 10px 12px 0;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-ascii code {
  display: block;
  padding: 10px 12px 12px;
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 880px) {
  .site-ascii main {
    width: min(100% - 22px, 680px);
    padding-top: 28px;
  }

  .site-ascii .hero,
  .site-ascii .commands {
    grid-template-columns: 1fr;
  }

  .site-ascii .hero {
    min-height: auto;
  }

  .site-ascii .terminal {
    margin-top: 4px;
  }

  .site-ascii pre {
    max-height: 440px;
    font-size: 0.43rem;
  }

  .site-ascii .prompt {
    font-size: 0.78rem;
  }

  .site-ascii .topbar-inner {
    width: min(100% - 22px, 680px);
  }

  .site-ascii .topnav {
    gap: 14px;
  }
}

/* =====================================================================
   app  (portfolio / loadtest / monitoring / dockeronline / gopher —
         card board style)
   ===================================================================== */
.site-app .hero {
  padding: 8px 0 26px;
}

.site-app h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
  color: var(--heading);
}

.site-app .lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.62;
}

.site-app .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.site-app .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--go);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 173, 216, 0.24);
  transition: transform 0.12s ease, background 0.12s ease;
}

.site-app .button:hover {
  transform: translateY(-1px);
  background: var(--go-dark);
}

:root[data-theme="dark"] .site-app .button {
  color: #05141b;
}

:root[data-theme="dark"] .site-app .button:hover {
  color: #eaf8fd;
}

.site-app .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.site-app .stack li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-text);
  background: var(--card);
  border: 1px solid rgba(0, 173, 216, 0.28);
  border-radius: 6px;
  padding: 4px 9px;
}

.site-app .board {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.site-app .grid3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-app .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.site-app .card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 173, 216, 0.55);
  box-shadow: var(--shadow);
}

.site-app .card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-app .card-top .tab {
  position: relative;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-text);
}

.site-app .card-top .tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--go);
}

.site-app .card-top .badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--go);
  border-radius: 999px;
  padding: 3px 9px;
}

:root[data-theme="dark"] .site-app .card-top .badge {
  color: #05141b;
}

.site-app .card-body {
  flex: 1;
  padding: clamp(18px, 3vw, 26px);
}

.site-app .card-body h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.18;
  color: var(--heading);
}

.site-app .card-body h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.25;
  color: var(--heading);
}

.site-app .card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.66;
}

.site-app .card-body p:last-child {
  margin-bottom: 0;
}

.site-app .card-body strong {
  color: var(--accent-text);
}

.site-app .feature .card-body p {
  max-width: 74ch;
}

.site-app .chips {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-app .chips li {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--good);
  background: rgba(26, 140, 90, 0.08);
  border: 1px solid rgba(26, 140, 90, 0.28);
  border-radius: 6px;
  padding: 4px 8px;
}

:root[data-theme="dark"] .site-app .chips li {
  background: rgba(62, 203, 139, 0.1);
  border-color: rgba(62, 203, 139, 0.32);
}

.site-app code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent-text);
  background: rgba(0, 173, 216, 0.1);
  border: 1px solid rgba(0, 173, 216, 0.22);
  border-radius: 5px;
  padding: 1px 5px;
}

.site-app .ledger {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.site-app .ledger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-family: var(--mono);
}

.site-app .ledger-row.bad {
  border-color: rgba(194, 24, 91, 0.4);
}

.site-app .ledger-row.good {
  border-color: rgba(26, 140, 90, 0.45);
}

.site-app .ledger-label {
  font-size: 0.9rem;
  color: var(--ink);
}

.site-app .ledger-value {
  font-size: 0.9rem;
  font-weight: 700;
}

.site-app .ledger-row.bad .ledger-value {
  color: var(--bad);
}

.site-app .ledger-row.good .ledger-value {
  color: var(--good);
}

.site-app .snippet {
  overflow: auto;
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid #152b38;
  border-radius: 8px;
  background: #050b10;
}

.site-app .snippet code {
  display: block;
  color: #d8f6ff;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .site-app .grid3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-app main,
  .site-app .topbar-inner {
    width: min(100% - 22px, 680px);
  }

  .site-app main {
    padding-top: 28px;
  }

  .site-app .ledger-row {
    justify-content: flex-start;
  }

  .site-app .topnav {
    gap: 16px;
  }
}

/* ---------- legal notice page ---------- */
.window-body.legal {
  max-width: 760px;
  line-height: 1.65;
}

.window-body.legal h1 {
  margin: 6px 0 18px;
}

.window-body.legal h2 {
  margin: 28px 0 8px;
  font-family: var(--mono);
  font-size: 0.98rem;
  color: var(--accent-text);
}

.window-body.legal p {
  color: var(--ink);
  margin: 8px 0;
}

.window-body.legal p.comment {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--syn-comment);
  white-space: pre-line;
}

.window-body.legal code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent-text);
}

.window-body.legal a {
  color: var(--accent-text);
}

.window-body.legal .legal-contact {
  list-style: none;
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-family: var(--mono);
  font-size: 0.9rem;
  width: fit-content;
  max-width: 100%;
}

.window-body.legal .legal-contact li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
}

.window-body.legal .legal-contact .k {
  color: var(--syn-key);
  min-width: 60px;
}

.window-body.legal .legal-contact .arrow {
  color: var(--faint);
}

.window-body.legal .legal-contact a {
  text-decoration: none;
}

.window-body.legal .legal-contact a:hover {
  text-decoration: underline;
}

.window-body.legal .actions {
  margin-top: 26px;
}