/* Long-read styling for /updates and /updates/<slug>. Matches landing-page
   typography tokens (Inter, accent blue, soft-white background) without
   duplicating the landing hero structure. Served by the Go backend. */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #0a0a0a;
  --color-text-muted: #4a4a4a;
  --color-text-faint: #6a6a6a;
  --color-border: #e8e8e8;
  --color-accent: #4a90d9;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.updates-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.updates-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.updates-nav__brand:hover { text-decoration: none; }

.updates-nav__brand img {
  width: 32px;
  height: 32px;
}

.updates-nav__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9a9a9a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.updates-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.updates-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.updates-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.updates-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 2.25rem;
}

/* Body rendered from sanitized Markdown */
.updates-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}
.updates-body h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
}
.updates-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}
.updates-body p { margin: 0 0 1rem; }
.updates-body ul, .updates-body ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.updates-body li { margin-bottom: 0.35rem; }
.updates-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: #f0f0f0;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.updates-body pre {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.92em;
}
.updates-body pre code {
  background: transparent;
  padding: 0;
}
.updates-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}
.updates-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.updates-body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* List view */
.updates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.updates-list__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.updates-list__item:last-child {
  border-bottom: 0;
}
.updates-list__title {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.updates-list__title a { color: var(--color-text); }
.updates-list__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

.updates-empty {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  padding: 2rem 0;
}

.updates-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  text-align: center;
}
.updates-footer a { color: var(--color-text-faint); text-decoration: underline; }
