/*
Theme Name: Insight
Description: A clean, editorial block theme for sharing insights and building thought leadership among business leaders. Includes an optional newsletter module (off by default).
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insight
*/

@media (prefers-color-scheme: dark) {
	html:root body {
		--wp--preset--color--base: #14171a;
		--wp--preset--color--surface: #1c2024;
		--wp--preset--color--contrast: #eceae5;
		--wp--preset--color--muted: #9aa1a9;
		--wp--preset--color--line: #2c3237;
		--wp--preset--color--accent: #7fb7c8;
		--wp--preset--color--accent-ink: #0f1a1e;
		--wp--preset--color--tint: #1a2327;
	}
}

a { text-underline-offset: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Header */
.insight-header { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 20px; }
.insight-nav { gap: 16px; }
.insight-nav .wp-block-site-title { font-family: var(--wp--preset--font-family--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.insight-nav .wp-block-site-title a { color: inherit; text-decoration: none; }
.insight-menu { font-family: var(--wp--preset--font-family--sans); font-size: 15px; }
.insight-menu a { color: var(--wp--preset--color--muted); text-decoration: none; }
.insight-menu a:hover, .insight-menu .current-menu-item > a { color: var(--wp--preset--color--contrast); }
.insight-btn { display: inline-block; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent-ink); padding: 11px 20px; border-radius: 6px; font: 600 15px var(--wp--preset--font-family--sans); text-decoration: none; border: 0; cursor: pointer; }
.insight-btn:hover { opacity: .9; }

/* Type helpers */
.eyebrow, .eyebrow a { font-family: var(--wp--preset--font-family--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--accent); text-decoration: none; margin: 0; }
.meta, .meta a { font-family: var(--wp--preset--font-family--sans); font-size: 13px; color: var(--wp--preset--color--muted); text-decoration: none; margin: 0; }
.lead { font-size: 20px; color: var(--wp--preset--color--muted); }
.dek { font-size: 21px; line-height: 1.5; color: var(--wp--preset--color--muted); }
.insight-sec { font: 700 15px var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--wp--preset--color--line); margin-bottom: 24px; }
.wp-block-post-featured-image img { border-radius: 8px; background: var(--wp--preset--color--tint); }
.wp-block-post-template { list-style: none; padding: 0; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 16px; line-height: 1.55; }
.wp-block-quote { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 24px; font-size: 24px; line-height: 1.45; font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); padding: 6px 15px; border-radius: 99px; font: 14px var(--wp--preset--font-family--sans); text-decoration: none; }
.chips .separator { display: none; }

/* Home */
.insight-hero { gap: 48px; padding-block: 72px 56px; }
.insight-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; }
.insight-card .wp-block-post-featured-image img { border-radius: 0; }
.insight-card-body { padding: 22px; }
.insight-grid .wp-block-post-featured-image { margin-bottom: 14px; }
.insight-grid .wp-block-post-title { margin: 6px 0 8px; }
.insight-about { gap: 24px; padding-block: 32px 64px; }
.insight-avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--wp--preset--color--accent); opacity: .85; }

/* Archive rows */
.insight-rows .wp-block-columns { gap: 24px; margin: 0; padding-block: 24px; border-bottom: 1px solid var(--wp--preset--color--line); }
.insight-rows .wp-block-post-title { margin: 4px 0 6px; line-height: 1.3; }
.insight-head { padding-block: 56px 24px; }
.insight-tools { padding-block: 20px; border-block: 1px solid var(--wp--preset--color--line); margin-bottom: 8px; }
.wp-block-query-pagination { font: 15px var(--wp--preset--font-family--sans); padding-block: 32px 64px; }

/* Post */
.insight-post-head { padding-block: 56px 28px; }
.insight-byline { padding-block: 16px; border-block: 1px solid var(--wp--preset--color--line); gap: 12px; font: 14px var(--wp--preset--font-family--sans); color: var(--wp--preset--color--muted); }
.insight-byline p { margin: 0; }
.insight-byline .wp-block-post-author__name { color: var(--wp--preset--color--contrast); font-weight: 600; }
.insight-share { display: flex; gap: 16px; padding-block: 16px; border-top: 1px solid var(--wp--preset--color--line); font: 14px var(--wp--preset--font-family--sans); color: var(--wp--preset--color--muted); }
.insight-share a { color: inherit; }
.insight-author { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 24px; margin-block: 24px 64px; }

/* Pages */
.insight-pillar { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 24px; }
.insight-cta { background: var(--wp--preset--color--tint); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 44px; text-align: center; margin-block: 64px; }

/* Newsletter */
.insight-news { background: var(--wp--preset--color--tint); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-block: 64px; font-family: var(--wp--preset--font-family--sans); max-width: var(--wp--style--global--wide-size, 1080px); margin-inline: auto; }
.insight-news h2 { font: 700 28px/1.2 var(--wp--preset--font-family--serif); margin: 0 0 8px; }
.insight-news p { margin: 0; color: var(--wp--preset--color--muted); }
.insight-news form { display: flex; gap: 8px; flex-wrap: wrap; }
.insight-news input[type="email"] { flex: 1; min-width: 180px; padding: 12px 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); font-size: 15px; }
.insight-mail { max-width: 640px; margin: 12px auto 0; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; overflow: hidden; }
.insight-mast { text-align: center; padding: 36px 40px 28px; border-bottom: 3px solid var(--wp--preset--color--accent); }
.insight-mast .insight-mast-name { font: 700 34px/1.15 var(--wp--preset--font-family--serif); letter-spacing: -.02em; margin: 8px 0 6px; }
.insight-mast .meta { margin: 0; }
.insight-mail-body { padding: 32px 40px; }
.insight-mail-foot { padding: 24px 40px; font: 13px var(--wp--preset--font-family--sans); color: var(--wp--preset--color--muted); text-align: center; background: var(--wp--preset--color--base); margin: 0; }
.insight-issues .wp-block-group { padding-block: 12px; border-bottom: 1px solid var(--wp--preset--color--line); }

/* Footer */
.insight-footer { border-top: 1px solid var(--wp--preset--color--line); padding-block: 28px; font: 14px var(--wp--preset--font-family--sans); color: var(--wp--preset--color--muted); }
.insight-footer .wp-block-site-title { font-size: 14px; font-weight: 400; margin: 0; }

@media (max-width: 781px) {
	.insight-hero { padding-block: 40px 32px; }
	.insight-news { grid-template-columns: 1fr; padding: 28px; }
	.insight-mast, .insight-mail-body, .insight-mail-foot { padding-inline: 24px; }
	.insight-cta { padding: 28px; }
}
