/*
Theme Name: Faisal Portfolio
Theme URI: https://github.com/fai-sal/faisal-portfolio
Author: Faisal Ahmed
Author URI: https://github.com/fai-sal
Description: A minimal, editorial full site editing (FSE) block theme for a senior engineer's portfolio. Built entirely on WordPress core blocks — no page builder, no external dependencies.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faisal-portfolio
Tags: portfolio, blog, one-column, block-patterns, full-site-editing, editor-style, block-styles, wide-blocks
*/

/*
 * Nearly all styling lives in theme.json. Only rules that theme.json
 * cannot express belong here.
 */

/* Accent underline on inline links inside content */
.wp-block-post-content a:where(:not(.wp-element-button)) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

/* Experience accordion (core/details) */
.fa-accordion {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--40) 0;
}
.fa-accordion summary {
	cursor: pointer;
	list-style: none;
	display: block;
}
.fa-accordion summary::-webkit-details-marker { display: none; }
.fa-accordion summary::after {
	content: "+";
	float: right;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wp--preset--color--muted);
}
.fa-accordion[open] summary::after { content: "\2013"; }
.fa-accordion summary:hover { background: var(--wp--preset--color--surface); }

/* Stat cells */
.fa-stats .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}
.fa-stats .wp-block-column:last-child {
	border-right: 1px solid var(--wp--preset--color--line);
}

/* Section rule: heading followed by a hairline */
.fa-section-title {
	display: flex;
	align-items: baseline;
	gap: 1rem;
}
.fa-section-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--line);
}

/* Sticky header */
.fa-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(6px);
}
.admin-bar .fa-header { top: 32px; }

@media (max-width: 781px) {
	.fa-stats .wp-block-column { border-right: 1px solid var(--wp--preset--color--line); }
	.fa-header { position: static; }
}
