/* ============================================================
   Busted Eye — POV Blog
   Full design system in plain CSS
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ---- Base ---- */
body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---- Utility classes ---- */
.hairline   { border-top:    1px solid #e0e0e0; }
.hairline-b { border-bottom: 1px solid #e0e0e0; }
.hairline-all { border: 1px solid #e0e0e0; }

.label-caps {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-sm {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ---- Layout container ---- */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 760px) {
  .container { padding: 0; }
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
}
.nav-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 760px) {
  .nav-inner { padding: 18px 0; }
}
.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-right .sep {
  color: #e0e0e0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  user-select: none;
}
.nav-link { transition: opacity 0.15s ease; }
.nav-link:hover { opacity: 0.7; }
.nav-link.muted  { color: #474747; }
.nav-link.accent { color: #3d7a4f; }

/* ---- Main ---- */
main { padding-top: 96px; }

/* ---- Page header (index) ---- */
.page-header {
  margin-top: 128px;
  margin-bottom: 64px;
}
.page-eyebrow {
  color: #3d7a4f;
  margin-bottom: 16px;
}
h1.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: #1a1a1a;
}
.page-lede {
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 560px;
  color: #474747;
  font-size: 17px;
  line-height: 1.6;
}

/* ---- Post list (index) ---- */
.post-list { list-style: none; padding: 0; margin: 0; }

.post {
  border-bottom: 1px solid #e0e0e0;
  padding: 40px 0;
}
.post-date {
  color: #474747;
  margin: 0;
}
h2.post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 12px 0 8px 0;
}
.post-title a {
  color: #1a1a1a;
  transition: opacity 0.15s ease;
}
.post-title a:hover { opacity: 0.6; }

.post-excerpt {
  margin: 0 0 16px 0;
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
}

.read-more {
  color: #3d7a4f;
  transition: opacity 0.15s ease;
  display: inline-block;
}
.read-more:hover { opacity: 0.7; }

/* ---- Individual post ---- */
.post-header {
  margin-top: 128px;
  margin-bottom: 48px;
}
.post-eyebrow {
  color: #3d7a4f;
  margin-bottom: 16px;
}
h1.post-title-lg {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}
.post-lede {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #474747;
  margin: 0;
}

/* ---- Post body content ---- */
.post-body { padding: 56px 0; }

.post-body h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 56px 0 24px 0;
  color: #1a1a1a;
}
.post-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 8px 0;
  color: #1a1a1a;
}
.post-body p {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 20px 0;
}
.post-body strong {
  color: #1a1a1a;
  font-weight: 600;
}
.post-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0;
}
.post-body ul,
.post-body ol {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  padding-left: 24px;
  margin: 0 0 20px 0;
}
.post-body li { margin-bottom: 8px; }

.post-body blockquote {
  border-left: 2px solid #3d7a4f;
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: #474747;
}

/* Callout boxes (replicates hairline-all + fafafa pattern) */
.post-body .callout {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 24px;
  margin: 0 0 24px 0;
}
.post-body .callout h3 {
  margin-top: 0;
}

/* ---- Post body tables ---- */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  color: #474747;
  margin: 0 0 32px 0;
}
.post-body thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #1a1a1a;
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid #1a1a1a;
}
.post-body tbody td {
  padding: 16px 16px 16px 0;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}
.post-body tbody tr:last-child td {
  border-bottom: none;
}
.post-body tbody td:first-child {
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ---- Back link ---- */
.back-link {
  display: inline-block;
  color: #474747;
  margin: 40px 0;
  transition: opacity 0.15s ease;
}
.back-link:hover { opacity: 0.7; }

/* ---- CTA section ---- */
.cta {
  padding: 56px 0;
  margin-bottom: 80px;
}
.cta h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}
.cta-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 40px 0;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cta-field { display: block; }
.cta-field label {
  color: #3d7a4f;
  display: block;
  margin-bottom: 8px;
}
.cta-field input,
.cta-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  font-size: 17px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease;
}
.cta-field textarea {
  resize: none;
  display: block;
}
.cta-field input::placeholder,
.cta-field textarea::placeholder {
  color: #9a9a9a;
}
.cta-field input:focus,
.cta-field textarea:focus {
  border-bottom-color: #3d7a4f;
}
.cta-submit {
  width: 100%;
  background-color: #3d7a4f;
  color: #ffffff;
  border: 0;
  padding: 18px 24px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}
.cta-submit:hover { opacity: 0.8; }
.cta-hp { display: none; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 80px;
  padding: 56px 0 64px 0;
  text-align: center;
}
.footer-brand {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 16px;
  transition: opacity 0.15s ease;
}
.footer-brand:hover { opacity: 0.7; }
.footer-copy {
  color: #474747;
  text-transform: uppercase;
  margin: 0;
}
