/* Dusk inner pages: a short blue-hour masthead, a quiet paper reading column, and night falling in the footer.
   The header and footer rules mirror assets/css/dusk.css (homepage); keep the two in step. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations"),
       url(../fonts/source-serif-4-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: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-wght-italic.woff2) format("woff2-variations"),
       url(../fonts/source-serif-4-latin-wght-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;
}
/* Metric-matched fallbacks so the swap to Source Serif 4 does not reflow the column. */
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Georgia");
  size-adjust: 104.3%; ascent-override: 99.3%; descent-override: 32.1%; line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Times New Roman");
  size-adjust: 109.2%; ascent-override: 94.9%; descent-override: 30.7%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0a1026; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.dkp {
  --disp: "Tw Cen MT Condensed Extra Bold", "Bahnschrift Condensed", "DIN Condensed", sans-serif-condensed, "Roboto Condensed", "Arial Narrow", sans-serif;
  --ui: "Gill Sans MT", "Gill Sans", "Seravek", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
  --mono: "Cascadia Code", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --col: 680px;
  --cream: #f3e6cf;
  --amber: #f2a571;
  --night: #0a1026;
  --sky: #2b3b6b;
  --paper: #f8f3ea;
  --tip: #f2e7d3;
  --ink: #1b2142;
  --soft: #3a3f5c;
  --muted: #585c78;
  --link: #9a3b26;
  --accent: #d9793f;
  --rule: rgba(27, 33, 66, .14);
  --inline: rgba(27, 33, 66, .07);
  --code-bg: #141a36;
  --code-ink: #ebe2cf;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--ui);
}

.dk-skip {
  position: absolute; z-index: 10; top: 12px; left: var(--pad); padding: 10px 16px;
  background: var(--cream); color: var(--ink); font: 600 14px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-200%);
}
.dk-skip:focus { transform: none; }

/* ---------- Masthead: blue hour, a few stars, a crescent and the fir line (drawn by dusk-page.js) ---------- */
.dkp-mast { position: relative; background: var(--sky); color: var(--cream); }
.dkp-mast-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.dk-top {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px;
  min-height: clamp(150px, 15vw, 190px); padding: 24px var(--pad);
  font: 600 14px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase;
}
.dk-top a { display: inline-block; padding: 6px 0; color: inherit; text-decoration: none; }
.dk-top a:hover { text-decoration: underline; text-underline-offset: 5px; }
.dk-nav { display: flex; gap: 28px; }
.dk-nav [aria-current] { box-shadow: inset 0 -2px 0 var(--amber); }

/* ---------- Reading column ---------- */
.dkp-main { display: block; container-type: inline-size; padding: clamp(44px, 6vw, 84px) var(--pad) clamp(80px, 10vw, 132px); }
.dkp-col { max-width: var(--col); margin: 0 auto; }

.dkp-head { margin: 0 0 44px; }
.dkp-head--post { padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.dkp-title {
  margin: 0; font: 400 clamp(44px, 6.2vw, 76px)/.96 var(--disp); letter-spacing: .005em; color: var(--ink);
  text-wrap: balance; overflow-wrap: break-word;
}
.dkp-title--page { font-size: clamp(60px, 9vw, 112px); line-height: .86; letter-spacing: .01em; }
.dkp-lede { margin: 18px 0 0; font: 17px/1.5 var(--ui); color: var(--muted); }
.dkp-lede a { color: var(--link); text-underline-offset: 3px; }

.dkp-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.dkp-byline img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dkp-byline .page__meta { margin: 0; font: 15px/1.45 var(--ui); color: var(--muted); }
.dkp-byline b { display: block; color: var(--ink); font-weight: 600; }
.page__meta-item + .page__meta-item::before { content: "\00b7"; margin: 0 .5em; }

/* ---------- Prose ---------- */
.dkp-prose { font: 20px/1.72 var(--serif); color: var(--ink); font-kerning: normal; }
.dkp-prose::after { content: ""; display: table; clear: both; }
.dkp-prose > :first-child { margin-top: 0; }
.dkp-prose :is(p, ul, ol, dl, blockquote, figure, table) { margin: 0 0 1.3em; }
.dkp-prose :is(p, li, td, dd) { overflow-wrap: anywhere; }
.dkp-prose strong, .dkp-prose b { font-weight: 650; }

.dkp-prose :is(h2, h3, h4, h5, h6) { clear: both; margin: 1.7em 0 .5em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
.dkp-prose h2 { font: 400 40px/1.04 var(--disp); letter-spacing: .005em; }
.dkp-prose h3 { font: 600 25px/1.25 var(--ui); }
.dkp-prose h4 { font: 600 20px/1.3 var(--ui); }
.dkp-prose :is(h5, h6) { font: 600 15px/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.dkp-prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dkp-prose a:hover { text-decoration-thickness: 2px; }
.dkp-prose a:has(> img) { text-decoration: none; }

.dkp-prose :is(ul, ol) { padding-left: 1.4em; }
.dkp-prose li + li { margin-top: .4em; }
.dkp-prose li > :is(p, ul, ol) { margin-bottom: .5em; }
.dkp-prose li::marker { color: var(--accent); }
.dkp-prose ol > li::marker { font-family: var(--ui); font-weight: 600; }

.dkp-prose hr { clear: both; height: 0; margin: 2.6em 0; border: 0; border-top: 1px solid var(--rule); }

.dkp-prose :not(pre) > code {
  padding: .15em .35em; border-radius: 5px; background: var(--inline);
  font-family: var(--mono); font-size: .8em; overflow-wrap: anywhere;
}

.dkp-prose blockquote { clear: both; padding: 18px 24px; border-radius: 10px; background: var(--tip); font-size: .95em; }
.dkp-prose blockquote > :last-child { margin-bottom: 0; }

/* Series links at the top and bottom of multi-part posts. */
.dkp-prose p.series-link { clear: both; }
.dkp-prose p.series-link a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px;
  font: 600 15px/1.4 var(--ui); text-decoration: none;
}
.dkp-prose p.series-link a::before { content: "\2190\00a0"; }
.dkp-prose p.series-link a:hover { border-color: currentColor; }

/* ---------- Images ---------- */
.dkp-prose img { height: auto; border-radius: 6px; vertical-align: middle; }
.dkp-prose :where(p > img:only-child, p > a:only-child > img:only-child, li > img, li > a > img) {
  display: block; margin: .4em auto;
  box-shadow: 0 0 0 1px rgba(27, 33, 66, .1), 0 10px 30px -12px rgba(27, 33, 66, .25);
}
.dkp-prose img.wlEmoticon { display: inline; margin: 0; box-shadow: none; vertical-align: -.15em; }
.dkp-prose .align-left { display: block; margin: .4em auto 1.3em; }
@media (min-width: 37.5em) {
  .dkp-prose .align-left { float: left; max-width: 42%; margin: .35em 1.75em 1em 0; }
}
.dkp-prose figure { margin: 2em 0; }
.dkp-prose :is(figcaption, .caption) { margin-top: .7em; font: 14px/1.45 var(--ui); color: var(--muted); text-align: center; }

/* ---------- Tables ---------- */
.dkp-prose table {
  display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse;
  border: 1px solid var(--rule); border-radius: 8px; font: .88em/1.5 var(--ui);
}
.dkp-prose :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.dkp-prose thead th { background: var(--tip); font-weight: 600; }
/* Migrated two-column layout tables become a responsive grid. */
.dkp-prose table.layout-grid { display: table; width: 100%; overflow: visible; border: 0; border-radius: 0; font: inherit; }
.dkp-prose table.layout-grid tbody { display: block; }
.dkp-prose table.layout-grid tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.dkp-prose table.layout-grid td { display: block; padding: 0; border: 0; background: none; }
.dkp-prose table.layout-grid td > :first-child { margin-top: 0; }
.dkp-prose table.layout-grid h3 { margin-top: .75em; }
.dkp-prose table.layout-grid td img { margin: .5em 0 1em; }
@media (max-width: 37.5em) {
  .dkp-prose table.layout-grid tr { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Code blocks ---------- */
.dkp-prose :is(div.highlighter-rouge, figure.highlight) {
  position: relative; clear: both; margin: 1.8em 0; border-radius: 12px;
  background: var(--code-bg); color: var(--code-ink);
}
.dkp-prose > :is(div.highlighter-rouge, figure.highlight, figure.dk-video) {
  margin-inline: calc(-1 * clamp(0px, (100cqw - var(--col)) / 2, 60px));
}
.dkp-prose :where(div.highlighter-rouge, figure.highlight)::before { content: "Code"; }
.dkp-prose :is(div.highlighter-rouge, figure.highlight)::before {
  display: block; height: 46px; padding: 0 28px;
  font: 600 12px/46px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #a7a6c2;
}
.dkp-prose .language-csharp::before, .dkp-prose .language-cs::before { content: "C#"; }
.dkp-prose .language-xml::before { content: "XML"; }
.dkp-prose .language-html::before { content: "HTML"; }
.dkp-prose :is(.language-js, .language-javascript)::before { content: "JavaScript"; }
.dkp-prose .language-css::before { content: "CSS"; }
.dkp-prose :is(.language-sh, .language-bash, .language-shell, .language-powershell)::before { content: "Shell"; }
.dkp-prose .language-sql::before { content: "SQL"; }
.dkp-prose :is(div.highlighter-rouge, figure.highlight) .highlight { margin: 0; background: transparent; }
.dkp-prose pre {
  margin: 0; padding: 2px 28px 24px; overflow-x: auto; background: transparent; color: inherit;
  font: 15px/1.65 var(--mono); tab-size: 4; font-variant-ligatures: none;
  white-space: pre; overflow-wrap: normal; word-wrap: normal;
  scrollbar-color: rgba(243, 230, 207, .28) transparent;
}
.dkp-prose pre code { padding: 0; border-radius: 0; background: none; font: inherit; color: inherit; }
.dkp-prose pre:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.code-copy {
  position: absolute; z-index: 1; top: 8px; right: 10px; height: 30px; padding: 0 14px;
  border: 1px solid rgba(243, 230, 207, .24); border-radius: 999px; background: rgba(243, 230, 207, .06);
  color: var(--cream); font: 600 11px/28px var(--ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.code-copy:hover { background: rgba(243, 230, 207, .16); }
.code-copy:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.code-copy.is-copied { color: #9be3b0; border-color: rgba(155, 227, 176, .5); }
.code-copy.is-failed { color: #ffb3a8; border-color: rgba(255, 179, 168, .5); }
.code-copy__status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rouge tokens, tuned for the night code panel. */
.highlight :is(.k, .kd, .kn, .kp, .kr, .kv, .ow, .na) { color: #f2a571; }
.highlight :is(.kt, .nb, .bp, .nt) { color: #9cc4d9; }
.highlight :is(.s, .s1, .s2, .sb, .sc, .sd, .se, .sh, .si, .sx, .sr, .ss, .dl) { color: #f5d79c; }
.highlight :is(.m, .mi, .mf, .mh, .mo, .il, .kc, .cp) { color: #e8a0b4; }
.highlight :is(.nf, .fm, .nc, .nd, .ne, .nn) { color: #c9b8f0; }
.highlight :is(.c, .c1, .cm, .cs, .cd, .ch) { color: #8f93b5; font-style: italic; }
.highlight .gd { color: #ffb3a8; }
.highlight .gi { color: #9be3b0; }
.highlight .err { color: inherit; background: none; }

/* ---------- Video: a link that becomes a player on request (assets/js/dusk-page.js) ---------- */
.dk-video { margin: 2em 0; }
.dk-video-link, .dk-video-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px;
  background: var(--code-bg); color: var(--cream);
}
.dkp-prose .dk-video-link { color: var(--cream); text-decoration: none; }
.dk-video-link img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.dk-video-card {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2b3b6b 0 34%, #5a4a7a 34% 52%, #b0644e 52% 64%, #e08a55 64% 72%, #141a36 72%);
}
.dk-video-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 16, 38, .78), rgba(10, 16, 38, 0) 58%); }
.dk-video-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(243, 230, 207, .94); box-shadow: 0 8px 30px rgba(10, 16, 38, .4); transition: transform .2s ease;
}
.dk-video-play::before {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -8px;
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink);
}
.dk-video-link:hover .dk-video-play { transform: scale(1.06); }
.dk-video-meta { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; display: block; }
.dk-video-title { display: block; font: 400 clamp(24px, 3vw, 32px)/1 var(--disp); letter-spacing: .01em; text-wrap: balance; }
.dk-video-src { display: block; margin-top: 8px; font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.dk-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dk-video figcaption { margin-top: .7em; font: 14px/1.45 var(--ui); color: var(--muted); text-align: center; }

/* ---------- After the post: tags, share, pager, keep reading, comments ---------- */
.dkp-after { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); font-family: var(--ui); }
.dkp-after h2 { margin: 0 0 18px; font: 600 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dkp-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.dkp-tags a, .dkp-share a {
  display: inline-block; padding: 8px 15px; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink); font-size: 14px; line-height: 1.2; text-decoration: none;
}
.dkp-tags a:hover, .dkp-share a:hover { border-color: var(--accent); }
.dkp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 48px; font-size: 14px; color: var(--muted); }
.dkp-share span { margin-right: 4px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: 12px; }

.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 56px; }
.post-pager__link { display: block; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; }
a.post-pager__link:hover { border-color: var(--accent); }
.post-pager__link--empty { border-color: transparent; }
.post-pager__link--next { text-align: right; }
.post-pager__label { display: block; margin-bottom: 8px; font: 600 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-pager__title { display: block; font: 400 26px/1.05 var(--disp); letter-spacing: .005em; overflow-wrap: break-word; }

.dkp-more { margin: 0 0 56px; }
.dkp-more ul { margin: 0; padding: 0; list-style: none; }
.dkp-more li { padding: 16px 0; border-top: 1px solid var(--rule); }
.dkp-more li:last-child { border-bottom: 1px solid var(--rule); }
.dkp-more a { display: block; color: var(--ink); font: 400 24px/1.1 var(--disp); letter-spacing: .005em; text-decoration: none; overflow-wrap: break-word; }
.dkp-more a:hover { color: var(--link); }
.dkp-more time { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

.dkp-comments-btn {
  display: inline-block; padding: 13px 24px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); cursor: pointer;
  font: 600 13px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
}
.dkp-comments-btn:hover { background: var(--ink); color: var(--paper); }
.dkp-comments-btn[hidden] { display: none; }
.dkp-comments noscript, .dkp-comments-note { display: block; margin: 0; font-size: 15px; color: var(--muted); }
.dkp-comments h2[tabindex]:focus { outline: none; }
#disqus_thread:empty { display: none; }

/* ---------- Blog listing ---------- */
.dkp-entries { margin: 0; padding: 0; list-style: none; }
.dkp-entry {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 clamp(20px, 4vw, 40px); align-items: start;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.dkp-entry:first-child { padding-top: 0; border-top: 0; }
.dkp-entry-title { margin: 0 0 10px; font: 400 clamp(28px, 3.4vw, 36px)/1.04 var(--disp); letter-spacing: .005em; text-wrap: balance; overflow-wrap: break-word; }
.dkp-entry-title a { color: var(--ink); text-decoration: none; }
.dkp-entry-title a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dkp-entry-excerpt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  margin: 0 0 12px; font: 18px/1.6 var(--serif); color: var(--soft); overflow-wrap: anywhere;
}
.dkp-entry .page__meta { margin: 0; font: 14px/1.4 var(--ui); color: var(--muted); }
.dkp-entry-thumb { display: block; width: 160px; height: 120px; margin-top: 6px; overflow: hidden; border-radius: 6px; background: var(--tip); }
.dkp-entry-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dkp-entry-thumb.is-extreme img { object-position: 0 0; }

.pagination ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.pagination li > :is(a, span) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink);
  font: 600 14px/1 var(--ui); letter-spacing: .08em; text-decoration: none;
}
.pagination li > a:hover { border-color: var(--accent); }
.pagination li > a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pagination li > span { border-color: transparent; color: var(--muted); }
.pagination .pagination-step { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.pagination li:first-child { margin-right: auto; }
.pagination li:last-child { margin-left: auto; }

/* ---------- Topics ---------- */
.dkp-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 64px; padding: 0; list-style: none; font-family: var(--ui); }
.dkp-cloud a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 15px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); font-size: 15px; line-height: 1.2; text-decoration: none; }
.dkp-cloud a:hover { border-color: var(--accent); }
.dkp-cloud small { font-size: 12px; color: var(--muted); }
.dkp-topic { margin: 0 0 48px; scroll-margin-top: 24px; }
.dkp-topic h2 { margin: 0 0 8px; font: 400 40px/1 var(--disp); letter-spacing: .005em; overflow-wrap: break-word; scroll-margin-top: 24px; }
.dkp-topic ul { margin: 0; padding: 0; list-style: none; font-family: var(--ui); }
.dkp-topic li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-top: 1px solid var(--rule); }
.dkp-topic li a { color: var(--ink); font-size: 18px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.dkp-topic li a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.dkp-topic time { flex: none; font-size: 14px; color: var(--muted); }

/* ---------- Footer: the homepage scene at night, with the 509 crossing ---------- */
.dk-foot { position: relative; color: var(--cream); background: var(--night); }
.dk-foot--scene { min-height: clamp(470px, 44vw, 600px); }
.dk-foot-edge { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: clamp(40px, 5vw, 76px); max-width: none; }
.dk-foot-edge path { fill: var(--night); }
.dk-foot-scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.dk-foot-in {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 56px;
  padding: 44px var(--pad) 0;
}
.dk-foot-name { margin: 0; font: 400 clamp(36px, 4vw, 52px)/.9 var(--disp); letter-spacing: .02em; text-transform: uppercase; }
.dk-foot-cols { display: flex; flex-wrap: wrap; gap: 6px 56px; }
.dk-foot nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.dk-foot a { display: inline-block; padding: 6px 0; color: inherit; font: 600 14px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.dk-foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.dk-copy { width: 100%; margin: 0; font: 13px/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; opacity: .62; }

.dk-tw { animation: dk-tw 3.4s ease-in-out infinite alternate; }
.dk-tw:nth-child(2) { animation-duration: 2.7s; animation-delay: -1.2s; }
.dk-tw:nth-child(3) { animation-duration: 4.1s; animation-delay: -2.3s; }
@keyframes dk-tw { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .dk-tw { animation: none; }
  .dk-video-play { transition: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .dk-top { min-height: 128px; padding-top: 18px; font-size: 12px; letter-spacing: .12em; }
  .dk-nav { gap: 16px; }
  .dkp-prose { font-size: 18px; line-height: 1.7; }
  .dkp-prose h2 { font-size: 34px; }
  .dkp-prose h3 { font-size: 22px; }
  .dkp-prose > :is(div.highlighter-rouge, figure.highlight, figure.dk-video) { margin-inline: calc(-1 * var(--pad)); }
  .dkp-prose > :is(div.highlighter-rouge, figure.highlight),
  .dkp-prose > figure.dk-video :is(.dk-video-link, .dk-video-frame) { border-radius: 0; }
  .dkp-prose > figure.dk-video figcaption { padding: 0 var(--pad); }
  .dk-video-play { top: 40%; width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .dk-video-play::before { margin: -10px 0 0 -6px; border-width: 10px 0 10px 17px; }
  .dk-video-meta { left: var(--pad); right: var(--pad); bottom: 14px; }
  .dk-video-title { font-size: 22px; }
  .dkp-prose :is(div.highlighter-rouge, figure.highlight)::before { padding: 0 var(--pad); }
  .dkp-prose pre { padding-inline: var(--pad); font-size: 14px; }
  .dkp-prose li pre { padding-inline: 18px; }
  .dkp-prose li :is(div.highlighter-rouge, figure.highlight)::before { padding: 0 18px; }
  .dkp-entry { gap: 0 16px; padding: 26px 0; }
  .dkp-entry-thumb { width: 84px; height: 84px; margin-top: 4px; }
  .dkp-entry-excerpt { font-size: 17px; }
  .post-pager { grid-template-columns: 1fr; }
  .post-pager__link--empty { display: none; }
  .post-pager__link--next { text-align: left; }
  .pagination ul { justify-content: center; gap: 8px 6px; }
  .pagination ul::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .pagination li:first-child, .pagination li:last-child { order: 2; flex: 1 1 0; margin: 0; }
  .pagination li:last-child { display: flex; justify-content: flex-end; }
  .pagination li > span:not(.pagination-step) { min-width: 24px; padding: 0 4px; }
  .dkp-topic li { flex-direction: column; gap: 2px; }
  .dk-foot-in { flex-direction: column; }
}

@media print {
  html, .dkp { background: #fff; }
  .dkp-mast { background: none; color: var(--ink); }
  .dkp-mast-art, .dk-nav, .dk-foot-edge, .dk-foot-scene, .code-copy, .dkp-share, .dkp-comments, .dk-foot nav { display: none; }
  .dk-top { min-height: 0; }
  .dk-foot, .dk-foot--scene { min-height: 0; background: none; color: var(--ink); }
  .dkp-prose pre { white-space: pre-wrap; }
}
