/* Lunchbox Mart — lean theme, main stylesheet */

:root {
	--ink: #1f2430;
	--ink-soft: #5c6478;
	--bg: #fffdf7;
	--bg-alt: #fff6e8;
	--blue: #2eaae0;
	--blue-deep: #1a7cad;
	--orange: #f7941d;
	--green: #39b54a;
	--card-radius: 20px;
	--wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Nunito', system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--bg);
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

h1, h2, h3 { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; }
.section-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--blue-deep); margin: 0 0 14px; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 999; background: transparent; }
.scroll-progress-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--green), var(--blue)); transition: width .1s linear; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,253,247,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(46,170,224,.1); transition: padding .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31,36,48,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 16px 24px; transition: padding .25s ease; }
.site-header.is-scrolled .header-inner { padding: 9px 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 36px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .logo-mark { height: 28px; }
.logo-text { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.logo-text em { font-style: normal; color: var(--orange); }
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text em { color: var(--orange); }
.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: .95rem; }
.primary-nav .menu a { color: var(--ink); }
.primary-nav .menu a:hover { color: var(--blue-deep); }
.search-form { display: flex; align-items: center; background: #fff; border: 1px solid rgba(46,170,224,.18); border-radius: 100px; padding: 6px 6px 6px 16px; }
.search-form input { border: none; outline: none; font-family: inherit; font-size: .9rem; width: 150px; background: transparent; }
.search-form button { border: none; background: var(--blue); color: #fff; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }
.nav-toggle, .menu-btn { display: none; }

/* Bento hero */
.bento-hero { position: relative; overflow: hidden; padding: 110px 0 90px; background: radial-gradient(circle at 20% 15%, var(--bg-alt), var(--bg) 60%); }
.bento-field { position: absolute; inset: 0; z-index: 0; }
.bento { position: absolute; border-radius: 22px; will-change: transform; opacity: .85; }
.bento-a { width: 110px; height: 110px; left: 8%; top: 14%; background: var(--blue); animation: bobA 7s ease-in-out infinite; transform: rotate(-8deg); }
.bento-b { width: 86px; height: 86px; right: 12%; top: 20%; background: var(--orange); animation: bobB 8s ease-in-out infinite; transform: rotate(10deg); }
.bento-c { width: 70px; height: 70px; left: 44%; top: 6%; background: var(--green); border-radius: 50%; animation: bobC 9s ease-in-out infinite; }
.bento-d { width: 100px; height: 100px; right: 26%; bottom: 8%; background: var(--green); animation: bobA 10s ease-in-out infinite reverse; transform: rotate(14deg); }
.bento-e { width: 60px; height: 60px; left: 16%; bottom: 14%; background: var(--orange); border-radius: 50%; animation: bobB 6.5s ease-in-out infinite; }
@keyframes bobA { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-20px) rotate(-14deg); } }
@keyframes bobB { 0%,100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(18px) rotate(4deg); } }
@keyframes bobC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14px,-16px) scale(1.12); } }

.bento-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.bento-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 18px; color: var(--ink); }
.bento-sub { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 32px; }
.bento-search { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 100px; padding: 8px 8px 8px 24px; box-shadow: 0 16px 40px rgba(46,170,224,.18); }
.bento-search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 1rem; background: transparent; }
.bento-search button { border: none; background: linear-gradient(135deg, var(--orange), var(--blue)); color: #fff; font-weight: 800; border-radius: 100px; padding: 12px 26px; cursor: pointer; font-family: 'Baloo 2', sans-serif; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Category tray */
.cat-tray { padding: 70px 0 40px; text-align: center; }
.cat-tray-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: .95rem; color: #fff; animation: chipbob 6s ease-in-out infinite; }
.cat-chip:nth-child(2n) { animation-delay: -2s; }
.cat-chip:nth-child(3n) { animation-delay: -4s; }
.cat-chip-count { font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.3); border-radius: 100px; padding: 2px 8px; }
.cat-chip-0 { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.cat-chip-1 { background: linear-gradient(135deg, var(--orange), #ffb14d); }
.cat-chip-2 { background: linear-gradient(135deg, var(--green), #2a8f38); }
.cat-chip-3 { background: linear-gradient(135deg, #ff6f61, var(--orange)); }
.cat-chip-4 { background: linear-gradient(135deg, var(--blue-deep), var(--green)); }
@keyframes chipbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Post rows with alternating tinted bands */
.post-row { padding: 60px 0; position: relative; }
.post-row.band-1 { background: var(--bg-alt); }
.post-row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.post-row-viewall { font-weight: 800; font-size: .9rem; white-space: nowrap; font-family: 'Baloo 2', sans-serif; }
.post-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.entry-card { background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 6px 20px rgba(31,36,48,.07); transition: transform .3s ease, box-shadow .3s ease; }
.entry-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 16px 34px rgba(31,36,48,.15); }
.entry-card .thumb { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); }
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.entry-card:hover .thumb img { transform: scale(1.06); }
.entry-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.entry-title { font-size: 1.05rem; margin: 0; }
.entry-title a { color: var(--ink); }
.entry-excerpt { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); font-family: 'Nunito', sans-serif; }
.entry-cta { margin-top: 2px; font-size: .82rem; font-weight: 800; font-family: 'Baloo 2', sans-serif; color: var(--blue-deep); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s ease; }
.entry-card:hover .entry-cta { gap: 8px; }

/* Stat break */
.stat-break { padding: 90px 0; text-align: center; background: linear-gradient(135deg, var(--orange), #ff6f61); color: #fff; background-attachment: fixed; background-size: cover; }
.stat-number { font-family: 'Baloo 2', sans-serif; font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 0; }
.stat-label { margin: 6px 0 0; font-size: 1.1rem; opacity: .9; font-family: 'Nunito', sans-serif; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 0%, #233047, var(--ink) 55%); color: #c9ccd6; padding: 0; margin-top: 30px; border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--blue), var(--green), var(--orange)) 1; }
.footer-bento-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.f-bento { position: absolute; border-radius: 20px; filter: blur(2px); opacity: .25; will-change: transform; }
.f-bento-a { width: 220px; height: 220px; top: -80px; right: -40px; background: var(--blue); animation: bobA 20s ease-in-out infinite; }
.f-bento-b { width: 150px; height: 150px; bottom: -50px; left: 10%; background: var(--orange); animation: bobB 16s ease-in-out infinite; }
.f-bento-c { width: 120px; height: 120px; bottom: 30px; right: 20%; background: var(--green); animation: bobC 18s ease-in-out infinite; }

.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 24px 48px; }
.footer-brand p { color: #a7acba; max-width: 320px; font-size: .9rem; line-height: 1.6; margin: 14px 0 0; font-family: 'Nunito', sans-serif; }
.footer-col-title { color: #fff; font-family: 'Baloo 2', sans-serif; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 18px; }
.footer-topic-list, .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-topic-list a, .footer-menu a { color: #c9ccd6; font-size: .92rem; transition: color .2s ease, padding-left .2s ease; }
.footer-topic-list a:hover, .footer-menu a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 24px; }
.copy { font-size: .8rem; color: #818699; margin: 0; }

/* Back to top */
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--blue); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; z-index: 80; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }

/* Single post */
.single-hero { position: relative; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; overflow: hidden; }
.single-hero-img { aspect-ratio: 16/7; overflow: hidden; }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-panel { padding: 34px 24px 30px; max-width: var(--wrap); margin: 0 auto; }
.single-hero-panel .kicker a { color: #ffe1ad; }
.single-hero-panel h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 6px 0 10px; }
.single-hero-panel .byline { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0 0 14px; font-family: 'Nunito', sans-serif; }
.share-row { display: flex; gap: 10px; }
.share-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; font-size: .8rem; }
.share-row a:hover { background: rgba(255,255,255,.32); }

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin: 24px 0 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.single-wrap { padding-bottom: 60px; }
.entry-content { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; font-family: 'Nunito', sans-serif; }
.entry-content h2 { font-size: 1.5rem; margin: 2em 0 .6em; font-family: 'Baloo 2', sans-serif; }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; font-family: 'Baloo 2', sans-serif; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content img { border-radius: var(--card-radius); margin: 1.5em 0; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

.related { padding: 50px 0 10px; }
.related .section-title { margin-bottom: 20px; text-align: center; }
.related-grid { max-width: 920px; margin: 0 auto; }

/* Archive / search grids */
.archive-header { padding: 50px 0 10px; }
.archive-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 10px 0; }
.archive-desc { color: var(--ink-soft); max-width: 640px; font-family: 'Nunito', sans-serif; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; padding: 30px 0 70px; }
.archive-grid .entry-card .thumb { aspect-ratio: 4/3; }
.archive-grid .entry-card .kicker { margin: 16px 18px 0; }
.archive-grid .entry-card .entry-title { padding: 6px 18px 20px; font-size: 1.15rem; }
.pagination { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: center; padding-top: 10px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; }
.pagination .page-numbers.current { background: var(--blue); color: #fff; }

@media (max-width: 860px) {
	.primary-nav { position: fixed; inset: 0 0 0 30%; background: #fff; transform: translateX(100%); transition: transform .3s ease; z-index: 95; padding: 90px 24px 24px; }
	.nav-toggle:checked ~ .primary-nav { transform: translateX(0); }
	.primary-nav .menu { flex-direction: column; }
	.menu-btn { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; z-index: 96; }
	.menu-btn span { width: 24px; height: 2px; background: var(--ink); }
	.search-form { display: none; }
	.footer-top { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 36px; }
}
