/* ============================================================
   FrostFlip — The Journal
   Editorial (MODS-reference) layer on top of css/style.css.
   Covers TWO page types:
     1. blog.html            — the listing/index page
     2. blog-<slug>.html     — the article pages
   Page-scoped only — never touches style.css. Monochrome +
   single blue accent, flat surfaces, hairline separators, mono
   "(01)" annotations, tight-tracked Inter Tight headings.
   ============================================================ */

/* ============================================================
   LISTING PAGE — blog.html
   ============================================================ */

/* ---------- hero ---------- */
.blog-hero { padding: 168px 0 40px; position: relative; }
.blog-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.blog-h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 620;
  letter-spacing: -0.05em; line-height: 0.98;
  margin: 20px 0 0;
}
.blog-h1 .grad-text { color: var(--accent); }
.blog-stance {
  font-size: 1.08rem; color: var(--text-2); max-width: 520px;
  margin-top: 18px;
}
.blog-stance em { font-style: normal; color: var(--text); }
.blog-hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.blog-hero-visual .switch-compare { aspect-ratio: 16/9; }

/* ---------- quick-nav strip ---------- */
.journal-index-sec { padding: 4px 0 8px; }
.journal-index {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.journal-index a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 18px 16px 0; margin-right: 26px;
  color: var(--text-2); font-weight: 500; font-size: 0.94rem;
  transition: color 0.25s;
}
.journal-index a:hover { color: var(--accent); }
.journal-index .ji-num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3);
}
.journal-index .ji-num::before { content: "("; }
.journal-index .ji-num::after { content: ")"; }
.journal-index .ji-label { white-space: nowrap; }

/* ---------- featured card (the manifesto) ---------- */
.featured-sec { padding-top: 44px; }
.featured-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch;
  border-radius: 20px; overflow: hidden;
  background: transparent; border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.featured-card:hover { border-color: var(--text-3); transform: translateY(-4px); }
.featured-media { position: relative; min-height: 320px; overflow: hidden; background: var(--bg-2); }
.featured-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-out);
}
.featured-card:hover .featured-media img { transform: scale(1.05); }
.featured-num {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.55); color: #fff;
}
.featured-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.article-tag {
  display: inline-flex; font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-3); margin-bottom: 16px; align-self: flex-start;
}
.article-tag::before { content: "("; }
.article-tag::after { content: ")"; }
.featured-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 16px;
  transition: color 0.25s;
}
.featured-card:hover .featured-title { color: var(--accent); }
.featured-dek { color: var(--text-2); font-size: 1.02rem; margin-bottom: 22px; flex: 1; }
.featured-meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--text-3);
}
.featured-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* ---------- read-more link (shared by cards) ---------- */
.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 0.92rem; color: var(--text);
}
.read-more .arr { transition: transform 0.3s var(--ease-out); }
a:hover > .read-more .arr,
.post-card:hover .read-more .arr,
.featured-card:hover .read-more .arr,
.an-link:hover .read-more .arr { transform: translateX(6px); }

/* ---------- post grid ---------- */
.post-grid-sec { padding-top: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); }
.post-thumb {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.55); color: #fff;
}
.post-tag {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.55); color: #fff;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0;
}
.post-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-title {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12;
  color: var(--text); transition: color 0.25s;
}
.post-card:hover .post-title { color: var(--accent); }
.post-dek { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.post-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border);
}
.post-readtime { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }

/* ============================================================
   ARTICLE PAGES — blog-<slug>.html
   ============================================================ */
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2);
  margin-bottom: 24px; transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }

.article-hero { padding: 168px 0 8px; }
.article-h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 620;
  letter-spacing: -0.05em; line-height: 0.98;
  margin: 14px 0 22px; max-width: 18ch;
}
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--text-2); font-family: var(--font-mono); font-size: 0.86rem;
  margin-bottom: 8px;
}
.article-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

.article-lead { padding: 28px 0 10px; }
.article-lead .switch-compare,
.article-lead-img { aspect-ratio: 21/9; border-radius: 20px; }
.article-lead-img {
  width: 100%; object-fit: cover; display: block;
  border: 1px solid var(--border);
}

/* ---------- long-form prose column ---------- */
.article-body { max-width: 700px; margin: 52px auto 0; }
.article-body p { font-size: 1.05rem; color: var(--text-2); margin-bottom: 20px; line-height: 1.75; }
.article-body p.lede { font-size: 1.18rem; font-weight: 500; color: var(--text); }
.article-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.12;
  margin: 44px 0 16px;
}
.article-body h3 {
  font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); margin: 32px 0 12px;
}
.article-body ul, .article-body ol { margin: 0 0 20px 22px; color: var(--text-2); }
.article-body li { margin-bottom: 9px; font-size: 1.01rem; line-height: 1.6; }
.article-body strong { color: var(--text); font-weight: 600; }

/* ---------- pull-quote: big Inter Tight statement with hairline ---------- */
.pull-quote {
  max-width: 700px; margin: 48px auto; padding-top: 26px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.24; letter-spacing: -0.02em;
  color: var(--text);
}
.pull-quote cite {
  display: block; margin-top: 16px; font-family: var(--font-mono); font-style: normal;
  font-size: 0.8rem; color: var(--text-3);
}

/* ---------- spec / pricing box: flat bordered table, mono labels ---------- */
.spec-box {
  max-width: 700px; margin: 36px auto; padding: 28px clamp(20px, 4vw, 36px);
  border-radius: var(--radius); background: transparent; border: 1px solid var(--border);
}
.spec-box h4 {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.8rem;
  color: var(--text-3); margin-bottom: 16px;
}
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--border);
}
.spec-row:first-of-type { border-top: none; }
.spec-row .sr-label { font-family: var(--font-mono); color: var(--text-2); font-size: 0.9rem; }
.spec-row .sr-value {
  font-family: var(--font-mono); font-weight: 600; color: var(--text);
  font-size: 0.95rem; text-align: right; white-space: nowrap;
}
.spec-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-3); line-height: 1.6; }

/* ---------- mid-article imagery ---------- */
.article-mid { max-width: 900px; margin: 48px auto; }
.article-mid img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-mid.ar-16-9 img { aspect-ratio: 16/9; object-fit: cover; }
.article-mid.ar-4-3 img { aspect-ratio: 4/3; object-fit: cover; }
.article-mid.ar-4-5 img { aspect-ratio: 4/5; object-fit: cover; max-width: 460px; margin: 0 auto; }
.article-mid figcaption {
  margin-top: 12px; text-align: center; font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--text-3);
}
.article-mid-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 900px; margin: 48px auto;
}
.article-mid-pair figure { margin: 0; }
.article-mid-pair img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.article-mid-pair figcaption {
  margin-top: 12px; text-align: center; font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--text-3);
}

/* ---------- prev / next ---------- */
.article-nav { max-width: 900px; margin: 60px auto 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-link {
  display: block; padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: transparent;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.an-link:hover { transform: translateY(-4px); border-color: var(--text-3); }
.an-link.an-next { text-align: right; }
.an-eyebrow {
  display: block; font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--text-3); margin-bottom: 8px;
}
.an-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 14px;
}
.an-link.single { grid-column: 1 / -1; text-align: center; }
.an-link.single .an-title { margin-bottom: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .blog-hero-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: 140px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { aspect-ratio: 16/9; min-height: 0; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero { padding-top: 140px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-mid-pair { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .blog-h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .journal-index a { margin-right: 16px; padding: 12px 0; font-size: 0.86rem; }
  .post-grid { grid-template-columns: 1fr; }
  .featured-body { padding: 26px 20px; }
  .article-h1 { font-size: clamp(2rem, 9vw, 2.8rem); max-width: none; }
  .article-lead .switch-compare, .article-lead-img,
  .blog-hero-visual .switch-compare { aspect-ratio: 4/3; border-radius: 14px; }
  .pull-quote { padding-top: 20px; }
  .spec-box { padding: 22px 18px; }
  .article-body { max-width: 100%; }
}
