/*
Theme Name: Linocut Blog
Theme URI: https://linocut.ai/blogs/
Author: linocut.ai
Author URI: https://linocut.ai/
Description: Editorial blog theme for the linocut.ai WordPress journal.
Version: 1.4.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: Proprietary
Text Domain: linocut-blog
*/

:root {
  --background: #fbfaf7;
  --foreground: #121116;
  --surface-1: #f0ece4;
  --surface-2: #e8e1d7;
  --surface-3: #f6f2ea;
  --surface-soft: #fffdf8;
  --surface-violet: #f3efff;
  --surface-violet-strong: #e7dcff;
  --surface-dark: #17131f;
  --surface-dark-elevated: #241d32;
  --brand-primary: #7c3aed;
  --brand-primary-active: #6d28d9;
  --brand-primary-soft: rgba(124, 58, 237, 0.13);
  --brand-primary-glow: rgba(124, 58, 237, 0.09);
  --accent-lilac: #a78bfa;
  --border-subtle: #e7e0d8;
  --border-default: #d4c9bd;
  --border-strong: var(--brand-primary);
  --text-primary: #121116;
  --text-secondary: #35323a;
  --text-muted: #67616b;
  --text-faint: #8b8490;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --max-content: 1480px;
  --page-pad: clamp(20px, 3vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
}

body.linocut-site {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(124, 58, 237, 0.2);
  color: var(--text-primary);
}

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

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: #000;
}

.site-grain::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.site-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36rem 28rem at 8% -8%, rgba(124, 58, 237, 0.1), transparent 68%),
    radial-gradient(30rem 24rem at 90% 0%, rgba(167, 139, 250, 0.07), transparent 72%);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(18, 17, 22, 0.08);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(22px) saturate(1.04);
}

.site-header__inner,
.section-inner,
.site-footer__inner,
.site-footer__bottom {
  width: min(100%, var(--max-content));
  margin: 0 auto;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.site-header__inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
  line-height: 1;
}

.brand-lockup-image {
  display: block;
  width: 128px;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
}

.site-footer .brand-lockup-image {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a,
.site-actions__link {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 13.5px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-actions__link:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--text-primary);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-actions__button,
.big-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 13.5px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.16);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-actions__button {
  padding: 7px 14px;
}

.site-actions__button:hover,
.big-cta:hover {
  border-color: transparent;
  background: var(--brand-primary-active);
  transform: translateY(-1px);
}

.canvas-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 17, 22, 0.025) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 72px 72px;
}

.canvas-grid-fade {
  mask-image: radial-gradient(ellipse at 78% 34%, #000 0 24%, transparent 72%);
}

.journal-hero,
.archive-hero,
.article-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(48rem 22rem at 34% 0%, rgba(124, 58, 237, 0.09), transparent 72%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 250, 247, 0.92) 70%, var(--surface-soft)),
    var(--background);
}

.journal-hero .section-inner {
  position: relative;
  padding-top: clamp(50px, 7vw, 84px);
  padding-bottom: clamp(54px, 7vw, 84px);
}

.archive-hero .section-inner,
.article-header .section-inner {
  position: relative;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow a,
.text-link {
  color: var(--text-secondary);
  transition: color 180ms ease;
}

.eyebrow a:hover,
.text-link:hover {
  color: var(--text-primary);
}

.rule {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--border-default);
}

.journal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(260px, 3fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-top: 34px;
}

.journal-hero h1,
.archive-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.journal-hero h1 {
  max-width: 980px;
  font-size: clamp(44px, 6.2vw, 82px);
}

.archive-hero h1,
.article-header h1 {
  max-width: 900px;
  margin-top: 32px;
  font-size: clamp(40px, 6vw, 80px);
}

.article-header__layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: end;
  margin-top: 32px;
}

.article-header__layout--meta-only {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.article-header__main h1 {
  max-width: 1120px;
  margin-top: 0;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.03;
  text-wrap: balance;
}

.article-header__aside {
  display: grid;
  gap: 28px;
  max-width: 520px;
}

.article-header__aside--meta-only {
  gap: 0;
  justify-self: end;
  width: 100%;
  max-width: 340px;
}

.journal-hero h1 em,
.subscribe-band h2 em,
.subscribe-band__title em {
  color: var(--brand-primary-active);
  font-family: var(--font-serif);
  font-style: italic;
}

.journal-hero h1 span {
  color: rgba(18, 17, 22, 0.36);
}

.journal-hero p,
.archive-hero p,
.article-header p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
}

.archive-hero p,
.article-header p {
  margin-top: 0;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 54px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.article-header .meta-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding-top: 18px;
}

.meta-strip dt {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-strip dd {
  margin: 6px 0 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-strip dd.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.tag-list a,
.tag-list span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-bar {
  border-bottom: 1px solid rgba(18, 17, 22, 0.08);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(10px);
}

.category-bar__inner {
  display: flex;
  width: min(100%, var(--max-content));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px var(--page-pad);
}

.category-pills {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pills a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text-muted);
  font-size: 12.5px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.category-pills a:hover {
  border-color: var(--surface-violet-strong);
  background: var(--surface-violet);
  color: var(--text-primary);
}

.category-pills a.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.journal-search {
  position: relative;
  width: min(100%, 290px);
  flex: 0 0 auto;
}

.journal-search--wide {
  width: min(100%, 460px);
  margin-top: 28px;
}

.journal-search span {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--text-faint);
  transform: translateY(-50%);
}

.journal-search input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(18, 17, 22, 0.09);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 253, 248, 0.92);
  color: var(--text-primary);
  padding: 0 14px 0 36px;
  font-size: 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.journal-search input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.content-band,
.subscribe-band,
.article-cover,
.article-layout {
  border-bottom: 1px solid var(--border-subtle);
}

.content-band,
.article-cover {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(251, 250, 247, 0.98)),
    var(--surface-soft);
}

.content-band .section-inner {
  padding-top: clamp(48px, 6vw, 68px);
  padding-bottom: clamp(48px, 6vw, 68px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading--large {
  align-items: flex-end;
  margin-bottom: 36px;
}

.section-heading h2,
.section-heading__title,
.subscribe-band h2,
.subscribe-band__title {
  margin: 8px 0 0;
  color: var(--text-primary);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.text-link {
  display: inline-flex;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  color: var(--text-primary);
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-3);
  aspect-ratio: 16 / 9;
  transition: border-color 200ms ease;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.02) saturate(0.94) contrast(1.04) brightness(0.99);
  transition: filter 300ms ease, transform 500ms ease;
}

.post-card:hover .post-card__media {
  border-color: var(--border-default);
}

.post-card:hover .post-card__media img {
  filter: sepia(0) saturate(1.02) contrast(1.04) brightness(1);
  transform: scale(1.018);
}

.post-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.post-card__title {
  display: block;
  color: var(--text-primary);
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.post-card__dek {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card__read {
  color: var(--text-secondary);
  transition: color 180ms ease;
}

.post-card:hover .post-card__read {
  color: var(--text-primary);
}

.post-card--internal {
  gap: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 242, 234, 0.9)),
    var(--surface-soft);
  padding: 14px;
  box-shadow: 0 18px 40px rgba(18, 17, 22, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card--internal:hover {
  border-color: var(--border-default);
  box-shadow: 0 22px 48px rgba(18, 17, 22, 0.08);
  transform: translateY(-2px);
}

.post-card--internal .post-card__media {
  border-radius: 9px;
}

.post-card--internal .post-card__body {
  gap: 12px;
  padding: 0 2px 4px;
}

.post-card--internal .post-card__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
}

.post-card--feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 32px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(34rem 22rem at 100% 0%, rgba(124, 58, 237, 0.08), transparent 72%),
    linear-gradient(135deg, var(--surface-soft), #fbf7f1 58%, var(--surface-violet));
  padding: 16px;
  box-shadow: 0 18px 42px rgba(18, 17, 22, 0.06);
  transition: border-color 180ms ease;
}

.post-card--feature:hover {
  border-color: rgba(124, 58, 237, 0.28);
}

.post-card--feature .post-card__media {
  border-radius: 9px;
  aspect-ratio: 16 / 9;
}

.post-card--feature .post-card__body {
  justify-content: space-between;
  padding: 18px 16px;
}

.post-card--feature .post-card__title {
  margin-top: 20px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
}

.post-card--feature .post-card__dek {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  -webkit-line-clamp: unset;
}

.post-card--feature .post-card__meta {
  padding-top: 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.14);
}

.archive-table {
  overflow: hidden;
  border: 1px solid rgba(18, 17, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.82);
}

.archive-table__head,
.archive-row {
  display: grid;
  grid-template-columns: 1.5fr minmax(0, 5fr) 1.6fr 0.9fr;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
}

.archive-table__head {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-violet);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-row {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease;
}

.archive-row:last-child {
  border-bottom: 0;
}

.archive-row:hover {
  background: rgba(124, 58, 237, 0.06);
  color: var(--text-primary);
}

.archive-row span {
  min-width: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscribe-band .section-inner {
  padding-top: clamp(60px, 8vw, 94px);
  padding-bottom: clamp(60px, 8vw, 94px);
}

.subscribe-band__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 32px;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(36rem 24rem at 88% 12%, rgba(124, 58, 237, 0.18), transparent 74%),
    linear-gradient(135deg, var(--surface-soft), #f8f4ff 100%);
  color: var(--text-primary);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 18px 48px rgba(18, 17, 22, 0.06);
}

.subscribe-band__grid::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(34%, 420px);
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.08));
  content: "";
  pointer-events: none;
}

.subscribe-band .eyebrow {
  color: var(--brand-primary-active);
}

.subscribe-band p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.big-cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
}

.subscribe-band .big-cta {
  position: relative;
  z-index: 1;
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.subscribe-band .big-cta:hover {
  background: var(--brand-primary-active);
  color: #fff;
}

.article-cover .section-inner {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.article-cover figure {
  position: relative;
  overflow: hidden;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-1);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: sepia(0.08) saturate(0.82) contrast(1.02) brightness(0.98);
}

.article-cover figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.article-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, min(86ch, 100%));
  gap: 0;
  align-items: stretch;
  justify-content: center;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.article-sidebar-toggle {
  position: fixed;
  top: 104px;
  right: clamp(16px, 2.4vw, 36px);
  z-index: 45;
  min-height: 38px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0 14px;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.article-sidebar-toggle:hover,
.article-sidebar-toggle[aria-expanded="true"] {
  border-color: var(--brand-primary);
  background: var(--surface-soft);
}

.article-sidebar-toggle:active {
  transform: translateY(1px);
}

body.admin-bar .article-sidebar-toggle {
  top: 136px;
}

.article-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  pointer-events: none;
  background: rgba(20, 20, 19, 0.24);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.article-sidebar-open .article-sidebar-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.article-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 59;
  width: min(380px, calc(100vw - 28px));
  border-left: 1px solid var(--border-subtle);
  background: rgba(250, 249, 245, 0.98);
  box-shadow: -20px 0 50px rgba(20, 20, 19, 0.12);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

body.admin-bar .article-sidebar {
  top: 32px;
}

body.article-sidebar-open {
  overflow: hidden;
}

body.article-sidebar-open .article-sidebar {
  transform: translateX(0);
}

.article-sidebar__sticky {
  position: static;
  display: grid;
  align-content: start;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  gap: 24px;
  padding: 24px;
  scrollbar-width: thin;
}

.article-sidebar__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-sidebar__drawer-header span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-sidebar__drawer-header button {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.article-sidebar__section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.article-sidebar__section:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-sidebar .article-sidebar__label {
  margin: 0 0 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-sidebar a,
.article-sidebar section > span {
  color: var(--text-primary);
  font-size: 14px;
}

.article-sidebar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 7px 12px;
  text-align: left;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.article-sidebar button:hover {
  border-color: var(--border-default);
  background: var(--surface-1);
  color: var(--text-primary);
}

.toc-list {
  margin: 0;
  padding-left: 0;
  border-left: 1px solid var(--border-subtle);
  list-style: none;
}

.toc-list li {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.toc-list li:first-child {
  margin-top: 0;
}

.toc-list--linked a {
  display: block;
  border-left: 1px solid transparent;
  color: var(--text-secondary);
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.toc-list--linked a:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
  transform: translateX(2px);
}

.toc-list__item--level-3 a {
  color: var(--text-muted);
  font-size: 12px;
  padding-left: 26px;
}

.sidebar-author__card {
  display: grid;
  gap: 9px;
}

.sidebar-author__card strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.sidebar-author__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sidebar-author__card a {
  width: fit-content;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-related ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-related li {
  margin: 0;
}

.sidebar-related a {
  display: grid;
  gap: 3px;
}

.sidebar-related span {
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.35;
}

.sidebar-related small {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-main {
  order: 1;
  width: 100%;
  max-width: min(86ch, 100%);
  align-self: start;
}

.article-lede {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  font-style: italic;
  line-height: 1.35;
}

.article-main > hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--border-subtle);
}

.article-content {
  color: var(--text-secondary);
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li,
.article-content figcaption {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

.article-content p {
  margin: 24px 0 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-content h2 {
  margin: 58px 0 0;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
}

.article-content .article-content-heading {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.article-content h3 {
  margin: 42px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.article-content ul,
.article-content ol {
  margin: 24px 0 0;
  padding: 0;
}

.article-content ul,
.article-content ol {
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  margin-top: 12px;
  padding-left: 34px;
}

.article-content ul li::before,
.article-content ol li::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 20px;
  height: 1px;
  content: "";
  background: var(--brand-primary);
}

.benefit-chip-list,
.prompt-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.article-content .benefit-chip-list li,
.article-content .prompt-token-list li {
  margin: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.68);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.2;
  padding: 8px 12px;
}

.article-content .benefit-chip-list li::before,
.article-content .prompt-token-list li::before {
  display: none;
}

.article-content blockquote,
.wp-block-quote {
  margin: 42px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-1);
  padding: clamp(24px, 4vw, 34px);
}

.article-content blockquote p,
.wp-block-quote p {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-style: italic;
  line-height: 1.32;
}

.article-content cite,
.wp-block-quote cite {
  display: block;
  margin-top: 18px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-content figure {
  margin: 42px 0;
}

.article-content img {
  width: auto;
  height: auto;
  border-radius: 12px;
}

.article-content .wp-block-image img {
  border: 1px solid var(--border-subtle);
  filter: sepia(0.08) saturate(0.82) contrast(1.02) brightness(0.98);
}

.article-content figcaption {
  margin-top: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.article-content .wp-block-button__link {
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-primary);
  padding: 10px 16px;
  text-decoration: none;
}

.article-content pre,
.article-content code {
  font-family: var(--font-mono);
}

.article-content pre {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(24, 23, 21, 0.96);
  color: #faf9f5;
  padding: 18px;
}

.article-section-break {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.use-case-card {
  position: relative;
  margin: 64px 0 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.use-case-card::before {
  display: none;
}

.use-case-card__header {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 0;
}

.use-case-card__number {
  display: inline-flex;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.use-case-card__header h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}

.use-case-card__body {
  position: relative;
  padding: 18px 0 0 64px;
}

.use-case-card__body > p:first-child {
  max-width: 58ch;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.65;
}

.use-case-card .wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
  margin-top: 18px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.use-case-card .wp-block-list li {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 8px 28px;
  font-size: 14.5px;
  line-height: 1.5;
}

.use-case-card .wp-block-list li::before {
  top: 20px;
  left: 14px;
  width: 12px;
}

.prompt-panel {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--brand-primary-glow), transparent 44%),
    var(--surface-soft);
  box-shadow: none;
}

.prompt-panel__bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 9px 12px 9px 14px;
}

.prompt-panel__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-panel__label::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-primary);
  content: "";
}

.prompt-panel__copy {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.72);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.prompt-panel__copy:hover,
.prompt-panel__copy.is-copied {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--text-primary);
}

.prompt-panel__copy:active {
  transform: translateY(1px);
}

.prompt-panel pre {
  max-height: min(58vh, 560px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  overflow: auto;
  padding: 16px;
}

.prompt-panel code {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.prompt-checklist {
  margin: 34px 0 0;
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0 0;
}

.prompt-checklist__header {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.prompt-checklist__header span,
.prompt-checklist__examples > span {
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-checklist__header h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
}

.prompt-checklist__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-checklist__item {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.prompt-checklist__item h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.prompt-checklist__item p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}

.prompt-checklist__examples {
  margin-top: 12px;
}

.prompt-checklist .prompt-token-list {
  margin-top: 8px;
}

.step-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.step-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.step-card > span {
  display: inline-flex;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.step-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.step-card > div {
  grid-column: 2;
}

.step-card p {
  font-size: 14.5px;
  line-height: 1.6;
}

.image-example-block {
  margin: 28px 0 0;
}

.image-example-block h3 {
  margin: 0 0 14px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-example-grid--1 {
  grid-template-columns: 1fr;
}

.image-example-grid figure,
.image-example-grid .wp-block-image {
  margin: 0;
}

.image-example-grid img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.lc-image-compare {
  --compare-pos: 50%;
  position: relative;
  margin: 42px 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.lc-image-compare__stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  border: 1px solid rgba(18, 17, 22, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 17, 22, 0.07);
  padding: 8px;
  scrollbar-width: thin;
}

.lc-image-compare__item,
.lc-image-compare__slider {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(18, 17, 22, 0.08);
  border-radius: 10px;
  background: #fbfaf7;
}

.lc-image-compare__item {
  display: grid;
  width: 100%;
  max-height: min(72vh, 640px);
  align-self: center;
  aspect-ratio: 4 / 3;
  place-items: center;
}

.lc-image-compare__item[data-role="before"] {
  aspect-ratio: var(--before-aspect, 4 / 3);
}

.lc-image-compare__item[data-role="after"] {
  aspect-ratio: var(--after-aspect, 4 / 3);
}

.lc-image-compare__item span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(18, 17, 22, 0.68);
  color: #fffdf8;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.lc-image-compare__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: none;
}

.lc-image-compare__slider {
  display: none;
  width: 100%;
  min-height: 320px;
  max-height: min(74vh, 720px);
  aspect-ratio: var(--compare-aspect, 16 / 10);
  touch-action: none;
  user-select: none;
}

.lc-image-compare__actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  display: flex;
  gap: 5px;
  border: 1px solid rgba(18, 17, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 14px 34px rgba(18, 17, 22, 0.12);
  padding: 4px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.lc-image-compare__actions button {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(18, 17, 22, 0.72);
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lc-image-compare__actions button:hover,
.lc-image-compare__actions button[aria-pressed="true"] {
  border-color: rgba(124, 58, 237, 0.24);
  background: rgba(124, 58, 237, 0.14);
  color: var(--brand-primary-active);
}

.lc-image-compare__actions button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.lc-image-compare__actions button:active {
  transform: translateY(1px);
}

.lc-image-compare__actions button::after {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: max-content;
  border-radius: 999px;
  background: rgba(18, 17, 22, 0.9);
  color: #fffdf8;
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.lc-image-compare__actions button:hover::after,
.lc-image-compare__actions button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.lc-image-compare__button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lc-image-compare__button-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.lc-image-compare__actions [data-ui-icon="side"] .lc-image-compare__button-icon::before,
.lc-image-compare__actions [data-ui-icon="side"] .lc-image-compare__button-icon::after {
  position: absolute;
  top: 3px;
  width: 5px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.lc-image-compare__actions [data-ui-icon="side"] .lc-image-compare__button-icon::before {
  left: 1px;
}

.lc-image-compare__actions [data-ui-icon="side"] .lc-image-compare__button-icon::after {
  right: 1px;
}

.lc-image-compare__actions [data-ui-icon="drag"] .lc-image-compare__button-icon::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.lc-image-compare__actions [data-ui-icon="drag"] .lc-image-compare__button-icon::after {
  position: absolute;
  top: 5px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  content: "";
}

.lc-image-compare__actions [data-ui-icon="full"] .lc-image-compare__button-icon::before {
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.lc-image-compare__actions [data-ui-icon="full"] .lc-image-compare__button-icon::after {
  position: absolute;
  inset: 6px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  content: "";
  opacity: 0.62;
}

.lc-image-compare__actions [data-ui-icon="close"] .lc-image-compare__button-icon::before,
.lc-image-compare__actions [data-ui-icon="close"] .lc-image-compare__button-icon::after {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.lc-image-compare__actions [data-ui-icon="close"] .lc-image-compare__button-icon::before {
  transform: rotate(45deg);
}

.lc-image-compare__actions [data-ui-icon="close"] .lc-image-compare__button-icon::after {
  transform: rotate(-45deg);
}

.lc-image-compare .lc-image-compare__slider-before,
.lc-image-compare .lc-image-compare__slider-after,
.lc-image-compare .lc-image-compare__slider-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.lc-image-compare .lc-image-compare__slider-before,
.lc-image-compare .lc-image-compare__slider-after img {
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: none;
}

.lc-image-compare__slider-after {
  clip-path: inset(0 0 0 var(--compare-pos));
  overflow: hidden;
}

.lc-image-compare--mixed-aspect .lc-image-compare__slider-before,
.lc-image-compare--mixed-aspect .lc-image-compare__slider-after img {
  inset: auto;
  top: 50%;
  left: 50%;
  object-fit: fill;
  transform: translate(-50%, -50%);
}

.lc-image-compare--mixed-aspect .lc-image-compare__slider-before {
  width: var(--before-slider-width, 100%);
  height: var(--before-slider-height, 100%);
}

.lc-image-compare--mixed-aspect .lc-image-compare__slider-after img {
  width: var(--after-slider-width, 100%);
  height: var(--after-slider-height, 100%);
}

.lc-image-compare__slider-label {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(18, 17, 22, 0.68);
  color: #fffdf8;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.lc-image-compare__slider-label[data-role="before"] {
  left: 12px;
}

.lc-image-compare__slider-label[data-role="after"] {
  right: 12px;
}

.lc-image-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos);
  z-index: 4;
  width: 44px;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  padding: 0;
  touch-action: none;
  transform: translateX(-50%);
}

.lc-image-compare__handle::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--brand-primary);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.32);
  content: "";
  transform: translateX(-50%);
}

.lc-image-compare__handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 12px 30px rgba(18, 17, 22, 0.24);
  content: "";
  transform: translate(-50%, -50%);
}

.lc-image-compare__handle:focus-visible::after,
.lc-image-compare.is-dragging .lc-image-compare__handle::after {
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.18),
    0 12px 30px rgba(18, 17, 22, 0.24);
}

.lc-image-compare.is-slider .lc-image-compare__item {
  display: none;
}

.lc-image-compare.is-slider .lc-image-compare__stage {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.lc-image-compare.is-slider .lc-image-compare__slider {
  display: block;
}

body.lc-compare-fullscreen-open {
  overflow: hidden;
}

.lc-image-compare.is-fullscreen {
  position: fixed;
  inset: clamp(10px, 2vw, 24px);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #17131f;
  color: #faf9f5;
  box-shadow: 0 0 0 9999px rgba(18, 17, 22, 0.74), 0 24px 80px rgba(18, 17, 22, 0.46);
}

.lc-image-compare.is-fullscreen .lc-image-compare__actions button {
  color: #faf9f5;
}

.lc-image-compare.is-fullscreen .lc-image-compare__actions {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(23, 19, 31, 0.72);
}

.lc-image-compare.is-fullscreen .lc-image-compare__actions button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.lc-image-compare.is-fullscreen .lc-image-compare__actions button:hover,
.lc-image-compare.is-fullscreen .lc-image-compare__actions button[aria-pressed="true"] {
  border-color: rgba(167, 139, 250, 0.9);
  background: rgba(124, 58, 237, 0.34);
}

.lc-image-compare.is-fullscreen .lc-image-compare__stage {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #100d17;
  box-shadow: none;
}

.lc-image-compare.is-fullscreen .lc-image-compare__item {
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}

.lc-image-compare.is-fullscreen .lc-image-compare__item img {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.lc-image-compare.is-fullscreen .lc-image-compare__slider {
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

.lc-image-compare__caption {
  margin: 10px 2px 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  padding: 0;
}

.lc-image-compare.is-fullscreen .lc-image-compare__caption {
  display: none;
}

.article-content details,
.article-content .wp-block-details {
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.article-content summary {
  color: var(--text-primary);
  cursor: pointer;
  font-size: 17px;
  line-height: 1.45;
}

.author-panel {
  display: grid;
  grid-template-columns: minmax(120px, 3fr) minmax(0, 9fr);
  gap: 24px;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.author-panel h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 400;
}

.author-panel p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 1px;
  background: var(--brand-primary-soft);
}

body.admin-bar .reading-progress {
  top: 32px;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-primary);
}

.pagination-wrap {
  margin-top: 46px;
  color: var(--text-secondary);
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  padding: 0 12px;
}

.pagination-wrap .current,
.pagination-wrap a:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
}

.empty-note {
  margin: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-secondary);
  padding: 24px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 58, 237, 0.14), transparent 28rem),
    var(--surface-dark);
  color: #faf9f5;
}

.site-footer .brand-link,
.site-footer .site-footer__bottom a:hover,
.site-footer .footer-col a:hover {
  color: #faf9f5;
}

.site-footer .footer-col a:hover {
  color: var(--brand-primary);
}

.site-footer .site-footer__brand p,
.site-footer .footer-col a,
.site-footer__bottom {
  color: rgba(250, 249, 245, 0.62);
}

.site-footer .footer-col__label {
  color: rgba(250, 249, 245, 0.82);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 42px;
  padding-top: clamp(56px, 7vw, 80px);
  padding-bottom: 56px;
}

.site-footer__brand p {
  max-width: 340px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col__label {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 13.5px;
  transition: color 180ms ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding-top: 22px;
  padding-bottom: 26px;
  text-transform: uppercase;
}

.site-footer__bottom span:last-child {
  display: flex;
  gap: 18px;
}

.site-footer__bottom a:hover {
  color: var(--text-primary);
}

@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }

  .journal-hero__grid,
  .post-card--feature,
  .subscribe-band__grid,
  .article-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .article-header__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-header__aside {
    max-width: 680px;
  }

  .article-header__aside--meta-only {
    justify-self: stretch;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar {
    order: 2;
  }

  .article-main {
    order: 1;
    max-width: none;
  }

  .article-sidebar__sticky {
    position: static;
    gap: 18px;
    max-height: none;
    overflow-y: auto;
    padding: 24px;
  }

  .article-toc {
    overflow: hidden;
  }

  .toc-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-left: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .toc-list::-webkit-scrollbar {
    display: none;
  }

  .toc-list li {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .toc-list--linked a,
  .toc-list__item--level-3 a {
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: rgba(250, 249, 245, 0.72);
    margin-left: 0;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .toc-list--linked a:hover {
    transform: none;
  }

  .prompt-checklist__grid,
  .step-card-list {
    grid-template-columns: 1fr;
  }

  .lc-image-compare__stage {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .big-cta {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 60px;
  }

  .site-actions__link {
    display: none;
  }

  .site-actions__button {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 12.5px;
  }

  .category-bar__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .journal-search {
    width: 100%;
  }

  .meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-header .meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading,
  .section-heading--large {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-table__head {
    display: none;
  }

  .archive-row {
    grid-template-columns: 1fr;
    gap: 8px 14px;
  }

  .archive-row strong {
    white-space: normal;
  }

  .use-case-card__header,
  .use-case-card .wp-block-list,
  .image-example-grid {
    grid-template-columns: 1fr;
  }

  .lc-image-compare__actions {
    top: auto;
    right: 50%;
    bottom: 14px;
    transform: translateX(50%);
  }

  .lc-image-compare__actions button::after {
    display: none;
  }

  .lc-image-compare__slider-label {
    top: 12px;
    bottom: auto;
  }

  .article-sidebar-toggle {
    top: auto;
    right: 16px;
    bottom: 18px;
  }

  body.admin-bar .article-sidebar-toggle {
    top: auto;
  }

  .use-case-card__body {
    padding-left: 0;
  }

  .use-case-card__number {
    width: auto;
    height: auto;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step-card > div {
    grid-column: 1;
  }

  .author-panel {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --page-pad: 18px;
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand-lockup-image {
    width: 116px;
  }

  .site-actions__button {
    max-width: none;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .journal-hero .section-inner,
  .archive-hero .section-inner,
  .article-header .section-inner {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .journal-hero h1,
  .archive-hero h1,
  .article-header h1 {
    letter-spacing: -0.015em;
  }

  .article-header__main h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .article-header .meta-strip {
    grid-template-columns: 1fr;
  }

  .lc-image-compare.is-fullscreen {
    inset: 10px;
  }

  .lc-image-compare__stage {
    border-radius: 12px;
    padding: 6px;
  }

  .lc-image-compare__item,
  .lc-image-compare__slider {
    min-height: 240px;
  }

  .lc-image-compare__item img {
    height: 100%;
    min-height: 0;
  }

  .post-card--feature {
    padding: 10px;
  }

  .post-card--feature .post-card__body {
    padding: 6px 4px 8px;
  }

  .post-card--internal {
    gap: 14px;
    padding: 12px;
  }

  .post-card--internal .post-card__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
