@import url('/assets/fonts/fonts-blog.css');

/* ═══════════════════════════════════════════════════════════
   TIME MAGAZINE INTERIOR FEATURE STYLE
   arindampaul.com — blog.css
   ═══════════════════════════════════════════════════════════ */

:root {
  --time-red:   #E8112D;
  --time-black: #1A1A1A;
  --time-dark:  #333333;
  --time-mid:   #666666;
  --time-light: #F2F2F2;
  --time-white: #FFFFFF;
  --font-headline: 'Zilla Slab', Georgia, serif;
  --font-body:     'Lora', Charter, Georgia, serif;
  --font-ui:       'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body {
  background: var(--time-white);
  color: var(--time-black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.72;
  min-height: 100vh;
  padding: 0 1.25rem;
}

::selection {
  background: #F0ECE4;
}

/* ─── Container ─── */
.blog-container {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

/* ═══════════════════════════════════════════════════════════
   BACK NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2.5rem 0 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--time-red);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-back:hover {
  opacity: 0.65;
}

.blog-back::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--time-red);
  margin-right: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE HEADER
   ═══════════════════════════════════════════════════════════ */

.blog-header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

/* Section kicker — "TECHNOLOGY" / "OPINION" etc. */
.blog-kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--time-red);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--time-red);
  width: 40px;
  /* visually: the text overflows the 40px border, border acts as the rule */
  white-space: nowrap;
  position: relative;
}

/* Fallback: if .blog-kicker is not used, style .blog-date as kicker */
.blog-date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--time-red);
  margin-bottom: 1.25rem;
}

/* Article title */
.blog-title {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--time-black);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Deck / subtitle */
.blog-deck {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--time-dark);
  margin-bottom: 1.25rem;
}

/* Byline */
.blog-byline {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--time-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-byline .byline-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--time-mid);
}

.blog-byline .byline-name {
  font-weight: 700;
  color: var(--time-red);
  letter-spacing: 0.02em;
}

.blog-byline .byline-sep {
  color: #CCCCCC;
}

.blog-byline .byline-date {
  color: var(--time-mid);
}

/* Red rule below header */
.blog-header::after {
  content: '';
  display: block;
  margin-top: 1.75rem;
  height: 2px;
  width: 100%;
  background: var(--time-red);
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE BODY — TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════ */

.blog-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--time-black);
  column-count: 2;
  column-gap: 2.5rem;
  column-fill: balance;
}

.blog-body p {
  margin-bottom: 1.4rem;
  orphans: 3;
  widows: 3;
}

/* ─── Drop Cap ─── */
.blog-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 4.5em;
  line-height: 0.78;
  color: var(--time-red);
  padding-right: 0.1em;
  padding-top: 0.05em;
  margin-bottom: -0.05em;
}

@supports (initial-letter: 3) {
  .blog-body > p:first-of-type::first-letter {
    float: none;
    initial-letter: 3;
    padding: 0;
    margin-right: 0.08em;
    color: var(--time-red);
    font-family: var(--font-headline);
    font-weight: 700;
  }
}

/* ═══════════════════════════════════════════════════════════
   SUBHEADS — SPAN ALL COLUMNS
   ═══════════════════════════════════════════════════════════ */

.blog-body h2 {
  column-span: all;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--time-black);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  position: relative;
}

/* Small red rule above h2 */
.blog-body h2::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--time-red);
  margin-bottom: 0.75rem;
}

.blog-body h3 {
  column-span: all;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--time-mid);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════ */

.blog-body a {
  color: var(--time-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 17, 45, 0.3);
  transition: border-bottom-color 0.2s ease;
}

.blog-body a:hover {
  border-bottom-color: var(--time-red);
}

/* ═══════════════════════════════════════════════════════════
   PULL QUOTES
   ═══════════════════════════════════════════════════════════ */

.blog-body .pull-quote,
.pull-quote {
  column-span: all;
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--time-black);
  text-align: center;
  border-top: 2px solid var(--time-red);
  border-bottom: 2px solid var(--time-red);
  margin: 2.5rem 0;
  padding: 2rem 3rem;
  border-left: none;
}

/* ═══════════════════════════════════════════════════════════
   BLOCKQUOTES
   ═══════════════════════════════════════════════════════════ */

.blog-body blockquote {
  border-left: 3px solid var(--time-red);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--time-dark);
}

.blog-body blockquote p {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   FULL-BLEED QUOTE SECTION
   ═══════════════════════════════════════════════════════════ */

.full-bleed-quote {
  column-span: all;
  background: var(--time-black);
  color: var(--time-white);
  margin: 3rem -3rem;
  padding: 4rem 3rem;
  text-align: center;
}

.full-bleed-quote .fbq-text {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--time-white);
  margin-bottom: 1.25rem;
}

.full-bleed-quote .fbq-attribution {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--time-mid);
}

/* ═══════════════════════════════════════════════════════════
   BIG NUMBER / STAT CALLOUT
   ═══════════════════════════════════════════════════════════ */

.stat-callout {
  column-span: all;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.stat-callout .stat-number {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--time-red);
}

.stat-callout .stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--time-mid);
  max-width: 12rem;
  line-height: 1.5;
}

/* Inline floated variant */
.stat-callout.stat-callout--inline {
  column-span: none;
  float: right;
  margin: 0.5rem 0 1rem 2rem;
  width: 180px;
  flex-direction: column;
  text-align: center;
  gap: 0.4rem;
}

.stat-callout.stat-callout--inline .stat-label {
  max-width: 100%;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   STAT ROW
   ═══════════════════════════════════════════════════════════ */

.stat-row {
  column-span: all;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: var(--time-light);
  padding: 2rem;
  margin: 2rem 0;
}

.stat-row .stat-item {
  text-align: center;
}

.stat-row .stat-item-number {
  display: block;
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--time-red);
  margin-bottom: 0.4rem;
}

.stat-row .stat-item-desc {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--time-mid);
  line-height: 1.45;
}

/* 4-column variant */
.stat-row.stat-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ═══════════════════════════════════════════════════════════
   CALLOUT / SIDEBAR BOX
   ═══════════════════════════════════════════════════════════ */

.callout-box {
  column-span: all;
  background: var(--time-light);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-top: 2px solid var(--time-red);
}

.callout-box .callout-title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--time-black);
  margin-bottom: 0.75rem;
}

.callout-box .callout-body,
.callout-box p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--time-dark);
  margin-bottom: 0.75rem;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Inline floated callout variant */
.callout-box.callout-box--inline {
  column-span: none;
  float: right;
  width: 260px;
  margin: 0.5rem 0 1.5rem 2rem;
}

/* ═══════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════════ */

.blog-body hr {
  column-span: all;
  border: none;
  border-top: 2px solid var(--time-red);
  max-width: 60px;
  margin: 2.5rem auto;
}

/* ═══════════════════════════════════════════════════════════
   CODE BLOCKS
   ═══════════════════════════════════════════════════════════ */

.blog-body code {
  font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.85em;
  background: #F5F5F5;
  color: var(--time-dark);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  white-space: nowrap;
}

.blog-body pre {
  column-span: all;
  background: var(--time-light);
  border: 1px solid #E0E0E0;
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.blog-body pre code {
  background: none;
  padding: 0;
  white-space: pre;
  font-size: 0.8rem;
  line-height: 1.7;
  border-radius: 0;
  color: var(--time-dark);
}

/* ═══════════════════════════════════════════════════════════
   LISTS
   ═══════════════════════════════════════════════════════════ */

.blog-body ul,
.blog-body ol {
  margin-bottom: 1.6rem;
  padding-left: 1.75rem;
}

.blog-body li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.blog-body ul li::marker {
  color: var(--time-red);
}

.blog-body ol li::marker {
  color: var(--time-dark);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ─── Emphasis ─── */
.blog-body strong {
  font-weight: 700;
  color: var(--time-black);
}

.blog-body em {
  font-style: italic;
  color: var(--time-dark);
}

/* ═══════════════════════════════════════════════════════════
   IMAGES / FIGURES
   ═══════════════════════════════════════════════════════════ */

.article-figure {
  column-span: all;
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  display: block;
  height: auto;
}

.article-figure figcaption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--time-mid);
  margin-top: 0.5rem;
  border-top: 1px solid #E0E0E0;
  padding-top: 0.5rem;
  line-height: 1.55;
}

/* Inline figure (within a column) */
.article-figure.article-figure--inline {
  column-span: none;
  float: left;
  width: 48%;
  margin: 0.5rem 1.5rem 1rem 0;
}

/* ═══════════════════════════════════════════════════════════
   INFOGRAPHIC CONTAINER
   ═══════════════════════════════════════════════════════════ */

.infographic {
  column-span: all;
  background: var(--time-light);
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid #E0E0E0;
}

.infographic .infographic-title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--time-red);
  margin-bottom: 1.25rem;
}

/* ─── SVG Charts ─── */
.svg-chart {
  column-span: all;
  margin: 2rem 0;
  display: block;
  width: 100%;
}

.svg-chart text,
.infographic text {
  font-family: var(--font-ui);
}

/* ═══════════════════════════════════════════════════════════
   FOOTERS
   ═══════════════════════════════════════════════════════════ */

.blog-article-footer {
  column-span: all;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--time-red);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--time-mid);
  line-height: 1.6;
}

.blog-site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #E0E0E0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--time-mid);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ─── Tablet: 768–960px ─── */
@media (min-width: 768px) and (max-width: 960px) {
  .blog-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .blog-body {
    column-count: 2;
    column-gap: 2rem;
  }

  .blog-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .full-bleed-quote {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ─── Mobile: < 768px ─── */
@media (max-width: 767px) {
  body {
    padding: 0 1rem;
  }

  .blog-container {
    padding-bottom: 3rem;
  }

  .blog-back {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .blog-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    letter-spacing: -0.01em;
  }

  .blog-deck {
    font-size: 1rem;
  }

  /* Single column on mobile */
  .blog-body {
    column-count: 1;
    column-gap: 0;
    font-size: 1rem;
  }

  .blog-body h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .blog-body > p:first-of-type::first-letter {
    font-size: 3.8em;
  }

  .blog-body .pull-quote,
  .pull-quote {
    padding: 1.5rem 1.25rem;
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    margin: 2rem 0;
  }

  .blog-body blockquote {
    font-size: 1.05rem;
    padding-left: 1.1rem;
  }

  .blog-body pre {
    padding: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .stat-row.stat-row--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-callout .stat-number {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .full-bleed-quote {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2.5rem 1.5rem;
  }

  .full-bleed-quote .fbq-text {
    font-size: 1.35rem;
  }

  .callout-box.callout-box--inline,
  .stat-callout.stat-callout--inline,
  .article-figure.article-figure--inline {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .infographic {
    padding: 1.25rem;
  }

  .blog-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* ─── Narrow mobile: < 480px ─── */
@media (max-width: 479px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-row.stat-row--4 {
    grid-template-columns: 1fr;
  }

  .blog-body h2 {
    font-size: 1.2rem;
  }
}

/* ═══ SITE-WIDE NAVIGATION FOOTER ═══ */
.site-nav-footer{margin-top:3rem;padding:2.5rem 0 1.5rem;border-top:2px solid var(--time-red)}
.site-nav-footer-label{font-family:var(--font-ui);font-size:0.65rem;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--time-mid);margin-bottom:1rem}
.site-nav-footer-links{display:flex;flex-wrap:wrap;gap:0.5rem 1.5rem;margin-bottom:1rem}
.site-nav-footer-links a{font-family:var(--font-ui);font-size:0.82rem;font-weight:500;color:var(--time-dark);text-decoration:none;border-bottom:1px solid transparent;transition:border-color 0.2s,color 0.2s}
.site-nav-footer-links a:hover{color:var(--time-red);border-bottom-color:var(--time-red)}
.site-nav-footer-section{margin-bottom:0.75rem}
.site-nav-footer-section-title{font-family:var(--font-ui);font-size:0.6rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--time-mid);opacity:0.6;margin-bottom:0.4rem}
@media(max-width:767px){.site-nav-footer-links{flex-direction:column;gap:0.6rem}}

/* ═══ AUTHOR BIO BLOCK (E-E-A-T) ═══ */
.blog-author-bio{display:flex;gap:1.5rem;align-items:flex-start;margin:3rem 0 2rem;padding:2rem;border:1px solid #e0e0e0;background:#fafafa}
.blog-author-bio .author-avatar{flex-shrink:0;width:72px;height:72px;border-radius:50%;background:var(--time-red,#c8102e);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-ui);font-size:1.5rem;font-weight:800;letter-spacing:0.05em}
.blog-author-bio .author-meta{flex:1;min-width:0}
.blog-author-bio .author-name{font-family:var(--font-display),Georgia,serif;font-size:1.3rem;font-weight:700;color:var(--time-dark,#111);margin:0 0 0.2rem}
.blog-author-bio .author-role{font-family:var(--font-ui);font-size:0.78rem;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:var(--time-red,#c8102e);margin:0 0 0.75rem}
.blog-author-bio .author-bio{font-family:var(--font-body),Georgia,serif;font-size:0.98rem;line-height:1.55;color:var(--time-dark,#222);margin:0 0 0.9rem}
.blog-author-bio .author-links{font-family:var(--font-ui);font-size:0.82rem;margin:0;color:var(--time-mid,#666)}
.blog-author-bio .author-links a{color:var(--time-dark,#111);text-decoration:none;border-bottom:1px solid var(--time-red,#c8102e);transition:color 0.2s}
.blog-author-bio .author-links a:hover{color:var(--time-red,#c8102e)}
@media(max-width:600px){.blog-author-bio{flex-direction:column;padding:1.5rem;gap:1rem}.blog-author-bio .author-avatar{width:56px;height:56px;font-size:1.2rem}}
