/* ===== calix.co blog ===== inherits tokens from styles.css :root ===== */

.preview-banner {
  background: var(--gold); color: #1a1408; text-align: center;
  padding: 9px 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  position: relative; z-index: 120;
}

/* ---- index ---- */
.blog-main { padding-top: calc(var(--header-h) + clamp(44px, 8vw, 96px)); padding-bottom: clamp(64px, 10vw, 130px); }
.blog-head { max-width: 54rem; }
.blog-head .kicker { color: var(--gold); }
.blog-head h1 { font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1.02; color: var(--ivory); margin: 0.7rem 0 1rem; letter-spacing: -0.02em; }
.blog-head .lede { color: var(--ivory-dim); font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.25rem); max-width: 46rem; }

.post-list { margin-top: clamp(2.4rem, 6vw, 4rem); border-bottom: 1px solid var(--line-soft); }
.post-row { display: block; text-decoration: none; padding: clamp(1.5rem, 3.4vw, 2.2rem) 0; border-top: 1px solid var(--line-soft); transition: padding-left 0.3s var(--ease); }
.post-row:hover { padding-left: 8px; }
.post-row-meta { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.post-row-meta .tag { color: var(--gold); }
.post-row-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); color: var(--ivory); margin: 0.55rem 0 0.55rem; line-height: 1.1; letter-spacing: -0.01em; transition: color 0.25s var(--ease); }
.post-row:hover .post-row-title { color: var(--gold-soft); }
.post-row-desc { color: var(--ivory-dim); max-width: 48rem; }
.blog-empty { margin-top: 2.5rem; color: var(--ivory-dim); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.blog-empty span { display: block; margin-top: 0.6rem; font-family: var(--sans); font-style: normal; font-size: 0.95rem; color: var(--muted); }

/* ---- single post ---- */
.post { padding-top: calc(var(--header-h) + clamp(30px, 5vw, 64px)); padding-bottom: clamp(64px, 10vw, 120px); }
.post-inner { width: min(100% - (var(--gutter) * 2), 46rem); margin-inline: auto; }
.post-back { display: inline-block; margin-bottom: 1.8rem; color: var(--gold-soft); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.05em; }
.post-back:hover { color: var(--gold); }
.post-kicker { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.post-kicker .tag { color: var(--gold); }
.post-title { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.05; color: var(--ivory); margin: 0.7rem 0 0.9rem; letter-spacing: -0.02em; }
.post-byline { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.9rem; }
.post-figure { margin: 0 0 clamp(1.8rem, 4vw, 2.6rem); }
.post-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line-soft); }

.post-body > *:first-child { margin-top: 0; }
.post-body p { color: var(--ivory-dim); margin: 0 0 1.15em; line-height: 1.75; font-size: 1.06rem; }
.post-body h2 { font-family: var(--serif); color: var(--ivory); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); line-height: 1.15; margin: 1.9em 0 0.55em; letter-spacing: -0.01em; }
.post-body h3 { font-family: var(--serif); color: var(--ivory); font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.post-body strong { color: var(--ivory); font-weight: 600; }
.post-body em { color: var(--gold-soft); }
.post-body a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.post-body a:hover { text-decoration-color: var(--gold); }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.25em; color: var(--ivory-dim); }
.post-body li { margin: 0.4em 0; line-height: 1.7; }
.post-body li::marker { color: var(--gold); }
.post-body blockquote { margin: 1.5em 0; padding-left: 1.1em; border-left: 2px solid var(--line); color: var(--ivory); font-family: var(--serif); font-style: italic; }

.post-foot { margin-top: clamp(2.6rem, 6vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.95rem; }
.post-foot a { color: var(--gold-soft); text-decoration: none; }
.post-foot a:hover { color: var(--gold); }
