/* ============================================================
   Zelcast · writing / long-form theme
   Content-first: readable prose on true black, no canvas, fast.
   Shares the brand tokens with the marketing pages.
   ============================================================ */

:root {
  --bg: #070605;
  --ink: #e9e4da;
  --ink-bright: #f4f1ea;
  --ink-dim: rgba(233, 228, 218, 0.62);
  --ink-faint: rgba(233, 228, 218, 0.42);
  --hairline: rgba(233, 228, 218, 0.14);
  --amber: #d8a960;
  --type: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type);
  font-size: clamp(1.05rem, 1.15vw, 1.15rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--bg); }

a:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

/* ---- Header ---- */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.75rem) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-size: 1rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-bright); text-decoration: none;
}
.head-link { font-size: 0.82rem; font-weight: 500; color: var(--ink-dim); text-decoration: none; }
.head-link:hover { color: var(--ink-bright); }

/* ---- Article ---- */
.article { max-width: 720px; margin: 0 auto; padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(3.5rem, 9vh, 6rem); }
.eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.4rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.dek { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-dim); line-height: 1.5; margin-bottom: 1.8rem; max-width: 44ch; }
.byline { font-size: 0.82rem; color: var(--ink-faint); border-top: 1px solid var(--hairline); padding-top: 1.3rem; margin-bottom: 2.6rem; letter-spacing: 0.04em; }
.answer { border-left: 2px solid var(--amber); padding-left: 1.3rem; margin: 0 0 2.6rem; color: var(--ink-bright); }
.article p { margin-bottom: 1.4rem; max-width: 68ch; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 2.9rem 0 1rem; }
.article h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.7rem; color: var(--ink-bright); }
.article ul, .article ol { margin: 0 0 1.4rem 1.3rem; max-width: 66ch; }
.article li { margin-bottom: 0.55rem; }
.article a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(216, 169, 96, 0.32); }
.article a:hover { border-color: var(--amber); }
.article strong { font-weight: 600; color: var(--ink-bright); }

.faq { margin-top: 3rem; }
.faq-q { font-weight: 600; color: var(--ink-bright); margin: 1.6rem 0 0.3rem; }
.faq-a { color: var(--ink-dim); max-width: 68ch; }

.article-cta { margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid var(--hairline); }
.article-cta p { font-size: 1.12rem; color: var(--ink-bright); }

/* ---- Writing index ---- */
.writing-index { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(4rem, 10vh, 7rem); }
.writing-index h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.writing-index .dek { margin-bottom: 2.8rem; }
.post-list { list-style: none; }
.post { border-top: 1px solid var(--hairline); }
.post:last-child { border-bottom: 1px solid var(--hairline); }
.post a { text-decoration: none; color: inherit; display: block; padding: 1.9rem 0; }
.post:hover .post-title { color: var(--amber); }
.post-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.24; transition: color 0.2s ease; }
.post-dek { color: var(--ink-dim); margin-top: 0.5rem; max-width: 62ch; }
.post-meta { font-size: 0.75rem; color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.7rem; }

/* ---- Footer ---- */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: clamp(2rem, 5vh, 3rem) var(--gutter);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-dim);
}
.site-foot a { color: var(--ink-dim); text-decoration: none; }
.site-foot a:hover { color: var(--ink-bright); }
