/* Isolated portfolio UI pilot.
   Loaded last on selected UI-lab pages only. */

:root {
  --theme: #f8f6fa;
  --entry: #ffffff;
  --primary: #19151f;
  --secondary: #686071;
  --tertiary: #e9e3ed;
  --content: #2b2532;
  --code-block-bg: #17121d;
  --code-bg: #eee8f2;
  --border: #ddd4e3;

  --ui-magenta: #d936b8;
  --ui-magenta-bright: #ee4dcb;
  --ui-cyan: #168e96;
  --ui-cyan-bright: #24b9bd;
  --ui-violet: #7857d8;
  --ui-panel: rgba(255, 255, 255, 0.82);
  --ui-panel-strong: rgba(255, 255, 255, 0.94);
  --ui-shadow: rgba(50, 27, 60, 0.14);
  --ui-glow-magenta: rgba(217, 54, 184, 0.12);
  --ui-glow-cyan: rgba(22, 142, 150, 0.12);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --theme: #0b0911;
  --entry: #14101b;
  --primary: #f7f4fb;
  --secondary: #aaa4b5;
  --tertiary: #241d2e;
  --content: #ded8e7;
  --code-block-bg: #09070e;
  --code-bg: #191420;
  --border: #342940;

  --ui-magenta: #f04fca;
  --ui-magenta-bright: #ff66d9;
  --ui-cyan: #55d4d2;
  --ui-cyan-bright: #71e4e0;
  --ui-violet: #9678f0;
  --ui-panel: rgba(19, 15, 26, 0.86);
  --ui-panel-strong: rgba(24, 19, 32, 0.96);
  --ui-shadow: rgba(0, 0, 0, 0.42);
  --ui-glow-magenta: rgba(240, 79, 202, 0.14);
  --ui-glow-cyan: rgba(85, 212, 210, 0.12);

  color-scheme: dark;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, var(--ui-glow-magenta), transparent 31rem),
    radial-gradient(circle at 88% 18%, var(--ui-glow-cyan), transparent 29rem),
    var(--theme);
  background-attachment: fixed;
}

a {
  color: var(--ui-magenta);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 250, 0.86);
  border-bottom: 1px solid rgba(120, 87, 216, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .header {
  background: rgba(11, 9, 17, 0.84);
  border-bottom-color: rgba(85, 212, 210, 0.14);
}

.header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ui-magenta),
    var(--ui-cyan),
    transparent
  );
  opacity: 0.62;
  pointer-events: none;
}

.logo a {
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo a::before {
  content: "//";
  margin-right: 0.45rem;
  color: var(--ui-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  letter-spacing: -0.08em;
}

#menu a {
  position: relative;
  color: var(--secondary);
  transition: color 150ms ease;
}

#menu a:hover,
#menu a:focus-visible {
  color: var(--primary);
}

#menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 11px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ui-magenta), var(--ui-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

#menu a:hover::after,
#menu a:focus-visible::after,
#menu .active::after {
  transform: scaleX(1);
}

button#theme-toggle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ui-cyan);
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.main .profile {
  padding-block: clamp(2rem, 7vh, 5rem);
}

.profile .profile_inner {
  isolation: isolate;
  position: relative;
  width: min(100%, 760px);
  padding: clamp(2rem, 6vw, 4rem);
  overflow: hidden;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow:
    0 28px 80px var(--ui-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.profile .profile_inner::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    var(--ui-magenta) 32%,
    var(--ui-violet) 55%,
    var(--ui-cyan) 82%,
    transparent 96%
  );
}

.profile .profile_inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10rem;
  right: -10rem;
  width: 25rem;
  height: 25rem;
  background: radial-gradient(
    circle,
    var(--ui-glow-cyan),
    transparent 68%
  );
  pointer-events: none;
}

.profile img {
  width: 124px;
  height: 124px;
  padding: 4px;
  object-fit: cover;
  background:
    linear-gradient(var(--entry), var(--entry)) padding-box,
    linear-gradient(135deg, var(--ui-magenta), var(--ui-cyan)) border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(120, 87, 216, 0.08),
    0 18px 42px var(--ui-shadow);
  transform: none;
}

.profile h1 {
  margin: 0.35rem 0 0;
  color: var(--primary);
  font-size: clamp(2.2rem, 7vw, 3.65rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.profile h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 2px;
  margin: 1rem auto 0.55rem;
  background: linear-gradient(90deg, var(--ui-magenta), var(--ui-cyan));
  border-radius: 999px;
}

.profile .profile_inner > span {
  color: var(--ui-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile .entry-content {
  max-width: 61ch;
  color: var(--content);
  font-size: 1rem;
  line-height: 1.72;
}

.profile .buttons {
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.profile .button {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ui-panel-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.profile .button-inner {
  display: block;
  padding: 0.48rem 1rem;
}

.profile .button:first-child {
  background: linear-gradient(135deg, var(--ui-magenta), var(--ui-violet));
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(217, 54, 184, 0.18);
  transform: none;
}

.profile .button:first-child,
.profile .button:first-child .button-inner {
  color: #ffffff;
}

.profile .button:not(:first-child),
.profile .button:not(:first-child) .button-inner {
  color: var(--primary);
  opacity: 1;
}

.profile .button:hover,
.profile .button:focus-within {
  border-color: var(--ui-cyan);
  box-shadow: 0 12px 32px var(--ui-shadow);
  transform: translateY(-2px);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.social-icons a {
  color: var(--ui-cyan);
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: var(--ui-magenta);
  background: var(--ui-panel-strong);
  border-color: var(--border);
}

.footer {
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--ui-cyan);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ui-cyan);
  outline-offset: 4px;
}

@media screen and (max-width: 768px) {
  .header {
    position: relative;
  }

  .profile .profile_inner {
    padding: 2rem 1.25rem;
    border-radius: 18px;
  }

  .profile h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .profile .buttons {
    width: 100%;
  }

  .profile .button {
    flex: 1 1 135px;
  }

  .js-menu-ready #menu {
    background: var(--ui-panel-strong);
    border-top-color: var(--ui-magenta);
  }
}

@media (prefers-reduced-motion: reduce) {
  #menu a::after,
  .profile .button,
  .social-icons a {
    transition: none;
  }

  .profile .button:hover,
  .profile .button:focus-within {
    transform: none;
  }
}


/* Homepage typography pass */
.logo a {
  font-family: "Source Code Pro", ui-monospace, monospace;
}

.profile h1 {
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
}

.profile .button {
  font-family: "Source Code Pro", ui-monospace, monospace;
}

.logo a {
  font-weight: 650;
  letter-spacing: -0.035em;
}

#menu,
.profile .subtitle,
.profile .entry-content + div {
  font-family: "Source Code Pro", ui-monospace, monospace;
}

#menu a {
  font-weight: 500;
  letter-spacing: -0.015em;
}

.profile h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #f8f5ff;
  background: linear-gradient(
    100deg,
    #f9f6ff 12%,
    #f9f6ff 52%,
    #6ee7ee 76%,
    #e45bd5 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile .subtitle {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.profile .entry-content {
  max-width: 60ch;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.01em;
}

.profile .button {
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media screen and (max-width: 768px) {
  .profile h1 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
    letter-spacing: -0.035em;
  }
}


/* Homepage name wordmark */
.profile-name-mark {
  display: none;
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .profile h1.profile-name {
    display: block;
    width: min(100%, 27.5rem);
    margin: 0.35rem auto 0;
    line-height: 1;
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
  }

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

  .profile-name-mark {
    display: block;
    width: 100%;
    aspect-ratio: 6.7 / 1;
    background: linear-gradient(
      100deg,
      #f9f6ff 12%,
      #f9f6ff 52%,
      #6ee7ee 76%,
      #e45bd5 100%
    );
    -webkit-mask-image: url("/images/branding/jenn-shagrin-wordmark.png");
    mask-image: url("/images/branding/jenn-shagrin-wordmark.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 107% auto;
    mask-size: 107% auto;
  }
}


/* Homepage desktop header alignment */
@media screen and (min-width: 1100px) {
  .header .nav {
    max-width: calc(1600px + (var(--gap) * 2));
    flex-wrap: nowrap;
  }

  .header .logo {
    flex: 0 0 auto;
    margin: auto var(--gap);
  }

  .header #menu {
    margin: auto var(--gap) auto auto;
  }
}


/* Homepage desktop navigation rail */
@media screen and (min-width: 1100px) {
  .header #menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.3rem 0.4rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(120, 87, 216, 0.18);
    border-radius: 10px;
    box-shadow:
      0 10px 30px rgba(31, 21, 48, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  [data-theme="dark"] .header #menu {
    background: rgba(20, 16, 30, 0.72);
    border-color: rgba(142, 92, 246, 0.28);
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .header #menu li + li {
    margin-inline-start: 0;
  }

  .header #menu a {
    padding: 0.7rem 0.85rem;
    color: var(--primary);
    letter-spacing: 0;
    opacity: 0.78;
  }

  .header #menu a:hover,
  .header #menu a:focus-visible {
    opacity: 1;
  }

  .header #menu a::after {
    bottom: 0.34rem;
    right: 0.85rem;
    left: 0.85rem;
  }
}


/* Homepage navigation font */
#menu {
  font-family: "Space Mono", ui-monospace, monospace;
}


/* Homepage wordmark contrast in light mode */
[data-theme="light"] .profile-name-mark {
  background: linear-gradient(
    100deg,
    #33213f 8%,
    #7043b6 38%,
    #158f9f 72%,
    #c12aa8 100%
  );
}


/* Accessible wordmark fallback for forced-colors mode */
@media (forced-colors: active) {
  .profile h1.profile-name {
    width: auto;
    color: CanvasText;
  }

  .profile-name-text {
    position: static;
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }

  .profile-name-mark {
    display: none;
  }
}


/* Inner page pilot: About */
.about-page {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
}

.about-page .post-header {
  margin: clamp(2.75rem, 7vw, 4.75rem) 0 2.5rem;
}

.about-page .post-header::before {
  content: "// PROFILE";
  display: block;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-page .post-title {
  display: block;
  margin: 0.65rem 0 0;
  padding: 0 0 0.85rem;
  border: 0;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(2.65rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.about-page .post-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.85rem;
  background: linear-gradient(
    90deg,
    var(--ui-magenta),
    var(--ui-violet),
    var(--ui-cyan)
  );
}

.about-page .post-description {
  max-width: 64ch;
  margin-top: 1rem;
  color: var(--primary);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 600;
  line-height: 1.6;
}

.about-page .post-content {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.about-page .post-content > p {
  margin-bottom: 1.4rem;
}

.about-page .post-content > p:first-child {
  font-size: 1.06rem;
  line-height: 1.72;
}

.about-photo {
  margin: 2rem 0 2.25rem;
}

.about-origin-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px var(--ui-shadow);
}

.about-page #contact {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
}

.about-page #contact ~ p {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  .about-page .post-header {
    margin-top: 2.25rem;
  }

  .about-page .post-title {
    font-size: clamp(2.4rem, 13vw, 3.25rem);
  }

  .about-page .post-content {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .about-photo {
    margin: 1.65rem 0 1.9rem;
  }
}


/* Technical writeup pilot: Lookup */
.technical-writeup {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
}

.technical-writeup .post-header {
  margin: clamp(2.75rem, 7vw, 4.75rem) 0 2.5rem;
}

.technical-writeup .post-header::before {
  content: "// WALKTHROUGH";
  display: block;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.technical-writeup .post-title {
  display: block;
  margin: 0.65rem 0 0;
  padding: 0 0 0.85rem;
  border: 0;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(2.65rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.technical-writeup .post-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.85rem;
  background: linear-gradient(
    90deg,
    var(--ui-magenta),
    var(--ui-violet),
    var(--ui-cyan)
  );
}

.technical-writeup .post-description {
  max-width: 66ch;
  margin-top: 1rem;
  color: var(--primary);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 600;
  line-height: 1.6;
}

.technical-writeup .post-content {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.technical-writeup .post-content > p:first-child {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ui-cyan);
  border-radius: 10px;
}

.technical-writeup .post-content h2 {
  margin: 3.5rem 0 1.35rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.technical-writeup .post-content h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--ui-magenta), var(--ui-cyan));
}

.technical-writeup .post-content h2 code {
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  font: inherit;
}

.technical-writeup .post-content pre {
  position: relative;
  margin: 1.5rem 0;
  padding: 0;
  overflow: hidden;
  background: #121018;
  border: 1px solid rgba(115, 216, 218, 0.24);
  border-top: 2px solid var(--ui-cyan);
  border-radius: 12px;
  box-shadow: 0 14px 36px var(--ui-shadow);
}

.technical-writeup .post-content pre.text {
  border-top-color: var(--ui-magenta);
}

.technical-writeup .post-content pre::before {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  z-index: 1;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.technical-writeup .post-content pre.bash::before {
  content: "BASH";
  color: var(--ui-cyan);
}

.technical-writeup .post-content pre.text::before {
  content: "OUTPUT";
  color: var(--ui-magenta);
}

.technical-writeup .post-content pre code {
  display: block;
  margin: 0;
  padding: 2.1rem 1rem 1rem;
  overflow-x: auto;
  color: #f0ebf5;
  background: transparent !important;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre;
  word-break: normal;
}

.technical-writeup .post-content > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 42px var(--ui-shadow);
}

@media screen and (max-width: 768px) {
  .technical-writeup .post-header {
    margin-top: 2.25rem;
  }

  .technical-writeup .post-title {
    font-size: clamp(2.4rem, 13vw, 3.25rem);
  }

  .technical-writeup .post-content {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .technical-writeup .post-content h2 {
    margin-top: 3rem;
    padding-top: 1.9rem;
  }

  .technical-writeup .post-content pre code {
    font-size: 0.82rem;
  }
}


/* Penetration Testing index */
.penetration-index-main {
  max-width: calc(1120px + (var(--gap) * 2));
}

.penetration-index {
  width: 100%;
}

.penetration-index .post-header {
  position: relative;
  margin: 1.5rem 0 2.8rem;
  padding: clamp(1.7rem, 4vw, 2.8rem);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(217, 54, 184, 0.1),
      transparent 45%,
      rgba(85, 212, 210, 0.08)
    ),
    var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px var(--ui-shadow);
}

.penetration-index .post-header::before {
  content: "// OFFENSIVE SECURITY";
  display: block;
  margin-bottom: 1rem;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.penetration-index .post-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--ui-magenta),
    var(--ui-violet),
    var(--ui-cyan)
  );
}

.penetration-index .post-title {
  margin: 0;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.penetration-index .post-description {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--secondary);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.65;
}

.penetration-index .post-content {
  max-width: none;
  font-family: Inter, system-ui, sans-serif;
}

.penetration-index .post-content > p:nth-of-type(-n + 3) {
  max-width: 78ch;
  font-size: 1rem;
  line-height: 1.75;
}

.penetration-index .post-content > p:nth-of-type(4) {
  display: inline-flex;
  align-items: center;
  margin: 0.5rem 0 1.5rem;
  padding: 0.72rem 0.9rem;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ui-cyan);
  border-radius: 8px;
}

.penetration-index .post-content > p:nth-of-type(4) a {
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.87rem;
  font-weight: 700;
  box-shadow: none;
}

.penetration-index .post-content > h2 {
  position: relative;
  margin: 4.3rem 0 1.35rem;
  padding-bottom: 0.8rem;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--border);
}

.penetration-index .post-content > h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--ui-magenta), var(--ui-cyan));
}

/* Featured investigations and HTB event collections */
.penetration-index .post-content > h2:nth-of-type(1) + ul,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul > li,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul > li,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul > li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.6;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul > li::before,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul > li::before,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--ui-magenta), var(--ui-cyan));
}

.penetration-index .post-content > h2:nth-of-type(1) + ul > li:hover,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul > li:hover,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul > li:hover {
  border-color: var(--ui-cyan);
  box-shadow: 0 14px 34px var(--ui-shadow);
  transform: translateY(-2px);
}

.penetration-index .post-content > h2:nth-of-type(1) + ul strong,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul strong,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul a,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul a,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul a {
  box-shadow: none;
}

/* Authorized training */
.penetration-index .post-content > h2:nth-of-type(2) + ul {
  padding: 0;
  list-style: none;
}

.penetration-index .post-content > h2:nth-of-type(2) + ul > li {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(110deg, rgba(85, 212, 210, 0.08), transparent 60%),
    var(--ui-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ui-cyan);
  border-radius: 10px;
  line-height: 1.65;
}

.penetration-index .post-content > h2:nth-of-type(2) + ul strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: 1.05rem;
}

.penetration-index .post-content > h2:nth-of-type(2) + ul a {
  box-shadow: none;
}

/* Writeup directory */
.penetration-index .post-content > h3 {
  margin: 1.3rem 0 0;
  padding: 1rem 1.1rem 0.85rem;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: var(--ui-panel-strong);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.penetration-index .post-content > h3::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--ui-magenta);
  font-family: "Space Mono", ui-monospace, monospace;
}

.penetration-index .post-content > h3 + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.1rem;
  padding: 0.35rem 1.1rem 0.9rem;
  list-style: none;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.penetration-index .post-content > h3 + ul > li {
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.penetration-index .post-content > h3 + ul > li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.penetration-index .post-content > h3 + ul > li:nth-child(odd):last-child {
  grid-column: 1 / -1;
}

.penetration-index .post-content > h3 + ul a {
  display: block;
  position: relative;
  padding: 0.72rem 0 0.72rem 1.45rem;
  color: var(--primary);
  line-height: 1.45;
  box-shadow: none;
}

.penetration-index .post-content > h3 + ul a::after {
  content: ">";
  position: absolute;
  top: 0.72rem;
  left: 0.15rem;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  opacity: 0.7;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

.penetration-index .post-content > h3 + ul a:hover,
.penetration-index .post-content > h3 + ul a:focus-visible {
  color: var(--ui-magenta);
}

.penetration-index .post-content > h3 + ul a:hover::after,
.penetration-index .post-content > h3 + ul a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px);
}

@media screen and (max-width: 700px) {
  .penetration-index .post-header {
    margin-top: 0.7rem;
    padding: 1.4rem 1.2rem 1.6rem;
    border-radius: 14px;
  }

  .penetration-index .post-title {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .penetration-index .post-content > h2:nth-of-type(1) + ul,
  .penetration-index .post-content > h2:nth-of-type(3) + p + ul,
  .penetration-index .post-content > h2:nth-of-type(4) + p + ul,
  .penetration-index .post-content > h3 + ul {
    grid-template-columns: 1fr;
  }

  .penetration-index .post-content > h3 + ul > li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .penetration-index .post-content > h3 + ul > li:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .penetration-index .post-content > h2:nth-of-type(1) + ul > li,
  .penetration-index .post-content > h2:nth-of-type(3) + p + ul > li,
  .penetration-index .post-content > h2:nth-of-type(4) + p + ul > li,
  .penetration-index .post-content > h3 + ul a::after {
    transition: none;
  }

  .penetration-index .post-content > h2:nth-of-type(1) + ul > li:hover,
  .penetration-index .post-content > h2:nth-of-type(3) + p + ul > li:hover,
  .penetration-index .post-content > h2:nth-of-type(4) + p + ul > li:hover {
    transform: none;
  }
}


/* Penetration Testing index: focus-width refinement */
.penetration-index-main {
  max-width: calc(980px + (var(--gap) * 2));
}

.penetration-index .post-header {
  padding: clamp(1.55rem, 3.5vw, 2.3rem);
}

.penetration-index .post-title {
  font-size: clamp(2.45rem, 6vw, 4.1rem);
}

.penetration-index .post-description {
  max-width: 860px;
}

.penetration-index .post-content > p:nth-of-type(-n + 3) {
  max-width: 66ch;
  font-size: 0.98rem;
}

.penetration-index .post-content > h2 {
  margin-top: 3.5rem;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul {
  gap: 0.85rem;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul > li,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul > li,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul > li {
  padding: 1rem 1.05rem 1.1rem;
}

.penetration-index .post-content > h2:nth-of-type(2) + ul {
  max-width: 820px;
}


/* Penetration Testing index: hierarchy refinement */
.penetration-index .post-header {
  margin-bottom: 2.2rem;
}

.penetration-index .post-content > p:nth-of-type(-n + 3) {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.78;
}

.penetration-index .post-content > p:first-of-type::before {
  content: "// THE WORK";
  display: block;
  margin-bottom: 1rem;
  color: var(--ui-magenta);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.penetration-index .post-content > p:nth-of-type(4) {
  display: flex;
  max-width: 720px;
  margin: 2.3rem auto 4rem;
  padding: 1rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(100deg, rgba(85, 212, 210, 0.08), transparent 65%),
    var(--ui-panel);
  border-left-width: 3px;
}

.penetration-index .post-content > p:nth-of-type(4) a {
  flex: 0 0 auto;
  margin-left: 0.35rem;
  padding: 0.48rem 0.7rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ui-magenta), var(--ui-violet));
  border-radius: 6px;
}

.penetration-index .post-content > h2 {
  margin-top: 3.7rem;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.penetration-index .post-content > h2:first-of-type {
  margin-top: 0;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul > li,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul > li,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul > li {
  color: var(--secondary);
  font-size: 0.92rem;
  line-height: 1.58;
}

.penetration-index .post-content > h2:nth-of-type(1) + ul strong,
.penetration-index .post-content > h2:nth-of-type(3) + p + ul strong,
.penetration-index .post-content > h2:nth-of-type(4) + p + ul strong {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.98rem;
  line-height: 1.35;
}

.penetration-index .card-punctuation {
  display: none;
}

@media screen and (max-width: 700px) {
  .penetration-index .post-content > p:nth-of-type(4) {
    align-items: flex-start;
    flex-direction: column;
  }

  .penetration-index .post-content > p:nth-of-type(4) a {
    margin-left: 0;
  }
}


/* Holmes CTF writeups and event result */
.holmes-event-result,
.technical-writeup .post-content > .holmes-writeup-image {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 1.8rem auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 42px var(--ui-shadow);
}

.holmes-image-caption {
  max-width: 720px;
  margin: 0.65rem auto 1.5rem;
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

.holmes-related {
  margin-top: 3rem;
  padding: 1rem 1.1rem;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ui-magenta);
  border-radius: 10px;
}

.holmes-related a {
  margin-left: 0.35rem;
}

/* Holmes accepted-answer appendix */
.technical-writeup .holmes-answer-table {
  display: table;
  width: 100%;
  table-layout: fixed;
  overflow: visible;
  word-break: normal;
}

.technical-writeup .holmes-answer-table th:first-child {
  width: 11%;
}

.technical-writeup .holmes-answer-table th:nth-child(2) {
  width: 52%;
}

.technical-writeup .holmes-answer-table th:nth-child(3) {
  width: 37%;
}

.technical-writeup .holmes-answer-table th,
.technical-writeup .holmes-answer-table td {
  min-width: 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.technical-writeup .holmes-answer-table td code {
  margin: 0;
  white-space: normal;
  word-break: break-all;
}

@media screen and (max-width: 768px) {
  .technical-writeup .holmes-answer-table,
  .technical-writeup .holmes-answer-table tbody,
  .technical-writeup .holmes-answer-table tr,
  .technical-writeup .holmes-answer-table td {
    display: block;
    width: 100%;
  }

  .technical-writeup .holmes-answer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .technical-writeup .holmes-answer-table tr {
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--ui-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .technical-writeup .holmes-answer-table td {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .technical-writeup .holmes-answer-table td:last-child {
    border-bottom: 0;
  }

  .technical-writeup .holmes-answer-table td::before {
    color: var(--ui-cyan);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .technical-writeup .holmes-answer-table td:nth-child(1)::before {
    content: "Question";
  }

  .technical-writeup .holmes-answer-table td:nth-child(2)::before {
    content: "Answer";
  }

  .technical-writeup .holmes-answer-table td:nth-child(3)::before {
    content: "Evidence";
  }
}


/* Security and Defense index */
.security-index-main {
  max-width: calc(980px + (var(--gap) * 2));
}

.security-index {
  width: 100%;
}

.security-index .post-header {
  position: relative;
  margin: 1.5rem 0 2.8rem;
  padding: clamp(1.7rem, 4vw, 2.8rem);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(85, 212, 210, 0.1),
      transparent 45%,
      rgba(217, 54, 184, 0.08)
    ),
    var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px var(--ui-shadow);
}

.security-index .post-header::before {
  content: "// DEFENSIVE OPERATIONS";
  display: block;
  margin-bottom: 1rem;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.security-index .post-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--ui-cyan),
    var(--ui-violet),
    var(--ui-magenta)
  );
}

.security-index .post-title {
  margin: 0;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.security-index .post-description {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--secondary);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.65;
}

.security-index .post-content {
  max-width: 960px;
  margin-inline: auto;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: -0.005em;
}

.security-index .post-content > p,
.security-index .post-content > h3 + p,
.security-index .incident-section > p {
  max-width: 78ch;
}

.security-index .post-content > p:nth-of-type(-n + 2) {
  font-size: 1.02rem;
  line-height: 1.78;
}

.security-index .post-content > h2 {
  position: relative;
  margin: 4.2rem 0 1.45rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.security-index .post-content > h2:first-of-type {
  margin-top: 3.2rem;
}

.security-index .post-content > h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--ui-cyan), var(--ui-magenta));
}

.security-index .post-content > h3,
.security-index .incident-section > h3 {
  margin: 2.1rem 0 0.8rem;
  color: var(--primary);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.security-index .post-content > h3::before,
.security-index .incident-section > h3::before {
  content: "//";
  margin-right: 0.55rem;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72em;
  letter-spacing: -0.08em;
}

.security-index .post-content > h3 a,
.security-index .incident-section > h3 a {
  color: inherit;
  box-shadow: none;
}

.security-index .post-content > h3 a:hover,
.security-index .post-content > h3 a:focus-visible {
  color: var(--ui-magenta);
}

.security-index .incident-image {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 1.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 42px var(--ui-shadow);
}

.security-index a > .incident-image {
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.security-index a:hover > .incident-image,
.security-index a:focus-visible > .incident-image {
  border-color: var(--ui-cyan);
  box-shadow: 0 20px 48px var(--ui-shadow);
  transform: translateY(-2px);
}

.security-index .image-caption {
  max-width: 820px;
  margin: 0.65rem 0 1.7rem;
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.security-index .post-content > h3 + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 100%;
  margin: 1rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.security-index .post-content > h3 + ul > li {
  min-width: 0;
  margin: 0;
  padding: 1rem 1.05rem;
  color: var(--secondary);
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.security-index .post-content > h3 + ul a {
  color: var(--primary);
  font-weight: 600;
  box-shadow: none;
}

.security-index .post-content > h3 + ul a:hover,
.security-index .post-content > h3 + ul a:focus-visible {
  color: var(--ui-magenta);
}

.security-index .holmes-result-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(220px, 1fr);
  max-width: 820px;
  margin: 1.1rem 0 2.3rem;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(85, 212, 210, 0.08), transparent 65%),
    var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px var(--ui-shadow);
}

.security-index .holmes-result-card img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: top;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.security-index .holmes-result-card figcaption {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 0.55rem;
  padding: 1.3rem 1.45rem;
  color: var(--secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

.security-index .holmes-result-card strong {
  color: var(--primary);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.security-index .incident-section {
  max-width: 880px;
  margin: 1rem 0 1.25rem;
  padding: 0.3rem 1.35rem 1.4rem;
  background: var(--ui-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--ui-magenta);
  border-radius: 12px;
  box-shadow: 0 12px 30px var(--ui-shadow);
}

.security-index .incident-section .incident-image {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .security-index .post-header {
    margin-top: 0.9rem;
    padding: 1.55rem 1.25rem;
  }

  .security-index .post-title {
    font-size: clamp(2.2rem, 12vw, 3.15rem);
  }

  .security-index .post-content > h2 {
    margin-top: 3.2rem;
  }

  .security-index .post-content > h3 + ul,
  .security-index .holmes-result-card {
    grid-template-columns: 1fr;
  }

  .security-index .holmes-result-card img {
    max-height: 440px;
    object-fit: contain;
    background: #111a28;
  }

  .security-index .incident-section {
    padding: 0.25rem 1rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .security-index a > .incident-image {
    transition: none;
  }

  .security-index a:hover > .incident-image,
  .security-index a:focus-visible > .incident-image {
    transform: none;
  }
}


/* AI Security index */
.ai-security-index-main {
  max-width: calc(980px + (var(--gap) * 2));
}

.ai-security-index {
  width: 100%;
}

.ai-security-index .post-header {
  position: relative;
  margin: 1.5rem 0 2.8rem;
  padding: clamp(1.7rem, 4vw, 2.8rem);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(217, 54, 184, 0.11),
      transparent 44%,
      rgba(85, 212, 210, 0.09)
    ),
    var(--ui-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px var(--ui-shadow);
}

.ai-security-index .post-header::before {
  content: "// MODEL & AGENT SECURITY";
  display: block;
  margin-bottom: 1rem;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ai-security-index .post-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--ui-magenta),
    var(--ui-violet),
    var(--ui-cyan)
  );
}

.ai-security-index .post-title {
  margin: 0;
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ai-security-index .post-description {
  max-width: 790px;
  margin-top: 1rem;
  color: var(--secondary);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.65;
}

.ai-security-index .post-content {
  max-width: 900px;
  margin-inline: auto;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.74;
  letter-spacing: -0.005em;
}

.ai-security-index .post-content > p {
  max-width: 78ch;
}

.ai-security-index .post-content > p:nth-of-type(-n + 2) {
  font-size: 1.02rem;
  line-height: 1.8;
}

.ai-security-index .post-content > hr {
  height: 1px;
  margin: 3.4rem 0 0;
  background: var(--border);
  border: 0;
}

.ai-security-index .post-content > h2 {
  position: relative;
  margin: 3.8rem 0 1.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.ai-security-index .post-content > hr + h2 {
  margin-top: 1.15rem;
}

.ai-security-index .post-content > h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--ui-magenta), var(--ui-cyan));
}

.ai-security-index .post-content > h2 a {
  color: inherit;
  box-shadow: none;
}

.ai-security-index .post-content > h2 a:hover,
.ai-security-index .post-content > h2 a:focus-visible {
  color: var(--ui-cyan);
}

.ai-security-index .post-content > p > strong:first-child {
  display: block;
  margin-top: 1.7rem;
  color: var(--primary);
  font-family: "Tomorrow", Inter, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
}

.ai-security-index .post-content > p > strong:first-child::before {
  content: ">";
  margin-right: 0.65rem;
  color: var(--ui-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
}

.ai-security-index .post-content > p > strong:first-child a {
  color: var(--ui-cyan);
  box-shadow: none;
}

.ai-security-index .post-content > p > strong:first-child a:hover,
.ai-security-index .post-content > p > strong:first-child a:focus-visible {
  color: var(--ui-magenta);
}

.ai-security-index .post-content > img {
  display: block;
}
