/* Prompt IT static blog. Self-contained: mirrors the tokens and components of
   src/App.css (nav, footer, buttons, headings) without the React bundle. */

:root {
  --pit-cyan: #00C2A8;
  --pit-lime: #83C043;
  --pit-yellow: #EDD152;
  --pit-panel: #0a1312;
  --pit-panel-2: #101c1a;
  --pit-tile: #161d1c;
  --pit-line: #1e322e;
  --pit-grad-cta: linear-gradient(90deg, #83C043 0%, #c4d54c 50%, #EDD152 100%);
  --pit-grad-head: linear-gradient(90deg, #83C043 0, #83C043 21%, #00C2A8 100%);
  --pit-display: 'Chakra Petch', 'Inter', sans-serif;
  --pit-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pit-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --pit-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gray-300: #cfdcd8;
  --gray-400: #a9bdb8;
  --gray-500: #8aa39d;
  --gray-600: #6f8a84;
  --gray-700: #2a3f3b;
  --gray-800: #1b2b28;
  --gray-900: #14211f;
  --card: rgba(255, 255, 255, 0.05);
  --radius: 0.625rem;
  --radius-2xl: 0.75rem;
}

/* --- Reset (subset of Tailwind preflight) -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { background: #000; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: var(--pit-body);
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--pit-display); font-weight: 700; font-size: inherit; line-height: 1.2; text-wrap: balance; }
::selection { background: var(--pit-lime); color: #000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #83C043, #EDD152); border-radius: 3px; }
:focus-visible { outline: 2px solid var(--pit-yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-5 { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* --- Shared components (same as src/App.css) ---------------------------- */
.pit-h1 {
  font-family: var(--pit-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.7vw, 4.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.pit-h1 span, .pit-h2 {
  background: var(--pit-grad-head);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pit-cyan);
}
.pit-h2 {
  font-family: var(--pit-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.3vw, 3.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.pit-label {
  font-family: var(--pit-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pit-lime);
}
.pit-btn, .pit-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--pit-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  transition: background-position 0.5s var(--pit-ease), transform 0.3s var(--pit-ease),
    box-shadow 0.3s var(--pit-ease), color 0.3s, border-color 0.3s;
}
.pit-btn {
  color: #000;
  background: var(--pit-grad-cta);
  background-size: 200% 100%;
  box-shadow: 0 10px 26px -10px rgba(131, 192, 67, 0.7);
}
.pit-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(237, 209, 82, 0.65);
}
.pit-btn .icon-5 { transition: transform 0.3s var(--pit-ease); }
.pit-btn:hover .icon-5 { transform: translateX(4px); }
.pit-btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.85); }
.pit-btn-ghost:hover {
  color: var(--pit-lime);
  border-color: var(--pit-lime);
  background: rgba(131, 192, 67, 0.08);
  transform: translateY(-2px);
}
.pit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--pit-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.pit-pill i {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--pit-grad-cta);
  color: #000;
}
.pit-pill i svg { width: 0.875rem; height: 0.875rem; }
.pit-pill:hover { color: #000; background: #fff; }

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-nav.is-scrolled, .site-nav.is-open { background: #000; border-bottom-color: var(--gray-900); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.nav-logo img { height: 2.5rem; width: auto; }
.nav-links, .nav-cta { display: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: baseline; gap: 2rem; margin-left: 2.5rem; }
  .nav-cta { display: block; }
  .nav-toggle, .nav-mobile { display: none !important; }
}
.pit-nav a, .pit-nav button {
  font-family: var(--pit-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pit-nav-link { position: relative; display: inline-flex; align-items: center; gap: 0.25rem; color: #fff; transition: color 0.25s; }
.pit-nav-link:hover, .pit-nav-link[aria-current="page"] { color: var(--pit-lime); }
.pit-nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--pit-grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--pit-ease);
}
.pit-nav-link:hover::after, .pit-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-drop { position: relative; }
.nav-drop .chev { transition: transform 0.25s; }
.nav-drop.is-open .chev { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 16rem;
  padding: 0.5rem 0;
  background: #000;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.nav-menu[hidden] { display: none; }
.nav-menu a { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; color: #fff; transition: background 0.2s, color 0.2s; }
.nav-menu a:hover { background: rgba(131, 192, 67, 0.1); color: var(--pit-lime); }
.nav-menu .icon { color: var(--pit-lime); }
.nav-menu hr { border-top: 1px solid var(--gray-800); margin: 0.25rem 0; }
.nav-toggle { color: #fff; padding: 0.25rem; transition: color 0.2s; }
.nav-toggle:hover { color: var(--pit-lime); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .i-close, .site-nav.is-open .nav-toggle .i-open { display: none; }
.site-nav.is-open .nav-toggle .i-close { display: block; }
.nav-mobile {
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.5rem 0.75rem;
  background: #000;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.pit-btn) { display: block; padding: 0.5rem 0.75rem; color: #fff; transition: color 0.2s; }
.nav-mobile a:not(.pit-btn):hover, .nav-mobile a[aria-current="page"] { color: var(--pit-lime); }
.nav-mobile .sub { margin-left: 1rem; }
.nav-mobile .pit-btn { width: 100%; margin-top: 0.5rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: #000; border-top: 1px solid var(--gray-900); padding: 4rem 0; color: #fff; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { font-family: var(--pit-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-about { color: var(--gray-500); font-size: 0.875rem; font-weight: 300; line-height: 1.625; margin-bottom: 1.5rem; }
.footer-icons { display: flex; gap: 0.75rem; }
.footer-icons a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--pit-tile);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.footer-icons a:hover { background: var(--pit-lime); color: #000; }
.site-footer h2 { margin-bottom: 1rem; }
.footer-list { display: grid; gap: 0.75rem; color: var(--gray-400); font-size: 0.875rem; font-weight: 300; }
.footer-list a { transition: color 0.2s; }
.footer-list a:hover { color: var(--pit-lime); }
.footer-quick { margin-top: 1.5rem; }
.footer-quick h2 { margin-bottom: 0.75rem; }
.footer-quick .footer-list { gap: 0.5rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-900);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p:first-child { color: var(--gray-500); font-size: 0.875rem; }
.footer-bottom .pit-label { color: var(--gray-600); }

.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  padding: 1rem;
  border-radius: 999px;
  color: #fff;
  background: oklch(0.723 0.219 149.579);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  transition: background 0.3s, transform 0.3s;
}
.wa-float:hover { background: oklch(0.627 0.194 149.214); transform: scale(1.1); }
.wa-float svg { width: 1.5rem; height: 1.5rem; }

/* --- Page sections ------------------------------------------------------- */
main { padding-top: 4rem; }
.section { padding: 5rem 0; }
.section-line { border-top: 1px solid var(--gray-900); }
.hero { padding: 6rem 0 5rem; }
@media (min-width: 768px) { .hero { padding: 8rem 0 6rem; } }
.eyebrow { display: block; margin-bottom: 2rem; color: var(--pit-cyan); font-family: var(--pit-mono); font-size: 0.875rem; letter-spacing: 0.05em; }
.hero .pit-h1 { margin-bottom: 2rem; }
.hero-lead { max-width: 48rem; color: var(--gray-400); font-size: 1.25rem; font-weight: 300; line-height: 1.625; }
@media (min-width: 768px) { .hero-lead { font-size: 1.5rem; } }

/* category filter, only rendered for larger post counts */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.filters button {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--gray-400);
  background: var(--card);
  border: 1px solid var(--gray-800);
  transition: all 0.2s;
}
.filters button:hover { border-color: var(--pit-cyan); color: #fff; }
.filters button[aria-pressed="true"] { background: var(--pit-cyan); border-color: var(--pit-cyan); color: #000; }

/* --- Post cards ---------------------------------------------------------- */
.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-featured + .grid, .grid + .grid { margin-top: 2rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--gray-900);
  border-radius: var(--radius-2xl);
  transition: border-color 0.3s;
}
.card:hover, .card:focus-within { border-color: var(--pit-cyan); }
.card[hidden] { display: none; }
.card-media {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 194, 168, 0.2), rgba(131, 192, 67, 0.2));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); transition: background 0.3s; }
.card:hover .card-media::after { background: rgba(0, 0, 0, 0.2); }
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--pit-cyan);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.card-media .badge { position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.card-time {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-family: var(--pit-mono);
  font-size: 0.75rem;
}
.card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.5rem; }
.card-date { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--gray-500); font-family: var(--pit-mono); font-size: 0.875rem; }
.card-title { margin-bottom: 0.75rem; font-size: 1.5rem; line-height: 1.25; transition: color 0.2s; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.card-title a:focus-visible { outline: none; }
.card:hover .card-title { color: var(--pit-cyan); }
.card-excerpt {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--gray-400);
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; font-size: 0.875rem; }
.card-author { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-500); font-weight: 300; }
.card-more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--pit-cyan); font-weight: 500; }
.card-more .icon { transition: transform 0.2s; }
.card:hover .card-more .icon { transform: translateX(4px); }

/* newest post, wide */
@media (min-width: 768px) {
  .card-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
  .card-featured .card-media { aspect-ratio: auto; min-height: 20rem; }
  .card-featured .card-body { padding: 2.5rem; justify-content: center; }
  .card-featured .card-title { font-size: 2rem; }
  .card-featured .card-excerpt { flex-grow: 0; font-size: 1.125rem; -webkit-line-clamp: 4; }
  .card-featured .card-foot { margin-top: 0.5rem; }
}

/* text-only cards (posts without an image) */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.card-time-inline { color: var(--gray-500); font-family: var(--pit-mono); font-size: 0.75rem; }
.card-text .card-body { padding: 2rem; }
@media (min-width: 768px) {
  .card-featured.card-text { display: flex; }
  .card-featured.card-text .card-body { padding: 3rem; }
  .card-featured.card-text .card-title { max-width: 32ch; font-size: 2.25rem; }
  .card-featured.card-text .card-excerpt { max-width: 60ch; }
}

/* zero posts */
.empty {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  text-align: center;
  background: linear-gradient(160deg, var(--pit-panel-2), var(--pit-panel) 60%);
  border: 1px solid var(--pit-line);
  border-radius: var(--radius-2xl);
}
.empty .pit-label { display: block; margin-bottom: 1.25rem; }
.empty h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; }
.empty p { margin: 0 auto 2.5rem; max-width: 32rem; color: var(--gray-400); font-size: 1.125rem; font-weight: 300; line-height: 1.625; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* --- CTA band ------------------------------------------------------------ */
.cta { padding: 8rem 0; text-align: center; border-top: 1px solid var(--gray-900); }
.cta .pit-h2 { margin-bottom: 2rem; }
.cta p { margin-bottom: 3rem; color: var(--gray-400); font-size: 1.25rem; font-weight: 300; }

/* --- Post page ----------------------------------------------------------- */
.post-head { padding: 4rem 0 0; }
@media (min-width: 768px) { .post-head { padding-top: 5rem; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; color: var(--gray-500); font-size: 0.875rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--gray-700); }
.crumbs a { color: var(--pit-cyan); transition: color 0.2s; }
.crumbs a:hover { color: #fff; }
.post-head .badge { margin-bottom: 1.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.post-title { margin-bottom: 2rem; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.01em; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-900);
  color: var(--gray-400);
}
.post-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.post-meta time, .post-meta .mono { font-family: var(--pit-mono); font-size: 0.9375rem; }
.post-meta .author { font-weight: 300; }
.post-hero { max-width: 64rem; margin: 3rem auto 0; }
.post-hero .frame { position: relative; overflow: hidden; border-radius: var(--radius-2xl); aspect-ratio: 1200 / 630; max-height: 32rem; width: 100%; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 40%); }
.post-body { padding: 4rem 0; }

/* article typography (the React page's per-element classes, as prose) */
.prose { color: var(--gray-300); font-size: 1.125rem; font-weight: 300; line-height: 1.75; }
.prose > * + * { margin-top: 1.5rem; }
.prose h2, .prose h3, .prose h4 { color: #fff; letter-spacing: -0.01em; scroll-margin-top: 5.5rem; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.prose h3 { margin-top: 2.25rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--pit-cyan); }
.prose h4 { margin-top: 2rem; font-size: 1.25rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 1rem; }
.prose strong { color: #fff; font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--pit-cyan); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.75rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--pit-cyan); }
.prose li > ul, .prose li > ol { margin-top: 0.5rem; }
.prose blockquote { padding-left: 1.25rem; border-left: 1px solid var(--gray-700); color: var(--gray-300); font-style: italic; }
.prose code { padding: 0.15em 0.35em; border-radius: 4px; background: var(--pit-tile); font-family: var(--pit-mono); font-size: 0.875em; }
.prose pre { padding: 1.25rem; overflow-x: auto; border-radius: var(--radius); background: var(--pit-panel); border: 1px solid var(--pit-line); line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose hr { border-top: 1px solid var(--gray-900); margin: 3rem 0; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.6rem 0.9rem; border: 1px solid var(--gray-800); text-align: left; vertical-align: top; }
.prose th { color: #fff; font-family: var(--pit-display); font-weight: 600; background: var(--pit-panel-2); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-900); }
.tags li { padding: 0.3rem 0.8rem; border: 1px solid var(--gray-800); border-radius: 999px; color: var(--gray-400); font-size: 0.8125rem; }

.related h2 { margin-bottom: 2rem; font-size: 1.5rem; text-transform: uppercase; }
.related .card-title { font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
