/* ============================================================
   Bet Journal — blog (The Betting School)
   index + category + article styles. Loads after styles.css + sections.css
   ============================================================ */

/* Match the homepage's clean paper background. The homepage hides the grain
   overlay behind opaque section panels; the blog's sections are transparent,
   so the grain tints the page greige. Soften it here so the blog reads as the
   same #fffcf2 cream as the home hero. */
body::before { opacity: .08 !important; }

/* ---- blog page header ---- */
.blog-top { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 78px) clamp(28px, 4vw, 44px); }
.blog-top .kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 10px; }
.blog-top .kicker::before { content:""; width: 26px; height: 2px; background: var(--accent); }
.blog-top h1 { font-size: clamp(40px, 6.5vw, 78px); letter-spacing: -.035em; margin-top: 18px; max-width: 16ch; }
.blog-top h1 .hand { color: var(--accent-deep); font-family: var(--hand); font-weight: 400; font-size: inherit; transform: none; line-height: inherit; display: inline; }
.blog-top p { color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 20px); margin-top: 18px; max-width: 56ch; }
.blog-top .crumb { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; }
.blog-top .crumb a { color: var(--ink-soft); }
.blog-top .crumb a:hover { color: var(--accent-deep); }

/* ---- striped cover placeholder ---- */
.cover {
  position: relative; border-radius: 16px; overflow: hidden;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, color-mix(in oklab,var(--ink) 5%, transparent) 15px 16px);
  display: grid; place-items: center; border: 1px solid var(--card-edge);
}
.cover .ph { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); border: 1px dashed var(--line); padding: 6px 12px; border-radius: 6px; background: color-mix(in oklab, var(--card) 70%, transparent); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .catflag { z-index: 2; }
.post .thumb { position: relative; }
.post .thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .catflag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--card); color: var(--accent-deep); padding: 6px 11px; border-radius: 7px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--card-edge);
}

/* ============================================================
   INDEX — featured + side list, then feed
   ============================================================ */
.feature-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 880px){ .feature-row { grid-template-columns: 1fr; } }

.featured {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured .cover { border: 0; border-radius: 0; aspect-ratio: 16/9; }
.featured .fb { padding: 26px 28px 30px; }
.featured .tagline { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.featured h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; margin: 12px 0 12px; }
.featured p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.featured .meta { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 14px; }

.side-list { display: flex; flex-direction: column; gap: 16px; }
.side-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  flex: 1;
}
.side-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.side-item .cover { width: 96px; height: 120px; border-radius: 10px; flex-shrink: 0; }
.side-item .cover .ph { display: none; }
.side-item .cover > img { border-radius: 10px; }
@media (max-width: 520px) {
  .side-item { grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; }
  .side-item .cover { width: 72px; height: 90px; }
  .side-item h3 { font-size: 15px; }
}
.side-item .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.side-item h3 { font-size: 16.5px; line-height: 1.18; margin: 6px 0 6px; letter-spacing: -.01em; }
.side-item .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }

/* feed divider heading */
.feed-head { display: flex; align-items: baseline; justify-content: space-between; margin: clamp(48px,7vw,80px) 0 26px; gap: 16px; flex-wrap: wrap; }
.feed-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.feed-head .count { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

/* the all-articles grid reuses .blog-grid/.post from sections.css */
.blog .post .thumb, .post .thumb { } /* inherit */

/* ============================================================
   ARTICLE
   ============================================================ */
.article {
  position: relative;
  z-index: 2;
  padding-inline: var(--gut);
  box-sizing: border-box;
}
.article-head {
  max-width: 780px;
  margin-inline: auto;
  padding-block: clamp(36px,5vw,64px) clamp(20px,3vw,32px);
  padding-inline: 0;
  width: 100%;
}
.article-head .crumb { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; margin-bottom: 22px; }
.article-head .crumb a:hover { color: var(--accent-deep); }
.article-head .cat-pill { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); text-decoration: none; }
a.cat-pill:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-head .crumb a:hover { color: var(--accent-deep); }
.article-head h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.03em; line-height: 1.04; margin: 14px 0 0; text-wrap: balance; }
.article-head .standfirst { font-size: clamp(18px, 2vw, 23px); color: var(--ink-soft); line-height: 1.5; margin-top: 20px; }
.article-head .byline { display: flex; align-items: center; gap: 18px; margin-top: 26px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.article-head .byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }

.article-cover { max-width: 1000px; margin: 8px auto clamp(34px,5vw,56px); width: 100%; }
.article-cover.wrap { padding-inline: 0; }
.article-cover .cover { aspect-ratio: 16/8; border-radius: 18px; }

/* reading column */
.prose { max-width: 720px; margin-inline: auto; padding-inline: 0; width: 100%; }
.prose > * + * { margin-top: 1.35em; }
.prose p { font-size: 19px; line-height: 1.72; color: #33291f; }
.prose p .lead { font-size: 21px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin-top: 1.9em; }
.prose h3 { font-size: clamp(20px, 2.2vw, 24px); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.prose ul li, .prose ol li { font-size: 18px; line-height: 1.6; color: #33291f; padding-left: 38px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 8px; top: 11px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-dark); font-family: var(--mono); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.prose li b { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a.store-btn { text-decoration: none; color: var(--ink); }
.prose .stores.on-dark a.store-btn.web { color: #fff; }

.prose blockquote.pull {
  margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--accent);
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.25; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty;
}
.prose blockquote.pull cite { display: block; margin-top: 12px; font-family: var(--mono); font-weight: 400; font-size: 13px; font-style: normal; color: var(--ink-soft); letter-spacing: .04em; }

.prose figure { margin: 1.9em 0; }
.prose figure .cover { aspect-ratio: 16/9; }
.prose figure figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; text-align: center; }

/* a hand-note aside */
.prose .scribble-note { font-family: var(--hand); color: var(--accent-deep); font-size: 24px; transform: rotate(-2deg); display: block; margin: 1.4em 0; }

/* share bar */
.share { display: flex; align-items: center; gap: 12px; max-width: 720px; width: 100%; margin: clamp(36px,5vw,56px) auto 0; padding-inline: 0; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; box-sizing: border-box; }
.share .lab { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; flex: 0 0 auto; }
.share a:not(.back-link) {
  width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: all .18s ease; background: var(--card);
  flex: 0 0 auto;
}
.share a:not(.back-link):hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.share a svg { width: 18px; height: 18px; }
.share .copy { margin-left: auto; font-family: var(--sans); font-size: 14px; width: auto; min-width: 0; padding: 0 16px; gap: 8px; display: inline-flex; align-items: center; height: 42px; flex: 0 1 auto; }
.share .copy.icon-only {
  width: 42px;
  padding: 0;
  justify-content: center;
  flex: 0 0 42px;
}
.share .copy.icon-only svg { width: 18px; height: 18px; }
.share .back-link {
  margin-left: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

@media (max-width: 640px) {
  .share { gap: 10px; row-gap: 14px; }
  .share .copy { margin-left: 0; flex: 1 1 auto; justify-content: center; }
  .share .copy.icon-only { flex: 0 0 42px; margin-left: auto; }
  .share .back-link {
    margin-left: 0 !important;
    flex: 1 1 100%;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }
}

/* end-of-article CTA */
.read-cta { max-width: 720px; margin: clamp(40px,5vw,60px) auto 0; background: var(--dark); color: #efe9dd; border-radius: 20px; padding: clamp(28px,4vw,40px); position: relative; overflow: hidden; }
.read-cta h3 { color: #fff; font-size: clamp(24px,3vw,32px); max-width: 18ch; }
.read-cta h3 .hand { color: var(--accent); font-size: inherit; display: inline; transform: none; line-height: inherit; }
.read-cta h3 .hand { color: var(--accent); }
.read-cta p { color: #c4baa6; margin-top: 12px; font-size: 16px; max-width: 46ch; }
.read-cta .stores { margin-top: 22px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--accent-deep); }
.back-link:hover { color: var(--accent-deep); transform: none; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
