/* ============================================
   Design tokens
   ============================================ */
:root {
  --bg: #12131a;
  --bg-panel: #1b1d27;
  --bg-panel-raised: #21232f;
  --text: #edeef2;
  --text-muted: #9092a3;
  --text-faint: #5c5e6d;
  --accent-code: #6e7bff;
  --accent-code-dim: #3a3f7a;
  --accent-music: #e3a33e;
  --accent-music-dim: #7a5a26;
  --border: #2a2c3a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --max-w: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-code);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

/* ============================================
   Layout shell
   ============================================ */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

header.site-header {
  padding: 32px 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .home-link {
  font-family: var(--serif);
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.site-header nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  margin-left: 24px;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--text);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 110px 0 90px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 14ch;
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}

/* ============================================
   Channels
   ============================================ */
.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .channels {
    grid-template-columns: 1fr;
  }
}

.channel {
  background: var(--bg-panel);
  padding: 40px 36px 44px;
  position: relative;
}

/* Programming channel: terminal-flavored */
.channel-code {
  border-top: 2px solid var(--accent-code);
}

.channel-code .channel-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-code);
}

.channel-code .channel-label::before {
  content: "$ ";
  color: var(--accent-code-dim);
}

/* Music channel: analog-flavored */
.channel-music {
  border-top: 2px solid var(--accent-music);
}

.channel-music .channel-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-music);
}

.channel h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 18px 0 12px;
}

.channel p.desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 40ch;
  margin: 0 0 26px;
}

.channel-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-decoration: none;
  padding: 12px 16px;
  background: var(--bg-panel-raised);
  border-radius: 3px;
  font-size: 15px;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.channel-code .channel-link:hover {
  background: var(--accent-code-dim);
}

.channel-music .channel-link:hover {
  background: var(--accent-music-dim);
}

.channel-link .status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.channel-link.is-live .status {
  color: var(--accent-code);
}

.channel-link.is-soon {
  cursor: default;
  color: var(--text-muted);
}

.channel-link.is-soon:hover {
  background: var(--bg-panel-raised);
}

/* ============================================
   Footer
   ============================================ */
footer.site-footer {
  padding: 70px 0 60px;
  margin-top: 70px;
  border-top: 1px solid var(--border);
}

footer.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer p {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0;
}

.linkedin-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.linkedin-link:hover {
  border-color: var(--accent-code);
  color: var(--text);
}

/* ============================================
   Article (guide) pages
   ============================================ */
.article-header {
  padding: 70px 0 20px;
}

.article-header .wrap {
  max-width: var(--max-w);
}

.eyebrow-link {
  display: inline-block;
  text-decoration: none;
  color: var(--accent-code);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 28px;
}

.eyebrow-link:hover {
  text-decoration: underline;
}

.article-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.article-meta {
  color: var(--text-faint);
  font-size: 14px;
}

article.content {
  padding: 20px 0 100px;
}

article.content .wrap {
  max-width: var(--max-w);
}

article.content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  margin: 56px 0 18px;
}

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

article.content p {
  margin: 0 0 20px;
  color: #d7d8de;
}

article.content ul,
article.content ol {
  color: #d7d8de;
  padding-left: 22px;
  margin: 0 0 20px;
}

article.content li {
  margin-bottom: 8px;
}

article.content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 3px;
  color: #b9c0ff;
}

article.content pre {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 0 0 28px;
}

article.content pre code {
  background: none;
  padding: 0;
  color: #d7d8de;
  font-size: 14.5px;
  line-height: 1.55;
}

.code-kw { color: #6e7bff; }
.code-type { color: #e3a33e; }
.code-str { color: #8bd49c; }
.code-com { color: var(--text-faint); }

.callout {
  border-left: 2px solid var(--accent-code);
  padding: 4px 22px;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.callout strong {
  color: var(--text);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.article-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
}

.article-nav a:hover {
  color: var(--text);
}
