/* Shared styles for jansuski.com/blog — matches the main site theme */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0b0d11;
}

.js-page {
  min-height: 100vh;
  color: #edf2f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(119, 255, 168, 0.09), transparent 34%),
    radial-gradient(circle at top right, rgba(129, 184, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #0b0d11 0%, #090c10 100%);
}

.js-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.js-shell-wide {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.js-header {
  padding: 22px 0 34px;
}

.js-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 14px;
  z-index: 200;
  margin: 0 0 4px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.js-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f7fafc;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.js-brand:hover,
.js-brand:focus-visible {
  transform: translateY(-1px);
}

.js-brand-mark {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.js-brand:hover .js-brand-mark,
.js-brand:focus-visible .js-brand-mark {
  border-color: rgba(143, 227, 159, 0.4);
  background: rgba(143, 227, 159, 0.08);
}

.js-brand-mark .br-l,
.js-brand-mark .ch-s {
  color: #8fe39f;
}

.js-brand-mark .ch-j,
.js-brand-mark .br-r {
  color: #f2c14e;
}

.js-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.js-nav-link {
  position: relative;
  color: #a9b3bf;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.js-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8fe39f, #f2c14e);
  transition: width 0.25s ease;
}

.js-nav-link.is-active {
  color: #f7fafc;
}

.js-nav-link.is-active::after,
.js-nav-link:hover::after,
.js-nav-link:focus-visible::after {
  width: 100%;
}

.js-nav-link:hover,
.js-nav-link:focus-visible {
  color: #f7fafc;
}

.js-nav-tool {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(143, 227, 159, 0.35);
  background: rgba(143, 227, 159, 0.08);
  color: #8fe39f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  font-weight: 700;
}

.js-nav-tool::after {
  content: none;
}

.js-nav-tool:hover,
.js-nav-tool:focus-visible,
.js-nav-tool.is-active {
  color: #b8ff85;
  background: rgba(143, 227, 159, 0.16);
  border-color: rgba(143, 227, 159, 0.55);
}

.js-main {
  padding-bottom: 60px;
}

.js-blog-hero {
  padding: 20px 0 44px;
}

.js-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #8fe39f;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.js-blog-title {
  margin: 0 0 14px;
  color: #f8fbff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.js-blog-intro {
  margin: 0;
  color: #bcc6d0;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 62ch;
}

.js-post-list {
  display: grid;
  gap: 16px;
  padding: 0 0 40px;
}

.js-post-card {
  display: block;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.js-post-card:hover,
.js-post-card:focus-visible {
  border-color: rgba(143, 227, 159, 0.35);
  transform: translateY(-1px);
}

.js-post-meta {
  display: block;
  margin-bottom: 8px;
  color: #8f9aa6;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.js-post-title {
  margin: 0 0 10px;
  color: #f8fbff;
  font-size: 1.35rem;
  line-height: 1.3;
}

.js-post-excerpt {
  margin: 0;
  color: #aeb8c2;
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Article page */

.js-article-head {
  padding: 8px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 34px;
}

.js-article-meta {
  color: #8f9aa6;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.js-article-title {
  margin: 14px 0 16px;
  color: #f8fbff;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.js-article-dek {
  margin: 0;
  color: #c6d0da;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 65ch;
}

.js-article-body {
  color: #d3dbe3;
  font-size: 1.05rem;
  line-height: 1.85;
  padding-bottom: 40px;
}

.js-article-body h2 {
  margin: 40px 0 14px;
  color: #f4f7fb;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.js-article-body h3 {
  margin: 30px 0 12px;
  color: #f0f4f8;
  font-size: 1.18rem;
  line-height: 1.35;
}

.js-article-body p {
  margin: 0 0 18px;
}

.js-article-body ul,
.js-article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.js-article-body li {
  margin-bottom: 8px;
}

.js-article-body strong {
  color: #f2f6fa;
}

.js-article-body a {
  color: #b8ff85;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.js-article-body a.js-button {
  color: #08100b;
  text-decoration: none;
}

.js-article-body figure {
  margin: 36px 0 24px;
  padding: 0;
}

.js-article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: saturate(0.85) brightness(0.92) contrast(1.02);
}

.js-article-body figcaption {
  margin: 10px 2px 0;
  color: #8f9aa6;
  font-size: 0.85rem;
  line-height: 1.6;
  font-style: italic;
}

.js-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
}

.js-article-body th,
.js-article-body td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.js-article-body th {
  color: #8f9aa6;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.js-article-body td {
  color: #e8edf3;
}

.js-pull-quote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid #8fe39f;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 14px 14px 0;
  color: #eef4fa;
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
}

.js-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #a9b3bf;
  font-size: 0.95rem;
  text-decoration: none;
}

.js-back-link:hover,
.js-back-link:focus-visible {
  color: #f7fafc;
}

.js-cta-card {
  margin-top: 10px;
  padding: 24px;
  border: 1px solid rgba(143, 227, 159, 0.25);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(143, 227, 159, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.js-cta-title {
  margin: 0 0 8px;
  color: #f8fbff;
  font-size: 1.15rem;
}

.js-cta-copy {
  margin: 0 0 16px;
  color: #c0cad4;
  font-size: 0.98rem;
  line-height: 1.7;
}

.js-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #08100b;
  background: linear-gradient(135deg, #b8ff85 0%, #7de8a1 100%);
  box-shadow: 0 16px 40px rgba(125, 232, 161, 0.18);
  transition: transform 0.2s ease;
}

.js-button:hover,
.js-button:focus-visible {
  transform: translateY(-1px);
}

.js-footer {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.js-footer-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.js-footer-copy {
  order: 2;
  margin: 0;
  color: #83909d;
  font-size: 0.9rem;
}

.js-footer-copy a {
  color: #83909d;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(131, 144, 157, 0.5);
}

.js-footer-copy a:hover,
.js-footer-copy a:focus-visible {
  color: #b8ff85;
  text-decoration-color: #b8ff85;
}

.js-footer-cols {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin: 0;
  width: 100%;
}

.js-footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 160px;
}

.js-footer-col-title {
  margin-top: 10px;
  color: #9aa5b1;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.js-footer-col-title:first-child {
  margin-top: 0;
}

.js-footer-col a {
  color: #8fe39f;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.js-footer-col a:hover,
.js-footer-col a:focus-visible {
  color: #b8ff85;
  text-decoration: underline;
}

.js-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.js-compare-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.js-compare-card.good {
  border-color: rgba(143, 227, 159, 0.3);
  background: linear-gradient(180deg, rgba(143, 227, 159, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.js-compare-card.bad {
  border-color: rgba(255, 107, 107, 0.25);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.js-compare-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #f4f7fb;
  font-weight: 700;
}

.js-compare-list {
  margin: 0;
  padding-left: 18px;
  color: #aeb8c2;
  font-size: 0.92rem;
  line-height: 1.75;
}

.js-compare-list li {
  margin-bottom: 4px;
}

.js-compare-verdict {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.js-compare-verdict.good { color: #8fe39f; }
.js-compare-verdict.bad { color: #ff9b9b; }

@media (max-width: 720px) {
  .js-shell,
  .js-shell-wide {
    width: min(1120px, calc(100% - 28px));
  }

  .js-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .js-nav-links {
    justify-content: flex-start;
  }

  .js-compare-grid {
    grid-template-columns: 1fr;
  }

  .js-footer-cols {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
