/* CookieBytes — blog listing + article styles */

/* Listing */
.blog-hero { padding: 9rem 2rem 3.5rem; text-align: center; position: relative; overflow: hidden; }
.blog-hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(201,123,58,0.10) 0%, transparent 70%), radial-gradient(circle at 85% 15%, rgba(38,168,141,0.07) 0%, transparent 35%); }
.blog-hero > * { position: relative; z-index: 1; }
.blog-label { font-family: 'DM Mono', monospace; font-size: 0.75rem; font-weight: 500; color: var(--cookie); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.9rem; animation: fadeSlideIn 0.7s 0.05s ease both; }
.blog-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; color: var(--chip); line-height: 1.05; margin-bottom: 1.1rem; animation: fadeSlideIn 0.7s 0.15s ease both; }
.blog-hero h1 em { font-style: normal; color: var(--cookie); }
.blog-hero p { font-size: 1.05rem; font-weight: 300; color: var(--text-muted); max-width: 480px; margin: 0 auto; line-height: 1.65; animation: fadeSlideIn 0.7s 0.25s ease both; }

.posts-wrap { max-width: 860px; margin: 0 auto; padding: 1rem 2rem 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.post-card { display: block; background: var(--soft-white); border: 1px solid var(--border); border-radius: 1.75rem; padding: 2.2rem 2.4rem; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; overflow: hidden; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(201,123,58,0.12); border-color: var(--cookie-light); }
.post-card h2 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.55rem; color: var(--chip); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.6rem; }
.post-card p.excerpt { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; max-width: 640px; }
.post-arrow { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-size: 0.85rem; font-weight: 600; color: var(--cookie); transition: gap 0.2s; }
.post-card:hover .post-arrow { gap: 0.7rem; }
.post-emoji { position: absolute; font-size: 6.5rem; opacity: 0.07; top: -1rem; right: 0.5rem; pointer-events: none; transform: rotate(12deg); }
@media (max-width: 560px) { .post-card { padding: 1.7rem 1.5rem; } }

/* Meta (shared listing + article) */
.post-meta { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.post-tag { font-family: 'DM Mono', monospace; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28rem 0.85rem; border-radius: 1rem; }
.tag-studio { background: #FDF0E0; color: var(--cookie-dark); }
.tag-tech { background: var(--byte-light); color: var(--byte); }
.tag-crew { background: #F3E8FB; color: var(--rocky); }
.post-date, .post-read { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text-muted); }

/* Subscribe strip */
.subscribe-strip { max-width: 860px; margin: 0 auto 6rem; padding: 0 2rem; }
.subscribe-box { background: var(--byte); border-radius: 2rem; padding: 2.4rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.subscribe-box h3 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.4rem; color: white; margin-bottom: 0.3rem; }
.subscribe-box p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.subscribe-btn { background: white; color: var(--byte); padding: 0.75rem 1.8rem; border-radius: 3rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.15s, box-shadow 0.2s; }
.subscribe-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Article */
.article-wrap { max-width: 700px; margin: 0 auto; padding: 8.5rem 2rem 5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--cookie); text-decoration: none; margin-bottom: 2.2rem; transition: gap 0.2s; }
.back-link:hover { gap: 0.7rem; }
.article-wrap .post-meta { margin-bottom: 1.1rem; }
.article-wrap h1 { font-family: 'Fraunces', serif; font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -0.03em; color: var(--chip); line-height: 1.1; margin-bottom: 1.2rem; }
.lede { font-size: 1.12rem; font-weight: 300; color: var(--text-muted); line-height: 1.7; margin-bottom: 2.5rem; }
article h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--chip); letter-spacing: -0.02em; margin: 2.4rem 0 0.9rem; }
article p { font-size: 1rem; line-height: 1.8; color: var(--text-main); margin-bottom: 1.2rem; }
article a { color: var(--cookie); font-weight: 500; }
article code { font-family: 'DM Mono', monospace; font-size: 0.85em; background: rgba(26,107,92,0.08); color: var(--byte); padding: 0.1em 0.4em; border-radius: 0.4em; }
article.cat-crew code { background: rgba(107,63,160,0.08); color: var(--rocky); }

.callout { border-radius: 0.9rem; padding: 1.1rem 1.4rem; font-size: 0.92rem; line-height: 1.7; margin: 1.5rem 0; background: #FDF0E0; border-left: 4px solid var(--cookie); color: var(--cookie-dark); }
.cat-tech .callout { background: var(--byte-light); border-left-color: var(--byte); color: var(--byte); }
.cat-crew .callout { background: #F3E8FB; border-left-color: var(--rocky); color: var(--rocky); }

.divider { text-align: center; font-size: 1.1rem; letter-spacing: 0.8rem; color: var(--cookie); margin: 2.2rem 0; }

.author-box { display: flex; align-items: center; gap: 1rem; background: var(--soft-white); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.4rem 1.6rem; margin-top: 3rem; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--chip); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.author-avatar.avatar-tech { background: var(--byte); }
.author-avatar.avatar-crew { background: var(--rocky); }
.author-box strong { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--chip); display: block; margin-bottom: 0.15rem; }
.author-box span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Article extras — figures, code blocks, shopping cards */
article h2 { margin-top: 3.4rem; }
article figure { margin: 2.2rem auto; text-align: center; }
article figure img { max-width: 100%; width: auto; max-height: 560px; border-radius: 1.25rem; border: 1px solid var(--border); box-shadow: 0 10px 32px rgba(201,123,58,0.14); }
article figcaption { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.7rem; letter-spacing: 0.04em; }
article pre { background: #10201C; color: #D4EDEA; border-radius: 1rem; padding: 1.3rem 1.5rem; overflow-x: auto; font-family: 'DM Mono', monospace; font-size: 0.78rem; line-height: 1.6; margin: 1.6rem 0; }
article pre code { background: none; color: inherit; padding: 0; }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0 0.6rem; }
.shop-item { background: var(--soft-white); border: 1px solid var(--border); border-left: 4px solid var(--byte); border-radius: 1.1rem; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.shop-item .shop-emoji { font-size: 1.6rem; }
.shop-item strong { font-family: 'Fraunces', serif; font-size: 1.02rem; color: var(--chip); }
.shop-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.shop-item a { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--byte); text-decoration: none; }
.shop-item a:hover { text-decoration: underline; }
.shop-extras { background: var(--byte-light); border-radius: 1.1rem; padding: 1.1rem 1.4rem; font-size: 0.88rem; color: var(--byte); line-height: 1.7; margin-bottom: 1.2rem; }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }
