/* =================================================================
   The Bowl — blog styles (ported from the static mockups)
   Scoped with .bowl-* classes used by the block patterns so it
   does not fight Astra's own styles.
   ================================================================= */

/* ---- Base typography ------------------------------------------- */
body,
.entry-content {
	font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4,
.bowl-serif,
.entry-title,
.wp-block-post-title {
	font-family: 'Fraunces', ui-serif, Georgia, serif;
	letter-spacing: -0.01em;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bowl-bark-200); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--bowl-bark-300); }

/* ---- Helpers --------------------------------------------------- */
.bowl-grain {
	background-image: radial-gradient( rgba(77,56,44,.05) 1px, transparent 1px );
	background-size: 18px 18px;
}
.bowl-container { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

.bowl-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 12px; border-radius: 999px;
	background: var(--bowl-leaf-100); color: var(--bowl-leaf-800);
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}

.bowl-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 24px; border-radius: 999px;
	background: var(--bowl-leaf-600); color: #fff; font-weight: 600;
	text-decoration: none; transition: background .2s ease;
}
.bowl-btn:hover { background: var(--bowl-leaf-700); color: #fff; }

.bowl-btn-dark { background: var(--bowl-bark-900); }
.bowl-btn-dark:hover { background: var(--bowl-bark-800); }

/* ---- Cards (archive / related) --------------------------------- */
.bowl-card {
	background: #fff; border: 1px solid var(--bowl-bark-100);
	border-radius: 16px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(77,56,44,.04), 0 8px 24px rgba(77,56,44,.06);
	transition: transform .25s ease, box-shadow .25s ease;
	display: block; text-decoration: none; color: inherit;
}
.bowl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(77,56,44,.14); }
.bowl-card__media { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 3.5rem; }
.bowl-card__body { padding: 20px; }
.bowl-card__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bowl-leaf-700); }
.bowl-card__title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin: 8px 0 0; }

/* ---- Single-post reading layout -------------------------------- */
.bowl-progress-track { position: sticky; top: 68px; z-index: 30; height: 4px; }
.bowl-progress { height: 100%; width: 0; background: var(--bowl-leaf-500); transition: width .15s linear; }

.bowl-single { max-width: 1180px; margin-inline: auto; padding: 48px 20px; }
.bowl-single__grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }

.bowl-toc { position: sticky; top: 96px; }
.bowl-toc__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bowl-bark-500); margin-bottom: 12px; }
.bowl-toc__list { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--bowl-bark-200); }
.bowl-toc-link {
	border-left: 2px solid transparent; margin-left: -1px; padding: 4px 12px;
	font-size: 14px; color: var(--bowl-bark-600); text-decoration: none;
}
.bowl-toc-link:hover { color: var(--bowl-bark-900); }
.bowl-toc-link.active { color: var(--bowl-leaf-700); font-weight: 600; border-left-color: var(--bowl-leaf-500); }

/* ---- Article prose --------------------------------------------- */
.bowl-article { max-width: 680px; font-size: 1.125rem; line-height: 1.8; color: var(--bowl-bark-800); }
.bowl-article > * + * { margin-top: 1.4em; }
.bowl-article h2 { font-size: 1.9rem; line-height: 1.2; font-weight: 800; color: var(--bowl-bark-900); margin-top: 2.2em; scroll-margin-top: 90px; }
.bowl-article h3 { font-size: 1.4rem; line-height: 1.3; font-weight: 700; color: var(--bowl-bark-900); margin-top: 1.6em; }
.bowl-article a { color: var(--bowl-leaf-600); text-decoration: underline; text-underline-offset: 2px; }
.bowl-article a:hover { color: var(--bowl-leaf-700); }
.bowl-article ul { list-style: disc; padding-left: 1.3em; }
.bowl-article ol { list-style: decimal; padding-left: 1.3em; }
.bowl-article li { margin-top: .5em; }
.bowl-article li::marker { color: var(--bowl-leaf-500); }
.bowl-article strong { color: var(--bowl-bark-900); font-weight: 700; }
.bowl-article blockquote {
	border-left: 4px solid var(--bowl-leaf-500); padding: .2em 0 .2em 1.2em;
	font-family: 'Fraunces', serif; font-size: 1.5rem; font-style: italic;
	line-height: 1.4; color: var(--bowl-bark-900);
}

/* ---- Callout boxes (block patterns) ---------------------------- */
.bowl-callout {
	border-radius: 16px; padding: 20px; margin: 32px 0;
	background: var(--bowl-leaf-50); border: 1px solid var(--bowl-leaf-200);
}
.bowl-callout__label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bowl-leaf-800); }
.bowl-callout p { margin: 8px 0 0; color: var(--bowl-bark-700); }

.bowl-tip {
	display: flex; gap: 16px; border-radius: 16px; padding: 20px; margin: 32px 0;
	background: var(--bowl-bark-100); border: 1px solid var(--bowl-bark-200);
}
.bowl-tip__icon { font-size: 1.75rem; flex-shrink: 0; }

/* ---- References box -------------------------------------------- */
.bowl-references {
	margin-top: 48px; border-radius: 16px; padding: 24px;
	background: rgba(243,236,225,.5); border: 1px solid var(--bowl-bark-200);
}
.bowl-references h2 { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.5rem; color: var(--bowl-bark-900); margin: 0; }
.bowl-references ol { margin-top: 16px; padding-left: 20px; font-size: 14px; color: var(--bowl-bark-600); }
.bowl-references li + li { margin-top: 12px; }

/* ---- Author bio ------------------------------------------------ */
.bowl-author {
	display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
	border: 1px solid var(--bowl-bark-200); background: #fff; border-radius: 24px; padding: 32px;
	box-shadow: 0 1px 2px rgba(77,56,44,.04), 0 8px 24px rgba(77,56,44,.06);
}
.bowl-author__avatar { width: 80px; height: 80px; flex-shrink: 0; border-radius: 16px; background: linear-gradient(135deg, var(--bowl-bark-300), var(--bowl-bark-500)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.5rem; }

/* ---- Newsletter CTA -------------------------------------------- */
.bowl-newsletter {
	position: relative; overflow: hidden; border-radius: 24px;
	background: var(--bowl-bark-900); color: var(--bowl-bark-50); padding: 56px;
}
.bowl-newsletter input {
	padding: 12px 20px; border-radius: 999px; background: var(--bowl-bark-800);
	border: 1px solid var(--bowl-bark-700); color: var(--bowl-bark-50);
}
.bowl-newsletter input::placeholder { color: var(--bowl-bark-400); }
.bowl-newsletter button { padding: 12px 24px; border-radius: 999px; background: var(--bowl-leaf-500); color: var(--bowl-bark-900); font-weight: 700; border: 0; cursor: pointer; }
.bowl-newsletter button:hover { background: var(--bowl-leaf-400); }

/* ---- Category header band -------------------------------------- */
.bowl-cat-header { border-bottom: 1px solid var(--bowl-bark-200); padding: 48px 0; }
.bowl-cat-header h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 900; }

/* ---- Pagination ------------------------------------------------ */
.bowl-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.bowl-pagination a, .bowl-pagination span {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
	border: 1px solid var(--bowl-bark-200); color: var(--bowl-bark-700); text-decoration: none;
}
.bowl-pagination a:hover { background: var(--bowl-bark-100); }
.bowl-pagination .current { background: var(--bowl-bark-900); color: var(--bowl-bark-50); border-color: var(--bowl-bark-900); font-weight: 600; }

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
	.bowl-single__grid { grid-template-columns: 1fr; gap: 24px; }
	.bowl-toc { display: none; }
}
@media (max-width: 640px) {
	.bowl-newsletter { padding: 32px; }
	.bowl-author { padding: 24px; }
}
