/* nature-nest/assets/css/theme.css — base layout & typography v1.0.0 */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font-sans);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ── Skip link ── */
.skip-link:focus {
	background-color: var(--surface);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	color: var(--brand);
	display: block;
	font-size: 14px;
	font-weight: 600;
	left: 16px;
	padding: 12px 18px;
	position: absolute !important;
	top: 16px;
	z-index: 100000;
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
}

/* ── Layout containers ── */
.nn-container {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0 var(--section-pad-x);
	width: 100%;
}
.nn-container-narrow {
	max-width: 820px;
}
.nn-section {
	padding: var(--section-pad-y) 0;
}
.nn-section-deep {
	background: var(--bg-deep);
	color: #fff;
}
.nn-text-center { text-align: center; }
.nn-hide-md-down { display: inline-flex; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	font-family: var(--font-bn);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 300; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 300; }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.8vw, 21px); }
h5 { font-size: 16px; }
h6 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 16px; }

.bangla { font-family: var(--font-bn); line-height: 1.75; }
.bangla-heading { font-family: var(--font-bn); font-weight: 600; line-height: 1.4; }
em.serif, .serif-italic { font-style: italic; font-family: var(--font-display); font-weight: 400; }
.mono { font-family: var(--font-mono); }

.nn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--brand-soft);
	color: var(--brand);
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: var(--radius-full);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1px solid rgba(36,86,232,.15);
}

.nn-section-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: var(--radius-full);
	letter-spacing: 0.04em;
	margin-bottom: 16px;
	text-transform: uppercase;
}
.nn-section-tag.default { background: var(--brand-soft); color: var(--brand); }
.nn-section-tag.warm    { background: var(--saffron-soft); color: var(--saffron-2); }
.nn-section-tag.nature  { background: var(--forest-soft); color: var(--forest); }

.nn-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}
.nn-section-header-left { max-width: 640px; }
.nn-section-header-left h2 {
	font-family: var(--font-bn);
	margin-bottom: 8px;
}
.nn-section-header-left h2 em {
	font-style: italic;
	font-family: var(--font-display);
	color: var(--brand);
	font-weight: 400;
}
.nn-section-header-left p {
	font-family: var(--font-bn);
	font-size: 15px;
	color: var(--muted);
	line-height: 1.7;
}
.nn-section-link {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--brand);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap var(--duration-micro) var(--ease-out);
	white-space: nowrap;
}
.nn-section-link:hover { gap: 8px; }

/* ── Grids ── */
.nn-grid { display: grid; gap: 20px; }
.nn-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nn-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nn-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Prose ── */
.nn-prose {
	font-size: 17px;
	line-height: 1.85;
	color: var(--ink-2);
}
.nn-prose p { margin-bottom: 22px; }
.nn-prose h2 { margin: 36px 0 14px; }
.nn-prose h3 { margin: 28px 0 12px; }
.nn-prose ul, .nn-prose ol { margin: 0 0 22px 1.4em; }
.nn-prose li { margin-bottom: 8px; }
.nn-prose blockquote {
	border-left: 3px solid var(--brand);
	background: var(--brand-soft);
	padding: 16px 22px;
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: 22px 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 22px;
	color: var(--ink);
	line-height: 1.5;
}
.nn-prose img {
	border-radius: var(--radius-lg);
	margin: 22px 0;
	box-shadow: var(--shadow);
}
.nn-prose a { color: var(--brand); border-bottom: 1px solid rgba(36,86,232,.3); }
.nn-prose a:hover { border-bottom-color: var(--brand); }
.nn-prose code {
	background: var(--bg-alt);
	color: var(--brand);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

/* ── Pagination ── */
.nn-pagination {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}
.nn-pagination .page-numbers {
	display: inline-flex;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.nn-pagination .page-numbers li a,
.nn-pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
	transition: all var(--duration-micro) var(--ease-out);
}
.nn-pagination .page-numbers li a:hover { border-color: var(--brand); color: var(--brand); }
.nn-pagination .page-numbers li .current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

/* ── Empty state ── */
.nn-empty {
	text-align: center;
	padding: 80px 20px;
	color: var(--muted);
}

/* ── Tables / forms inside content ── */
.nn-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 22px 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-xs);
}
.nn-prose table th,
.nn-prose table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}
.nn-prose table th {
	background: var(--bg-alt);
	font-weight: 700;
	color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.nn-grid-4 { grid-template-columns: repeat(3, 1fr); }
	:root { --section-pad-y: 64px; --section-pad-x: 24px; }
}
@media (max-width: 768px) {
	.nn-grid-3, .nn-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.nn-grid-2 { grid-template-columns: 1fr; }
	.nn-hide-md-down { display: none !important; }
	:root { --section-pad-y: 56px; --section-pad-x: 18px; }
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
}
@media (max-width: 480px) {
	.nn-grid-3, .nn-grid-4 { grid-template-columns: 1fr; }
}
