/*
 * NJ Technos Blog - all theme styles.
 *
 * Part 1 (fonts and "Shared from the main website") is taken from the NJ Technos site's style.css:
 * the colour tokens, reset, header, full-screen menu, footer, pill buttons and theme switch,
 * with the same nj-shared-* class names, so both stay visually identical. The WebGL ink of the menu
 * is replaced by the site's own CSS fallback (a dark circle from the corner).
 * Part 2 (Blog) is new: listing, cards, article and WordPress block content.
 */

/* Body and menu fonts: Inter Tight and Instrument Serif, bundled instead of loaded from Google Fonts */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-ext-400-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: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-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: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-ext-500-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: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-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: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext-600-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: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-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: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-latin-ext-700-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: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-latin-700-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 Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext-400-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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-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 Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext-400-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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-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; }

/* ---------- Shared from the main website ---------- */

/* Headline face for the pages, bundled so it works offline */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"), url("../fonts/anton-latin-400-normal.woff") format("woff"); }

/* Theme tokens */
:root,
[data-theme="light"] {
  --bg: #dcdcdc;
  --bg-soft: rgba(220, 220, 220, 0.82);
  --ink: #000;
  --ink-soft: rgba(0, 0, 0, 0.8);
  --ink-faint: rgba(0, 0, 0, 0.68);
  --line: rgba(20, 20, 20, 0.14);
  --invert-bg: #141414;
  --invert-ink: #e8e8e8;
}
[data-theme="dark"] {
  --bg: #151515;
  --bg-soft: rgba(21, 21, 21, 0.82);
  --ink: #ebe8e2;
  --ink-soft: rgba(235, 232, 226, 0.8);
  --ink-faint: rgba(235, 232, 226, 0.66);
  --line: rgba(235, 232, 226, 0.14);
  --invert-bg: #ebe8e2;
  --invert-ink: #151515;
}
:root {
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(18px, 3.4vw, 54px);
  --space: clamp(40px, 4.6vw, 64px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
main, .nj-shared-footer { position: relative; }

/* Shared type */
.nj-shared-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.nj-shared-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* Pill buttons */
.nj-shared-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.nj-shared-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--ink);
  border-radius: inherit;
  transform: scale(0.2, 0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}
.nj-shared-pill:hover { color: var(--bg); border-color: var(--ink); }
.nj-shared-pill:hover::before { transform: none; }
.nj-shared-pill--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nj-shared-pill--solid::before { background: var(--bg); }
.nj-shared-pill--solid:hover { color: var(--ink); }

/* Header */
.nj-shared-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px var(--gutter);
  transition: transform 0.6s var(--ease);
}
.nj-shared-topbar.nj-shared-is-hidden { transform: translateY(-110%); }
.nj-shared-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nj-shared-brand__logo { display: block; height: 26px; width: auto; }
.nj-shared-brand__logo--light { display: none; }
[data-theme="dark"] .nj-shared-brand__logo--dark, body.nj-shared-menu-logo .nj-shared-brand__logo--dark { display: none; }
[data-theme="dark"] .nj-shared-brand__logo--light, body.nj-shared-menu-logo .nj-shared-brand__logo--light { display: block; }
.nj-shared-topbar { justify-content: space-between; }
.nj-shared-topbar__nav { display: contents; }
.nj-shared-topbar__link { position: relative; padding: 7px 11px 6px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.06em; overflow: hidden; transition: color 0.4s var(--ease); }
.nj-shared-topbar__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.45s var(--ease); }
.nj-shared-topbar__link.nj-shared-is-active { background-color: var(--ink); } /* same as its full ::before pill; lets checkers see the real background */
.nj-shared-topbar__link:hover, .nj-shared-topbar__link.nj-shared-is-active { color: var(--bg); }
.nj-shared-topbar__link:hover::before, .nj-shared-topbar__link.nj-shared-is-active::before { transform: none; }
.nj-shared-topbar__tools { display: flex; align-items: center; gap: 12px; }
.nj-shared-menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 2px 0 10px; background: none; border: 0; color: inherit; font: 500 13px/1 var(--sans); letter-spacing: 0.04em; cursor: pointer; position: relative; z-index: 2; transition: color 0.5s var(--ease); }
.nj-shared-menu-btn__icon { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nj-shared-menu-btn__icon i { display: block; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
body.nj-shared-menu-open .nj-shared-menu-btn { color: #f1f1f1; }
body.nj-shared-menu-open .nj-shared-menu-btn__icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.nj-shared-menu-open .nj-shared-menu-btn__icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* Theme switch */
.nj-shared-theme-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.nj-shared-theme-switch:hover { border-color: var(--ink); }
.nj-shared-theme-switch__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.nj-shared-theme-switch__knob::after {
  content: "";
  position: absolute;
  inset: 3px 3px 3px 7px;
  border-radius: 50%;
  background: var(--bg);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
[data-theme="dark"] .nj-shared-theme-switch__knob { transform: translateX(24px); }
[data-theme="dark"] .nj-shared-theme-switch__knob::after { transform: scale(1); }

/* Corner menu: black ink spreads out of the corner, the carving plays underneath */
.nj-shared-ink-menu { position: fixed; inset: 0; z-index: 112; color: #ecebe8; display: none; pointer-events: none; }
.nj-shared-ink-menu.nj-shared-is-open, .nj-shared-ink-menu.nj-shared-is-live { display: block; }
.nj-shared-ink-menu.nj-shared-is-open { pointer-events: auto; }
.nj-shared-ink-menu { background: #0e0e0e; clip-path: circle(0% at calc(100% - 60px) 40px); transition: clip-path 1s var(--ease-io); }
.nj-shared-ink-menu.nj-shared-is-open.nj-shared-is-shown { clip-path: circle(150% at calc(100% - 60px) 40px); transition: clip-path 1.1s var(--ease-io); }
.nj-shared-ink-menu__inner { position: absolute; inset: 0; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65); display: flex; flex-direction: column; align-items: center; padding: 104px var(--gutter) 34px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.nj-shared-ink-menu__inner::-webkit-scrollbar { display: none; }
.nj-shared-ink-menu__list { display: flex; flex-direction: column; align-items: center; width: min(1080px, 100%); margin: auto 0; }
.nj-shared-ink-item { width: 100%; display: flex; flex-direction: column; align-items: center; }
.nj-shared-ink-item__head { display: inline-flex; align-items: baseline; padding: 0; border: 0; background: none; color: inherit; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 1s var(--ease), color 0.5s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item__head { opacity: 1; transform: none; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(2) .nj-shared-ink-item__head { transition-delay: 0.07s, 0.07s, 0s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(3) .nj-shared-ink-item__head { transition-delay: 0.14s, 0.14s, 0s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(4) .nj-shared-ink-item__head { transition-delay: 0.21s, 0.21s, 0s; }
.nj-shared-ink-item__more { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; color: rgba(236, 235, 232, 0.75); transition: max-width 0.9s var(--ease), opacity 0.6s var(--ease); }
.nj-shared-ink-item:hover .nj-shared-ink-item__more, .nj-shared-ink-item.nj-shared-is-open .nj-shared-ink-item__more { max-width: 13em; opacity: 1; }
.nj-shared-ink-menu__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 40px; font-size: 13px; color: rgba(236, 235, 232, 0.8); opacity: 0; transition: opacity 0.8s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-menu__foot { opacity: 1; transition-delay: 0.4s; }
.nj-shared-ink-menu__foot a:hover { color: #ecebe8; }
body.nj-shared-menu-open .nj-shared-topbar { color: #f1f1f1; background: transparent !important; }
body.nj-shared-menu-open .nj-shared-topbar__link, body.nj-shared-menu-open .nj-shared-theme-switch { opacity: 0; pointer-events: none; }
.nj-shared-topbar__link, .nj-shared-theme-switch { transition: opacity 0.5s var(--ease), color 0.4s var(--ease); }
@media (max-width: 700px) {
  .nj-shared-ink-item__more { display: none; }
  .nj-shared-ink-item__head { font-size: 44px; }
}

/* Technology: Framer-style bento grid
   Asymmetric 4-column grid (wide, small, small / small, small, wide), solid card surfaces,
   a cursor spotlight + border glow, a gentle 3D tilt, framed previews that lift on hover */
@property --rx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
/* Framed preview that sits low in the card and lifts on hover */
@media (hover: hover) {
}

/* Footer */
.nj-shared-footer {
  position: relative;
  margin: 0 var(--gutter);
  padding: 0 0 26px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
}
/* Ring separator */
.nj-shared-footer__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; padding-bottom: 80px; }
.nj-shared-footer__mail { display: inline-flex; align-items: baseline; gap: 14px; font-size: clamp(32px, 3.8vw, 64px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; border-bottom: 2px solid var(--ink); padding-bottom: 8px; transition: gap 0.6s var(--ease); }
.nj-shared-footer__mail span { font-size: 0.6em; transition: transform 0.6s var(--ease); }
.nj-shared-footer__mail:hover { gap: 24px; }
.nj-shared-footer__mail:hover span { transform: rotate(45deg); }
.nj-shared-footer__note { margin-top: 26px; max-width: 420px; color: var(--ink-soft); font-size: 16px; }
.nj-shared-footer__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.nj-shared-footer__menus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-content: start; }
.nj-shared-footer__menus h2, .nj-shared-footer__menus h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; }
.nj-shared-footer__menus a { position: relative; display: block; width: fit-content; font-size: 18px; padding: 5px 0; transition: transform 0.5s var(--ease); }
.nj-shared-footer__menus a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nj-shared-footer__menus a:hover { transform: translateX(6px); }
.nj-shared-footer__menus a:hover::after { transform: scaleX(1); transform-origin: left; }
.nj-shared-footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 22px; }

/* Project list: hover a name to see the work */
@media (max-width: 700px) {
  .nj-shared-brand__logo { height: 20px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .nj-shared-topbar__nav { display: none; }
  .nj-shared-topbar__tools { margin-left: auto; }
  .nj-shared-footer__top { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 700px) {
  .nj-shared-brand { font-size: 18px; }
  /* Short phones: lift the bubble and words so the intro text sits clear below them */
  .nj-shared-footer__menus { grid-template-columns: 1fr 1fr; }
  .nj-shared-footer__row { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Smaller text keeps a soft halo of the wall colour so it reads over the carving */
.nj-shared-ink-menu__inner { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65); }

/* Header: clear over the hero, the site colour once the page has scrolled */
.nj-shared-topbar { transition: transform 0.6s var(--ease), background-color 0.4s var(--ease); }
.nj-shared-topbar.nj-shared-is-solid { background-color: var(--bg); }

/* Screen-reader-only text */
.nj-shared-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip to content: hidden until it gets keyboard focus, sits above the intro */
.nj-shared-skip-link { position: fixed; left: var(--gutter); top: 12px; z-index: 500; padding: 12px 20px; border-radius: 100px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; transform: translateY(-160%); transition: transform 0.3s var(--ease); }
.nj-shared-skip-link:focus, .nj-shared-skip-link:focus-visible { transform: none; outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }
/* Light rings where the background is dark */
.nj-shared-ink-menu :focus-visible { outline-color: #f1f1f1; }
.nj-shared-ink-item__head:focus-visible .nj-shared-ink-item__more { max-width: 13em; opacity: 1; }

/* Users who ask for more contrast get full-strength text everywhere */
@media (prefers-contrast: more) {
  :root, [data-theme="light"] { --ink-faint: rgba(0, 0, 0, 0.85); --ink-soft: #000; }
  [data-theme="dark"] { --ink-faint: rgba(235, 232, 226, 0.85); --ink-soft: #ebe8e2; }
}

/* Menu: one list of services, the old sub menus are switched off in the markup */
.nj-shared-ink-menu__label { margin-bottom: 14px; font: 500 12px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(236, 235, 232, 0.75); opacity: 0; transition: opacity 0.7s var(--ease); }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-menu__label { opacity: 1; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(5) .nj-shared-ink-item__head { transition-delay: 0.28s, 0.28s, 0s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(6) .nj-shared-ink-item__head { transition-delay: 0.35s, 0.35s, 0s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(7) .nj-shared-ink-item__head { transition-delay: 0.42s, 0.42s, 0s; }
.nj-shared-ink-menu.nj-shared-is-shown .nj-shared-ink-item:nth-child(8) .nj-shared-ink-item__head { transition-delay: 0.49s, 0.49s, 0s; }

/* Menu: one size smaller and starting higher, just under the header */
.nj-shared-ink-item__head { font-size: clamp(29px, 3.6vw, 55px); }
.nj-shared-ink-menu__list { margin: 1vh 0 auto; }
@media (max-width: 700px) { .nj-shared-ink-item__head { font-size: 31px; } }
/* Page footer sits at the end of every slide-up page */
.nj-shared-footer--page { margin: 12vh 0 0; padding-top: 60px; }
/* Blur filters are the most expensive thing a software compositor does */

.nj-shared-ink-menu__inner { padding: 90px var(--gutter) 34px; }

/* ==========================================================================
   Blog: listing, cards, article and WordPress content
   Built from the main website's tokens: --bg, --ink, --line, --gutter, Anton titles, Inter Tight text
   ========================================================================== */

.nj-blog-main { display: block; min-height: 60vh; }
.nj-blog-wrap { max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }
.nj-blog-footer-wrap { max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }

/* The header is fixed, so every page starts below it */
.nj-blog-main > :first-child { padding-top: clamp(110px, 13vw, 150px); }

/* WordPress core helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }
.alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--ink-soft); }
.sticky, .bypostauthor { position: relative; }

/* Post grid: thin rules between rows, like the service lists on the main website */
.nj-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(24px, 2.6vw, 40px); border-top: 1px solid var(--ink); padding-top: 40px; }
.nj-blog-card { position: relative; display: flex; flex-direction: column; gap: 22px; }
.nj-blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--line); }
.nj-blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nj-blog-card__media .nj-blog-card__mark { position: absolute; inset: 0; margin: auto; width: 34%; height: auto; object-fit: contain; opacity: 0.35; }
[data-theme="dark"] .nj-blog-card__mark { opacity: 0.5; }
.nj-blog-card:hover .nj-blog-card__media img:not(.nj-blog-card__mark) { transform: scale(1.04); }
.nj-blog-card__body { display: flex; flex-direction: column; gap: 12px; }
.nj-blog-card__title { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; }
.nj-blog-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.6s var(--ease); }
.nj-blog-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nj-blog-card:hover .nj-blog-card__title a, .nj-blog-card__title a:focus-visible { background-size: 100% 1px; }
.nj-blog-card__excerpt { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.nj-blog-card__excerpt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Meta line: category and date in the site's small caps style */
.nj-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nj-blog-meta__cat { position: relative; z-index: 2; color: var(--ink); }
.nj-blog-meta__cat::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--ink); vertical-align: 1px; }
.nj-blog-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Pagination: round buttons in the pill style */
.nj-blog-pagination { margin-top: 70px; }
.nj-blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nj-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; transition: border-color 0.4s, background-color 0.4s var(--ease), color 0.4s var(--ease); }
.nj-blog-pagination a.page-numbers:hover { border-color: var(--ink); }
.nj-blog-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nj-blog-pagination .page-numbers.dots { border-color: transparent; }

/* Article text: a comfortable measure, the site's sans for reading, serif italics for quotes */
.nj-blog-content { padding: 0 var(--gutter); font-size: clamp(15px, calc(1.25vw - 2px), 17px); line-height: 1.72; }
.nj-blog-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.nj-blog-content > * + * { margin-top: 1.25em; }
.nj-blog-content > .alignwide { max-width: 1120px; }
.nj-blog-content > .alignfull { max-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.nj-blog-content::after { content: ""; display: table; clear: both; }
.nj-blog-content h2, .nj-blog-content h3, .nj-blog-content h4, .nj-blog-content h5, .nj-blog-content h6 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: 110px; }
.nj-blog-content h4 { margin-top: 1.7em; font-size: 20px; }
.nj-blog-content h5, .nj-blog-content h6 { margin-top: 1.6em; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.nj-blog-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.3s; }
.nj-blog-content a:hover { text-decoration-thickness: 2px; }
.nj-blog-content strong, .nj-blog-content b { font-weight: 600; }
.nj-blog-content em, .nj-blog-content i, .nj-blog-content cite { font-family: inherit; font-style: italic; letter-spacing: 0; }
.nj-blog-content ul, .nj-blog-content ol { padding-left: 1.3em; }
.nj-blog-content li + li { margin-top: 0.4em; }
.nj-blog-content li > ul, .nj-blog-content li > ol { margin-top: 0.4em; }
.nj-blog-content blockquote, .nj-blog-content .wp-block-quote { padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 1.45em; line-height: 1.35; }
.nj-blog-content blockquote p + p { margin-top: 0.6em; }
.nj-blog-content blockquote cite, .nj-blog-content .wp-block-quote cite { display: block; margin-top: 0.8em; font-family: var(--sans); font-size: 14px; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.nj-blog-content .wp-block-pullquote { padding: 1.4em 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: center; }
.nj-blog-content .wp-block-pullquote blockquote { padding: 0; border: 0; }
.nj-blog-content figure img, .nj-blog-content > img, .nj-blog-content p img { height: auto; border-radius: 4px; }
.nj-blog-content figcaption, .nj-blog-content .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-align: left; }
.nj-blog-content hr, .nj-blog-content .wp-block-separator { height: 0; border: 0; border-top: 1px solid var(--line); margin-top: 2.4em; margin-bottom: 2.4em; }
.nj-blog-content code, .nj-blog-content kbd { padding: 0.1em 0.35em; border-radius: 4px; background: var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
.nj-blog-content pre { padding: 20px 22px; border-radius: 6px; background: var(--invert-bg); color: var(--invert-ink); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.nj-blog-content pre code { padding: 0; background: none; color: inherit; }
.nj-blog-content table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.nj-blog-content .wp-block-table { overflow-x: auto; }
.nj-blog-content th, .nj-blog-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nj-blog-content th { font-weight: 600; border-bottom-color: var(--ink); }
.nj-blog-content iframe, .nj-blog-content video, .nj-blog-content embed { max-width: 100%; }
.nj-blog-content .wp-block-embed__wrapper iframe { width: 100%; }
.nj-blog-content .wp-block-button__link, .nj-blog-content .wp-element-button { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 100px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; text-decoration: none; }
.nj-blog-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.nj-blog-content .wp-block-image.alignleft, .nj-blog-content .wp-block-image.alignright { max-width: 50%; }
.nj-blog-pages { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2em; font-size: 14px; }

/* Article footer: tags and the way back */
.nj-blog-article__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; max-width: calc(720px + var(--gutter) * 2); margin: clamp(50px, 6vw, 80px) auto 0; padding: 40px var(--gutter) 0; }
.nj-blog-article__foot::before { content: ""; display: block; width: 100%; border-top: 1px solid var(--ink); margin-top: -40px; margin-bottom: 10px; }
.nj-blog-tags { margin-top: 0; }

/* Previous / next */
.nj-blog-postnav { max-width: 1680px; margin: clamp(70px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
.nj-blog-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-top: 1px solid var(--line); padding-top: 34px; }
.nj-blog-postnav .nav-next { grid-column: 2; text-align: right; }
.nj-blog-postnav .nav-next .nj-shared-label { justify-content: flex-end; }
.nj-blog-postnav a { display: block; }
.nj-blog-postnav .nj-shared-label { margin-bottom: 12px; }
.nj-blog-postnav__title { display: block; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.nj-blog-postnav a:hover .nj-blog-postnav__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Related posts */
.nj-blog-related { max-width: 1680px; margin: clamp(70px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }

/* Comments */
.nj-blog-comments { max-width: calc(720px + var(--gutter) * 2); margin: clamp(60px, 8vw, 100px) auto 0; padding: 0 var(--gutter); }
.nj-blog-comments__list, .nj-blog-comments__list .children { list-style: none; }
.nj-blog-comments__list .children { padding-left: 24px; border-left: 1px solid var(--line); }
.nj-blog-comments__list .comment-body { padding: 22px 0; border-top: 1px solid var(--line); }
.nj-blog-comments__list .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--ink-soft); }
.nj-blog-comments__list .avatar { border-radius: 50%; }
.nj-blog-comments__list .comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.nj-blog-comments__list .says { display: none; }
.nj-blog-comments__list .comment-content { margin-top: 10px; }
.nj-blog-comments__list .reply { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nj-blog-comments .comment-respond { margin-top: 40px; }
.nj-blog-comments .comment-form { display: grid; gap: 18px; }
.nj-blog-comments .comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.nj-blog-comments .comment-form input[type="text"], .nj-blog-comments .comment-form input[type="email"], .nj-blog-comments .comment-form input[type="url"], .nj-blog-comments .comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; }
.nj-blog-comments .comment-form input:focus-visible, .nj-blog-comments .comment-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nj-blog-comments .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.nj-blog-comments .comment-form-cookies-consent label { margin: 0; }
.nj-blog-comments .form-submit .nj-shared-pill { cursor: pointer; }
.nj-blog-comments__closed { color: var(--ink-soft); }

/* Logged-in editors: the fixed header and menu sit below the WordPress admin bar */
.admin-bar .nj-shared-topbar, .admin-bar .nj-shared-ink-menu { top: 32px; }
.admin-bar .nj-shared-skip-link { top: 44px; }
@media (max-width: 782px) {
  .admin-bar .nj-shared-topbar, .admin-bar .nj-shared-ink-menu { top: 46px; }
  .admin-bar .nj-shared-skip-link { top: 58px; }
}

/* Footer spacing on blog pages */
.nj-blog-footer-wrap .nj-shared-footer--page { margin-top: clamp(90px, 12vh, 150px); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nj-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .nj-blog-content .wp-block-image.alignleft, .nj-blog-content .wp-block-image.alignright, .nj-blog-content .alignleft, .nj-blog-content .alignright { float: none; max-width: 100%; margin: 1.25em auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nj-blog-card:hover .nj-blog-card__media img { transform: none; }
}

/* ==========================================================================
   v2: menu carving, listing head, filter bar, cards, article, motion
   ========================================================================== */

@font-face { font-family: "Tinos"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tinos-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/tinos-latin-400-italic.woff2") format("woff2"); }
:root { --display: "Tinos", "Times New Roman", Times, serif; }

/* ---------- Menu: the carved jungle wall from the main site, lit by a lamp that follows the cursor ---------- */
.nj-shared-ink-menu { background: #0b0b0b; }
.nj-menu-bg { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: scale(1.12); transition: opacity 0.9s var(--ease), transform 2.4s var(--ease); }
.nj-shared-ink-menu.nj-shared-is-shown .nj-menu-bg { opacity: 1; transform: none; transition-delay: 0.2s; }
.nj-menu-bg__carving, .nj-menu-bg__lamp { position: absolute; inset: -6%; background: var(--nj-menu-img, none) center / cover no-repeat; animation: nj-drift 38s ease-in-out infinite alternate; will-change: transform; }
.nj-menu-bg__lamp { filter: brightness(2.6) contrast(1.1); -webkit-mask-image: radial-gradient(circle 32vmax at var(--mx, 50%) var(--my, 45%), #000 0%, rgba(0, 0, 0, 0.35) 40%, transparent 72%); mask-image: radial-gradient(circle 32vmax at var(--mx, 50%) var(--my, 45%), #000 0%, rgba(0, 0, 0, 0.35) 40%, transparent 72%); }
/* Quieter behind the words so they stay crisp */
.nj-menu-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 48%, rgba(8, 8, 8, 0.62), rgba(8, 8, 8, 0.1) 70%, rgba(8, 8, 8, 0.35)); pointer-events: none; }
@keyframes nj-drift { from { transform: translate3d(2.5%, 2%, 0) scale(1.02); } to { transform: translate3d(-2.5%, -3%, 0) scale(1.06); } }
.nj-shared-ink-menu__inner { z-index: 1; }
.nj-shared-ink-item__head { position: relative; }
.nj-shared-ink-item__word { display: inline-block; transition: transform 0.6s var(--ease); }
.nj-shared-ink-item__head:hover .nj-shared-ink-item__word { font-style: italic; transform: translateX(-0.12em); }
.nj-shared-ink-menu__list:hover .nj-shared-ink-item__head { color: rgba(236, 235, 232, 0.5); }
.nj-shared-ink-menu__list:hover .nj-shared-ink-item__head:hover { color: #ecebe8; }

/* ---------- Listing head: title left (smaller), intro right ---------- */
.nj-blog-head { display: grid; grid-template-columns: auto minmax(0, 600px); justify-content: space-between; align-items: end; gap: 28px 6vw; padding-bottom: clamp(30px, 3.6vw, 48px); }
.nj-blog-head .nj-shared-label { margin-bottom: 18px; }
.nj-blog-title { font-family: "Anton", var(--sans); font-weight: 400; font-size: clamp(54px, 7.6vw, 136px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.nj-blog-head__text { padding-bottom: 0.35em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.nj-blog-head__text p + p { margin-top: 0.7em; }
.nj-blog-head__text em { color: var(--ink); font-size: 1.15em; }

/* ---------- Filter bar: full width under the head ---------- */
.nj-blog-cats { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(40px, 5vw, 64px); padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.nj-blog-cats__label { flex-shrink: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nj-blog-cats__list { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.nj-blog-cats .nj-shared-topbar__link { isolation: isolate; }
.nj-blog-searchbar { padding: 16px 0; margin-bottom: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.nj-blog-searchbar .search-form { display: flex; gap: 10px; width: min(620px, 100%); }
.nj-blog-searchbar label { flex: 1; }
.nj-blog-searchbar .search-field { width: 100%; height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.nj-blog-searchbar .search-submit { height: 46px; padding: 0 24px; border-radius: 100px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; }
.nj-blog-empty { padding: 30px 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); }
.nj-blog-back { margin-top: 60px; }

/* ---------- Cards ---------- */
.nj-blog-grid { border-top: 0; padding-top: 0; gap: 64px clamp(24px, 2.6vw, 40px); }
.nj-blog-head + .nj-blog-grid { border-top: 1px solid var(--ink); padding-top: 40px; }
.nj-blog-card { gap: 24px; }
.nj-blog-card__media { border-radius: 6px; }
.nj-blog-card__media img { transform: scale(1.001); }
.nj-blog-card:hover .nj-blog-card__media img:not(.nj-blog-card__mark) { transform: scale(1.06); }
.nj-blog-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18)); opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.nj-blog-card:hover .nj-blog-card__media::after { opacity: 1; }
.nj-blog-card__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.nj-blog-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nj-blog-card__more i { font-style: normal; transition: transform 0.5s var(--ease); }
.nj-blog-card:hover .nj-blog-card__more i { transform: translateX(6px); }

/* ---------- Single article ---------- */
.nj-blog-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 130; height: 2px; pointer-events: none; }
.nj-blog-progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.admin-bar .nj-blog-progress { top: 32px; }
.nj-blog-progress + .nj-blog-article { padding-top: clamp(120px, 13vw, 160px); }

.nj-blog-article__head { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 5vw, 64px); text-align: center; }
.nj-blog-article__head .nj-blog-meta { justify-content: center; }
.nj-blog-article__title { margin: 24px auto 0; max-width: 23em; font-family: "Anton", var(--sans); font-weight: 400; font-size: clamp(32px, 3.7vw, 64px); line-height: 1.02; text-transform: uppercase; letter-spacing: 0.005em; text-wrap: balance; }
.nj-blog-article--page .nj-blog-article__title { max-width: 23em; }
.nj-blog-article__by { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); }
.nj-blog-article__by a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.nj-blog-article__by a:hover { border-color: var(--ink); }

.nj-blog-article__media { max-width: calc(1200px + var(--gutter) * 2); margin: 0 auto clamp(48px, 6vw, 80px); padding: 0 var(--gutter); }
.nj-blog-article__img { overflow: hidden; border-radius: 8px; clip-path: inset(10% 8% 0 8% round 8px); transition: clip-path 1.5s var(--ease) 0.25s; }
.nj-blog-article__img img { width: 100%; height: auto; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(1.18); transition: transform 1.8s var(--ease) 0.25s; }
.nj-is-ready .nj-blog-article__img { clip-path: inset(0 0 0 0 round 8px); }
.nj-is-ready .nj-blog-article__img img { transform: none; }
.nj-blog-article__media figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* Content headings: the serif display face, body stays Inter Tight */
.nj-blog-content h2, .nj-blog-content h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.nj-blog-content h2 { margin-top: 2em; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.1; }
.nj-blog-content h3 { margin-top: 1.7em; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; }
.nj-blog-content h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nj-blog-content h2 + *, .nj-blog-content h3 + * { margin-top: 0.7em; }
.nj-blog-content p { color: var(--ink-soft); }
.nj-blog-content strong, .nj-blog-content b { color: var(--ink); }
.nj-blog-content li::marker { color: var(--ink-faint); }
.nj-blog-content table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.nj-blog-content thead th, .nj-blog-content tr:first-child th { background: var(--ink); color: var(--bg); border-bottom: 0; }
.nj-blog-content .wp-block-table thead, .nj-blog-content .wp-block-table tfoot { border: 0; }
.nj-blog-content .wp-block-table th, .nj-blog-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.nj-blog-content .wp-block-table tr:last-child td { border-bottom: 0; }
.nj-blog-content tbody tr:nth-child(even) td { background: rgba(127, 127, 127, 0.06); }
/* Table of contents boxes from common plugins and the core block */
.nj-blog-content #ez-toc-container, .nj-blog-content .ez-toc-container, .nj-blog-content .wp-block-rank-math-toc-block, .nj-blog-content .rank-math-toc, .nj-blog-content .lwptoc, .nj-blog-content .wp-block-table-of-contents, .nj-blog-content .toc { width: auto !important; padding: 24px 28px !important; border: 1px solid var(--line) !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important; font-size: 16px; }
.nj-blog-content #ez-toc-container a, .nj-blog-content .rank-math-toc a, .nj-blog-content .wp-block-table-of-contents a { color: var(--ink-soft) !important; text-decoration: none; transition: color 0.3s; }
.nj-blog-content #ez-toc-container a:hover, .nj-blog-content .rank-math-toc a:hover, .nj-blog-content .wp-block-table-of-contents a:hover { color: var(--ink) !important; }
.nj-blog-content .ez-toc-title, .nj-blog-content .rank-math-toc h2 { font-family: var(--sans) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink) !important; margin: 0 !important; }

.nj-blog-related .nj-shared-label { margin-bottom: 30px; padding-top: 30px; border-top: 1px solid var(--ink); }

/* ---------- Motion: letters rise, words rise, cards and blocks fade up ---------- */
.nj-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0; margin: -0.04em 0; }
.nj-char { display: inline-block; transform: translate3d(0, 110%, 0) rotate(4deg); transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 0.035s); }
.nj-word { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(0.1s + var(--i, 0) * 0.045s); }
.nj-is-ready .nj-char, .nj-is-ready .nj-word { transform: none; }
.nj-blog-fade { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease) 0.35s, transform 1.1s var(--ease) 0.35s; }
.nj-is-ready .nj-blog-fade { opacity: 1; transform: none; }
.nj-reveal { opacity: 0; transform: translate3d(0, 46px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
html:not(.nj-no-blur) .nj-reveal:not(.nj-is-in) { filter: blur(8px); }
.nj-reveal.nj-is-in { opacity: 1; transform: none; filter: none; }
.nj-blog-card.nj-reveal .nj-blog-card__media { clip-path: inset(0 0 100% 0 round 6px); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--d, 0s) + 0.1s); }
.nj-blog-card.nj-reveal.nj-is-in .nj-blog-card__media { clip-path: inset(0 0 0 0 round 6px); }
/* Without JavaScript everything is simply visible */
html:not(.nj-js) .nj-char, html:not(.nj-js) .nj-word, html:not(.nj-js) .nj-blog-fade, html:not(.nj-js) .nj-reveal { opacity: 1; transform: none; filter: none; }
html:not(.nj-js) .nj-blog-card .nj-blog-card__media, html:not(.nj-js) .nj-blog-article__img { clip-path: none; }
html:not(.nj-js) .nj-blog-article__img img { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nj-blog-head { grid-template-columns: 1fr; }
  .nj-blog-head__text { max-width: 620px; }
}
@media (max-width: 782px) { .admin-bar .nj-blog-progress { top: 46px; } }
@media (max-width: 700px) {
  .nj-blog-grid { grid-template-columns: 1fr; gap: 48px; }
  .nj-blog-title { font-size: clamp(48px, 16vw, 88px); }
  .nj-blog-cats { gap: 12px; margin-right: calc(var(--gutter) * -1); }
  .nj-blog-cats__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: var(--gutter); }
  .nj-blog-cats__list::-webkit-scrollbar { display: none; }
  .nj-blog-cats .nj-shared-topbar__link { flex-shrink: 0; }
  .nj-blog-article__title { font-size: clamp(28px, 8.4vw, 40px); }
  .nj-blog-searchbar .search-form { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .nj-char, .nj-word, .nj-blog-fade, .nj-reveal, .nj-blog-card .nj-blog-card__media, .nj-blog-article__img, .nj-blog-article__img img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .nj-menu-bg__carving, .nj-menu-bg__lamp { animation: none; }
}

/* WebGL ink menu (same shader as the main website); the CSS circle above is only the fallback */
.nj-shared-ink-menu__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nj-shared-ink-menu.nj-webgl { background: transparent; clip-path: none !important; transition: none; }
.nj-shared-ink-menu.nj-webgl .nj-menu-bg { display: none; }
.nj-shared-ink-menu:not(.nj-webgl) .nj-shared-ink-menu__canvas { display: none; }

/* ==========================================================================
   v3: article page, with the main website's motion (listing stays as v1.2)
   ========================================================================== */

/* ---------- Related cards on articles ---------- */
.nj-blog-related .nj-blog-card__num { font: italic 400 15px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.nj-blog-related .nj-blog-card__media { isolation: isolate; }
.nj-blog-related .nj-blog-card__media img:not(.nj-blog-card__mark) { filter: saturate(0.9); transition: transform 1.2s var(--ease), filter 0.8s var(--ease); }
.nj-blog-related .nj-blog-card:hover .nj-blog-card__media img:not(.nj-blog-card__mark) { filter: saturate(1.05); }
/* The round "Read" badge that follows the pointer over the picture */
.nj-blog-related .nj-blog-card__view { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transform: scale(0); transition: transform 0.6s var(--ease); pointer-events: none; }
.nj-blog-related .nj-blog-card--featured .nj-blog-card__view { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
@media (hover: hover) { .nj-blog-related .nj-blog-card:hover .nj-blog-card__view { transform: scale(1); } }
.nj-blog-related .nj-blog-card__title { text-wrap: balance; }
.nj-blog-related .nj-blog-card__more { gap: 12px; margin-top: 8px; }
.nj-blog-related .nj-blog-card__time { color: var(--ink-soft); font-weight: 500; }
.nj-blog-related .nj-blog-card__time::before { content: "\00B7"; margin-right: 12px; }
.nj-blog-related .nj-blog-card__arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.nj-blog-related .nj-blog-card:hover .nj-blog-card__arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: none; }
.nj-blog-related .nj-blog-card__arrow svg { transition: transform 0.6s var(--ease); }
.nj-blog-related .nj-blog-card:hover .nj-blog-card__arrow svg { animation: nj-arrow 0.7s var(--ease); }
@keyframes nj-arrow { 0% { transform: none; } 45% { transform: translateX(140%); } 46% { transform: translateX(-140%); } 100% { transform: none; } }
.nj-blog-related .nj-blog-card:hover .nj-blog-card__more i { transform: none; }

/* ---------- Article head ---------- */
.nj-blog-article__title { max-width: 17em; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 92px); line-height: 1.02; text-transform: none; letter-spacing: -0.025em; text-wrap: balance; }
.nj-blog-article__dek { max-width: 34em; margin: 26px auto 0; font: italic 400 clamp(19px, 1.6vw, 26px)/1.45 var(--display); color: var(--ink-soft); text-wrap: pretty; }
.nj-blog-article__byline { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 8px 22px 8px 8px; border: 1px solid var(--line); border-radius: 100px; text-align: left; font-size: 14px; }
.nj-blog-article__byline .nj-blog-article__avatar { width: 44px; height: 44px; border-radius: 50%; }
.nj-blog-article__byline a { font-weight: 600; }
.nj-blog-article__byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nj-blog-article__byline small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); }

/* ---------- Share ---------- */
.nj-blog-share .nj-shared-label { margin-bottom: 14px; }
.nj-blog-share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.nj-blog-share__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.nj-blog-share__btn:hover, .nj-blog-share__btn:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.nj-blog-share__btn.nj-is-done { background: var(--ink); color: var(--bg); }

/* ---------- Article text ---------- */
.nj-blog-content { counter-reset: nj-h2; }
.nj-blog-content h2, .nj-blog-content h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; }
.nj-blog-content h2 { counter-increment: nj-h2; margin-top: 1.7em; font-size: clamp(30px, 2.7vw, 44px); line-height: 1.1; text-wrap: balance; }
.nj-blog-content h2::before { content: counter(nj-h2, decimal-leading-zero); display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; color: var(--ink-soft); }
.nj-blog-content h2::after { content: none; }
.nj-blog-content h3 { margin-top: 1.5em; font-size: clamp(23px, 1.9vw, 30px); line-height: 1.18; }
/* Drop cap on the opening paragraph */
.nj-blog-content > p:first-child::first-letter { float: left; margin: 0.06em 0.1em 0 -0.02em; font: 400 4.1em/0.82 var(--display); color: var(--ink); }
.nj-blog-content > p:first-child { color: var(--ink); font-size: 1.08em; }
/* Quotes: large serif, words light up as you read */
.nj-blog-content blockquote, .nj-blog-content .wp-block-quote { position: relative; margin-top: 1.5em; margin-bottom: 1.5em; padding: 1em 2.2em 1em 0; border-left: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font: italic 400 clamp(26px, 2.4vw, 38px)/1.28 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.nj-blog-content blockquote::before { content: "\201C"; position: absolute; right: -0.05em; top: 0.18em; font: 400 2.6em/1 var(--display); color: var(--ink); opacity: 0.16; pointer-events: none; }
.nj-blog-content blockquote p { color: inherit; }
.nj-blog-content blockquote cite { margin-top: 1.1em; font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft); }
.nj-blog-content blockquote cite::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; background: currentColor; vertical-align: middle; }
/* Lists with short rules instead of dots */
.nj-blog-content ul:not([class*="toc"]) { list-style: none; padding-left: 0; }
.nj-blog-content ul:not([class*="toc"]) > li { position: relative; padding-left: 1.7em; }
.nj-blog-content ul:not([class*="toc"]) > li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 1em; height: 1px; background: var(--ink); }
.nj-blog-content ol > li::marker { font-family: var(--display); font-style: italic; color: var(--ink); }
.nj-blog-content a { text-decoration-color: var(--ink-faint); }
.nj-blog-content a:hover { text-decoration-color: var(--ink); }
.nj-blog-content pre { border-radius: 10px; padding: 22px 26px; }

/* ---------- Article foot ---------- */
.nj-blog-article__foot { gap: 26px; }
.nj-blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nj-blog-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 500; transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.nj-blog-chip:hover, .nj-blog-chip:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Related ---------- */
.nj-blog-related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 36px; padding-top: 34px; border-top: 1px solid var(--ink); }
.nj-blog-related__title { font: 400 clamp(36px, 4vw, 64px)/1 var(--display); letter-spacing: -0.02em; }
.nj-blog-related .nj-blog-grid { border-top: 0; padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
}
@media (max-width: 700px) {
  .nj-blog-article__title { font-size: clamp(34px, 10vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .nj-lw { opacity: 1 !important; }
  .nj-blog-related .nj-blog-card__view { display: none; }
}
@media (prefers-contrast: more) { .nj-lw { opacity: 1; } }
html:not(.nj-js) .nj-lw { opacity: 1; }

/* Words that light up (article quotes) */
.nj-lw { opacity: 0.32; transition: opacity 0.5s ease; }
.nj-lw.nj-is-lit { opacity: 1; }
html:not(.nj-js) .nj-lw { opacity: 1; }

/* ---------- Listing: the v1.2 design, with a few light effects ---------- */
.nj-blog-grid .nj-blog-card { transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), translate 0.7s var(--ease); transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s; }
@media (hover: hover) {
  .nj-blog-grid .nj-blog-card:hover { translate: 0 -6px; }
  .nj-blog-grid .nj-blog-card__media { box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: box-shadow 0.7s var(--ease); }
  .nj-blog-grid .nj-blog-card:hover .nj-blog-card__media { box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.45); }
}
/* A soft light sweeps across the picture on hover */
.nj-blog-grid .nj-blog-card__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.nj-blog-grid .nj-blog-card:hover .nj-blog-card__media::before { transform: translateX(110%); transition: transform 1.1s var(--ease); }
/* Filter pills rise in one after another */
.nj-blog-cats__list > * { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), color 0.4s var(--ease); }
.nj-is-ready .nj-blog-cats__list > * { opacity: 1; transform: none; }
.nj-is-ready .nj-blog-cats__list > *:nth-child(1) { transition-delay: 0.5s, 0.5s, 0s; }
.nj-is-ready .nj-blog-cats__list > *:nth-child(2) { transition-delay: 0.56s, 0.56s, 0s; }
.nj-is-ready .nj-blog-cats__list > *:nth-child(3) { transition-delay: 0.62s, 0.62s, 0s; }
.nj-is-ready .nj-blog-cats__list > *:nth-child(4) { transition-delay: 0.68s, 0.68s, 0s; }
.nj-is-ready .nj-blog-cats__list > *:nth-child(5) { transition-delay: 0.74s, 0.74s, 0s; }
.nj-is-ready .nj-blog-cats__list > *:nth-child(n+6) { transition-delay: 0.8s, 0.8s, 0s; }
html:not(.nj-js) .nj-blog-cats__list > * { opacity: 1; transform: none; }

/* ---------- Article picture: same width, shorter ---------- */

/* ---------- Tables in articles ---------- */
.nj-blog-content .wp-block-table, .nj-blog-content > table { max-width: 720px; }
.nj-blog-content .wp-block-table { overflow-x: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.nj-blog-content table { width: 100%; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 0.9em; line-height: 1.5; font-variant-numeric: tabular-nums; }
.nj-blog-content thead th, .nj-blog-content tr:first-child th { position: relative; padding: 15px 18px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; border: 0; }
.nj-blog-content table td, .nj-blog-content .wp-block-table td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); transition: background-color 0.35s ease, color 0.35s ease; }
.nj-blog-content table td:first-child { color: var(--ink); font-weight: 500; }
.nj-blog-content tbody tr:nth-child(even) td { background: rgba(127, 127, 127, 0.06); }
.nj-blog-content tbody tr:last-child td { border-bottom: 0; }
.nj-blog-content tbody tr { position: relative; }
.nj-blog-content tbody tr:hover td { background: rgba(127, 127, 127, 0.14); color: var(--ink); }
.nj-blog-content tbody tr td:first-child { box-shadow: inset 0 0 0 var(--ink); transition: box-shadow 0.35s var(--ease), background-color 0.35s ease, color 0.35s ease; }
.nj-blog-content tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.nj-blog-content .wp-block-table figcaption { margin-top: 12px; font-size: 13px; }
/* Scroll animation: the header slides in, then the rows follow one by one */
.nj-js .nj-blog-content table.nj-table-anim thead th { opacity: 0; transform: translate3d(0, -10px, 0); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.nj-js .nj-blog-content table.nj-table-anim tbody tr { opacity: 0; transform: translate3d(-18px, 0, 0); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); transition-delay: calc(0.15s + var(--r, 0) * 0.07s); }
.nj-js .nj-blog-content table.nj-table-anim.nj-is-in thead th, .nj-js .nj-blog-content table.nj-table-anim.nj-is-in tbody tr { opacity: 1; transform: none; }
/* Numbers count up as the row appears */
.nj-blog-content td[data-nj-num] { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .nj-blog-grid .nj-blog-card:hover { translate: none !important; }
  .nj-blog-grid .nj-blog-card__media::before { display: none; }
  .nj-blog-cats__list > * { opacity: 1 !important; transform: none !important; }
  .nj-js .nj-blog-content table.nj-table-anim thead th, .nj-js .nj-blog-content table.nj-table-anim tbody tr { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (max-width: 700px) {
  .nj-blog-content table { font-size: 0.82em; }
  .nj-blog-content thead th, .nj-blog-content tr:first-child th { padding: 12px 10px; font-size: 10px; letter-spacing: 0.08em; }
  .nj-blog-content table td, .nj-blog-content .wp-block-table td { padding: 11px 10px; }
}

/* ==========================================================================
   v1.5: single post refinements
   ========================================================================== */

/* Headings in the main website's sans (Inter Tight), sentence case */
.nj-blog-article__title { max-width: 18em; font-family: var(--sans); font-weight: 600; font-size: clamp(34px, 3.8vw, 60px); line-height: 1.08; letter-spacing: -0.035em; }
.nj-blog-content h2, .nj-blog-content h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; }
.nj-blog-content h2 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.15; }
.nj-blog-content h3 { font-size: clamp(21px, 1.6vw, 26px); line-height: 1.2; }
.nj-blog-content h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.nj-blog-related__title { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; }
.nj-blog-content > p:first-child::first-letter { font-family: var(--sans); font-weight: 600; letter-spacing: -0.04em; }

/* Section number beside its heading, not above it */
.nj-blog-content h2 { display: flex; align-items: baseline; gap: 0.6em; }
.nj-blog-content h2::before { flex: none; display: inline-block; margin: 0; min-width: 1.6em; font: 500 0.42em/1 var(--sans); letter-spacing: 0.08em; color: var(--ink-soft); transform: translateY(-0.35em); }

/* Picture and text share one centred column, 850px wide */
.nj-blog-article__media { max-width: calc(850px + var(--gutter) * 2); }
.nj-blog-content > * { max-width: 850px; }
.nj-blog-content > .alignwide { max-width: 1100px; }
.nj-blog-content .wp-block-table, .nj-blog-content > table { max-width: 850px; }
.nj-blog-article__head { max-width: 1100px; }

/* Foot: a divider, then tags on the left and share on the right */
.nj-blog-article__foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 30px; max-width: calc(850px + var(--gutter) * 2); padding-top: 0; }
.nj-blog-article__foot::before { content: none; }
.nj-blog-article__rule { flex: 0 0 100%; height: 0; margin: 0 0 6px; border: 0; border-top: 1px solid var(--ink); }
.nj-blog-share--foot { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nj-blog-share--foot .nj-shared-label { margin: 0; }

/* Previous / next: compact row, thumbnail and title */
.nj-blog-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: calc(850px + var(--gutter) * 2); margin: clamp(48px, 5vw, 70px) auto 0; padding: 0 var(--gutter); }
.nj-blog-postnav a.nj-blog-postnav__item { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nj-blog-postnav__item--next { flex-direction: row-reverse; text-align: right; padding-left: 20px; }
.nj-blog-postnav__item--prev { padding-right: 20px; }
.nj-blog-postnav__item--prev + .nj-blog-postnav__item--next, .nj-blog-postnav__empty + .nj-blog-postnav__item--next { border-left: 1px solid var(--line); }
.nj-blog-postnav__empty { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nj-blog-postnav__thumb { display: block; flex: none; position: relative; width: 72px; height: 72px; overflow: hidden; border-radius: 8px; background: var(--line); }
.nj-blog-postnav__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.nj-blog-postnav__thumb .nj-blog-postnav__mark { object-fit: contain; padding: 14px; opacity: 0.5; }
.nj-blog-postnav__item:hover .nj-blog-postnav__thumb img { transform: scale(1.1); }
.nj-blog-postnav__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nj-blog-postnav__label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nj-blog-postnav__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 clamp(15px, 1.15vw, 17px)/1.3 var(--sans); letter-spacing: -0.015em; }
.nj-blog-postnav__item:hover .nj-blog-postnav__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Keep reading: drifting ink behind the cards (the main website's Fieldwork smoke) */
.nj-blog-related { position: relative; isolation: isolate; padding-bottom: 20px; }
.nj-blog-smoke { position: absolute; z-index: -1; left: 50%; top: -120px; bottom: -160px; width: 100vw; height: calc(100% + 280px); transform: translateX(-50%); pointer-events: none; opacity: 0.38; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }

@media (max-width: 700px) {
  .nj-blog-postnav { grid-template-columns: 1fr; }
  .nj-blog-postnav a.nj-blog-postnav__item--next { flex-direction: row; text-align: left; padding-left: 0; border-left: 0 !important; border-top: 0; }
  .nj-blog-postnav__item--prev { padding-right: 0; }
  .nj-blog-postnav__empty { display: none; }
  .nj-blog-postnav__empty + .nj-blog-postnav__item--next { border-top: 1px solid var(--line); }
  .nj-blog-share--foot { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .nj-blog-smoke { display: none; } }
.nj-blog-comments { max-width: calc(850px + var(--gutter) * 2); }

/* ==========================================================================
   v1.6: Anton title, 4:3 picture, bolder section headings, ink behind the whole article
   ========================================================================== */
.nj-blog-article__title { max-width: 20em; font-family: "Anton", var(--sans); font-weight: 400; font-size: clamp(40px, 4.8vw, 80px); line-height: 1.02; letter-spacing: 0.005em; text-transform: uppercase; }
@media (max-width: 700px) { .nj-blog-article__title { font-size: clamp(32px, 9.5vw, 48px); } }

/* Section headings: Anton capitals with a short rule and the number beside them */
.nj-blog-content h2 { position: relative; font-family: "Anton", var(--sans); font-weight: 400; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.08; letter-spacing: 0.01em; text-transform: uppercase; }
.nj-blog-content h2::before { font: 500 13px/1 var(--sans); letter-spacing: 0.1em; min-width: 2.4em; padding: 7px 0 6px; border-top: 2px solid var(--ink); color: var(--ink); transform: translateY(-0.55em); }
.nj-blog-content h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 1.5vw, 24px); letter-spacing: -0.025em; }
.nj-blog-content h3::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.55em; border-radius: 50%; background: var(--ink); vertical-align: 0.12em; }
.nj-blog-related__title { font-family: "Anton", var(--sans); font-weight: 400; letter-spacing: 0.005em; text-transform: uppercase; }

/* Ink drifting behind the whole article, fixed to the screen like the Fieldwork page */
.nj-blog-smoke { position: fixed; z-index: -1; inset: 0; left: 0; top: 0; bottom: auto; width: 100vw; height: 100vh; transform: none; opacity: 0.3;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.3) 28%, rgba(0, 0, 0, 0.3) 72%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.3) 28%, rgba(0, 0, 0, 0.3) 72%, #000 100%); }
@media (max-width: 700px) { .nj-blog-smoke { opacity: 0.16; } }
.nj-blog-related { isolation: auto; }

/* ==========================================================================
   v1.6.1: 16:9 picture, never cropped; body text 2px smaller (see .nj-blog-content)
   ========================================================================== */
/* The frame is 16:9 and the whole picture always shows inside it (contain, not cover).
   A 16:9 picture fills the frame exactly; any other shape is shown complete, centred. */
.nj-blog-article__img { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.nj-blog-article__img { overflow: visible; border-radius: 0; }
.nj-is-ready .nj-blog-article__img { clip-path: inset(0 0 0 0); }
.nj-blog-article__img img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 8px; }

/* Single article: quick contact. Appears beside the article (left or right, whichever side is away from the
   pointer) once scrolling stops; a bar at the bottom on narrow screens. */
.nj-blog-qcta { position: fixed; z-index: 60; left: 0; top: 0; width: 300px; padding: 22px 22px 20px; border-radius: 18px; background: #0d0d0d; color: #e8e8e8;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s; }
.nj-blog-qcta.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s; }
[data-theme="dark"] .nj-blog-qcta { background: #1f1f1f; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.nj-blog-qcta__text { display: flex; flex-direction: column; gap: 8px; padding-right: 22px; }
.nj-blog-qcta__kicker { font: 500 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 232, 232, 0.6); }
.nj-blog-qcta__line { font: 400 24px/1.15 var(--serif); }
.nj-blog-qcta__line em { font-style: italic; }
.nj-blog-qcta__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nj-blog-qcta__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(232, 232, 232, 0.32); border-radius: 999px;
  color: #e8e8e8; font: 500 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease; }
.nj-blog-qcta__btn svg { width: 15px; height: 15px; flex: none; }
.nj-blog-qcta__btn:hover, .nj-blog-qcta__btn:focus-visible { background: #e8e8e8; color: #0a0a0a; border-color: #e8e8e8; }
.nj-blog-qcta__btn--quote { background: #e8e8e8; color: #0a0a0a; border-color: #e8e8e8; }
.nj-blog-qcta__btn--quote:hover, .nj-blog-qcta__btn--quote:focus-visible { background: transparent; color: #e8e8e8; }
.nj-blog-qcta__close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: rgba(232, 232, 232, 0.6); font: 400 20px/1 var(--sans); cursor: pointer; }
.nj-blog-qcta__close:hover { color: #e8e8e8; }
/* Beside the article: narrower card, buttons stacked */
.nj-blog-qcta.is-side { padding: 18px 16px 16px; }
.nj-blog-qcta.is-side .nj-blog-qcta__line { font-size: 21px; }
.nj-blog-qcta.is-side .nj-blog-qcta__btns { flex-direction: column; }
.nj-blog-qcta.is-side .nj-blog-qcta__btn { justify-content: center; letter-spacing: 0.05em; padding: 0 10px; }
@media (max-width: 700px) {
  .nj-blog-qcta { padding: 16px 16px 14px; border-radius: 14px; }
  .nj-blog-qcta__line { font-size: 20px; }
  .nj-blog-qcta__btns { flex-wrap: nowrap; margin-top: 14px; }
  .nj-blog-qcta__btn { flex: 1; justify-content: center; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .nj-blog-qcta { transform: none; } }
