@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@300;400&display=swap');

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

:root {
  --bg: #111110;
  --bg2: #161614;
  --text: #a09c94;
  --text-dim: #5a5852;
  --text-dimmer: #3a3834;
  --text-dimmest: #2e2c2a;
  --bright: #e8e3da;
  --mid: #c0bbb2;
  --accent: #5a7a5a;
  --accent-border: #2a3a2a;
  --line: rgba(255,255,255,0.05);
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */

.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ── */

.site-nav {
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--line);
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--bright);
  letter-spacing: 0.05em;
}

.site-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-logo:hover { color: var(--bright); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-dimmer);
  transition: color 0.2s;
}

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

/* ── Hero (featured post) ── */

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 0.5px solid var(--line);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dimmest);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--bright);
  margin-bottom: 1.2rem;
  max-width: 540px;
}

.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--mid); }

.hero-title em { font-style: italic; color: var(--mid); }

.hero-excerpt {
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 440px;
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dimmer);
}

.tag-pill {
  color: var(--accent);
  border: 0.5px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ── Post list ── */

.post-list {
  padding-bottom: 2rem;
}

.post-card {
  padding: 1.6rem 0;
  border-bottom: 0.5px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.post-card:hover .post-card-title { color: var(--bright); }

.post-card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmest);
  margin-bottom: 0.3rem;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.4;
  transition: color 0.2s;
}

.post-card-title a { color: inherit; }

.post-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmest);
  white-space: nowrap;
  letter-spacing: 0.06em;
}

/* ── Single post ── */

.post-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 3rem;
}

.post-header-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dimmest);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-header-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--bright);
  margin-bottom: 1.2rem;
  max-width: 560px;
}

.post-header-excerpt {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 480px;
  line-height: 1.7;
}

/* ── Post content ── */

.post-content {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.post-content p { margin-bottom: 1.5rem; }

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bright);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 2rem 0 0.8rem;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
}

.post-content a:hover { text-decoration-color: var(--accent); }

.post-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg2);
  color: var(--mid);
  padding: 2px 6px;
  border-radius: 2px;
  border: 0.5px solid var(--line);
}

.post-content pre {
  background: var(--bg2);
  border: 0.5px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 1.5px solid var(--accent-border);
  padding-left: 1.4rem;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--font-serif);
}

.post-content hr {
  border: none;
  border-top: 0.5px solid var(--line);
  margin: 3rem 0;
}

.post-content figure { margin: 2rem 0; }

.post-content figure img {
  border-radius: 4px;
  width: 100%;
}

.post-content figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmest);
  margin-top: 0.6rem;
  letter-spacing: 0.06em;
}

/* ── Post footer ── */

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-footer-back {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.08em;
}

.post-footer-back:hover { color: var(--text); }

.post-tags-list {
  display: flex;
  gap: 0.6rem;
  list-style: none;
}

/* ── Tag / Author pages ── */

.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 0;
}

.page-header-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dimmest);
  margin-bottom: 0.8rem;
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--bright);
}

/* ── Pagination ── */

.pagination {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  border-top: 0.5px solid var(--line);
}

.pagination a { color: var(--text-dim); }
.pagination a:hover { color: var(--text); }

/* ── Footer ── */

.site-footer {
  border-top: 0.5px solid var(--line);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.site-footer-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmest);
  letter-spacing: 0.08em;
}

.site-footer-rss {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmer);
  letter-spacing: 0.1em;
}

.site-footer-rss:hover { color: var(--accent); }

/* ── 404 ── */

.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dimmest);
  margin-bottom: 1.5rem;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bright);
  margin-bottom: 1rem;
}

.error-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .site-wrapper { padding: 0 1.2rem; }
  .hero-title { font-size: 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .post-header-title { font-size: 1.4rem; }
}

/* ── Koenig editor widths (required by Ghost) ── */

.kg-width-wide {
  margin-left: -4rem;
  margin-right: -4rem;
}

.kg-width-full {
  margin-left: calc(50% - 50vw + 2rem);
  margin-right: calc(50% - 50vw + 2rem);
}

.kg-image { max-width: 100%; }

.kg-image-card { margin: 2rem 0; }

.kg-gallery-container { display: flex; flex-direction: column; margin: 2rem 0; }

.kg-gallery-row { display: flex; gap: 4px; }

.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card {
  border: 0.5px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}

.kg-bookmark-title {
  font-family: var(--font-serif);
  color: var(--bright);
  font-size: 0.95rem;
}

.kg-bookmark-description {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

.kg-bookmark-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmest);
  margin-top: 0.5rem;
  display: block;
}

.kg-callout-card {
  background: var(--bg2);
  border: 0.5px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.8rem;
}

.kg-toggle-card { margin: 1.5rem 0; }

.kg-toggle-heading {
  font-family: var(--font-serif);
  color: var(--bright);
  cursor: pointer;
}

.kg-video-card { margin: 2rem 0; }
.kg-video-card video { width: 100%; border-radius: 4px; }

.kg-audio-card { margin: 2rem 0; }

.kg-nft-card { margin: 2rem 0; }

.kg-product-card { margin: 2rem 0; }

.kg-header-card { margin: 2rem 0; text-align: center; }

.kg-file-card {
  border: 0.5px solid var(--line);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
