/* PrepperGPT blog. Shares the design system of index.html: same tokens,
   fonts, nav, grain, and footer. Kept as one external sheet because every
   post uses it; the landing page keeps its CSS inline per its own comment. */

:root {
  --bg-0: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #191919;
  --text-1: #e8e8e8;
  --text-2: #a8a8a8;
  --text-3: #8f8f8f;
  --accent: #c9a227;
  --accent-dim: rgba(201, 162, 39, 0.14);
  --accent-line: rgba(201, 162, 39, 0.35);
  --border: #262626;
  --danger: #a04545;
}

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

a, button { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
}

/* Grain: fixed + pointer-events none only (never on scrolling containers) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 60;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav (mirrors index.html) ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

.nav-cta { padding: 12px 20px; font-size: 13px; }

/* ---------- Page header ---------- */
main { padding-top: 68px; }

.page-head {
  padding: 90px 0 56px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
}

.page-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  text-transform: none;
  max-width: 820px;
}
.page-title .highlight { color: var(--accent); }

.page-desc {
  font-size: 18px;
  color: var(--text-2);
  max-width: 620px;
  margin-top: 20px;
  line-height: 1.7;
}

.post-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-top: 24px;
}
.post-meta span { color: var(--accent); }

/* ---------- Post list (blog index) ---------- */
.post-list { padding: 64px 0 110px; }

.post-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-1);
  padding: 36px;
  max-width: 780px;
  text-decoration: none;
  color: var(--text-1);
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card + .post-card { margin-top: 20px; }
.post-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.post-card-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.post-card h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 12px 0 14px;
}

.post-card p {
  color: var(--text-2);
  line-height: 1.7;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

/* ---------- Article prose ---------- */
.prose {
  max-width: 720px;
  padding: 64px 0 40px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-1);
}

.prose p { margin-bottom: 22px; }

.prose h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.25;
  margin: 52px 0 18px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose strong { font-weight: 600; }

.prose ul, .prose ol {
  margin: 0 0 22px 22px;
}
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }

.prose .lede {
  font-size: 20px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Pull line: the one-sentence takeaway */
.pull {
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  padding: 20px 24px;
  margin: 34px 0;
  font-size: 18px;
  font-weight: 500;
}

/* ---------- Tool callout cards ---------- */
.tool-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-1);
  padding: 24px 28px;
  margin: 30px 0;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.tool-card .tool-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text-1);
}

.tool-card .tool-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin: 4px 0 10px;
}

.tool-card .tool-desc {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- End-of-post CTA ---------- */
.post-cta {
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  padding: 40px;
  margin: 24px 0 110px;
  max-width: 720px;
}

.post-cta h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.post-cta p {
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 520px;
}

/* ---------- Footer (mirrors index.html) ---------- */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 19px;
}
.footer-logo span { color: var(--accent); }

.footer-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  /* Mirrors index.html: text links hide on small screens, CTA stays */
  .nav-links a:not(.btn) { display: none; }
  .page-head { padding: 72px 0 48px; }
}

@media (max-width: 640px) {
  .page-head { padding: 64px 0 44px; }
  .post-card { padding: 28px 22px; }
  .post-cta { padding: 28px 22px; }
  .prose { font-size: 16.5px; }
}

@media (max-width: 480px) {
  .logo { font-size: 18px; }
  .nav-links { gap: 18px; }
  .nav-cta {
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card, .tool-card { transition: none; }
}

/* Legal links in the footer, matching index.html and legal.css */
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
