/* knz.dev — claude-dark, the chosen palette. No other themes on this tree. */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/jetbrains-mono-latin-400-normal.14425ba9.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('/assets/jetbrains-mono-latin-500-normal.cb182fee.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;
}

:root {
  color-scheme: dark;
  --bg: #141413;
  --fg: #faf9f5;
  --dim: #b0aea5;
  --faint: #87867f;
  --link: #d97757;
  --warn: #b0aea5;
  --logo: #faf9f5;
  --select-bg: rgba(217, 119, 87, 0.35);
  --select-fg: #faf9f5;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --mono-art: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable both-edges;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 1.5rem 12vh;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--link);
}

::selection {
  background: var(--select-bg);
  color: var(--select-fg);
}
a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page {
  width: min(640px, 100%);
  min-width: 0;
}

.page--compact {
  width: fit-content;
  max-width: min(640px, 100%);
}

.terminal-header {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.terminal-header .prompt {
  width: 0;
  min-width: 100%;
  overflow-wrap: anywhere;
}

pre.logo {
  margin: 0 0 1.6rem;
  font-family: var(--mono-art);
  font-size: 0.62rem;
  line-height: 1.1;
  white-space: pre;
  overflow-x: auto;
  color: var(--logo);
}

pre.logo::-webkit-scrollbar {
  height: 0;
}

.prompt {
  color: var(--faint);
  margin: 0 0 1.4rem;
  font-size: 0.82rem;
}

.prompt b {
  color: var(--fg);
  font-weight: 400;
}

#out,
.listing {
  margin: 0;
  font: inherit;
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.85;
}

.listing .row {
  display: grid;
  grid-template-columns: 10ch 8ch minmax(0, 1fr);
  column-gap: 2ch;
  padding: 0.15rem 0;
  align-items: baseline;
}

.blog-listing {
  display: grid;
  grid-template-columns: 10ch fit-content(28ch) minmax(0, 1fr);
  column-gap: 2ch;
}

.blog-listing .row {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

.listing .name,
.listing .summary {
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing .permissions {
  white-space: nowrap;
}

.empty {
  color: var(--faint);
  font-size: 0.82rem;
}

.listing .name {
  color: var(--link);
  justify-self: start;
  max-width: 100%;
}
.listing a:hover .name,
.listing a:focus-visible .name {
  text-decoration: underline;
  text-decoration-color: var(--link);
  text-underline-offset: 3px;
}
.listing .dim {
  color: var(--faint);
}

.listing a {
  color: inherit;
}

.listing a:focus-visible {
  text-decoration: none;
}

.listing a:focus-visible .name {
  text-decoration-thickness: 2px;
}

.meta {
  margin: 0 0 1.4rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.back {
  margin: 2.4rem 0 0;
  font-size: 0.82rem;
}

.back a {
  color: var(--link);
}
.back a:hover {
  text-decoration: underline;
}

.prose {
  font-size: 0.92rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose h1 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1.2rem;
  line-height: 1.35;
}

.prose h2,
.prose h3 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  margin: 1.8rem 0 0.6rem;
  line-height: 1.5;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li {
  margin: 0 0 0.3rem;
}

.prose a {
  color: var(--link);
}
.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  font-weight: 500;
}

.prose code {
  font: inherit;
  color: var(--fg);
  background: rgba(250, 249, 245, 0.06);
  padding: 0.08em 0.32em;
}

.prose pre {
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  background: rgba(250, 249, 245, 0.05);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.55;
}

.prose pre code {
  background: none;
  padding: 0;
}

@media (max-width: 560px) {
  html {
    scrollbar-gutter: auto;
  }
  body {
    padding: 3rem 1rem 4rem;
  }
  pre.logo {
    font-size: clamp(0.48rem, 2vw, 0.62rem);
  }
  .listing .row {
    grid-template-columns: 10ch 8ch minmax(0, 1fr);
    column-gap: 1ch;
    padding: 0.2rem 0;
  }
  #out .name,
  #out .summary {
    white-space: nowrap;
  }
  .blog-listing {
    grid-template-columns: 10ch minmax(0, 1fr);
    column-gap: 1ch;
  }
  .blog-listing .row {
    grid-template-columns: subgrid;
  }
  .blog-listing .name {
    grid-column: 2;
  }
  .blog-listing .summary {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
