/* /journal — listing + post styles
   Reuses tokens.css and landing.css. */

@import url('./tokens.css?v=4');
@import url('./landing.css?v=4');

.journal-page main { padding-top: 96px; }

.journal-shell {
  max-width: var(--editorial-max);
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
}

/* ===== Listing hero ===== */
.journal-hero {
  border-bottom: 1px solid var(--ink-08);
  padding-bottom: 32px;
  margin-bottom: 48px;
}
.journal-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.journal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.journal-hero h1 em { font-style: italic; color: var(--clay); }
.journal-hero .lede {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  color: var(--ink-70);
  max-width: 640px;
  margin: 0;
}

/* ===== Post list ===== */
.post-list {
  display: flex;
  flex-direction: column;
}
.post-card {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-08);
  text-decoration: none;
  color: inherit;
  transition: opacity 200ms;
}
.post-card:hover { opacity: 0.7; }
.post-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.post-card .meta time { color: var(--muted); }
.post-card .meta .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-08);
  font-size: 10px;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
  color: var(--ink);
}
.post-card .desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0;
  max-width: 640px;
}

/* ===== Empty state ===== */
.post-empty {
  padding: 64px 0;
  border: 1px dashed var(--ink-15);
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
}

/* ===== Post detail ===== */
.post-meta-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 16px;
}
.post-meta-bar a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.post-meta-bar a:hover { color: var(--ink); }
.post-meta-bar .arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out-quint);
}
.post-meta-bar a:hover .arrow { transform: translateX(-3px); }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.post-title em { font-style: italic; color: var(--clay); }
.post-deck {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  color: var(--ink-70);
  max-width: 640px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--ink-08);
  padding-bottom: 32px;
}

.post-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 640px;
}
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 1.6em;
}
.post-body em { font-style: italic; }
.post-body strong { font-weight: 600; }
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.post-body a:hover { text-decoration-color: var(--ink); }
.post-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
  font-variation-settings: "opsz" 36;
  color: var(--ink-70);
  margin: 1.5em 0;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ink-04);
  padding: 1px 6px;
  border-radius: 3px;
}
.post-body pre {
  background: var(--ink);
  color: var(--surface);
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 13.5px;
}
.post-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.post-body ul, .post-body ol {
  padding-left: 24px;
}
.post-body li + li { margin-top: 0.4em; }
.post-body hr {
  border: 0;
  height: 1px;
  background: var(--ink-08);
  margin: 2em auto;
  width: 80px;
}
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink-08);
  border-radius: 4px;
}

.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.post-footer .author {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.post-footer a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.post-footer a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .journal-page main { padding-top: 80px; }
  .journal-shell { padding: 24px 24px 64px; }
  .post-card { padding: 20px 0; }
  .post-body { font-size: 16px; }
}
