/* Blog, article and document pages (generated by tools/build_site.py) */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
}

.mt-10 { margin-top: 2.5rem; }

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(244, 241, 236, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav-link:hover { color: var(--accent); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(244, 241, 236, 0.4);
}

.breadcrumbs a {
  color: rgba(244, 241, 236, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: rgba(244, 241, 236, 0.2); }

.breadcrumbs [aria-current] {
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Listing hero */
.blog-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.blog-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.blog-intro {
  margin-top: 2rem;
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(244, 241, 236, 0.15);
  border-radius: 999px;
  transition: all 0.3s var(--ease-custom);
}

.filter-pill:hover { border-color: var(--accent); color: var(--accent); }

.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

/* Post list */
.blog-list-section { padding-bottom: 6rem; }

.blog-count {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(244, 241, 236, 0.4);
  padding-bottom: 1.25rem;
}

.post-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.post-list li { border-bottom: 1px solid var(--border); }

.post-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 2rem 0;
  color: var(--ink);
  text-decoration: none;
  transition: padding 0.4s var(--ease-custom);
}

.post-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 241, 236, 0.45);
}

.post-row-meta span { color: var(--accent); opacity: 0.8; }

.post-row-body { display: flex; flex-direction: column; gap: 0.6rem; }

.post-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.post-row-excerpt {
  max-width: 52rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.55);
}

.post-row-arrow {
  display: none;
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(244, 241, 236, 0.3);
  transition: color 0.3s ease, transform 0.4s var(--ease-custom);
}

.post-row:hover .post-row-title { color: var(--accent); }
.post-row:hover .post-row-arrow { color: var(--accent); transform: translate(4px, -4px); }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.page-nums { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.page-num,
.page-step {
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(244, 241, 236, 0.12);
  border-radius: 999px;
  transition: all 0.25s var(--ease-custom);
}

.page-num:hover,
.page-step:hover { border-color: var(--accent); color: var(--accent); }

.page-num.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

.page-step.is-disabled { opacity: 0.25; }
.page-gap { color: rgba(244, 241, 236, 0.35); padding: 0 0.25rem; }

/* Article */
.article {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.article-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.article-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 241, 236, 0.5);
}

.prose {
  margin-top: 2.5rem;
  font-size: 1.12rem;
  line-height: 1.8;
  color: rgba(244, 241, 236, 0.82);
  overflow-wrap: break-word;
}

.prose > * + * { margin-top: 1.4rem; }

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-top: 3.5rem; }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; margin-top: 2.5rem; }
.prose h4 { font-size: 1.15rem; font-weight: 600; margin-top: 2rem; }

.prose strong,
.prose b { color: var(--ink); font-weight: 600; }

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

.prose ul,
.prose ol { padding-left: 1.4rem; }

.prose li + li { margin-top: 0.6rem; }
.prose li::marker { color: var(--accent); }
.prose li > p { margin-top: 0.4rem; }

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  color: rgba(244, 241, 236, 0.7);
  font-style: italic;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.prose tr:last-child td { border-bottom: 0; }

.prose-legal ol { padding-left: 1.4rem; }
.prose-legal ol > li { margin-top: 1.6rem; }

/* CTA + prev/next */
.article-cta {
  margin-top: 4.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(229, 255, 60, 0.25);
  border-radius: 12px;
  background: radial-gradient(ellipse at top left, rgba(229, 255, 60, 0.08), transparent 60%);
}

.article-cta-text {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.article-cta-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.post-nav-card.is-empty { display: none; }
.post-nav-card.is-next { text-align: right; }
.post-nav-card:hover { border-color: rgba(229, 255, 60, 0.5); }

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Related */
.related {
  padding-top: 5rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--border);
}

.related .post-list { margin-top: 2rem; }

.related-all {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-decoration: none;
}

.related-all:hover { color: var(--accent); }

/* Guides: short answer box */
.answer-box {
  margin-top: 2.5rem;
  padding: 1.75rem 1.75rem 1.9rem;
  border-left: 2px solid var(--accent);
  background: rgba(229, 255, 60, 0.04);
  border-radius: 0 10px 10px 0;
}

.answer-box p {
  margin-top: 0.85rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}

/* CTA with service + price */
.cta-price {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(244, 241, 236, 0.6);
}

.cta-price strong { color: var(--accent); font-weight: 500; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--background);
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease-custom), box-shadow 0.3s ease;
}

.cta-button:hover { box-shadow: 0 10px 40px rgba(229, 255, 60, 0.25); }

.cta-secondary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-secondary:hover { color: var(--accent); }

/* Service pages */
.service-lead {
  margin-top: 2rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.8);
}

.service-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-top: 2.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(244, 241, 236, 0.5);
}

.service-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.service .blog-filters { margin-top: 4rem; }

.offer-note {
  margin-top: 2rem;
  max-width: 48rem;
  line-height: 1.7;
}

.offer-note a { color: var(--accent); }

/* Homepage service cards + footer service links */
.card-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-decoration: none;
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-services a {
  color: rgba(244, 241, 236, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-services a:hover { color: var(--accent); }

.featured-guides { padding-bottom: 3rem; }
.featured-guides .post-list { margin-top: 2.5rem; }

/* Homepage "latest from the blog" */
.home-blog .post-list { margin-top: 3rem; }

.not-found { min-height: 60vh; padding-top: 8rem; }

@media (min-width: 768px) {
  .site-header { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .blog-hero { padding-top: 6rem; padding-bottom: 4rem; }
  .article { padding-top: 6rem; }

  .post-row {
    grid-template-columns: 12rem 1fr 3rem;
    align-items: start;
    gap: 2.5rem;
    padding: 2.5rem 0;
  }

  .post-row-meta { flex-direction: column; padding-top: 0.6rem; }
  .post-row-arrow { display: block; text-align: right; }
  .post-row:hover { padding-left: 1rem; }

  .post-nav { grid-template-columns: 1fr 1fr; }
  .post-nav-card.is-empty { display: block; border: 0; }
  .article-cta { padding: 3rem; }
}

.prose li.check { list-style: none; position: relative; }
.prose li.check::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 0.45em;
  width: 0.9em;
  height: 0.9em;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
}

/* Narrow phones: three nav items next to the logo */
@media (max-width: 560px) {
  .site-nav { gap: 0.9rem; }
  .site-nav-link { font-size: 0.68rem; letter-spacing: 0.12em; }
  .site-nav .contact-nav-link { font-size: 0.68rem; letter-spacing: 0.12em; padding: 0.45rem 0.75rem; }
  .logo-link { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .site-nav-link:first-child { display: none; }
}
