@font-face {
  font-family: "Cormorant Garamond Local";
  src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond Local";
  src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond Local";
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --perry-space: #050816;
  --perry-space-2: #080b1a;
  --perry-space-3: #0b1026;
  --perry-blue: #6272ff;
  --perry-violet: #9a7cff;
  --perry-cyan: #70d7e8;
  --perry-white: #f4f5ff;
  --perry-muted: #929dbf;
  --perry-line: rgba(132, 148, 255, .18);
  --perry-panel: rgba(10, 15, 38, .75);
  --perry-display: "Cormorant Garamond Local", "Palatino Linotype", Palatino, Georgia, serif;
  --perry-ease: 360ms cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
::selection { color: #fff; background: var(--perry-blue); }
body {
  background: #f4f6fc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-theme='dark'] body, [data-theme='dark'] #web_bg { background: var(--perry-space); }

/* Slowly moving site atmosphere */
#web_bg {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(99, 119, 255, .14), transparent 28%),
    radial-gradient(circle at 82% 62%, rgba(107, 211, 224, .1), transparent 26%),
    radial-gradient(circle at 58% 12%, rgba(154, 124, 255, .09), transparent 22%),
    #f4f6fc;
  background-size: 125% 125%, 135% 135%, 145% 145%, auto;
  animation: galaxyBackgroundFlow 24s ease-in-out infinite alternate;
}
#web_bg::before,
#web_bg::after {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
}
#web_bg::before {
  opacity: .2;
  background-image: radial-gradient(circle, rgba(74, 91, 167, .55) 0 1px, transparent 1.4px);
  background-size: 118px 118px;
  animation: galaxyStarsFloat 42s linear infinite;
}
#web_bg::after {
  opacity: .16;
  background: linear-gradient(115deg, transparent 30%, rgba(112, 137, 232, .18) 49%, transparent 68%);
  filter: blur(35px);
  animation: galaxyLightSweep 19s ease-in-out infinite alternate;
}
[data-theme='dark'] #web_bg {
  background:
    radial-gradient(circle at 18% 24%, rgba(82, 98, 211, .2), transparent 28%),
    radial-gradient(circle at 82% 62%, rgba(44, 145, 164, .12), transparent 26%),
    radial-gradient(circle at 58% 12%, rgba(125, 89, 207, .13), transparent 22%),
    var(--perry-space);
  background-size: 125% 125%, 135% 135%, 145% 145%, auto;
}
[data-theme='dark'] #web_bg::before { opacity: .34; background-image: radial-gradient(circle, rgba(177, 191, 255, .7) 0 1px, transparent 1.45px); }

/* Navigation and Perry mark */
#page-header #nav {
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
#page-header.not-top-img #nav, #page-header.nav-fixed #nav {
  background: rgba(247, 249, 255, .88);
  border-bottom: 1px solid rgba(64, 75, 130, .08);
}
[data-theme='dark'] #page-header.not-top-img #nav,
[data-theme='dark'] #page-header.nav-fixed #nav {
  background: rgba(5, 8, 22, .86);
  border-bottom-color: var(--perry-line);
}
#site-name .title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--perry-display);
  font-size: 23px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .015em;
}
#site-name .title::before {
  content: 'P';
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(114, 132, 255, .55);
  border-radius: 50%;
  color: var(--perry-blue);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}
#menus > .menus_items > .menus_item > a { padding-inline: .6rem; letter-spacing: .03em; }
@media (max-width: 1100px) {
  #page-header #nav #menus { display: none; }
  #page-header #nav #toggle-menu { display: flex; }
}

/* Home: quiet deep-space observatory */
.research-galaxy-index { background: var(--perry-space); }
.research-galaxy-index #page-header { position: absolute; width: 100%; background: transparent; }
.research-galaxy-index #page-header.not-top-img #nav { color: #eef1ff; background: rgba(5, 8, 22, .42); border-bottom-color: rgba(145, 157, 255, .12); }
.research-galaxy-index #page-header:not(.nav-fixed) #site-name,
.research-galaxy-index #page-header:not(.nav-fixed) .site-page { color: #f2f4ff !important; text-shadow: none; }
.research-galaxy-index #blog-container { overflow: hidden; background: transparent; }
.research-galaxy-index #content-inner { position: relative; z-index: 2; max-width: 1240px; padding-top: 8px; }
.research-galaxy-index #aside-content, .research-galaxy-index #categoryBar { display: none; }
.research-galaxy-index #recent-posts { width: 100%; }
[data-theme='light'] .research-galaxy-index { background: #f4f6fc; }
[data-theme='light'] .research-galaxy-index #blog-container { background: transparent; }
[data-theme='light'] .research-galaxy-index .galaxy-home,
[data-theme='light'] .research-galaxy-index .galaxy-section,
[data-theme='light'] .research-galaxy-index .galaxy-about { color: #17203b; }
[data-theme='light'] .research-galaxy-index .galaxy-section-head h2,
[data-theme='light'] .research-galaxy-index .explore-card,
[data-theme='light'] .research-galaxy-index .topic-row,
[data-theme='light'] .research-galaxy-index .galaxy-about h2 { color: #17203b; }
[data-theme='light'] .research-galaxy-index .explore-card,
[data-theme='light'] .research-galaxy-index #recent-posts > .recent-post-item { background: rgba(255,255,255,.78); border-color: rgba(74,89,151,.15); }
[data-theme='light'] .research-galaxy-index #recent-posts .article-title { color: #18213d; }
[data-theme='light'] .research-galaxy-index #recent-posts .content,
[data-theme='light'] .research-galaxy-index #recent-posts .article-meta-wrap { color: #65708f; }

.galaxy-home { color: var(--perry-white); }
.galaxy-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 700px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(78, 68, 185, .18), transparent 25%),
    radial-gradient(ellipse at 65% 35%, rgba(46, 91, 177, .13), transparent 34%),
    linear-gradient(125deg, #050816 5%, #080b1a 57%, #0b1026 100%);
  background-size: 130% 130%, 140% 140%, 100% 100%;
  animation: galaxyHeroFlow 18s ease-in-out infinite alternate;
}
.galaxy-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(129, 145, 230, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 145, 230, .13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 62%, transparent 100%);
}
.galaxy-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto -12% -46% 34%;
  height: 640px;
  border: 1px solid rgba(130, 146, 255, .14);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.galaxy-sky, .galaxy-sky::before, .galaxy-sky::after { position: absolute; inset: 0; pointer-events: none; content: ''; }
.galaxy-sky {
  opacity: .62;
  background-image: radial-gradient(circle at 17% 22%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 33% 68%, #99b4ff 0 1px, transparent 1.5px), radial-gradient(circle at 78% 19%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 91% 62%, #9adcea 0 1px, transparent 1.5px);
  background-size: 310px 290px, 410px 370px, 470px 420px, 560px 510px;
  animation: starDrift 70s linear infinite;
}
.galaxy-sky::before {
  opacity: .22;
  background-image: radial-gradient(circle at 50% 50%, rgba(157, 139, 255, .9) 0 1px, transparent 1.8px);
  background-size: 230px 250px;
  animation: starTwinkle 9s ease-in-out infinite alternate;
}
.galaxy-sky i { position: absolute; display: block; border-radius: 50%; border: 1px solid rgba(116, 132, 255, .18); transform: rotate(-16deg); }
.galaxy-sky i:nth-child(1) { width: 520px; height: 180px; right: -70px; top: 245px; }
.galaxy-sky i:nth-child(2) { width: 360px; height: 360px; right: 105px; top: 150px; }
.galaxy-sky i:nth-child(3) { width: 6px; height: 6px; right: 28%; top: 29%; border: 0; background: var(--perry-cyan); box-shadow: 0 0 18px var(--perry-cyan); }
.galaxy-hero-inner, .galaxy-section, .galaxy-about { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.galaxy-hero-inner { position: relative; z-index: 2; padding-top: 56px; }
.galaxy-eyebrow, .galaxy-section-head span, .galaxy-about > div > span {
  color: var(--perry-cyan);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.galaxy-eyebrow { display: flex; align-items: center; gap: 11px; }
.galaxy-eyebrow span { width: 34px; height: 1px; background: currentColor; box-shadow: 0 0 9px currentColor; }
.galaxy-hero h1 { margin: 25px 0 12px; line-height: 1; }
.galaxy-hero h1 strong {
  display: block;
  width: fit-content;
  padding: .02em 0 .09em;
  font-family: var(--perry-display);
  font-size: clamp(90px, 13vw, 164px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .88;
  color: transparent;
  background: linear-gradient(120deg, #fff 10%, #e0e4ff 56%, #9b8cff);
  -webkit-background-clip: text;
  background-clip: text;
}
.galaxy-hero h1 em {
  display: block;
  margin: 24px 0 0 6px;
  color: #cfd5ff;
  font-family: var(--perry-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: .04em;
  line-height: 1.08;
}
.galaxy-subtitle { margin: 27px 0 7px 6px; color: #b9c2e8; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.galaxy-copy { margin: 0 0 0 6px; color: #8e99bb; font-size: 15px; letter-spacing: .04em; }
.galaxy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0 6px; }
.galaxy-button { padding: 11px 18px; border: 1px solid rgba(156, 168, 255, .28); border-radius: 999px; color: #e9ecff; font-size: 12px; letter-spacing: .04em; transition: var(--perry-ease); }
.galaxy-button.primary { border-color: transparent; background: linear-gradient(120deg, #6272ff, #765aca); box-shadow: 0 8px 28px rgba(80, 82, 210, .21); }
.galaxy-button:hover { color: #fff; border-color: rgba(156, 168, 255, .6); transform: translateY(-2px); }
.galaxy-motto { position: absolute; bottom: -74px; left: 6px; color: rgba(191, 201, 238, .47); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .19em; text-transform: uppercase; }
.galaxy-coordinate { position: absolute; z-index: 2; right: 42px; bottom: 40px; color: rgba(191, 201, 238, .34); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.galaxy-orbit-mark { position: absolute; right: 14%; top: 47%; display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid rgba(132, 148, 255, .24); border-radius: 50%; color: rgba(228, 232, 255, .78); font-family: var(--perry-display); font-size: 55px; }
.galaxy-orbit-mark::before { content: ''; position: absolute; inset: 33px -54px; border: 1px solid rgba(112, 215, 232, .18); border-radius: 50%; transform: rotate(-17deg); }
.galaxy-orbit-mark i { position: absolute; right: -24px; top: 28px; width: 6px; height: 6px; border-radius: 50%; background: var(--perry-cyan); box-shadow: 0 0 14px var(--perry-cyan); }

.galaxy-section { padding: 112px 0 18px; color: var(--perry-white); }
.galaxy-section-head { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(260px, .7fr); gap: 78px; align-items: end; margin-bottom: 44px; }
.galaxy-section-head h2 { margin: 9px 0 0; padding-bottom: .08em; color: #f3f5ff; font-family: var(--perry-display); font-size: clamp(38px, 5vw, 62px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
.galaxy-section-head p { margin: 0; color: var(--perry-muted); font-size: 13px; line-height: 1.8; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--perry-line); }
.explore-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 30px 28px 26px; border-right: 1px solid var(--perry-line); border-bottom: 1px solid var(--perry-line); color: var(--perry-white); transition: var(--perry-ease); }
.explore-card:nth-child(3n) { border-right: 0; }
.explore-card:hover { color: #fff; background: linear-gradient(145deg, rgba(98, 114, 255, .11), transparent 72%); transform: translateY(-3px); }
.explore-number { color: #697497; font: 10px "SFMono-Regular", Consolas, monospace; }
.explore-orbit { display: block; width: 38px; height: 38px; margin: 22px 0 17px; border: 1px solid rgba(126, 141, 255, .38); border-radius: 50%; }
.explore-orbit::after { content: ''; display: block; width: 5px; height: 5px; margin: 4px 0 0 27px; border-radius: 50%; background: var(--perry-cyan); box-shadow: 0 0 9px currentColor; }
.explore-card h3 { margin: 0 0 11px; color: inherit; font-family: var(--perry-display); font-size: 29px; font-weight: 600; }
.explore-card p { margin: 0 0 24px; color: #8e99bb; font-size: 13px; line-height: 1.7; }
.explore-link { display: block; margin-top: auto; padding-top: 4px; color: #9da9d8; font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }

.latest-notes-heading { padding-bottom: 0; }
.research-galaxy-index #recent-posts > .recent-post-item { min-height: 260px; border: 1px solid var(--perry-line); background: rgba(10, 15, 38, .72); box-shadow: none; transition: var(--perry-ease); }
.research-galaxy-index #recent-posts > .recent-post-item:hover { transform: translateY(-3px); border-color: rgba(132, 148, 255, .42); box-shadow: 0 14px 36px rgba(0, 0, 0, .18), 0 0 24px rgba(76, 88, 205, .08); }
.research-galaxy-index #recent-posts .recent-post-item .post_cover { background: #070b1c; }
.research-galaxy-index #recent-posts .recent-post-item .post_cover img { opacity: .76; filter: saturate(.72) brightness(.78) contrast(.94); transform: scale(1.01); transition: opacity .45s ease, filter .45s ease, transform .65s ease; }
.research-galaxy-index #recent-posts .recent-post-item:hover .post_cover img { opacity: .86; filter: saturate(.85) brightness(.87) contrast(.97); transform: scale(1.025); }
.research-galaxy-index #recent-posts .article-title { color: #edf0ff; }
.research-galaxy-index #recent-posts .content, .research-galaxy-index #recent-posts .article-meta-wrap { color: #8994b6; }
.research-galaxy-index #pagination { margin-bottom: 35px; }

.topic-list { border-top: 1px solid var(--perry-line); }
.topic-row { display: grid; grid-template-columns: 55px 1fr 1.1fr 20px; gap: 28px; align-items: center; min-height: 100px; border-bottom: 1px solid var(--perry-line); color: var(--perry-white); transition: var(--perry-ease); }
.topic-row:hover { color: #fff; padding-inline: 12px; background: linear-gradient(90deg, rgba(98, 114, 255, .08), transparent); }
.topic-row > span { color: #667192; font: 10px "SFMono-Regular", Consolas, monospace; }
.topic-row h3 { margin: 0; color: inherit; font-family: var(--perry-display); font-size: 27px; font-weight: 600; }
.topic-row p { margin: 0; color: #8f9abc; font-size: 13px; }
.topic-row > b { color: #8794ca; font-weight: 400; }
.topic-index-link { display: inline-block; margin-top: 24px; color: #aeb8ee; font-size: 12px; letter-spacing: .04em; }

.galaxy-about { display: grid; grid-template-columns: 88px 1.1fr 1fr auto; gap: 34px; align-items: center; margin-top: 90px; margin-bottom: 78px; padding: 38px 0; border-top: 1px solid var(--perry-line); border-bottom: 1px solid var(--perry-line); color: var(--perry-white); }
.galaxy-about-mark { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(118, 135, 255, .42); border-radius: 50%; font: 600 31px var(--perry-display); }
.galaxy-about h2 { max-width: 420px; margin: 7px 0 0; color: #f5f6ff; font-family: var(--perry-display); font-size: 29px; font-style: italic; font-weight: 600; line-height: 1.2; }
.galaxy-about p { margin: 0; color: #9aa5c7; font-size: 13px; line-height: 1.75; }
.galaxy-about > a { color: #c9d0ff; white-space: nowrap; font-size: 12px; }

.rg-reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 700ms ease; }
.rg-reveal.is-visible { opacity: 1; transform: none; }

/* Reading surfaces: galaxy recedes and typography leads. */
#recent-posts > .recent-post-item, .card-widget, #post, #page, #archive { border: 1px solid rgba(70, 84, 145, .09); box-shadow: 0 10px 34px rgba(31, 37, 79, .055); }
#post, #page { max-width: 920px; }
#article-container { line-height: 1.86; }
#article-container p { margin-bottom: 1.25em; }
#article-container h1, #article-container h2, #article-container h3 { letter-spacing: -.025em; line-height: 1.35; }
#article-container h2 { margin-top: 2.15em; padding-bottom: .45em; border-bottom: 1px solid rgba(98, 114, 255, .12); }
#article-container a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
#article-container table { display: table; width: 100%; border-radius: 10px; overflow: hidden; }
#article-container figure.highlight { border: 1px solid rgba(91, 105, 175, .14); border-radius: 12px; overflow: hidden; }
#article-container blockquote { border-radius: 0 10px 10px 0; background: rgba(98, 114, 255, .065); }
[data-theme='dark'] #post, [data-theme='dark'] #page, [data-theme='dark'] #archive, [data-theme='dark'] .card-widget { background: #0b1024; border-color: rgba(133, 147, 224, .12); box-shadow: 0 12px 34px rgba(0, 0, 0, .2); }
[data-theme='dark'] #article-container { color: #c7cee8; }

/* Public topic index and About page */
.topics-page, .about-galaxy { max-width: 1040px; margin-inline: auto; }
.topics-page > h1, .about-galaxy > h1 { font-family: var(--perry-display); font-size: clamp(45px, 7vw, 78px); font-style: italic; font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.topics-page .lead, .about-galaxy .lead { max-width: 720px; font-family: var(--perry-display); font-size: 28px; font-style: italic; line-height: 1.38; color: var(--perry-blue); }
.topic-field { scroll-margin-top: 90px; margin: 58px 0; padding-top: 28px; border-top: 1px solid rgba(98, 114, 255, .18); }
.topic-field h2 { margin-bottom: 5px; }
.topic-field .field-meta { color: #7c87aa; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 58px; }
.interest-grid div { padding: 19px 15px; border: 1px solid rgba(98, 114, 255, .18); border-radius: 12px; font-size: 12px; }
.interest-grid span { display: block; margin-bottom: 13px; color: #7b86ac; font: 9px "SFMono-Regular", Consolas, monospace; }
.observatory-map { position: relative; min-height: 390px; margin: 42px 0; overflow: hidden; border: 1px solid rgba(98, 114, 255, .18); border-radius: 22px; background: radial-gradient(circle at center, rgba(98, 114, 255, .15), transparent 28%), #070b1c; }
.observatory-map::before { content: ''; position: absolute; inset: 15% 10%; border: 1px solid rgba(98, 114, 255, .13); border-radius: 50%; transform: rotate(-8deg); }
.observatory-map .center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid #7684ff; border-radius: 50%; color: #fff; font: 600 38px var(--perry-display); }
.observatory-map span:not(.center) { position: absolute; color: #b8c0e8; font-size: 10px; letter-spacing: .09em; }
.observatory-map span:not(.center)::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--perry-cyan); box-shadow: 0 0 8px var(--perry-cyan); }
.observatory-map span:nth-child(2){left:12%;top:20%}.observatory-map span:nth-child(3){right:11%;top:18%}.observatory-map span:nth-child(4){left:9%;bottom:24%}.observatory-map span:nth-child(5){right:9%;bottom:22%}.observatory-map span:nth-child(6){left:43%;top:9%}.observatory-map span:nth-child(7){left:42%;bottom:9%}.observatory-map span:nth-child(8){left:15%;top:50%}.observatory-map span:nth-child(9){right:14%;top:49%}

/* Perry's Galaxy footer */
#footer { background: linear-gradient(180deg, #070b1c, #040611); border-top: 1px solid rgba(132, 148, 255, .14); }
#footer-wrap { color: #aab3d1; }
.perry-footer-brand { margin-bottom: 13px; color: #f3f5ff; font-family: var(--perry-display); font-size: 25px; font-style: italic; font-weight: 600; line-height: 1.2; letter-spacing: .035em; }
.perry-footer-brand small { display: block; margin-top: 9px; color: #7e8aaa; font: 400 10px/1.5 Inter, ui-sans-serif, sans-serif; font-style: normal; letter-spacing: .08em; }
.perry-footer-links a { margin: 0 7px; color: #97a3c7; font-size: 10px; }

/* Knowledge paths, resources and public statistics */
.perry-page { max-width: 1080px; margin-inline: auto; }
.perry-page > h1, .perry-page-hero h1 { margin: 8px 0 18px; font-family: var(--perry-display); font-size: clamp(46px, 7vw, 78px); font-style: italic; font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.page-kicker, .perry-page-hero > span, .panel-kicker { color: var(--perry-blue); font: 10px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.page-lead, .perry-page-hero p { max-width: 720px; margin-bottom: 50px; color: #7883a5; font-size: 16px; line-height: 1.8; }
.series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.series-card { position: relative; display: flex; min-height: 275px; flex-direction: column; padding: 30px; overflow: hidden; border: 1px solid rgba(98,114,255,.16); border-radius: 18px; color: inherit; background: linear-gradient(145deg, rgba(98,114,255,.08), transparent 65%); transition: var(--perry-ease); }
.series-card::after { content: ''; position: absolute; right: -34px; bottom: -52px; width: 160px; height: 160px; border: 1px solid rgba(98,114,255,.18); border-radius: 50%; box-shadow: 0 0 55px rgba(98,114,255,.08) inset; }
.series-card:hover { color: inherit; border-color: rgba(98,114,255,.45); transform: translateY(-4px); }
.series-card > span { color: #7783a8; font: 9px monospace; letter-spacing: .12em; }
.series-card h2 { max-width: 420px; margin: 44px 0 14px !important; padding: 0 !important; border: 0 !important; font-family: var(--perry-display); font-size: 30px; line-height: 1.25; }
.series-card p { max-width: 430px; color: #7b86a7; font-size: 13px; }
.series-card b { margin-top: auto; color: #7482c9; font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.series-card.bio { background: radial-gradient(circle at 86% 15%, rgba(79,220,212,.13), transparent 35%), linear-gradient(145deg, rgba(98,114,255,.07), transparent); }
.series-card.linux { background: radial-gradient(circle at 86% 15%, rgba(128,152,255,.16), transparent 35%), linear-gradient(145deg, rgba(35,48,103,.1), transparent); }
.series-card.ai { background: radial-gradient(circle at 86% 15%, rgba(174,98,255,.13), transparent 35%), linear-gradient(145deg, rgba(98,114,255,.07), transparent); }
.series-card.notes { background: radial-gradient(circle at 86% 15%, rgba(255,184,105,.12), transparent 35%), linear-gradient(145deg, rgba(98,114,255,.07), transparent); }

.tool-search { display: flex; align-items: center; gap: 12px; margin: 0 0 44px; padding: 13px 18px; border: 1px solid rgba(98,114,255,.18); border-radius: 12px; background: rgba(98,114,255,.035); }
.tool-search span { color: #6f7bd0; font-size: 23px; }
.tool-search input { width: 100%; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; }
.tool-group { margin: 48px 0; }
.tool-group > h2 { margin-bottom: 18px !important; padding-bottom: 10px !important; font-family: var(--perry-display); font-size: 27px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool-card { display: flex; min-height: 170px; flex-direction: column; padding: 20px; border: 1px solid rgba(98,114,255,.15); border-radius: 13px; color: inherit; transition: var(--perry-ease); }
.tool-card:hover { color: inherit; border-color: rgba(98,114,255,.45); background: rgba(98,114,255,.045); transform: translateY(-3px); }
.tool-card b { font-family: var(--perry-display); font-size: 19px; }
.tool-card span { margin: 12px 0; color: #7d88a8; font-size: 11px; line-height: 1.65; }
.tool-card em { margin-top: auto; color: #7683cc; font-size: 9px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.tool-card[hidden], .tool-group[hidden] { display: none !important; }
.tool-empty { padding: 30px; text-align: center; color: #7d88a8; }

.stats-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 34px 0 50px; }
.stats-overview article { padding: 25px 22px; border: 1px solid rgba(98,114,255,.16); border-radius: 13px; }
.stats-overview strong { display: block; font-family: var(--perry-display); font-size: 38px; font-weight: 500; }
.stats-overview span { color: #7b86a5; font-size: 10px; letter-spacing: .08em; }
.stats-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.stats-panel { padding: 27px; border: 1px solid rgba(98,114,255,.16); border-radius: 15px; }
.stats-panel h2 { margin: 5px 0 24px !important; padding: 0 !important; border: 0 !important; font-family: var(--perry-display); font-size: 27px; }
.stats-bar { margin: 17px 0; }
.stats-bar > div { display: flex; justify-content: space-between; color: #737e9f; font-size: 10px; }
.stats-bar > div b { font-weight: 500; }
.stats-bar i { display: block; height: 3px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: rgba(98,114,255,.09); }
.stats-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #596afa, #64d9dd); }
.stats-series-item, .stats-recent-item { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(98,114,255,.11); color: inherit; font-size: 12px; }
.stats-series-item b { color: #7884c8; font: 9px monospace; white-space: nowrap; }
.stats-recent { grid-column: 1 / -1; }
.stats-recent-item { justify-content: flex-start; }
.stats-recent-item time { flex: 0 0 86px; color: #7884c8; font: 9px monospace; }

.map-intro { display: grid; grid-template-columns: 105px 1fr; gap: 28px; align-items: center; margin: 52px 0; padding: 32px 0; border-block: 1px solid rgba(98,114,255,.15); }
.map-core { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid #7180ef; border-radius: 50%; font: italic 36px var(--perry-display); }
.map-intro small { color: #7480c8; font: 9px monospace; letter-spacing: .12em; }
.map-intro h2 { margin: 6px 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--perry-display); font-size: 28px; }
.map-intro p { margin: 0 !important; color: #7c87a7; }
.map-paths { border-top: 1px solid rgba(98,114,255,.16); }
.map-path { display: grid; grid-template-columns: 50px 1fr 1.1fr 145px; gap: 20px; align-items: center; min-height: 105px; border-bottom: 1px solid rgba(98,114,255,.16); color: inherit; transition: var(--perry-ease); }
.map-path:hover { padding-inline: 10px; color: inherit; background: linear-gradient(90deg, rgba(98,114,255,.06), transparent); }
.map-path > span { color: #737ea0; font: 9px monospace; }
.map-path h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--perry-display); font-size: 25px; }
.map-path p { margin: 0 !important; color: #7b86a5; font-size: 11px; }
.map-path b { color: #7784cb; font-size: 10px; font-weight: 500; text-align: right; }
.map-footer-callout { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: 56px; padding: 30px; border-radius: 15px; background: linear-gradient(120deg, rgba(98,114,255,.12), rgba(71,212,218,.06)); }
.map-footer-callout span { color: #7481c8; font: 9px monospace; }
.map-footer-callout h2 { margin: 7px 0 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--perry-display); }
.map-footer-callout nav { display: flex; gap: 9px; white-space: nowrap; }
.map-footer-callout a { padding: 10px 14px; border: 1px solid rgba(98,114,255,.25); border-radius: 8px; font-size: 10px; }

/* Article series navigator */
.post-series { margin: 58px 0 18px; padding: 25px; border: 1px solid rgba(98,114,255,.17); border-radius: 15px; background: linear-gradient(145deg, rgba(98,114,255,.055), transparent); }
.post-series header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }
.post-series header span { color: #7380c6; font: 9px monospace; letter-spacing: .12em; }
.post-series header h3 { margin: 5px 0 0 !important; font-family: var(--perry-display); font-size: 25px; }
.post-series header > b { color: #7180c8; font: 10px monospace; }
.post-series ol { margin: 0; padding: 0; list-style: none; }
.post-series li a { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(98,114,255,.09); color: #747f9f; font-size: 12px; text-decoration: none !important; }
.post-series li a span { color: #6975b6; font: 9px monospace; }
.post-series li.is-current a { color: var(--perry-blue); font-weight: 600; }
.post-series-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.post-series-switch a { padding: 12px; border: 1px solid rgba(98,114,255,.14); border-radius: 9px; color: inherit; font-size: 11px; text-decoration: none !important; }
.post-series-switch a:last-child { text-align: right; }
.post-series-switch span { display: block; margin-bottom: 4px; color: #747fc1; font: 8px monospace; }

/* A poem is the doorway; the pet is a quiet companion. */
.poem-portal { --poem-progress: 0; position: relative; z-index: 1; display: grid; place-items: center; width: 100%; min-height: 100svh; overflow: hidden; color: #f6f7ff; background: radial-gradient(circle at 50% 44%, #151d4a 0, #080c21 38%, #03050e 100%); }
.poem-portal::after { content: ''; position: absolute; inset: auto 0 0; height: 26vh; background: linear-gradient(transparent, var(--perry-space)); pointer-events: none; }
.poem-stars { position: absolute; inset: -5%; opacity: calc(.65 - var(--poem-progress) * .44); background-image: radial-gradient(#fff 0.7px, transparent .8px), radial-gradient(#87e5e8 0.7px, transparent .8px); background-position: 0 0, 38px 51px; background-size: 83px 83px, 127px 127px; animation: poemStarFlow 26s linear infinite; transform: translateY(calc(var(--poem-progress) * 70px)) scale(calc(1 + var(--poem-progress) * .05)); }
.poem-card { position: relative; z-index: 1; width: min(900px, calc(100% - 42px)); padding: 50px 25px; text-align: center; opacity: calc(1 - var(--poem-progress) * 1.12); transform: translateY(calc(var(--poem-progress) * -68px)) scale(calc(1 - var(--poem-progress) * .045)); will-change: opacity, transform; }
.poem-card > span { color: #7887d4; font: 9px monospace; letter-spacing: .2em; }
.poem-card blockquote { margin: 45px auto 22px; border: 0; color: #f7f8ff; background: transparent; font-family: "STKaiti", "KaiTi", "FangSong", serif; font-size: clamp(31px, 5.2vw, 64px); font-weight: 400; line-height: 1.5; letter-spacing: .06em; }
.poem-card cite { display: block; color: #9ba6cf; font: 12px var(--perry-body); font-style: normal; }
.poem-scroll-cue { position: absolute; bottom: 28px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #727fae; font: 8px monospace; letter-spacing: .18em; transform: translateX(-50%); }
.poem-scroll-cue i { position: relative; display: block; width: 1px; height: 34px; overflow: hidden; background: rgba(128,142,211,.2); }
.poem-scroll-cue i::after { content: ''; position: absolute; top: -16px; left: 0; width: 1px; height: 16px; background: #7f91e8; animation: poemScroll 1.8s ease-in-out infinite; }
.perry-theme-switch { position: fixed; z-index: 10001; top: 18px; right: 22px; display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid rgba(118,132,197,.24); border-radius: 30px; color: #aeb7dc; background: rgba(7,11,29,.58); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.perry-theme-switch button { min-width: 25px; height: 24px; padding: 0; border: 0; border-radius: 15px; color: inherit; background: transparent; font: 11px/24px "PingFang SC", "Microsoft YaHei", sans-serif; cursor: pointer; opacity: .5; }
.perry-theme-switch button[aria-pressed='true'] { color: #fff; background: rgba(119,133,211,.25); opacity: 1; }
.perry-theme-switch i { width: 1px; height: 12px; background: rgba(142,153,207,.2); }
[data-theme='light'] .perry-theme-switch { color: #536080; background: rgba(255,255,255,.75); border-color: rgba(65,76,125,.16); }
[data-theme='light'] .perry-theme-switch button[aria-pressed='true'] { color: #1d2743; background: rgba(92,108,184,.13); }
[data-theme='light'] .poem-portal { color: #1e2742; background: radial-gradient(circle at 50% 42%, #f1edf8 0, #edf1f8 43%, #dde4f1 100%); }
[data-theme='light'] .poem-portal::after { background: linear-gradient(transparent, #f4f6fc); }
[data-theme='light'] .poem-stars { opacity: calc(.28 - var(--poem-progress) * .18); filter: invert(.7); }
[data-theme='light'] .poem-card blockquote { color: #202942; }
[data-theme='light'] .poem-card cite { color: #68728e; }

/* Reliable right rail icons, independent of the external icon font. */
#rightside #rightside-config-show #rightside-config,
#rightside #rightside-config-show #go-up { display: grid; place-items: center; line-height: 1; }
#rightside #rightside-config-show #rightside-config > i,
#rightside #rightside-config-show #go-up > i { display: none !important; }
#rightside #rightside-config-show #rightside-config::before {
  content: '\2699\FE0E';
  color: currentColor;
  font-family: "Segoe UI Symbol", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
#rightside #rightside-config-show #go-up::before {
  content: '\2191';
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
@keyframes poemScroll { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }
@keyframes poemStarFlow { to { background-position: 83px -52px, -89px 138px; } }
@keyframes galaxyBackgroundFlow { 0% { background-position: 0% 0%, 100% 100%, 50% 0%, 0 0; } 100% { background-position: 12% 9%, 88% 86%, 56% 14%, 0 0; } }
@keyframes galaxyStarsFloat { to { transform: translate3d(66px, -48px, 0) rotate(.6deg); } }
@keyframes galaxyLightSweep { from { transform: translate3d(-13%, -3%, 0) rotate(-4deg); } to { transform: translate3d(14%, 5%, 0) rotate(4deg); } }
@keyframes galaxyHeroFlow { from { background-position: 78% 42%, 62% 31%, 0 0; } to { background-position: 65% 52%, 73% 42%, 0 0; } }

@keyframes starDrift { to { transform: translate3d(24px, -14px, 0); } }
@keyframes starTwinkle { to { opacity: .5; } }

@media (max-width: 900px) {
  .galaxy-section-head { grid-template-columns: 1fr; gap: 20px; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-card:nth-child(3n) { border-right: 1px solid var(--perry-line); }
  .explore-card:nth-child(2n) { border-right: 0; }
  .galaxy-orbit-mark { right: 9%; opacity: .65; }
  .galaxy-about { grid-template-columns: 70px 1fr; }
  .galaxy-about p, .galaxy-about > a { grid-column: 2; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .map-path { grid-template-columns: 40px 1fr 1fr; }
  .map-path b { display: none; }
}

@media (max-width: 768px) {
  .galaxy-hero { min-height: 660px; }
  .galaxy-hero-inner, .galaxy-section, .galaxy-about { width: min(100% - 30px, 1120px); }
  .galaxy-hero h1 strong { font-size: clamp(74px, 24vw, 105px); }
  .galaxy-hero h1 em { margin-top: 20px; font-size: 29px; }
  .galaxy-subtitle { max-width: 270px; line-height: 1.8; }
  .galaxy-coordinate, .galaxy-orbit-mark, .galaxy-motto, .galaxy-sky i:nth-child(-n+2) { display: none; }
  .galaxy-sky { opacity: .4; background-size: 430px 390px, 510px 470px, 580px 530px, 660px 610px; animation-duration: 90s; }
  .galaxy-section { padding-top: 82px; }
  .galaxy-section-head h2 { font-size: 40px; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card, .explore-card:nth-child(2n), .explore-card:nth-child(3n) { min-height: 260px; border-right: 0; }
  .topic-row { grid-template-columns: 34px 1fr 18px; gap: 16px; min-height: 92px; }
  .topic-row p { display: none; }
  .topic-row h3 { font-size: 24px; }
  .galaxy-about { grid-template-columns: 58px 1fr; gap: 20px; margin-top: 70px; padding: 30px 0; }
  .galaxy-about-mark { width: 52px; height: 52px; font-size: 26px; }
  .galaxy-about h2 { font-size: 24px; }
  .research-galaxy-index #content-inner { padding-inline: 10px; }
  .research-galaxy-index #recent-posts > .recent-post-item { min-height: auto; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
  .observatory-map { min-height: 330px; }
  .observatory-map span:not(.center) { font-size: 8px; }
  #article-container table { display: block; overflow-x: auto; white-space: nowrap; }
  .series-grid, .stats-grid { grid-template-columns: 1fr; }
  .stats-overview { grid-template-columns: 1fr 1fr; }
  .stats-recent { grid-column: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .map-intro { grid-template-columns: 70px 1fr; }
  .map-core { width: 58px; height: 58px; font-size: 27px; }
  .map-path { grid-template-columns: 30px 1fr; gap: 12px; padding: 18px 0; }
  .map-path p { grid-column: 2; }
  .map-footer-callout { align-items: stretch; flex-direction: column; }
  .map-footer-callout nav { white-space: normal; }
  .post-series-switch { grid-template-columns: 1fr; }
  .post-series-switch a:last-child { text-align: left; }
  .poem-card blockquote { font-size: clamp(28px, 8vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rg-reveal { opacity: 1; transform: none; }
}
