@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  color-scheme: dark;
  --color-bg: #05070a;
  --color-surface: #0b1016;
  --color-surface-soft: #111824;
  --color-border: rgba(241, 238, 231, 0.12);
  --color-border-strong: rgba(241, 238, 231, 0.22);
  --color-text: #f1eee7;
  --color-muted: #b7b1a6;
  --color-subtle: #81796d;
  --color-cyan: #31d7ff;
  --color-violet: #8f5cff;
  --color-magenta: #ff3fb4;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1160px;
  --radius: 18px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--color-bg); }
body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(49, 215, 255, 0.08), transparent 25rem),
    radial-gradient(circle at 86% 34%, rgba(143, 92, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, #05070a 0%, #070a10 46%, #05070a 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(241, 238, 231, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 238, 231, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(100% - 56px, var(--container)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0 26px; }
.brand { display: grid; gap: 5px; }
.brand-name { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-role { font-family: var(--font-mono); font-size: 0.64rem; color: var(--color-cyan); text-transform: uppercase; letter-spacing: 0.16em; }
.nav-links, .site-footer nav { display: flex; align-items: center; gap: 22px; color: var(--color-muted); font-size: 0.9rem; }
.nav-links a, .site-footer a { transition: color 160ms ease; }
.nav-links a:hover, .site-footer a:hover { color: var(--color-text); }
.nav-cta, .button, .subscribe-form button { border: 1px solid var(--color-border-strong); border-radius: 999px; padding: 10px 17px; font-size: 0.88rem; font-weight: 600; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.nav-cta:hover, .button:hover, .subscribe-form button:hover { transform: translateY(-1px); border-color: rgba(49, 215, 255, 0.58); }
.hero { display: grid; align-content: center; max-width: 930px; padding: clamp(58px, 6.4vw, 94px) 0 clamp(66px, 5.8vw, 84px); }
.eyebrow, .post-meta, .pillar-kicker { margin: 0; font-family: var(--font-mono); color: var(--color-cyan); font-size: 0.66rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.15em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 18px 0 0; font-family: var(--font-display); font-size: clamp(3.7rem, 5.55vw, 5.35rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.043em; }
.hero-copy { max-width: 690px; margin: 24px 0 0; color: var(--color-muted); font-size: clamp(0.98rem, 1.18vw, 1.08rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.button-primary { color: #040507; background: var(--color-text); border-color: var(--color-text); }
.button-secondary { color: var(--color-text); background: rgba(241, 238, 231, 0.03); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 0 64px; }
.pillar-card, .featured-post, .post-row, .newsletter { border: 1px solid var(--color-border); background: linear-gradient(180deg, rgba(17, 24, 36, 0.74), rgba(8, 12, 18, 0.72)); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); }
.pillar-card { min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: var(--radius); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.pillar-card:hover { transform: translateY(-4px); border-color: rgba(49, 215, 255, 0.34); background: linear-gradient(180deg, rgba(20, 31, 45, 0.82), rgba(8, 12, 18, 0.8)); }
.pillar-card h2 { margin: auto 0 10px; font-family: var(--font-display); font-size: clamp(1.78rem, 2.1vw, 2.12rem); font-weight: 500; line-height: 1; letter-spacing: -0.032em; }
.pillar-card p, .featured-post p, .post-row p, .newsletter p { margin: 0; color: var(--color-muted); font-size: 0.92rem; line-height: 1.58; }
.latest { padding: 0 0 70px; }
.section-heading { display: grid; gap: 8px; max-width: 650px; margin-bottom: 22px; }
.section-heading h2, .newsletter h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.05rem, 3.35vw, 3.1rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.writing-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr); gap: 16px; }
.featured-post, .post-row { border-radius: var(--radius); }
.featured-post a { min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.featured-post h3, .post-row h3 { margin: 11px 0 11px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.033em; }
.featured-post h3 { max-width: 560px; font-size: clamp(2rem, 3.25vw, 3.05rem); line-height: 1; }
.post-list { display: grid; gap: 16px; }
.post-row a { min-height: 137px; display: grid; align-content: end; padding: 24px; }
.post-row h3 { font-size: clamp(1.32rem, 1.75vw, 1.62rem); line-height: 1.04; }
.post-link { display: inline-block; margin-top: 22px; color: var(--color-text); font-weight: 600; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr); gap: 30px; align-items: center; margin: 0 0 42px; padding: 28px 32px; border-radius: calc(var(--radius) + 6px); background: linear-gradient(120deg, rgba(49, 215, 255, 0.085), transparent 34%), linear-gradient(180deg, rgba(17, 24, 36, 0.86), rgba(8, 12, 18, 0.82)); }
.newsletter h2 { max-width: 640px; margin-top: 10px; font-size: clamp(2.05rem, 3vw, 2.85rem); }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form input { width: 100%; min-height: 46px; border: 1px solid var(--color-border); border-radius: 999px; padding: 0 16px; color: var(--color-text); background: rgba(5, 7, 10, 0.66); outline: none; }
.subscribe-form input:focus { border-color: rgba(49, 215, 255, 0.66); }
.subscribe-form button { color: #040507; background: var(--color-text); border-color: var(--color-text); cursor: pointer; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 40px; border-top: 1px solid var(--color-border); color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.post-template .post-header, .page-template .page-header { padding: 72px 0 42px; max-width: 780px; }
.post-template h1, .page-template h1 { margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.post-content, .page-content { max-width: 760px; padding-bottom: 80px; color: var(--color-muted); font-size: 1.05rem; line-height: 1.75; }
.post-content h2, .page-content h2 { color: var(--color-text); font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1.05; }
.post-content a, .page-content a { color: var(--color-cyan); transition: color 160ms ease; }
.post-content a:hover, .page-content a:hover { color: var(--color-text); }
.post-template .post-header .eyebrow, .page-template .page-header .eyebrow { margin-bottom: 14px; }
.page-excerpt { margin-top: 18px; }
.post-content p, .page-content p { margin: 0 0 1.4em; }
.post-content h2, .page-content h2 { margin: 1.8em 0 0.6em; }
.post-content h3, .page-content h3,
.post-content h4, .page-content h4 { color: var(--color-text); font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; margin: 1.6em 0 0.5em; }
.post-content h3, .page-content h3 { font-size: 1.7rem; }
.post-content h4, .page-content h4 { font-size: 1.32rem; }
.post-content ul, .post-content ol, .page-content ul, .page-content ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.post-content li, .page-content li { margin: 0 0 0.5em; }
.post-content li::marker, .page-content li::marker { color: var(--color-cyan); }
.post-content strong, .page-content strong { color: var(--color-text); font-weight: 600; }
.post-content blockquote, .page-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 2px solid var(--color-cyan); color: var(--color-text); font-family: var(--font-display); font-size: 1.45rem; font-style: italic; line-height: 1.3; }
.post-content code, .page-content code { font-family: var(--font-mono); font-size: 0.88em; background: var(--color-surface-soft); border: 1px solid var(--color-border); border-radius: 6px; padding: 2px 6px; }
.post-content pre, .page-content pre { margin: 0 0 1.4em; padding: 18px 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow-x: auto; }
.post-content pre code, .page-content pre code { background: none; border: 0; padding: 0; }
.post-content hr, .page-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--color-border); }
.post-byline { margin: 18px 0 0; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-subtle); }
.post-byline-sep { margin: 0 8px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; margin: 0 0 72px; }
.post-tag { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); border: 1px solid var(--color-border); border-radius: 999px; padding: 7px 14px; transition: color 160ms ease, border-color 160ms ease; }
.post-tag:hover { color: var(--color-text); border-color: rgba(49, 215, 255, 0.5); }
.archive-empty { max-width: 760px; padding: 4px 0 80px; color: var(--color-muted); font-size: 1.05rem; line-height: 1.65; }
@media (max-width: 860px) {
  .site-shell { width: min(100% - 28px, var(--container)); }
  .site-header { align-items: flex-start; }
  .nav-links { display: none; }
  .hero { padding: 54px 0 62px; }
  .hero h1 { max-width: 620px; font-size: clamp(3rem, 10.5vw, 4.65rem); line-height: 1; letter-spacing: -0.036em; }
  .hero-copy { max-width: 560px; margin-top: 22px; font-size: 1rem; }
  .pillars, .writing-grid, .newsletter { grid-template-columns: 1fr; }
  .pillars { padding-bottom: 58px; }
  .pillar-card { min-height: 184px; }
  .featured-post a { min-height: 258px; }
  .section-heading h2, .newsletter h2 { font-size: clamp(2.05rem, 8.2vw, 3rem); }
  .subscribe-form, .site-footer { flex-direction: column; }
}
.post-content img, .page-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin-left: calc(50% - 42.5vw); transform: translateX(calc(42.5vw - 50%)); }
.kg-width-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { width: 100%; border-radius: 0; }
.archive-header { padding: 72px 0 42px; max-width: 780px; }
.archive-header h1 { margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.archive-header p { margin: 12px 0 0; color: var(--color-muted); font-size: 1.05rem; line-height: 1.65; max-width: 600px; }
.post-list-archive { display: grid; gap: 16px; padding-bottom: 64px; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 48px; color: var(--color-muted); font-size: 0.9rem; }
.pagination a { color: var(--color-text); transition: color 160ms ease; }
.pagination a:hover { color: var(--color-cyan); }
@media (max-width: 540px) {
  .site-shell { width: min(100% - 24px, var(--container)); }
  .site-header { gap: 12px; padding-top: 22px; }
  .brand-name { font-size: 0.76rem; }
  .brand-role { font-size: 0.58rem; }
  .nav-cta { padding: 9px 13px; font-size: 0.82rem; }
  .hero { padding: 40px 0 54px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.75rem); line-height: 1.01; letter-spacing: -0.03em; }
  .eyebrow, .post-meta, .pillar-kicker { font-size: 0.6rem; }
  .hero-actions { margin-top: 26px; }
  .button { padding: 10px 14px; }
  .pillar-card { min-height: 172px; padding: 21px; }
  .featured-post a, .post-row a, .newsletter { padding: 22px; }
  .featured-post h3 { font-size: clamp(1.9rem, 9.4vw, 2.65rem); }
  .post-row h3 { font-size: 1.38rem; }
  .newsletter { padding: 24px; }
  .site-footer nav { flex-wrap: wrap; }
}
