/* ProcessPath Blog — on-brand static styles */

@import url('https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.2.9/index.min.css');

:root {
  --font-sans: 'Geist Variable', system-ui, sans-serif;
  --background: #ffffff;
  --foreground: #252525;
  --muted-foreground: #737373;
  --border: #ebebeb;
  --brand-dark: #4a7ff7;
  --brand-light: #b4d7ff;
  --surface-subtle: #f7f7f7;
  --radius: 0.625rem;
  --max-width: 42rem;
  --page-max: 52rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground);
  background: var(--background);
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #3a6fe0;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo:hover {
  opacity: 0.85;
}

.site-logo__mark {
  border-radius: var(--radius);
}

.site-visit-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-visit-link:hover {
  text-decoration: underline;
}

/* Hero image — matches post content width (42rem) */

.hero-image {
  max-width: var(--max-width);
  margin: 0 auto 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: auto;
  margin: 0;
}

/* Main layout */

.site-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Home */

.home-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-intro {
  margin: 0 0 2rem;
  color: var(--muted-foreground);
}

.home-content .post-list {
  margin-top: 0;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  transition: border-color 0.15s;
}

.post-card:hover {
  border-color: var(--brand-light);
}

.post-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.post-card__title a {
  color: var(--foreground);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.post-card__date {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.post-card__blurb {
  margin: 0;
  color: var(--foreground);
}

.empty-state {
  color: var(--muted-foreground);
}

/* Post page */

.post {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post__header {
  margin-bottom: 1.75rem;
}

.post__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.post__date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.post__body {
  font-size: 1.0625rem;
}

.post__body p {
  margin: 0 0 1.25rem;
}

.post__body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.post-inline-image {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-inline-image img {
  width: 100%;
}

.post__back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.post__back a {
  text-decoration: none;
}

.post__back a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .post__title {
    font-size: 1.6rem;
  }
}
