/* devakatalk — Ghost theme, v2 typography (2026-10-23).
   Identity kept from the WordPress site: mint background, Instrument Sans headings, black buttons.
   Reading text: Source Serif 4 (optical sizes), UI: Instrument Sans, code: JetBrains Mono. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-cyrillic-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-cyrillic-opsz-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-opsz-normal.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: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-opsz-normal.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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-cyrillic-ext-opsz-italic.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-cyrillic-opsz-italic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-opsz-italic.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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-opsz-italic.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: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.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: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/InstrumentSans-Italic-Variable.woff2") format("woff2"); }

:root {
    /* colour: mint ground from the old site, softened ink, one accent for links */
    --base: #e4efeb;
    --base-2: #f3faf7;          /* raised surfaces: code, tables, comments */
    --ink: #17201c;             /* body text, a touch softer than pure black */
    --ink-strong: #050806;      /* headings */
    --ink-2: #4a5550;           /* secondary text */
    --ink-3: #8c9893;           /* hints, rules */
    --line: rgba(23, 32, 28, .14);
    --accent: #0d6b55;          /* links (deep green that sits on the mint), 5.4:1 on --base */
    --accent-strong: #074536;   /* link hover */
    --accent-line: rgba(13, 107, 85, .45);
    --accent-soft: rgba(13, 107, 85, .14);
    --mark: #fff3b0;

    --font-text: var(--gh-font-body, "Source Serif 4", "Iowan Old Style", "Charter", Georgia, serif);
    --font-ui: var(--gh-font-heading, "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
    --font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* type scale (fluid) */
    --fs-xs: .8125rem;                                   /* 13px  meta, captions */
    --fs-sm: .9375rem;                                   /* 15px  UI */
    --fs-text: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); /* 17→19px article text */
    --fs-lead: clamp(1.1875rem, 1.1rem + .45vw, 1.375rem);
    --fs-h4: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
    --fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
    --fs-h2: clamp(1.5rem, 1.3rem + .9vw, 1.9rem);
    --fs-h1: clamp(2rem, 1.45rem + 2.4vw, 3.1rem);

    --measure: 780px;     /* ~78 characters per line at 19px */
    --wide: 1180px;
    --pad: clamp(1.25rem, 5vw, 3rem);
    --radius: 12px;
    --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
    margin: 0;
    background: var(--base);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* links: one style for the whole site (text, meta, menus, footer, comments).
   Variants below only change the colour of strong elements; buttons and the logo are the only exceptions. */
a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1.5px; text-underline-offset: .2em; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent-strong); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
a:visited { color: #2c5f53; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-ui); color: var(--ink-strong); font-weight: 650; line-height: 1.2; letter-spacing: -.012em; text-wrap: balance; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--ink-strong); color: var(--base); padding: .5rem 1rem; z-index: 10; }

/* layout */
.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--pad); box-sizing: content-box; }
.wrap--wide { max-width: var(--wide); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 0; height: 0; }

/* ---------- header ----------
   One fixed width on every page. All items (menu + Sign in) share one "nav item" style;
   Subscribe is the only filled call to action. */
:root { --header-w: 1080px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(228, 239, 235, .86); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--header-w); margin-inline: auto; padding: .65rem var(--pad); box-sizing: content-box; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav auth"; align-items: center; gap: .5rem 1rem; }

.brand, .brand:visited { grid-area: brand; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink-strong); }
.brand__icon { width: 36px; height: 36px; flex: none; }   /* round SVG logo, no frame */
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand__tagline { font-size: .75rem; color: var(--ink-2); }
.brand:hover .brand__name { color: var(--accent); }

/* shared item style: menu links, Sign in, Account */
.site-nav .nav a, .site-nav .nav a:visited, .auth-btn, .auth-btn:visited {
    display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .85rem; border-radius: 999px;
    font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap;
    color: var(--ink-strong); text-decoration: none; background: transparent;
    transition: background .15s, color .15s, box-shadow .15s;
}
.site-nav .nav a:hover, .auth-btn--ghost:hover { background: rgba(255, 255, 255, .75); color: var(--accent-strong); }
.site-nav .nav-current a, .site-nav .nav-current a:visited { background: var(--accent-soft); color: var(--accent-strong); }

.site-nav { grid-area: nav; justify-self: end; }
.site-nav .nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }

/* icons for the two products; the external one also gets an arrow */
.site-nav .nav-seo-bookmarklet a::before, .site-nav .nav-seo-extension a::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; opacity: .85; }
.site-nav .nav-seo-bookmarklet a { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E"); }
.site-nav .nav-seo-extension a { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4.5a2.5 2.5 0 0 1 5 0V6h4v4h-1.5a2.5 2.5 0 0 0 0 5H18v4.5H5V15h1.5a2.5 2.5 0 0 0 0-5H5V6h4z'/%3E%3C/svg%3E"); }
.site-nav .nav a:not([href*="devakatalk.com"]):not([href^="/"])::after { content: ""; width: .75rem; height: .75rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9 8h7v7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9 8h7v7'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; }

/* Sign in / Subscribe (Ghost Portal) */
.site-auth { grid-area: auth; display: flex; align-items: center; gap: .35rem; padding-left: .85rem; border-left: 1px solid var(--line); }
.auth-btn--solid, .auth-btn--solid:visited { background: var(--accent); color: #fff; padding: 0 1.05rem; box-shadow: 0 4px 14px -6px rgba(13, 107, 85, .6); }
.auth-btn--solid:hover { background: var(--accent-strong); color: #fff; }

@media (max-width: 1000px) {
    .site-header__inner { grid-template-columns: 1fr auto; grid-template-areas: "brand auth" "nav nav"; }
    .site-nav { justify-self: stretch; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }   /* hint: menu scrolls */
    .site-nav .nav { padding-right: 2rem; }
    .site-auth { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
    .brand__tagline { display: none; }
    .site-header__inner { padding-block: .5rem; }
    .site-nav .nav a, .auth-btn { padding: 0 .7rem; }
}

.site-main { padding-bottom: 4rem; }

/* ---------- post list (home, tag, author) ---------- */
.archive-header { padding: 2.5rem 0 1rem; }
.archive-title { margin: 0; font-size: var(--fs-h1); }
.archive-desc { color: var(--ink-2); margin: .5rem 0 0; max-width: 60ch; }
.post-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; }
.post-card .sep { margin: 2.75rem 0; }
.post-list .post-card:first-child .sep { margin-top: 1rem; }
.post-card__inner { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
.post-card--image .post-card__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); grid-template-areas: "title image" "meta image" "excerpt image" "more image"; align-content: start; }
.post-card__title { grid-area: title; margin: 0 0 .55rem; font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); line-height: 1.22; }
/* card titles keep the heading colour, but carry the link underline */
.post-card__title a, .post-card__title a:visited { color: var(--ink-strong); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.post-card__title a:hover { color: var(--accent); }
.post-card .post-meta { grid-area: meta; }
.post-card__image { grid-area: image; display: block; align-self: start; margin-top: .3rem; }
.post-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.25); }
.post-card__excerpt { grid-area: excerpt; margin: 0; font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.post-card__more { grid-area: more; margin: .9rem 0 0; font-size: var(--fs-sm); font-weight: 550; }
.post-card__more a { font-weight: 600; }
.post-card__more a::after { content: " →"; }
@media (max-width: 760px) {
    .post-card--image .post-card__inner { grid-template-columns: 1fr; grid-template-areas: "image" "title" "meta" "excerpt" "more"; }
    .post-card__image { margin: 0 0 1rem; }
}

.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 1rem; letter-spacing: .01em; }

.post-meta__author { font-weight: 600; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin: 3rem auto 0; max-width: 1080px; font-size: var(--fs-sm); color: var(--ink-2); }
.pagination a { font-weight: 600; }

/* ---------- single post / page ---------- */
.entry-header { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.entry-title { margin: 0 auto; font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.022em; max-width: 24ch; }
.entry-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .5em; margin: 1.1rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); }


/* article body: one centred reading column, wide/full cards break out */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--pad), 1fr)
        [wide-start] minmax(0, calc((var(--wide) - var(--measure)) / 2))
        [main-start] min(var(--measure), calc(100% - var(--pad) * 2)) [main-end]
        minmax(0, calc((var(--wide) - var(--measure)) / 2)) [wide-end]
        minmax(var(--pad), 1fr) [full-end];
    font-family: var(--font-text);
    font-size: var(--fs-text);
    line-height: 1.7;
    font-optical-sizing: auto;
    font-feature-settings: "kern", "liga";
    hanging-punctuation: first;
    overflow-wrap: break-word;
}
.gh-content > * { grid-column: main; margin-block: 0; }
.gh-content > * + * { margin-top: 1.35em; }

/* first paragraph a bit larger, like a lead */
.post-template .gh-content > p:first-child { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-strong); }

.gh-content h2, .gh-content h3, .gh-content h4 { font-family: var(--font-ui); }
.gh-content > h2 { font-size: var(--fs-h2); margin-top: 2.6em; }
.gh-content > h3 { font-size: var(--fs-h3); margin-top: 2.2em; }
.gh-content > h4 { font-size: var(--fs-h4); margin-top: 2em; }
.gh-content > :is(h2, h3, h4) + * { margin-top: .75em; }
.gh-content > :is(h2, h3, h4) a { text-decoration-thickness: 2px; }

.gh-content strong { font-weight: 650; color: var(--ink-strong); }
/* links in articles: accent colour + visible underline, so they never read as plain text */
.gh-content a { text-underline-offset: .18em; }   /* rest of the style comes from the global a {} */
.gh-content mark { background: var(--mark); padding: 0 .15em; border-radius: 2px; }

.gh-content :is(ul, ol) { padding-left: 1.35em; }
.gh-content li { padding-left: .2em; }
.gh-content li + li { margin-top: .5em; }
.gh-content li > :is(ul, ol) { margin-top: .5em; }
.gh-content ul > li::marker { color: var(--ink-3); }
.gh-content ol > li::marker { color: var(--ink-2); font-family: var(--font-ui); font-size: .85em; font-weight: 600; }

.gh-content blockquote { margin-inline: 0; padding: .1em 0 .1em 1.25em; border-left: 3px solid var(--accent); font-style: italic; font-size: 1.08em; color: var(--ink-strong); }
.gh-content blockquote p { margin: 0; }
.gh-content blockquote p + p { margin-top: .8em; }
.gh-content blockquote.kg-blockquote-alt { border: 0; padding: 0 1em; text-align: center; font-size: var(--fs-h3); line-height: 1.45; }

.gh-content hr { border: 0; height: auto; margin-block: 2.75em; text-align: center; overflow: visible; }
.gh-content hr::before { content: "• • •"; letter-spacing: .6em; color: var(--ink-3); font-family: var(--font-ui); font-size: .8rem; }

.gh-content figure { margin-inline: 0; }
.gh-content > figure, .gh-content > .kg-card { margin-top: 2em; }
.gh-content > figure + *, .gh-content > .kg-card + * { margin-top: 2em; }
.gh-content figcaption { font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2); text-align: center; margin-top: .75em; line-height: 1.5; }
.gh-content img { border-radius: var(--radius); }
.kg-image-card img { display: block; margin-inline: auto; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px -18px rgba(0,0,0,.35); }
.kg-width-wide { grid-column: wide !important; }
.kg-width-full { grid-column: full !important; }
.kg-width-full img { border-radius: 0; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); }

/* tables */
.gh-content table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: var(--fs-sm); line-height: 1.5; background: var(--base-2); border-radius: var(--radius-sm); overflow: hidden; }
.gh-content th { text-align: left; font-weight: 650; background: rgba(23, 32, 28, .05); }
.gh-content th, .gh-content td { padding: .65em .9em; border-bottom: 1px solid var(--line); vertical-align: top; }
.gh-content tr:last-child td { border-bottom: 0; }

/* code */
.gh-content code, .gh-content kbd { font-family: var(--font-code); font-size: .84em; font-variant-ligatures: none; }
.gh-content :not(pre) > code { background: var(--accent-soft); color: var(--ink-strong); padding: .12em .38em; border-radius: 4px; overflow-wrap: anywhere; }
.gh-content pre { background: var(--base-2); color: #24292e; border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; font-size: .8125rem; line-height: 1.65; box-shadow: inset 0 0 0 1px var(--line); tab-size: 4; }
.gh-content pre code { font-size: inherit; background: none; padding: 0; }
.gh-content pre.line-numbers { padding-left: 3.6em; }
.gh-content .code-block { grid-column: main; margin-top: 2em; background: var(--base-2); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.gh-content .code-block + * { margin-top: 2em; }
.gh-content .code-block pre { margin: 0; border-radius: 0; box-shadow: none; padding-top: .9rem; }
.code-block__head { display: flex; align-items: center; justify-content: space-between; padding: .4rem .7rem .4rem 1rem; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2); }
.code-block__lang { font-weight: 600; letter-spacing: .02em; }
.code-block__copy { position: relative; display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .3rem .4rem; border-radius: var(--radius-sm); color: var(--ink-3); cursor: pointer; font: inherit; }
.code-block__copy:hover { color: var(--ink-strong); background: rgba(23, 32, 28, .06); }
.code-block__done { display: none; color: var(--accent); font-weight: 600; }
.code-block__copy.is-copied .code-block__done { display: inline; }
.code-block__copy.is-copied svg { display: none; }
.gh-content pre.code-plain { font-size: .9rem; }

/* buttons (black like the WP .wp-element-button) */
.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.gh-content .kg-button-card a.kg-btn, .gh-content .kg-button-card a.kg-btn-accent, .gh-content .dt-col .kg-button-card a, .kg-btn {
    display: inline-flex; align-items: center; gap: .5em; background: var(--ink-strong) !important; color: #fff !important;
    border-radius: 999px !important; font-family: var(--font-ui) !important; font-size: var(--fs-sm) !important; font-weight: 600 !important; padding: .75rem 1.5rem !important; height: auto !important; text-decoration: none !important; line-height: 1.2 !important;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); transition: transform .15s, box-shadow .15s;
}
.kg-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); color: #fff !important; }

/* devaka-tools feature rows (were WP columns) */
.gh-content .dt-row { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; grid-column: wide !important; margin-top: clamp(2.5rem, 6vw, 4rem); font-family: var(--font-ui); font-size: 1rem; line-height: 1.6; }
.dt-row--33-67 { grid-template-columns: 1fr 2fr; }
.dt-row--67-33 { grid-template-columns: 2fr 1fr; }
.dt-row--50-50 { grid-template-columns: 1fr 1fr; }
.dt-col > :first-child { margin-top: 0; }
.dt-col > :last-child { margin-bottom: 0; }
.dt-col img { display: block; width: 100%; border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 34px -18px rgba(0,0,0,.4); }
.dt-col h4 { margin: 0 0 .9rem; font-size: var(--fs-h3); }
.dt-col h4[style*="right"], .dt-col .has-text-align-right { text-align: right; }
.dt-col .kg-button-card { margin: 0; }
@media (max-width: 780px) { .gh-content .dt-row { grid-template-columns: 1fr !important; } .dt-col h4 { text-align: left !important; } }
.dt-check { list-style: none; padding-left: 0 !important; margin: 0; }
.dt-check li { position: relative; padding-left: 1.75em; }
.dt-check li + li { margin-top: .45em; }
.dt-check li::before { content: ""; position: absolute; left: .1em; top: .5em; width: .85em; height: .45em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 3rem; font-family: var(--font-ui); }
.share::before { content: "Share"; margin-right: .5rem; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.share__btn { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .95rem; font: inherit; font-size: var(--fs-xs); font-weight: 550; color: var(--ink-strong); background: transparent; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.share__btn, .share__btn:visited { color: var(--ink-strong); text-decoration: none; }
.share__btn:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.share__tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink-strong); color: #fff; padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; white-space: nowrap; }
.share__btn.is-copied .share__tip { display: block; }

/* prev / next */
.post-nav { padding-top: 2.5rem; font-family: var(--font-ui); }
.post-nav__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 2rem; }
.post-nav__link { display: block; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--base-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink-strong); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; transition: box-shadow .15s; }
.post-nav__link:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.post-nav__title { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.post-nav__link:hover .post-nav__title { color: var(--accent-strong); text-decoration-color: currentColor; }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; margin-bottom: .25rem; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .post-nav__row { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: 1; } }

/* archived WordPress comments */
.gh-content .wpc-archive { grid-column: main; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: .975rem; line-height: 1.6; }
.wpc-title { margin: 0 0 1.25rem; font-size: var(--fs-h3); }
.wpc-count { color: var(--ink-3); font-weight: 500; }
.wpc-list, .wpc-children { list-style: none; padding: 0; margin: 0; }
.wpc-children { margin-left: clamp(1rem, 4vw, 3rem); border-left: 2px solid var(--line); padding-left: 1rem; }
.wpc { padding: 1rem 0; }
.wpc-list > .wpc + .wpc { border-top: 1px solid var(--line); }
.wpc-meta { display: flex; flex-wrap: wrap; gap: .3rem .65rem; align-items: center; font-size: var(--fs-sm); }
.wpc-avatar { width: 32px; height: 32px; border-radius: 50% !important; }
.wpc-author { font-weight: 650; color: var(--ink-strong); }
.wpc-author a { font-weight: 650; }
.wpc--owner > .wpc-meta .wpc-author::after { content: "author"; margin-left: .45rem; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: .05rem .45rem; vertical-align: 1px; }
.wpc-meta time { color: var(--ink-3); font-size: var(--fs-xs); }
.wpc-body { margin-top: .35rem; padding-left: calc(32px + .65rem); }
.wpc-body p { margin: .35rem 0; }
.wpc-note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 1rem; }

/* Ghost native comments */
.comments { padding-top: 2.5rem; }
.comments__title { font-size: var(--fs-h3); margin: 2rem 0 .75rem; }

/* footer */
.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr .6fr 2fr; gap: 2rem; }
.site-title--footer { margin: 0; font-weight: 700; font-size: 1.05rem; }
.site-title a, .site-title a:visited { color: var(--ink-strong); text-decoration: none; }   /* logo, not a link style */
.site-title a:hover { color: var(--accent); }
.site-footer > .wrap--wide { max-width: var(--header-w); }   /* footer aligned with the header */
.site-tagline { margin: .35rem 0 0; color: var(--ink-2); }
.site-footer__menus { display: flex; gap: 3rem; justify-content: flex-end; }
.footer-menu__title { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 .9rem; }
.site-footer .nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }

.site-footer__note { padding-top: 3rem; font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 780px) { .site-footer__cols { grid-template-columns: 1fr; } .site-footer__spacer { display: none; } .site-footer__menus { justify-content: flex-start; } }

.error-page { padding: 5rem 0; text-align: center; }

/* Prism, light theme close to Code Block Pro "github-light" */
code[class*="language-"], pre[class*="language-"] { color: #24292e; text-shadow: none; white-space: pre; word-spacing: normal; tab-size: 4; hyphens: none; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #6a737d; font-style: italic; }
.token.punctuation { color: #24292e; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #005cc5; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted, .token.template-string { color: #032f62; }
.token.operator, .token.entity, .token.url { color: #d73a49; }
.token.atrule, .token.attr-value, .token.keyword { color: #d73a49; }
.token.function, .token.class-name { color: #6f42c1; }
.token.regex, .token.important, .token.variable { color: #e36209; }
.line-numbers .line-numbers-rows { border-right-color: var(--line) !important; }
.line-numbers-rows > span::before { color: var(--ink-3) !important; }
pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}

/* keep buttons and cards out of the article link style */
.gh-content .kg-button-card a, .gh-content a.kg-btn { text-decoration: none !important; }
.gh-content .kg-bookmark-card a { color: inherit; text-decoration: none; }
