/*
Theme Name: JPPinto Modern
Theme URI: https://jppinto.com/
Author: LegitSquares
Description: A modern technical blog theme for JPPinto.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: jppinto-modern
*/

:root {
  --font-text: Montserrat, sans-serif;
  --font-heading: Montserrat, sans-serif;
  --cr-title-font-family: Montserrat, sans-serif;
  --jp-blue: #0b63ff;
  --jp-blue-dark: #0646bf;
  --jp-ink: #07111f;
  --jp-muted: #5f6d80;
  --jp-line: #dce4ef;
  --jp-soft: #f5f8fc;
  --jp-card: #ffffff;
  --jp-radius: 8px;
  --jp-shadow: 0 14px 36px rgba(15, 31, 55, 0.12);
  --jp-content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--jp-soft);
  color: var(--jp-ink);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.18;
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.88rem;
}

body.jp-dark {
  --jp-ink: #edf4ff;
  --jp-muted: #a9b8cc;
  --jp-line: #24354c;
  --jp-soft: #09111f;
  --jp-card: #101d30;
  --jp-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

body.home:not(.jp-content-reached) div[id^="google_ads_iframe_"][id$="__container__"],
body.home:not(.jp-content-reached) div[id^="google_ads_iframe_"],
body.home:not(.jp-content-reached) div[id*="google_ads_iframe_"],
body.home:not(.jp-content-reached) div[id^="aswift_"],
body.home:not(.jp-content-reached) iframe[id^="google_ads_iframe_"],
body.home:not(.jp-content-reached) iframe[id^="aswift_"],
body.home:not(.jp-content-reached) iframe[src*="googlesyndication"],
body.home:not(.jp-content-reached) iframe[src*="googleads"],
body.home:not(.jp-content-reached) .google-auto-placed,
body.home:not(.jp-content-reached) .adsbygoogle-noablate,
body.home:not(.jp-content-reached) [data-ad-client],
body.home:not(.jp-content-reached) ins.adsbygoogle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.home:not(.jp-content-reached)::before {
  content: "";
  position: fixed;
  top: 70px;
  left: 0;
  z-index: 29;
  width: 48px;
  height: min(611px, calc(100vh - 70px));
  background: #061123;
  pointer-events: none;
}

a {
  color: var(--jp-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--jp-blue-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.jp-wrap {
  width: min(var(--jp-content), calc(100% - 40px));
  margin: 0 auto;
}

.jp-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--jp-line);
  backdrop-filter: blur(14px);
  overflow: visible;
  --jp-header-mouse-x: 50%;
  --jp-header-mouse-y: 50%;
}

.jp-dark .jp-site-header {
  background: rgba(9, 17, 31, 0.94);
}

.jp-site-header.jp-header-hacking::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at var(--jp-header-mouse-x) var(--jp-header-mouse-y),
      rgba(11, 99, 255, 0.16),
      rgba(11, 99, 255, 0) 34%
    );
  pointer-events: none;
}

.jp-header-code-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.jp-header-code-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(11, 99, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 99, 255, 0.07) 1px, transparent 1px),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(11, 99, 255, 0.08) 9px);
  background-size: 34px 34px, 34px 34px, 100% 10px;
  transform: translateX(-8px);
  transition: opacity 140ms ease;
}

.jp-site-header.jp-header-hacking .jp-header-code-layer::before {
  opacity: 1;
  animation: jpHeaderCodeGrid 680ms linear infinite;
}

.jp-header-code-glyph {
  position: absolute;
  color: #0b63ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(11, 99, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: jpHeaderCodeGlyph 940ms ease-out forwards;
}

.jp-header-code-glyph--wide {
  font-size: 0.68rem;
}

.jp-dark .jp-header-code-glyph {
  color: #49a4ff;
  text-shadow: 0 0 14px rgba(73, 164, 255, 0.68);
}

.jp-dark .jp-header-code-layer::before {
  display: none;
}

.jp-header-code-glyph--binary {
  font-size: 0.92rem;
}

.jp-header-binary-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.jp-dark .jp-header-binary-rain {
  display: block;
}

.jp-header-binary-rain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--jp-header-mouse-x) var(--jp-header-mouse-y),
      rgba(18, 52, 94, 0.1),
      rgba(18, 52, 94, 0) 42%
    );
  transition: opacity 140ms ease;
}

.jp-dark .jp-site-header.jp-header-hacking .jp-header-binary-rain::after {
  opacity: 1;
}

.jp-header-binary-bit {
  position: absolute;
  top: -190px;
  left: calc(((var(--jp-binary-column, 0) + 0.5) / var(--jp-binary-total, 28)) * 100%);
  display: block;
  width: 1ch;
  color: rgba(26, 58, 98, calc(var(--jp-binary-opacity, 0.25) * 0.58));
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(22px, calc((100vw / var(--jp-binary-total, 28)) * 0.72), var(--jp-binary-size, 38px));
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  text-shadow:
    0 0 7px rgba(26, 58, 98, 0.12),
    0 0 16px rgba(8, 28, 62, 0.1);
  text-transform: none;
  transform: translate3d(-50%, -190px, 0) scaleY(1.28);
  user-select: none;
  white-space: pre-line;
  will-change: transform, opacity;
  animation: jpHeaderBinaryRain var(--jp-binary-duration, 18s) linear infinite;
  animation-delay: var(--jp-binary-delay, 0s);
}

.jp-header-binary-bit:nth-child(7n + 2) {
  animation-name: jpHeaderBinaryRainPixelA;
  animation-timing-function: steps(18, end);
}

.jp-header-binary-bit:nth-child(11n + 5) {
  animation-name: jpHeaderBinaryRainPixelB;
  animation-timing-function: steps(16, end);
}

.jp-header-binary-bit:nth-child(13n + 8) {
  animation-name: jpHeaderBinaryRainPixelC;
  animation-timing-function: steps(20, end);
}

@keyframes jpHeaderCodeGrid {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 34px 0, 0 34px, 0 10px;
  }
}

@keyframes jpHeaderCodeGlyph {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(7px) scale(0.84);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-22px) scale(1.12);
  }
}

@keyframes jpHeaderBinaryRain {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -190px, 0) scaleY(1.28);
  }

  12% {
    opacity: 1;
  }

  84% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 150px, 0) scaleY(1.28);
  }
}

@keyframes jpHeaderBinaryRainPixelA {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -190px, 0) scaleY(1.28);
  }

  10%,
  28% {
    opacity: 1;
  }

  30% {
    opacity: 0.18;
  }

  32%,
  54% {
    opacity: 0.92;
  }

  56% {
    opacity: 0.28;
  }

  58%,
  84% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 150px, 0) scaleY(1.28);
  }
}

@keyframes jpHeaderBinaryRainPixelB {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -190px, 0) scaleY(1.28);
  }

  10%,
  40% {
    opacity: 0.94;
  }

  42% {
    opacity: 0.12;
  }

  44%,
  68% {
    opacity: 0.86;
  }

  70% {
    opacity: 0.34;
  }

  72%,
  84% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 150px, 0) scaleY(1.28);
  }
}

@keyframes jpHeaderBinaryRainPixelC {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -190px, 0) scaleY(1.28);
  }

  10%,
  18% {
    opacity: 1;
  }

  20% {
    opacity: 0.24;
  }

  22%,
  62% {
    opacity: 0.9;
  }

  64% {
    opacity: 0.16;
  }

  66%,
  84% {
    opacity: 0.96;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 150px, 0) scaleY(1.28);
  }
}

.jp-header-inner {
  position: relative;
  z-index: 1;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
}

.jp-logo {
  grid-column: 2;
  justify-self: center;
  color: var(--jp-ink);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.jp-logo span {
  color: var(--jp-blue);
}

.jp-nav {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: color-mix(in srgb, var(--jp-card) 96%, transparent);
  box-shadow: var(--jp-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.jp-site-header.jp-menu-open .jp-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jp-menu {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jp-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--jp-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.jp-menu a:hover,
.jp-menu a:focus {
  background: color-mix(in srgb, var(--jp-blue) 10%, transparent);
  text-decoration: none;
}

.jp-menu .current-menu-item > a,
.jp-menu .current_page_item > a {
  color: var(--jp-blue);
  background: color-mix(in srgb, var(--jp-blue) 11%, transparent);
}

.jp-header-left {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jp-header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jp-language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.jp-language-switcher .gtranslate_wrapper,
.jp-language-switcher .gt_switcher,
.jp-language-switcher .gt_switcher_wrapper {
  position: relative !important;
  inset: auto !important;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.jp-language-switcher a.gt_switcher-popup,
.jp-language-fallback {
  width: 42px;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-card);
  color: var(--jp-ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.jp-language-switcher a.gt_switcher-popup:hover,
.jp-language-switcher a.gt_switcher-popup:focus {
  text-decoration: none;
}

.jp-language-switcher a.gt_switcher-popup > span {
  display: none !important;
}

.jp-language-switcher a.gt_switcher-popup img {
  width: 22px !important;
  height: 15px !important;
  margin: 0 !important;
  border-radius: 2px !important;
  object-fit: contain !important;
}

.jp-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.jp-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: opacity 160ms ease, transform 160ms ease;
}

.jp-site-header.jp-menu-open .jp-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.jp-site-header.jp-menu-open .jp-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.jp-site-header.jp-menu-open .jp-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.jp-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jp-header-search label {
  display: block;
}

.jp-header-search-field {
  width: clamp(170px, 16vw, 240px);
  min-height: 42px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-card);
  color: var(--jp-ink);
  font: inherit;
  font-weight: 650;
  padding: 8px 12px;
}

.jp-header-search-field::placeholder {
  color: var(--jp-muted);
}

.jp-icon-button,
.jp-button {
  min-height: 42px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-card);
  color: var(--jp-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.jp-icon-button {
  width: 42px;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
}

.jp-icon-button.jp-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.jp-icon-button[data-jp-theme-toggle]::before {
  content: attr(data-icon);
  line-height: 1;
}

.jp-store-link {
  text-decoration: none;
}

.jp-store-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jp-store-link:hover,
.jp-store-link:focus {
  color: var(--jp-blue-dark);
  text-decoration: none;
}

.jp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
}

.jp-button-primary {
  border-color: var(--jp-blue);
  background: var(--jp-blue);
  color: #fff;
}

.jp-button:hover,
.jp-button:focus {
  text-decoration: none;
}

.jp-button-primary:hover,
.jp-button-primary:focus {
  border-color: var(--jp-blue-dark);
  background: var(--jp-blue-dark);
  color: #fff;
}

.jp-button:focus-visible,
.jp-icon-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--jp-blue) 42%, transparent);
  outline-offset: 3px;
}

.jp-search-modal[hidden] {
  display: none;
}

.jp-search-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.jp-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.58);
  backdrop-filter: blur(6px);
}

.jp-search-dialog {
  position: relative;
  width: min(620px, 100%);
  padding: 28px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-card);
  color: var(--jp-ink);
  box-shadow: var(--jp-shadow);
}

.jp-search-dialog h2 {
  margin: 0 44px 18px 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.18;
}

.jp-search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.35rem;
  line-height: 1;
}

.jp-search-modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.jp-search-modal-form label {
  display: block;
}

.jp-search-modal-field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-soft);
  color: var(--jp-ink);
  font: inherit;
  font-weight: 650;
  padding: 10px 12px;
}

body.jp-search-open {
  overflow: hidden;
}

.jp-hero {
  position: relative;
  min-height: 610px;
  color: #fff;
  background: #061123;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.jp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 17, 35, 1) 0%, rgba(6, 17, 35, 0.95) 36%, rgba(6, 17, 35, 0.45) 56%, rgba(6, 17, 35, 0.08) 100%);
  pointer-events: none;
}

.jp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.jp-hero-binary-rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: none;
  mask-image: none;
  mix-blend-mode: screen;
}

.jp-hero-binary-bit {
  position: absolute;
  top: -460px;
  left: calc(((var(--jp-hero-binary-column, 0) + 0.5) / var(--jp-hero-binary-total, 42)) * 100%);
  display: block;
  width: 1ch;
  color: rgba(22, 50, 86, 0.38);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(42px, calc((100vw / var(--jp-hero-binary-total, 42)) * 1.8), var(--jp-hero-binary-size, 92px));
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  text-align: center;
  text-shadow:
    0 0 6px rgba(22, 50, 86, 0.12),
    0 0 14px rgba(5, 22, 52, 0.1);
  text-transform: none;
  transform: translate3d(-50%, -460px, 0) scaleY(1.52);
  user-select: none;
  white-space: pre-line;
  will-change: transform, opacity;
  animation: jpHeroBinaryRain var(--jp-hero-binary-duration, 32s) linear infinite;
  animation-delay: var(--jp-hero-binary-delay, 0s);
}

.jp-hero-binary-bit:nth-child(7n + 2) {
  animation-name: jpHeroBinaryRain;
  animation-timing-function: linear;
}

.jp-hero-binary-bit:nth-child(11n + 5) {
  animation-name: jpHeroBinaryRain;
  animation-timing-function: linear;
}

.jp-hero-binary-bit:nth-child(13n + 8) {
  animation-name: jpHeroBinaryRain;
  animation-timing-function: linear;
}

.jp-hero-binary-bit:nth-child(-n + 2),
.jp-hero-binary-bit:nth-last-child(-n + 1) {
  display: none;
}

.jp-hero-person-mask {
  position: absolute;
  z-index: 3;
  top: 0;
  right: max(20px, calc((100vw - var(--jp-content)) / 2));
  bottom: 0;
  left: auto;
  width: min(52vw, 680px);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 58% 68% at 67% 66%, #000 60%, rgba(0, 0, 0, 0.94) 72%, transparent 88%);
  mask-image: radial-gradient(ellipse 58% 68% at 67% 66%, #000 60%, rgba(0, 0, 0, 0.94) 72%, transparent 88%);
}

.jp-hero-person-mask::before,
.jp-hero-person-mask::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: min(38%, 320px);
  pointer-events: none;
}

.jp-hero-person-mask::before {
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #061123 0%, rgba(6, 17, 35, 0.82) 34%, rgba(6, 17, 35, 0) 100%);
}

.jp-hero-person-mask::after {
  inset: 0 0 0 auto;
  background: linear-gradient(270deg, #061123 0%, rgba(6, 17, 35, 0.82) 34%, rgba(6, 17, 35, 0) 100%);
}

.jp-hero-person-mask img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 28%;
}

.jp-hero-content {
  position: relative;
  max-width: 480px;
  padding: 70px 0 66px;
  z-index: 4;
}

.jp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: inherit;
}

.jp-hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: max(20px, calc((100vw - var(--jp-content)) / 2));
  bottom: 0;
  left: auto;
  width: min(52vw, 680px);
  height: auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.jp-hero-media::before,
.jp-hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: min(38%, 320px);
  pointer-events: none;
}

.jp-hero-media::before {
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #061123 0%, rgba(6, 17, 35, 0.82) 34%, rgba(6, 17, 35, 0) 100%);
}

.jp-hero-media::after {
  inset: 0 0 0 auto;
  background: linear-gradient(270deg, #061123 0%, rgba(6, 17, 35, 0.82) 34%, rgba(6, 17, 35, 0) 100%);
}

.jp-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 28%;
}

.jp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #59a0ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jp-eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.jp-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(1.85rem, 3.05vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.jp-hero p {
  max-width: 440px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}

.jp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.jp-hero .jp-button {
  min-width: 166px;
}

.jp-hero .jp-button:not(.jp-button-primary) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.56);
}

.jp-hero-setup-button {
  position: absolute;
  right: var(--jp-hero-setup-right, clamp(32px, calc((100vw - var(--jp-content)) / 2 + 80px), 300px));
  top: var(--jp-hero-setup-top, 431px);
  z-index: 5;
  min-width: 170px;
}

@keyframes jpHeroBinaryRain {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -460px, 0) scaleY(1.52);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, 760px, 0) scaleY(1.52);
  }
}

@keyframes jpHeroBinaryRainPixelA {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -460px, 0) scaleY(1.52);
  }

  10%,
  28% {
    opacity: 1;
  }

  30% {
    opacity: 0.18;
  }

  32%,
  54% {
    opacity: 0.92;
  }

  56% {
    opacity: 0.28;
  }

  58%,
  86% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 760px, 0) scaleY(1.52);
  }
}

@keyframes jpHeroBinaryRainPixelB {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -460px, 0) scaleY(1.52);
  }

  10%,
  40% {
    opacity: 0.94;
  }

  42% {
    opacity: 0.12;
  }

  44%,
  68% {
    opacity: 0.86;
  }

  70% {
    opacity: 0.34;
  }

  72%,
  86% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 760px, 0) scaleY(1.52);
  }
}

@keyframes jpHeroBinaryRainPixelC {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -460px, 0) scaleY(1.52);
  }

  10%,
  18% {
    opacity: 1;
  }

  20% {
    opacity: 0.24;
  }

  22%,
  62% {
    opacity: 0.9;
  }

  64% {
    opacity: 0.16;
  }

  66%,
  86% {
    opacity: 0.96;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 760px, 0) scaleY(1.52);
  }
}

.jp-main {
  padding: 48px 0 72px;
}

.jp-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.jp-section-header h2,
.jp-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.jp-section-header p {
  margin: 10px 0 0;
  color: var(--jp-muted);
  max-width: 620px;
}

.jp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.jp-layout > *,
.jp-post-grid > *,
.jp-article,
.jp-panel {
  min-width: 0;
}

.jp-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.jp-card,
.jp-panel {
  background: var(--jp-card);
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
}

.jp-card {
  overflow: hidden;
}

.jp-card-body {
  padding: 24px;
}

.jp-card-meta,
.jp-post-meta {
  color: var(--jp-muted);
  font-size: 0.9rem;
}

.jp-card h3 {
  margin: 10px 0 10px;
  font-size: 1.15rem;
  line-height: 1.22;
}

.jp-card h3 a {
  color: var(--jp-ink);
}

.jp-card p {
  margin: 0 0 18px;
  color: var(--jp-muted);
}

.jp-card-link {
  font-weight: 800;
}

.jp-panel {
  padding: 24px;
}

.jp-panel + .jp-panel {
  margin-top: 22px;
}

.jp-panel h2,
.jp-panel h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.jp-panel ul {
  margin: 0;
  padding-left: 18px;
}

.jp-panel li + li {
  margin-top: 8px;
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-card);
  color: var(--jp-ink);
  font: inherit;
  padding: 8px 12px;
}

.jp-article {
  background: var(--jp-card);
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
  padding: clamp(24px, 5vw, 52px);
}

.jp-article-header {
  margin-bottom: 30px;
}

.jp-article h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.jp-content {
  color: color-mix(in srgb, var(--jp-ink) 92%, var(--jp-muted));
  overflow-wrap: anywhere;
}

.jp-content h2,
.jp-content h3 {
  margin: 1.7em 0 0.5em;
}

.jp-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.jp-content h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.jp-content p {
  margin: 0 0 1.1em;
}

.jp-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--jp-radius);
  background: #07111f;
  color: #e7eefc;
}

.jp-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.jp-content th,
.jp-content td {
  border: 1px solid var(--jp-line);
  padding: 10px;
  vertical-align: top;
}

.jp-content .jp-certifications-table {
  display: table;
  width: 100%;
  margin-top: 0;
  overflow: visible;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-card);
}

.jp-content .jp-certifications-table th,
.jp-content .jp-certifications-table td {
  border-width: 0 0 1px;
  padding: 14px 16px;
}

.jp-content .jp-certifications-table th {
  background: color-mix(in srgb, var(--jp-blue) 10%, var(--jp-card));
  color: var(--jp-ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.jp-content .jp-certifications-table td:first-child {
  font-weight: 750;
}

.jp-content .jp-certifications-table td:last-child {
  width: 170px;
  color: var(--jp-muted);
  font-weight: 700;
  white-space: nowrap;
}

.jp-content .jp-certifications-table tbody tr:last-child td {
  border-bottom: 0;
}

.jp-content img {
  border-radius: 6px;
}

.jp-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--jp-line);
  font-weight: 800;
}

.jp-pagination {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  font-weight: 800;
}

.jp-site-footer {
  border-top: 1px solid var(--jp-line);
  background: var(--jp-card);
  color: var(--jp-muted);
  padding: 28px 0;
}

.jp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

@media (max-width: 900px) {
  body.home:not(.jp-content-reached)::before {
    display: none;
  }

  .jp-header-binary-bit {
    font-size: clamp(18px, 5vw, 28px);
  }

  .jp-header-binary-bit:nth-child(2n) {
    display: none;
  }

  .jp-header-inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 14px;
    padding: 14px 0;
  }

  .jp-nav {
    top: calc(100% + 6px);
  }

  .jp-hero {
    min-height: 0;
  }

  .jp-hero-binary-bit {
    font-size: clamp(28px, 7vw, 46px);
    transform: translate3d(-50%, -460px, 0) scaleY(1.32);
  }

  .jp-hero-binary-bit:nth-child(2n) {
    display: none;
  }

  .jp-hero-person-mask {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 320px;
    -webkit-mask-image: radial-gradient(ellipse 58% 72% at 68% 58%, #000 58%, rgba(0, 0, 0, 0.94) 72%, transparent 88%);
    mask-image: radial-gradient(ellipse 58% 72% at 68% 58%, #000 58%, rgba(0, 0, 0, 0.94) 72%, transparent 88%);
  }

  .jp-layout,
  .jp-post-grid {
    grid-template-columns: 1fr;
  }

  .jp-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .jp-hero-media {
    position: relative;
    order: -1;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: calc(100% + 28px);
    height: 320px;
    margin: 0 -14px;
    box-shadow: none;
    transform: none;
  }

  .jp-hero-media img {
    height: 100%;
  }

  .jp-hero-setup-button {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    justify-self: start;
    margin: -44px 0 58px;
  }

}

@media (max-width: 620px) {
  .jp-wrap {
    width: min(var(--jp-content), calc(100% - 28px));
  }

  .jp-header-inner {
    width: min(var(--jp-content), calc(100% - 20px));
    min-height: 62px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    gap: 6px;
  }

  .jp-logo {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    grid-column: 1 / -1;
    grid-row: 1;
    line-height: 36px;
    transform: translateX(-50%);
    font-size: 1.12rem;
  }

  .jp-menu-toggle {
    grid-row: 1;
  }

  .jp-header-left {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
  }

  .jp-header-actions .jp-button {
    display: none;
  }

  .jp-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-items: center;
    gap: 6px;
  }

  .jp-header-search {
    flex: 1;
  }

  .jp-header-search label {
    flex: 1;
  }

  .jp-header-search-field {
    width: 100%;
  }

  .jp-icon-button {
    width: 36px;
    min-height: 36px;
  }

  .jp-language-switcher,
  .jp-language-switcher .gtranslate_wrapper,
  .jp-language-switcher .gt_switcher,
  .jp-language-switcher .gt_switcher_wrapper,
  .jp-language-switcher a.gt_switcher-popup,
  .jp-language-fallback {
    width: 36px;
    min-height: 36px;
  }

  .jp-header-search-field {
    min-height: 36px;
  }

  .jp-search-dialog {
    padding: 22px;
  }

  .jp-search-modal-form {
    grid-template-columns: 1fr;
  }

  .jp-hero h1 {
    font-size: 1.62rem;
  }

  .jp-hero p {
    font-size: 1rem;
  }

  .jp-section-header,
  .jp-footer-inner,
  .jp-post-nav {
    display: block;
  }

  .jp-content .jp-certifications-table,
  .jp-content .jp-certifications-table thead,
  .jp-content .jp-certifications-table tbody,
  .jp-content .jp-certifications-table tr,
  .jp-content .jp-certifications-table th,
  .jp-content .jp-certifications-table td {
    display: block;
    width: 100%;
  }

  .jp-content .jp-certifications-table {
    border: 0;
    background: transparent;
  }

  .jp-content .jp-certifications-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .jp-content .jp-certifications-table tr {
    border: 1px solid var(--jp-line);
    border-radius: var(--jp-radius);
    background: var(--jp-card);
    overflow: hidden;
  }

  .jp-content .jp-certifications-table tr + tr {
    margin-top: 12px;
  }

  .jp-content .jp-certifications-table td {
    border: 0;
    padding: 12px 14px;
  }

  .jp-content .jp-certifications-table td:first-child {
    padding-bottom: 4px;
  }

  .jp-content .jp-certifications-table td:last-child {
    width: 100%;
    padding-top: 4px;
    white-space: normal;
  }

  .jp-content .jp-certifications-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--jp-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (max-width: 360px) {
  .jp-header-inner {
    width: min(var(--jp-content), calc(100% - 16px));
    gap: 5px;
  }

  .jp-header-left,
  .jp-header-actions {
    gap: 5px;
  }

  .jp-logo {
    font-size: 1.02rem;
    line-height: 34px;
  }

  .jp-icon-button,
  .jp-language-switcher,
  .jp-language-switcher .gtranslate_wrapper,
  .jp-language-switcher .gt_switcher,
  .jp-language-switcher .gt_switcher_wrapper,
  .jp-language-switcher a.gt_switcher-popup,
  .jp-language-fallback {
    width: 34px;
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jp-site-header.jp-header-hacking::before,
  .jp-header-binary-rain,
  .jp-header-code-glyph {
    display: none;
  }
}
