/* Personal homepage: cream paper, indigo accents, pixel display type. */

body.theme-reading {
    --bg: #ECEAE3;
    --s1: #F7F6F2;
    --s2: #E3E0D8;
    --tx: #191815;
    --mu: #5F5B54;
    --line: #DAD6CC;
    --cb: #3B35E6;
    --ink: #191815;
    --card: #F7F6F2;
    --pixel: "Silkscreen", "Pixelify Sans", ui-monospace, monospace;
    --pixel-lower: "Pixelify Sans", "Silkscreen", ui-monospace, monospace;
    background: var(--bg);
    color: var(--tx);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body.theme-reading h1,
body.theme-reading h2,
body.theme-reading h3 {
    font-family: "Bricolage Grotesque", Georgia, sans-serif;
    color: var(--tx);
    letter-spacing: -0.035em;
}

body.theme-reading h2 em,
body.theme-reading h1 em {
    font-family: var(--pixel-lower);
    font-style: normal;
    font-weight: 700;
    color: var(--cb);
    letter-spacing: 0;
}

.nk-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Nav */

body.theme-reading .nk-nav {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid transparent;
}

.nk-nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

body.theme-reading .nk-brand {
    font-family: var(--pixel);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--cb);
    text-decoration: none;
    margin-right: auto;
}

body.theme-reading .nk-links {
    display: flex;
    gap: 4px;
}

body.theme-reading .nk-links a {
    color: var(--tx);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    background: transparent;
}

body.theme-reading .nk-links a:hover,
body.theme-reading .nk-links a.is-active {
    background: transparent;
    color: var(--cb);
}

/* Buttons */

.nk-subscribe,
.nk-btn {
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: filter 160ms ease, background-color 160ms ease;
}

.nk-subscribe,
.nk-btn-fill {
    background: var(--cb);
    color: #fff;
}

.nk-subscribe:hover,
.nk-btn-fill:hover {
    filter: brightness(1.1);
    color: #fff;
}

.nk-btn-soft {
    background: var(--s2);
    color: var(--tx);
}

.nk-btn-soft:hover {
    background: #D8D4CA;
    color: var(--tx);
}

/* Page frame */

.nk-home {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

.nk-alert {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--s1);
    color: #9f2d2d;
}

/* Hero */

.nk-hero {
    --accent: #4338E8;
    --ink: #2B2924;
    --bg: #ECE9DD;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
    padding-top: 28px;
    padding-bottom: 28px;
    color: var(--ink);
    font-family: "Instrument Sans", "IBM Plex Sans", sans-serif;
}

.nk-portrait {
    position: relative;
    width: 100%;
    height: 60vw;
    margin: 0;
}

.portrait {
    --x: 50%;
    --y: 36%;
    --r: 0px;
    --ring: 0;
    --fade: 1;
    --accent: var(--cb, #3B35E6);
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    cursor: default;
    overflow: hidden;
    border-radius: 8px;
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.p-dither {
    z-index: 1;
}

.portrait.is-reveal .p-dither {
    animation: nk-scan var(--reveal, 1.2s) ease-out both;
}

.p-photo {
    z-index: 2;
    opacity: var(--fade);
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0, #000 55%, transparent 100%);
    mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0, #000 55%, transparent 100%);
}

.portrait::before {
    content: "";
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 3;
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: var(--ring);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.portrait.is-reveal::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    height: 2px;
    background: var(--accent);
    pointer-events: none;
    animation: nk-scan-line var(--reveal, 1.2s) ease-out both;
}

@keyframes nk-scan {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes nk-scan-line {
    0% { top: 0; opacity: 1; }
    82% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.nk-portrait img.is-photo {
    aspect-ratio: 400 / 460;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
    mix-blend-mode: multiply;
}

.nk-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 4px 0 0;
}

body.theme-reading .nk-hero-copy h1 {
    margin: 0 0 18px;
    color: var(--ink);
    font-family: "Instrument Sans", "IBM Plex Sans", sans-serif;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.92;
}

.nk-hey {
    display: block;
    font-size: 92px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

body.theme-reading .nk-name {
    display: block;
    margin-top: 4px;
    font-family: "Pixelify Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(64px, 8vw, 150px);
    letter-spacing: 0.01em;
    line-height: 0.86;
    color: var(--accent, #4338E8);
}

.nk-role {
    margin: 2px 0 10px;
    color: #2B2924;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.nk-tagline {
    max-width: 640px;
    margin: 0 0 18px;
    color: #5C5850;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.nk-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 6px 12px 6px 6px;
    border: 1px solid #E4E0D4;
    border-radius: 999px;
    background: #F7F6F2;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.nk-new-label {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent, #4338E8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nk-new-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nk-hero .nk-btn-fill {
    background: var(--accent, #4338E8);
    color: #fff;
}

.nk-hero .nk-btn-line,
.nk-hero .nk-btn-soft {
    background: #E7E2D8;
    color: #2B2924;
}

.nk-hero .nk-btn-line {
    background: #fff;
    border: 1px solid #D9D4C8;
}

.nk-hero .nk-cta .nk-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nk-hero .nk-social a {
    font-size: 14px;
    color: #2B2924;
    background: #F7F6F2;
}

.nk-topic {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #F7F6F2;
    color: #2B2924;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(43, 41, 36, 0.16);
}

.nk-topic i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent, #4338E8);
}

.nk-topic-aws { top: 24%; right: 5%; transform: rotate(-6deg); }
.nk-topic-rag { top: 40%; right: 3%; transform: rotate(4deg); }
.nk-topic-mcp { top: 70%; right: 12%; transform: rotate(-3deg); }

.nk-hero-foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: auto;
}

.nk-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.nk-proof div {
    padding: 0 12px;
    border-left: 1px solid #E4E0D4;
}

.nk-proof div:first-child {
    padding-left: 0;
    border-left: 0;
}

.nk-proof strong {
    display: block;
    color: #2B2924;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.nk-proof span {
    display: block;
    margin-top: 6px;
    color: #5C5850;
    font-size: 13px;
    line-height: 1.3;
}

.nk-certs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.nk-cert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 88px;
    margin: 0;
    padding: 12px;
    border: 1px solid #E4E0D4;
    border-radius: 16px;
    background: #F7F6F2;
}

.nk-cert i {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #4338E8;
    color: #fff;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
}

.nk-cert p {
    margin: 0;
    min-width: 0;
}

.nk-cert strong {
    display: block;
    color: #2B2924;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.nk-cert span {
    display: block;
    margin-top: 2px;
    color: #5C5850;
    font-size: 12px;
    line-height: 1.35;
}

.nk-hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 28px;
}

.nk-hero-cards.is-single {
    grid-template-columns: 1fr;
}

.nk-latest,
.nk-hero-ask {
    display: flex;
    flex-direction: column;
    min-height: 178px;
    height: auto;
    padding: 14px 16px 16px;
    border-radius: 18px;
    text-decoration: none;
}

.nk-latest {
    background: #F7F6F2;
    border: 1px solid #E4E0D4;
    color: var(--ink);
}

.nk-hero-ask {
    background: var(--accent, #4338E8);
    color: #fff;
}

.nk-card-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nk-latest .nk-card-kicker {
    color: #4E4A43;
}

.nk-latest .nk-card-kicker time {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.nk-latest-body {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nk-sheet {
    display: grid;
    align-content: center;
    gap: 6px;
    flex: 0 0 96px;
    width: 96px;
    height: 112px;
    padding: 16px 14px;
    border: 1px solid #E4E0D4;
    border-radius: 8px;
    background: #fff;
}

.nk-sheet span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #E4E0D4;
}

.nk-sheet span:first-child { width: 46%; background: #D8D3C6; }
.nk-sheet span:nth-child(2) { width: 100%; }
.nk-sheet span:nth-child(3) { width: 72%; }

.nk-latest-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nk-latest-copy strong {
    color: #2B2924;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-latest-copy span {
    color: #4E4A43;
    font-size: 14px;
}

.nk-read {
    color: var(--accent, #4338E8) !important;
    font-weight: 700;
}

.nk-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.nk-online i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #86EFAC;
}

.nk-hero-ask-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 4px 4px 4px 14px;
    border-radius: 12px;
    background: #fff;
}

.nk-hero-ask-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #2B2924;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.nk-hero-ask-field input::placeholder {
    color: #5C5850;
}

.nk-hero-ask-field button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--accent, #4338E8);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.nk-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.nk-hero-chips a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.nk-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nk-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.nk-social a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--s1);
    color: var(--tx);
    font-size: 13px;
    text-decoration: none;
}

.nk-social svg {
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nk-social a:hover {
    border-color: var(--cb);
    color: var(--cb);
}

.nk-statbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 72px;
    color: #2B2924;
    font-size: 14px;
}

.nk-delivered,
.nk-statbar-counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
}

.nk-delivered span {
    color: #5C5850;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nk-statbar-counts {
    margin-left: auto;
}

.nk-statbar strong {
    color: var(--tx);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 16px;
    margin-right: 4px;
}

.nk-statbar-topics {
    margin-left: auto;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.nk-statbar-date {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
}

/* Sections */

.nk-section {
    margin-bottom: 72px;
}

.nk-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 22px;
}

body.theme-reading .nk-section-head h2,
body.theme-reading .nk-ask h2,
body.theme-reading .nk-about h2,
body.theme-reading .nk-news h2 {
    margin: 0 0 8px;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1;
    font-weight: 700;
}

.nk-section-head p {
    margin: 0;
    max-width: 26rem;
    color: var(--mu);
    font-size: 15px;
}

.nk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.theme-reading .nk-chips button {
    border: 1px solid var(--line);
    background: var(--s1);
    color: var(--tx);
    border-radius: 999px;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

body.theme-reading .nk-chips button.is-active {
    background: var(--tx);
    border-color: var(--tx);
    color: var(--s1);
}

/* Library cards */

.nk-docs,
.nk-tools {
    display: grid;
    gap: 16px;
}

body.theme-reading .nk-doc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 14px;
    background: var(--s1);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--tx);
    text-decoration: none;
    box-shadow: none;
}

body.theme-reading .nk-doc[hidden] {
    display: none;
}

.nk-thumb {
    position: relative;
    display: grid;
    place-items: end center;
    height: 168px;
    padding-top: 22px;
    border-radius: 12px;
    background: var(--s2);
    overflow: hidden;
    margin-bottom: 6px;
}

.nk-thumb-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--s1);
    color: var(--mu);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
}

.nk-page {
    width: 46%;
    height: 132px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 10px;
    background: #fff;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(25, 24, 21, 0.06);
    transition: transform 200ms ease;
}

.nk-doc:hover .nk-page {
    transform: translateY(-4px);
}

.nk-page-head {
    height: 10px;
    width: 64%;
    border-radius: 2px;
    background: var(--cb);
}

.nk-page.tone-mint .nk-page-head { background: #14A37F; }
.nk-page.tone-amber .nk-page-head { background: #E8862A; }

.nk-page-line {
    height: 4px;
    border-radius: 2px;
    background: #E9E6DF;
}

.nk-page-line-short { width: 62%; }

.nk-page-block {
    height: 18px;
    border-radius: 3px;
    background: #F1EFEA;
}

body.theme-reading .nk-doc h3 {
    margin: 2px 4px 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nk-doc h3 a {
    color: inherit;
    text-decoration: none;
}

.nk-doc-desc,
.nk-doc-meta {
    margin: 0 4px;
}

.nk-doc-desc {
    color: var(--mu);
    font-size: 14px;
    line-height: 1.45;
}

.nk-doc-meta {
    color: var(--mu);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
}

.nk-doc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: auto 4px 0;
    padding-top: 8px;
}

.nk-doc-actions .nk-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

body.theme-reading .nk-doc-soon {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    background: transparent;
    border: 1.5px dashed #C9C4B8;
}

.nk-doc-soon strong {
    font-family: "Bricolage Grotesque", Georgia, sans-serif;
    font-size: 18px;
}

.nk-doc-soon span {
    color: var(--mu);
    font-size: 13px;
    max-width: 14rem;
}

/* Tools */

body.theme-reading .nk-tool {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 176px;
    padding: 18px;
    border-radius: 18px;
    background: var(--s1);
    border: 1px solid var(--line);
    color: var(--tx);
    text-decoration: none;
    transition: border-color 160ms ease;
}

body.theme-reading .nk-tool:hover {
    border-color: var(--cb);
}

.nk-tool-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cb) 12%, var(--s1));
    color: var(--cb);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-weight: 600;
    font-size: 14px;
}

.nk-tool strong {
    font-family: "Bricolage Grotesque", Georgia, sans-serif;
    font-size: 19px;
}

.nk-tool-desc {
    color: var(--mu);
    font-size: 14px;
}

.nk-tool-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
}

.nk-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 14px 14px 14px 20px;
    border-radius: 16px;
    background: var(--s2);
}

.nk-source p {
    margin: 0;
    color: var(--mu);
    font-size: 14px;
}

.nk-source strong {
    color: var(--tx);
}

/* Ask panel */

.nk-ask {
    display: grid;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
    padding: 40px 36px;
    border-radius: 28px;
    background: var(--cb);
    color: #fff;
}

body.theme-reading .nk-ask h2 {
    color: #fff;
    font-size: clamp(36px, 4.6vw, 56px);
}

body.theme-reading .nk-ask h2 em {
    color: #C9C6FF;
}

.nk-ask-copy p {
    margin: 0;
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.82);
}

.nk-ask-card {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    color: var(--tx);
}

.nk-ask-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

body.theme-reading .nk-ask-field input,
body.theme-reading .nk-news-form input {
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.nk-ask-field input {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--tx);
    font: inherit;
    font-size: 14px;
    outline: none;
}

body.theme-reading .nk-ask-field button {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: var(--tx);
    color: #fff;
    cursor: pointer;
}

.nk-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

body.theme-reading .nk-suggestions button {
    border: 1px solid var(--line);
    background: var(--s1);
    color: var(--tx);
    border-radius: 999px;
    min-height: 30px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}

.nk-ask-results:not(:empty) {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.nk-ask-results p {
    margin: 0 0 8px;
    color: var(--mu);
    font-size: 13px;
}

.nk-ask-hits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nk-ask-hits a {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tx);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* About + newsletter */

.nk-split {
    display: grid;
    gap: 16px;
    margin-bottom: 64px;
}

.nk-about,
.nk-news {
    padding: 28px;
    border-radius: 24px;
}

.nk-about {
    background: var(--s1);
    border: 1px solid var(--line);
}

.nk-about p {
    margin: 0;
    color: var(--mu);
    font-size: 15px;
    line-height: 1.6;
}

.nk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.nk-tags li {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 12px;
}

.nk-contact-wrap {
    margin-top: 18px;
}

.nk-contact-wrap summary {
    cursor: pointer;
    color: var(--cb);
    font-weight: 600;
    font-size: 14px;
}

.nk-contact {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.nk-contact input,
.nk-contact textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--tx);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
}

.nk-contact .nk-btn {
    justify-self: start;
}

.nk-news {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #181714;
    color: #F4F2EC;
}

body.theme-reading .nk-news h2 {
    color: #F4F2EC;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.1;
}

.nk-news p {
    margin: 0 0 18px;
    color: #A9A49A;
    font-size: 14px;
}

.nk-news-form {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    background: #2A2925;
}

.nk-news-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #F4F2EC;
    font: inherit;
    font-size: 14px;
    padding: 0 10px;
    outline: none;
}

body.theme-reading .nk-news-form button {
    border: 0;
    border-radius: 9px;
    min-height: 38px;
    padding: 8px 16px;
    background: var(--cb);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

body.theme-reading .nk-text-btn {
    align-self: flex-start;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #A9A49A;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

/* Footer */

body.theme-reading .site-footer {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
    padding: 22px 0 0;
    box-shadow: none;
}

body.theme-reading .site-footer-inner {
    max-width: none;
    padding: 0;
}

body.theme-reading .site-footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

body.theme-reading .site-footer-top > div:first-child p,
body.theme-reading .site-footer-col-title,
body.theme-reading .site-footer-col:last-child,
body.theme-reading .site-footer-tagline,
body.theme-reading .site-footer-sub {
    display: none;
}

body.theme-reading .site-footer-brand {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tx);
}

body.theme-reading .site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

body.theme-reading .site-footer a {
    color: var(--mu);
    font-size: 13px;
    text-decoration: none;
}

body.theme-reading .site-footer a:hover {
    color: var(--tx);
}

body.theme-reading .site-footer-copy {
    margin: 10px 0 0;
    color: var(--mu);
    font-size: 12px;
}

body.theme-reading .site-footer-copy strong {
    color: var(--mu);
    font-weight: 500;
}

body.theme-reading:not(.nk-personal) > .site-footer,
body.theme-reading:not(.nk-personal) > .nk-pixel-stage {
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
}

body.theme-reading:not(.nk-personal) > .site-footer {
    padding-top: 22px;
}

.nk-home {
    container-type: inline-size;
}

.nk-pixel {
    margin: 36px 0 0;
    font-family: var(--pixel);
    font-weight: 700;
    font-size: 19.2cqw;
    line-height: 0.82;
    letter-spacing: -0.02em;
    color: var(--cb);
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}

/* Layout breakpoints */

@media (min-width: 720px) {
    .nk-docs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nk-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .nk-hero {
        grid-template-columns: 560px minmax(0, 1fr);
        gap: 48px;
        align-items: start;
        min-height: 740px;
        height: auto;
    }

    .nk-portrait {
        width: 560px;
        height: 740px;
    }

    .nk-hero-copy {
        min-height: 740px;
        height: auto;
    }

    .nk-hero-cards,
    .nk-hero-cards.is-single {
        grid-template-columns: 1fr 1fr;
        margin-top: auto;
    }

    .nk-hero-cards.is-single {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 960px) {

    .nk-docs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nk-tools {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nk-ask {
        grid-template-columns: 1fr 1.05fr;
        padding: 48px;
    }

    .nk-split {
        grid-template-columns: 1.15fr 1fr;
    }
}

@media (max-width: 1099px) {
    .nk-topic {
        display: none;
    }

    .nk-hero-cards {
        grid-template-columns: 1fr;
    }

    .nk-latest,
    .nk-hero-ask {
        height: auto;
    }
}

@media (max-width: 959px) {
    .nk-hero {
        text-align: left;
    }

    .nk-statbar-topics {
        margin-left: 0;
    }
}

@media (max-width: 699px) {
    .nk-hey {
        font-size: 64px;
    }

    .nk-name,
    body.theme-reading .nk-name {
        font-size: 64px;
    }

    .nk-cta {
        width: 100%;
        flex-direction: column;
    }

    .nk-cta .nk-btn {
        width: 100%;
    }

    .nk-proof {
        grid-template-columns: 1fr 1fr;
        gap: 16px 0;
    }

    .nk-proof div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .nk-certs {
        grid-template-columns: 1fr;
    }

    .nk-statbar-counts {
        margin-left: 0;
    }
}

@media (max-width: 799px) {
    body.theme-reading .nk-links {
        display: none;
    }

    .nk-nav-inner {
        position: relative;
        gap: 10px;
    }

    body.theme-reading .site-nav.is-open.nk-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 20px 16px;
        background: var(--s1);
        border-bottom: 1px solid var(--line);
    }

    body.theme-reading .site-nav-toggle {
        order: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        min-height: 42px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--s1);
    }

    body.theme-reading .site-nav-toggle span {
        display: block;
        width: 16px;
        height: 2px;
        margin: 0 auto;
        background: var(--tx);
    }

    .nk-home,
    .nk-nav-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nk-ask {
        padding: 28px 20px;
    }
}

@media (min-width: 800px) {
    body.theme-reading .site-nav-toggle {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .nk-topic {
        animation: nk-topic-float 6s ease-in-out infinite;
    }

    .nk-topic-rag { animation-delay: -2s; }
    .nk-topic-mcp { animation-delay: -4s; }
}

@keyframes nk-topic-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -4px; }
}

@media (prefers-reduced-motion: reduce) {
    .portrait.is-reveal .p-dither,
    .portrait.is-reveal::after {
        animation: none;
        clip-path: none;
    }

    .nk-page,
    .nk-btn,
    .nk-subscribe,
    .nk-tool {
        transition: none;
    }

    .nk-doc:hover .nk-page {
        transform: none;
    }
}
