@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --bg-alt: #0a0a0a;
  --fg: #fff;
  --fg-muted: #888;
  --accent: #f5c542;
  --border-color: #fff;
  --border-width: 2px;
  --radius: 8px;
  --radius-inner: 6px;
  --font-ui: 'Inter', sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --max-width: 720px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  display: block;
}

a {
  color: var(--accent);
}

/* ── Layout ─────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ────────────────────────────────────────────── */

nav {
  border-bottom: var(--border-width) solid var(--border-color);
  padding: 1rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav .site-title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-right: auto;
}

nav .site-title:hover {
  color: var(--accent);
}

nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--accent);
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  padding: 4rem 0 2.5rem;
  border-bottom: var(--border-width) solid var(--border-color);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  font-style: italic;
}

/* ── Sections ───────────────────────────────────────── */

section {
  padding: 2.5rem 0;
  border-bottom: var(--border-width) solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-header a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.section-header a:hover {
  color: var(--accent);
}

/* ── Channel list (hub of experiments) ──────────────── */

.channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.channel-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.85rem 2.25rem;
  background: var(--bg);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.1s;
}

.channel-item a::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
}

.channel-item a:hover,
.channel-item a:focus {
  color: var(--accent);
  outline: none;
}

.channel-item a:hover::before,
.channel-item a:focus::before {
  content: '>';
  opacity: 1;
}

.channel-label {
  flex: 1;
}

.channel-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.channel-item a:hover .channel-meta,
.channel-item a:focus .channel-meta {
  color: var(--accent);
}

.channel-item--soon a {
  color: var(--fg-muted);
  border-style: dashed;
  cursor: not-allowed;
}

.channel-item--soon a:hover {
  color: var(--fg-muted);
}

.channel-item--soon a:hover::before,
.channel-item--soon a:focus::before {
  content: '';
  opacity: 0;
}

/* ── Post list (blog index) ─────────────────────────── */

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg);
}

.post-item a {
  display: block;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.post-item a:hover .post-title,
.post-item a:focus .post-title {
  color: var(--accent);
}

.post-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.1s;
}

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-excerpt {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ── Page header (blog index, etc.) ─────────────────── */

.page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: var(--border-width) solid var(--border-color);
}

.page-header h1 {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--fg-muted);
  font-style: italic;
}

/* ── Article ────────────────────────────────────────── */

.article-header {
  padding: 3.5rem 0 2rem;
  border-bottom: var(--border-width) solid var(--border-color);
}

.article-header h1 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-header .meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body {
  padding: 2.5rem 0;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

.article-body h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-body em {
  color: var(--accent);
  font-style: italic;
}

.article-body blockquote {
  border-left: var(--border-width) solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
}

.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 0 0.4em;
  border-radius: 2px;
}

.article-body pre {
  background: var(--bg-alt);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ── Footer ─────────────────────────────────────────── */

footer {
  border-top: var(--border-width) solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.7rem; }
  nav .container { gap: 1rem; }
  .channel-item a { font-size: 0.88rem; padding-left: 2rem; }
}
