/* SemiColonWeb Blog — Medium-style reading experience
   Brand tokens inherited from the main site (cream / slate / green). */

:root {
	--bg: #E5E3CE;
	--surface: #FFFFFF;
	--text: #233A48;
	--muted: #5C6F7B;
	--accent: #436E67;
	--accent-soft: #BED0A6;
	--rule: rgba(35, 58, 72, .14);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--measure); }

/* ---------------------------------------------------------------- header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(229, 227, 206, .88);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--rule);
}
.site-header .bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; height: 64px;
}
.brand { display: flex; align-items: baseline; gap: .5rem; font-weight: 700; letter-spacing: -.01em; }
.brand .mark { font-family: var(--serif); font-size: 1.35rem; font-weight: 800; }
.brand .sub {
	font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
	color: var(--accent); font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.nav a { color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .cta {
	background: var(--text); color: var(--bg);
	padding: .5rem .95rem; border-radius: 999px; font-weight: 600;
}
.nav .cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 780px) { .nav .hide-sm { display: none; } }

/* ------------------------------------------------------------- category */
.cat-strip { border-bottom: 1px solid var(--rule); background: transparent; }
.cat-strip .row {
	display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 0;
	scrollbar-width: none;
}
.cat-strip .row::-webkit-scrollbar { display: none; }
.pill {
	flex: 0 0 auto; font-size: .84rem; font-weight: 500; color: var(--muted);
	padding: .35rem .85rem; border-radius: 999px; border: 1px solid transparent;
}
.pill:hover { color: var(--text); border-color: var(--rule); }
.pill[aria-current="page"] { background: var(--text); color: var(--bg); }

/* ----------------------------------------------------------------- hero */
.masthead { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.masthead h1 {
	font-family: var(--serif); font-weight: 800; letter-spacing: -.02em;
	font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 .75rem;
}
.masthead p { margin: 0; max-width: 38rem; color: var(--muted); font-size: 1.08rem; }

/* ----------------------------------------------------------------- feed */
.feed { padding: 2.5rem 0 1rem; }
.feed-item {
	display: grid; grid-template-columns: 1fr 190px; gap: 2rem;
	padding: 2rem 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.feed-item:first-child { padding-top: .5rem; }
.feed-meta {
	font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--accent); font-weight: 600; margin-bottom: .55rem;
}
.feed-meta .dot { color: var(--muted); opacity: .6; margin: 0 .45rem; }
.feed-meta .when { color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.feed-item h2 {
	font-family: var(--serif); font-size: 1.6rem; line-height: 1.2;
	margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em;
}
.feed-item h2 a:hover { color: var(--accent); }
.feed-item p { margin: 0 0 .75rem; color: var(--muted); font-size: 1rem; }
.feed-foot { font-size: .82rem; color: var(--muted); display: flex; gap: .75rem; align-items: center; }
.feed-thumb { border-radius: 10px; overflow: hidden; background: var(--accent-soft); aspect-ratio: 4/3; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
	.feed-item { grid-template-columns: 1fr; gap: 1rem; }
	.feed-thumb { order: -1; aspect-ratio: 16/9; }
	.feed-item h2 { font-size: 1.35rem; }
}

/* ------------------------------------------------------------ pagination */
.pager { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0 4rem; gap: 1rem; }
.pager a, .pager span {
	font-size: .9rem; font-weight: 600; padding: .6rem 1.1rem;
	border-radius: 999px; border: 1px solid var(--rule); color: var(--text);
}
.pager a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager .muted { color: var(--muted); border: 0; }

/* --------------------------------------------------------------- article */
.article { padding: 3rem 0 1rem; }
.article-head { max-width: var(--measure); margin: 0 auto 2rem; }
.kicker {
	font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
	color: var(--accent); font-weight: 700; margin-bottom: 1rem; display: block;
}
.article-head h1 {
	font-family: var(--serif); font-weight: 800; letter-spacing: -.022em;
	font-size: clamp(2.1rem, 5.2vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem;
}
.standfirst { font-size: 1.2rem; color: var(--muted); line-height: 1.55; margin: 0 0 1.75rem; }
.byline {
	display: flex; align-items: center; gap: .8rem;
	padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
	font-size: .9rem; color: var(--muted);
}
.avatar {
	width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
	background: var(--text); color: var(--bg); display: grid; place-items: center;
	font-family: var(--serif); font-weight: 800; font-size: 1.1rem;
}
.byline strong { color: var(--text); font-weight: 600; display: block; font-size: .95rem; }

.hero-figure { max-width: 60rem; margin: 2.5rem auto; }
.hero-figure img { width: 100%; border-radius: 12px; }
.hero-figure figcaption, figure figcaption {
	font-size: .84rem; color: var(--muted); text-align: center; margin-top: .7rem; font-style: italic;
}

/* Prose — the reading column */
.prose { max-width: var(--measure); margin: 0 auto; font-size: 1.16rem; line-height: 1.75; }
.prose > * { margin: 0 0 1.5rem; }
.prose h2 {
	font-family: var(--serif); font-size: 1.9rem; line-height: 1.22; font-weight: 700;
	letter-spacing: -.015em; margin: 3rem 0 1rem; scroll-margin-top: 90px;
}
.prose h3 {
	font-size: 1.32rem; font-weight: 700; margin: 2.25rem 0 .85rem;
	letter-spacing: -.008em; scroll-margin-top: 90px;
}
.prose h4 { font-size: 1.1rem; font-weight: 700; margin: 1.8rem 0 .7rem; }
.prose p { margin: 0 0 1.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1.5rem; }
.prose li { margin: 0 0 .6rem; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; color: var(--text); }
.prose blockquote {
	margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem;
	border-left: 3px solid var(--accent); color: var(--muted);
	font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.5;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 2.5rem 0; }
.prose figure img { border-radius: 10px; width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.75rem 0; }

/* Code */
.prose pre {
	background: #1B2B35; color: #E8EEF2; border-radius: 10px;
	padding: 1.15rem 1.25rem; overflow-x: auto; font-size: .88rem; line-height: 1.6;
	margin: 1.75rem 0;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose code {
	background: rgba(35, 58, 72, .08); padding: .15em .4em; border-radius: 4px;
	font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Tables */
.prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .96rem; }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: rgba(35, 58, 72, .05); }
.table-scroll { overflow-x: auto; margin: 1.75rem 0; }

/* Key takeaways / callouts */
.prose .callout, .prose .key-takeaways {
	background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
	border-radius: 10px; padding: 1.25rem 1.4rem; margin: 2rem 0;
}
.prose .callout > :last-child, .prose .key-takeaways > :last-child { margin-bottom: 0; }
.prose .key-takeaways h3, .prose .callout h3 { margin-top: 0; font-size: 1.05rem; }

/* FAQ */
.prose .faq-item {
	border-bottom: 1px solid var(--rule); padding: 1.1rem 0; margin: 0;
}
.prose .faq-item h3 { margin: 0 0 .5rem; font-size: 1.08rem; }
.prose .faq-item p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- tags/CTA */
.tag-row { max-width: var(--measure); margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
	font-size: .8rem; color: var(--muted); background: rgba(35, 58, 72, .06);
	padding: .35rem .8rem; border-radius: 999px;
}
.share { max-width: var(--measure); margin: 2rem auto; display: flex; gap: .6rem; align-items: center; font-size: .85rem; color: var(--muted); }
.share a {
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--rule); color: var(--muted); font-size: .8rem; font-weight: 700;
}
.share a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Product CTA. Hierarchy: eyebrow -> hook -> one featured product -> 3 compact
   cards. Category-aware: post.php reorders so the most relevant product leads. */
.cta-band {
	max-width: var(--measure); margin: 3.5rem auto; color: var(--bg);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(67, 110, 103, .55) 0%, rgba(67, 110, 103, 0) 55%),
		var(--text);
	border-radius: 18px; padding: 2.1rem 2.1rem 2.2rem; overflow: hidden;
}
.cta-eyebrow {
	margin: 0 0 .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--accent-soft); opacity: .85;
}
.cta-band h3 {
	font-family: var(--serif); font-size: 1.6rem; line-height: 1.22;
	margin: 0 0 .5rem; color: #fff; letter-spacing: -.01em;
}
.cta-intro {
	margin: 0 0 1.5rem; color: rgba(229, 227, 206, .72);
	font-size: .95rem; line-height: 1.55; max-width: 34rem;
}

/* Featured product */
.cta-lead {
	display: block; text-decoration: none; color: inherit;
	background: rgba(229, 227, 206, .07); border: 1px solid rgba(229, 227, 206, .16);
	border-radius: 13px; padding: 1.15rem 1.25rem 1.2rem; margin-bottom: .85rem;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.cta-lead:hover {
	background: rgba(229, 227, 206, .12); border-color: rgba(190, 208, 166, .5);
	transform: translateY(-2px);
}
.cta-lead-top { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .4rem; }
.cta-lead-name { font-size: 1.06rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.cta-pill {
	font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--accent-soft); border: 1px solid rgba(190, 208, 166, .42);
	border-radius: 999px; padding: .2rem .55rem; line-height: 1.4;
}
.cta-lead-blurb {
	display: block; font-size: .92rem; line-height: 1.6;
	color: rgba(229, 227, 206, .78); margin-bottom: .8rem;
}
.cta-lead-go {
	display: inline-flex; align-items: center; gap: .4rem;
	font-size: .87rem; font-weight: 650; color: var(--accent-soft);
}
.cta-lead-go svg { transition: transform .18s ease; }
.cta-lead:hover .cta-lead-go svg { transform: translateX(3px); }

/* Secondary products */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.cta-card {
	display: flex; flex-direction: column; gap: .22rem; text-decoration: none;
	background: rgba(229, 227, 206, .05); border: 1px solid rgba(229, 227, 206, .12);
	border-radius: 11px; padding: .85rem .9rem;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.cta-card:hover {
	background: rgba(229, 227, 206, .11); border-color: rgba(190, 208, 166, .42);
	transform: translateY(-2px);
}
.cta-card-name { font-size: .87rem; font-weight: 700; color: #fff; line-height: 1.3; }
.cta-card-blurb { font-size: .78rem; line-height: 1.45; color: rgba(229, 227, 206, .62); }

@media (max-width: 560px) {
	.cta-band { padding: 1.6rem 1.3rem 1.7rem; border-radius: 15px; }
	.cta-band h3 { font-size: 1.35rem; }
	.cta-grid { grid-template-columns: 1fr; gap: .5rem; }
	.cta-card { flex-direction: row; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- related */
/* Constrained to the same reading measure as .prose/.cta-band/.tag-row so the
   whole article column stays on one vertical axis instead of breaking out to
   the full 68rem .wrap width. */
.related {
	max-width: var(--measure); margin: 3.5rem auto 0;
	border-top: 1px solid var(--rule); padding: 2.5rem 0 1rem;
}
.related h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rel-card .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: var(--accent-soft); margin-bottom: .8rem; }
.rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-card h3 { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; margin: 0 0 .4rem; font-weight: 700; }
.rel-card .m { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; margin-bottom: .4rem; }
@media (max-width: 780px) { .related-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ----------------------------------------------------------------- footer */
.site-footer {
	border-top: 1px solid var(--rule); margin-top: 4rem; padding: 2.5rem 0 3rem;
	font-size: .88rem; color: var(--muted);
}
.site-footer .cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ misc */
.empty { padding: 4rem 0; color: var(--muted); text-align: center; }
.skip {
	position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg);
	padding: .7rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Reading progress bar */
#progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0%;
	background: var(--accent); z-index: 60; transition: width .1s linear;
}
