/* ============================================================
   skillsl.ink — Blog styles (loaded on /blog pages, after styles.css)
   ============================================================ */
@layer components {
  .post-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
    background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width .1s linear; }

  .breadcrumb { font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim); margin-bottom: 1.5rem; }
  .breadcrumb a { color: var(--text-dim); }
  .breadcrumb a:hover { color: var(--cyan); }

  .post { max-width: 760px; margin: 0 auto; padding: 7rem 1.5rem 2rem; }
  .post__tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
  .post__tag { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--cyan); border: 1px solid var(--border-hover); border-radius: 999px; padding: .25rem .7rem; }
  .post__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1rem; text-wrap: balance; }
  .post__meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; color: var(--text-dim);
    font-size: .9rem; font-family: var(--font-mono); margin-bottom: 2rem; }
  .post__hero { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg);
    border: 1px solid var(--border); margin-bottom: 2.5rem; }

  .post__body { font-size: 1.075rem; line-height: 1.75; color: var(--text); }
  .post__body > p:first-of-type { font-size: 1.2rem; color: var(--text-bright); line-height: 1.6; }
  .post__body h2 { font-family: var(--font-heading); font-size: 1.6rem; margin: 2.75rem 0 1rem; color: var(--text-bright); letter-spacing: -0.01em; }
  .post__body h3 { font-family: var(--font-heading); font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--text-bright); }
  .post__body p { margin-bottom: 1.35rem; }
  .post__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,229,255,.35); }
  .post__body a:hover { text-decoration-color: var(--cyan); }
  .post__body ul, .post__body ol { margin: 0 0 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; }
  .post__body ul li { list-style: none; position: relative; padding-left: 1.25rem; }
  .post__body ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
    border-radius: 2px; background: linear-gradient(135deg, var(--cyan), var(--purple)); }
  .post__body ol { list-style: decimal; }
  .post__body strong { color: var(--text-bright); }

  .post__body blockquote { margin: 1.75rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius) var(--radius) 0; background: var(--glow-cyan);
    font-size: 1.1rem; color: var(--text-bright); font-weight: 500; }

  .post__body table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .95rem; display: block; overflow-x: auto; }
  .post__body th, .post__body td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--border); }
  .post__body th { background: var(--bg-card); color: var(--text-bright); font-family: var(--font-heading); font-weight: 600; }
  .post__body tr:nth-child(even) td { background: rgba(255,255,255,.015); }

  .post__fig { margin: 2.25rem 0; }
  .post__fig img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; }
  .post__fig--tall img { max-width: 620px; margin: 0 auto; }
  .post__fig figcaption { margin-top: .7rem; font-size: .85rem; color: var(--text-dim); text-align: center; font-style: italic; }

  .post__cta { margin: 3.5rem 0 1rem; padding: 2.5rem; text-align: center; border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 50% 0, var(--glow-cyan), transparent 60%), var(--bg-card); }
  .post__cta h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: .6rem; color: var(--text-bright); }
  .post__cta p { color: var(--text-dim); margin-bottom: 1.5rem; }

  /* Index */
  .blog-hero { text-align: center; padding: 8rem 1.5rem 3rem; }
  .blog-hero h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
  .blog-hero p { color: var(--text-dim); max-width: 560px; margin: 1rem auto 0; font-size: 1.1rem; }
  .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; max-width: 1120px; margin: 2rem auto 5rem; padding: 0 1.5rem; }
  .blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card);
    transition: transform .3s var(--ease), border-color .3s var(--ease); display: flex; flex-direction: column; }
  .blog-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
  .blog-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--border); }
  .blog-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
  .blog-card__tag { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); }
  .blog-card__title { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.3; color: var(--text-bright); }
  .blog-card__excerpt { color: var(--text-dim); font-size: .92rem; line-height: 1.55; flex: 1; }
  .blog-card__meta { font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim); margin-top: .4rem; }
}
