:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #15151f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f2f2f7;
  --text-dim: #a0a0b2;
  --text-faint: #62626f;
  --ember: #ff5c33;
  --ember-hot: #ffb347;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad-forge: linear-gradient(135deg, #ff5c33 0%, #ffb347 100%);
  --grad-ai: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-oss: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  --grad-culture: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ember); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Ambient background */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% -5%, rgba(255,92,51,0.12), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(139,92,246,0.10), transparent 60%),
    radial-gradient(ellipse 45% 30% at 50% 110%, rgba(34,211,238,0.06), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Ticker */
.ticker-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--grad-forge);
  color: #0a0a0f;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.ticker-label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0a0a0f;
  animation: nf-pulse 1.6s ease-in-out infinite;
}
@keyframes nf-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.ticker-track { display: flex; white-space: nowrap; animation: nf-ticker 45s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span { padding: 8px 0; color: var(--text-dim); }
.ticker-track span::after { content: "•"; margin: 0 24px; color: var(--ember); }
@keyframes nf-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(10,10,15,0.72);
  border-bottom: 1px solid var(--border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-forge);
  display: grid; place-items: center;
  font-size: 18px; color: #0a0a0f;
  box-shadow: 0 0 24px rgba(255,92,51,0.4);
}
.logo em { font-style: normal; background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 10px;
  background: var(--grad-forge); color: #0a0a0f;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,92,51,0.35); }

/* Hero */
.hero { padding: 56px 0 40px; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ember);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.kicker::after { content: ""; height: 1px; width: 64px; background: linear-gradient(90deg, var(--ember), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }

.story-card {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), border-color 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.story-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.story-art { aspect-ratio: 16/8.5; position: relative; overflow: hidden; display: block; }
.story-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,15,0.55));
}
.story-art .art-img, .story-art img { width: 100%; height: 100%; object-fit: cover; }
.art-forge { background: radial-gradient(circle at 25% 70%, #ff5c33 0%, transparent 55%), radial-gradient(circle at 80% 20%, #ffb347 0%, transparent 50%), #1a1220; }
.art-ai { background: radial-gradient(circle at 70% 70%, #8b5cf6 0%, transparent 55%), radial-gradient(circle at 20% 25%, #22d3ee 0%, transparent 50%), #0f1420; }
.art-oss { background: radial-gradient(circle at 30% 30%, #10b981 0%, transparent 55%), radial-gradient(circle at 80% 80%, #22d3ee 0%, transparent 50%), #0e1a18; }
.art-culture { background: radial-gradient(circle at 75% 30%, #f43f5e 0%, transparent 55%), radial-gradient(circle at 20% 80%, #8b5cf6 0%, transparent 50%), #1a1018; }
.art-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  color: rgba(255,255,255,0.14); font-size: clamp(80px, 12vw, 160px);
  letter-spacing: -0.05em; user-select: none;
}
.story-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag.hot { border-color: rgba(255,92,51,0.4); color: var(--ember-hot); background: rgba(255,92,51,0.08); }
.tag.ai { border-color: rgba(139,92,246,0.4); color: #b79cff; background: rgba(139,92,246,0.08); }
.tag.oss { border-color: rgba(16,185,129,0.4); color: #4ade80; background: rgba(16,185,129,0.08); }
.tag.culture { border-color: rgba(244,63,94,0.4); color: #fb7185; background: rgba(244,63,94,0.08); }
.story-card h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero-main h2 { font-size: clamp(26px, 3.2vw, 40px); }
.story-card h2 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s; }
.story-card:hover h2 a { background-size: 100% 2px; }
.dek { color: var(--text-dim); font-size: 15.5px; }
.byline { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-faint); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; color: #0a0a0f;
}
.byline b { color: var(--text-dim); font-weight: 600; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.mini-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px; border-radius: 16px; flex: 1;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.mini-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.mini-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.mini-card .meta { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }

/* Sections */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700; letter-spacing: -0.02em;
}
.section-head h2 span { background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.see-all { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); transition: color 0.2s; }
.see-all:hover { color: var(--ember-hot); }
.archive-dek { margin: -12px 0 24px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid .story-art { aspect-ratio: 16/9; }
.grid .story-card h2 { font-size: 19px; }
.grid .art-glyph { font-size: 72px; }
.grid .story-body { padding: 20px 22px 24px; }
.grid .dek { font-size: 14px; }

/* Topics */
.topics { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-chip, .topics a {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-card);
  display: flex; align-items: center; gap: 10px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.topic-chip:hover, .topics a:hover { transform: translateY(-2px); border-color: var(--border-hover); background: var(--bg-elevated); }
.topic-chip .n { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 400; }
.topic-chip .sw { width: 10px; height: 10px; border-radius: 3px; }

/* Newsletter */
.newsletter {
  position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 120% at 20% 0%, rgba(255,92,51,0.16), transparent 60%),
    radial-gradient(ellipse 60% 100% at 85% 100%, rgba(139,92,246,0.14), transparent 60%),
    var(--bg-card);
  padding: 64px 48px;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin-bottom: 14px;
}
.newsletter h2 em { font-style: normal; background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.newsletter p { color: var(--text-dim); max-width: 520px; margin: 0 auto 32px; }
.signup { display: flex; gap: 10px; justify-content: center; max-width: 460px; margin: 0 auto; }
.signup input[type="email"], .signup input[type="search"] {
  flex: 1; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(10,10,15,0.6);
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.signup input[type="email"]:focus, .signup input[type="search"]:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,92,51,0.18); }
.signup button {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--grad-forge); color: #0a0a0f;
  transition: transform 0.2s, box-shadow 0.2s;
}
.signup button:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,92,51,0.4); }
.signup-note { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }
.signup-done { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #4ade80; display: none; }

/* Single article */
.single-article { max-width: 780px; margin: 0 auto; padding-top: 48px; }
.article-header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.article-header h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(30px, 4.5vw, 52px); line-height: 1.08;
}
.article-dek { font-size: 19px; }
.article-hero { border-radius: 20px; overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/8; position: relative; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { font-size: 17.5px; color: #d5d5e0; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display); color: var(--text); letter-spacing: -0.015em;
  margin-top: 2em; line-height: 1.2;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--ember-hot); text-decoration: underline; text-decoration-color: rgba(255,179,71,0.4); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--ember-hot); }
.entry-content blockquote {
  border-left: 3px solid var(--ember); padding: 4px 0 4px 24px;
  color: var(--text); font-family: var(--font-display); font-size: 21px; line-height: 1.4;
}
.entry-content pre {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px;
}
.entry-content code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(255,255,255,0.07); padding: 2px 6px; border-radius: 6px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content img { border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content figcaption { font-size: 13px; color: var(--text-faint); text-align: center; margin-top: 10px; }
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-footer .topics a { font-size: 13px; padding: 8px 16px; border-radius: 10px; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  font-family: var(--font-mono); font-size: 14px;
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--border-hover); color: var(--text); }
.pagination .page-numbers.current { background: var(--grad-forge); color: #0a0a0f; border-color: transparent; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 24px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand p { color: var(--text-faint); font-size: 13.5px; max-width: 300px; margin-top: 12px; }
.foot-cols { display: flex; gap: 64px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 4px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-faint); font-family: var(--font-mono);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* WP core classes */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .foot-cols { gap: 36px; flex-wrap: wrap; }
  .newsletter { padding: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none;