/* =========================================================
   Web Atelier — blog.css
   Styles specific to /blog/ (index + article pages).
   Depends on main.css being loaded first.
   ========================================================= */

/* On article pages we keep the same dark nav but want a
   paper body for the article reading surface. */
body.blog-article {
  background: var(--paper);
  color: var(--iron);
  font-size: 14px;
}

/* ── Blog index page hero ── */
.page-hero {
  background: var(--void);
  padding: 140px var(--gutter-desktop) 80px;
  border-bottom: 0.5px solid var(--carbon);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero .eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero .eyebrow::after {
  content: "";
  flex: 1;
  max-width: 40px;
  height: 0.5px;
  background: var(--chrome);
  opacity: 0.4;
}
.page-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--white);
}
.page-hero h1 .lt { font-weight: 200; }
.page-hero h1 .md { font-weight: 500; }
.page-hero p {
  font-size: 14px;
  font-weight: 300;
  color: var(--body-dark);
  max-width: 520px;
  line-height: 1.85;
}

/* ── Blog index post list ── */
.blog-main {
  background: var(--fog);
  border-top: 0.5px solid var(--mist);
}
.blog-main-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter-desktop) 100px;
}
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 0.5px solid var(--mist);
}
.post-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 0.5px solid var(--mist);
  text-decoration: none;
  transition: background 0.15s;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: rgba(0, 0, 0, 0.03); }
.post-row:hover .post-arrow {
  transform: translateX(4px);
  color: var(--iron);
}
.post-num {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  padding-top: 3px;
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.post-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chrome);
  border: 0.5px solid var(--mist);
  padding: 3px 8px;
  background: #fff;
}
.post-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--void);
  line-height: 1.35;
  margin-bottom: 8px;
}
.post-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: var(--iron);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 14px;
}
.post-meta {
  font-size: 10px;
  color: var(--chrome);
  letter-spacing: 0.05em;
}
.post-arrow {
  font-size: 18px;
  color: var(--chrome);
  transition: transform 0.2s, color 0.2s;
  padding-top: 3px;
  flex-shrink: 0;
}

/* ── Series callout ── */
.series-section {
  background: var(--carbon);
  border-top: 0.5px solid var(--iron);
  padding: 64px var(--gutter-desktop);
}
.series-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.series-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 16px;
}
.series-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}
.series-title em {
  font-style: normal;
  font-weight: 500;
}
.series-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--body-dark);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 28px;
}
.series-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.series-link::after { content: "→"; }
.series-link:hover { color: var(--white); }

/* =========================================================
   ARTICLE (single blog post)
   ========================================================= */
.article-hero {
  background: var(--void);
  padding: 140px var(--gutter-desktop) 64px;
  border-bottom: 0.5px solid var(--carbon);
}
.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-hero .eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 24px;
}
.article-hero h1 .lt { font-weight: 200; }
.article-hero h1 .md { font-weight: 500; }
.article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.article-meta span {
  font-size: 11px;
  color: var(--chrome);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--gutter-desktop) 100px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--iron);
}
.article-body .intro {
  background: #fff;
  border: 0.5px solid var(--mist);
  border-left: 2px solid var(--chrome);
  padding: 28px 32px;
  margin-bottom: 56px;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.75;
}
.article-body .intro strong {
  color: var(--carbon);
  font-weight: 500;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 300;
  color: var(--carbon);
  line-height: 1.3;
  margin: 56px 0 16px;
  padding-top: 56px;
  border-top: 0.5px solid var(--mist);
}
.article-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.article-body h2 em {
  font-style: normal;
  font-weight: 500;
}
.article-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--carbon);
  margin: 32px 0 12px;
}
.article-body p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}
.article-body a {
  color: var(--carbon);
  text-decoration: underline;
  text-decoration-color: var(--chrome);
  text-underline-offset: 3px;
}
.article-body a:hover {
  text-decoration-color: var(--iron);
}
.article-body ul,
.article-body ol {
  margin: 0 0 20px 22px;
}
.article-body li {
  margin-bottom: 8px;
}

/* Article tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 13px;
}
.article-body thead tr { background: var(--carbon); }
.article-body thead th {
  color: var(--chrome);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.article-body tbody tr { border-bottom: 0.5px solid var(--mist); }
.article-body tbody td {
  padding: 13px 16px;
  background: #fff;
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) td { background: var(--fog); }
.article-body .price {
  font-weight: 500;
  color: var(--carbon);
}
.article-body .tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--carbon);
  color: var(--chrome);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Article info grid */
.grid6 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--mist);
  margin: 28px 0;
  border: 0.5px solid var(--mist);
}
.gitem { background: #fff; padding: 20px 24px; }
.glabel {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 6px;
}
.gtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--carbon);
  margin-bottom: 6px;
}
.gbody {
  font-size: 12px;
  color: var(--muted-dark);
  line-height: 1.6;
}

/* Pricing block (dark callout) */
.pricing-block {
  background: var(--carbon);
  padding: 40px;
  margin: 32px 0;
  border-radius: 2px;
}
.pricing-block .plabel {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 20px;
}
.tier {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 0.5px solid #333;
}
.tier:last-child { border-bottom: none; }
.tname {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}
.tdesc {
  font-size: 12px;
  color: var(--chrome);
  line-height: 1.5;
  max-width: 400px;
}
.tprice {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  text-align: right;
}
.tdur {
  font-size: 11px;
  color: var(--muted-dark);
  margin-top: 2px;
}

/* Article callouts: flags, tips, note */
.flags,
.tips {
  list-style: none;
  margin: 20px 0;
}
.flags li,
.tips li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--mist);
  font-size: 13px;
  line-height: 1.65;
}
.flags li:last-child,
.tips li:last-child {
  border-bottom: none;
}
.fx {
  width: 18px;
  height: 18px;
  background: #2a1a1a;
  border: 0.5px solid #5a2a2a;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #cc4444;
  margin-top: 2px;
}
.flags strong,
.tips strong {
  font-weight: 500;
  color: var(--carbon);
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.tips .tnum {
  font-size: 11px;
  font-weight: 500;
  color: var(--chrome);
  min-width: 28px;
  margin-top: 1px;
}
.tips span { font-size: 13px; line-height: 1.65; }
.note {
  background: var(--fog);
  border-left: 2px solid var(--chrome);
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.65;
}
.note strong { color: var(--carbon); font-weight: 500; }

/* Article CTA block */
.article-cta {
  background: var(--void);
  padding: 56px var(--gutter-mobile);
  text-align: center;
  margin-top: 80px;
  border-top: 0.5px solid #222;
}
.article-cta .cl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 16px;
}
.article-cta h2 {
  font-size: 26px;
  font-weight: 200;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  border: none;
  padding: 0;
}
.article-cta h2 b { font-weight: 500; }
.article-cta p {
  font-size: 13px;
  color: var(--chrome);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive overrides ── */
@media (max-width: 960px) {
  .page-hero { padding: 120px var(--gutter-mobile) 64px; }
  .blog-main-inner { padding: 64px var(--gutter-mobile) 80px; }
  .post-row { grid-template-columns: 1fr; gap: 12px; }
  .post-num { display: none; }
  .series-section { padding: 48px var(--gutter-mobile); }
  .article-hero { padding: 120px var(--gutter-mobile) 56px; }
  .article-body { padding: 48px var(--gutter-mobile) 80px; }
  .grid6 { grid-template-columns: 1fr; }
  .pricing-block { padding: 24px 20px; }
  .tier { flex-direction: column; gap: 8px; }
  .article-cta { padding: 48px 20px; }
}
