/*!
Theme Name: Pipeline
Theme URI: https://github.com/able2create/underscores-a2c-modern
Author: able2create
Author URI: https://able2create.com
Description: A minimal, modern WordPress starter theme. Built with PHP 8.4+, pure CSS/JS. No build process. Plugin-friendly. Based on Underscores.
Version: 3.1.3
Tested up to: 7.1
Requires at least: 6.7
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pipeline
Tags: accessibility-ready, custom-background, custom-logo, custom-menu, featured-images, translation-ready, one-column

Based on Underscores https://underscores.me/
*/

/*--------------------------------------------------------------
# CSS Reset
--------------------------------------------------------------*/
*, *::before, *::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

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

body {
	line-height: 160%;
	-webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input, button, textarea, select {
	font: inherit;
}

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
	/* Colors (single source: theme.json palette) */
	--color-text: var(--wp--preset--color--secondary, #404040);
	--color-heading: var(--wp--preset--color--contrast, #1a1a1a);
	--color-link: var(--wp--preset--color--primary, #4169e1);
	--color-link-hover: var(--wp--preset--color--contrast, #1a1a1a);
	--color-border: var(--wp--preset--color--border, #cccccc);
	--color-bg: var(--wp--preset--color--base, #ffffff);
	--color-bg-alt: var(--wp--preset--color--surface, #f5f5f5);

	/* Typography */
	--font-base: var(--wp--preset--font-family--system, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	--font-code: var(--wp--preset--font-family--monospace, ui-monospace, Menlo, Monaco, monospace);

	/* Layout */
	--content-width: 800px;
	--wide-width: 1200px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 18px;
	line-height: 160%;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	color: var(--color-heading);
	font-weight: 700;
	line-height: 120%;
	margin-bottom: 24px;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
	margin-bottom: 24px;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
hr {
	background: var(--color-border);
	border: 0;
	height: 1px;
	margin: 24px 0;
}

ul, ol {
	margin: 0 0 24px 32px;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

blockquote {
	margin: 0 24px;
	padding-left: 24px;
	border-left: 4px solid var(--color-border);
	font-style: italic;
}

pre {
	background: var(--color-bg-alt);
	font-family: var(--font-code);
	font-size: 16px;
	line-height: 160%;
	margin-bottom: 24px;
	overflow: auto;
	padding: 20px;
}

code {
	font-family: var(--font-code);
	font-size: 16px;
	background: var(--color-bg-alt);
	padding: 2px 6px;
}

table {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
}

th, td {
	padding: 12px;
	border: 1px solid var(--color-border);
	text-align: left;
}

th {
	font-weight: 700;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
	color: var(--color-link);
	text-decoration: none;
}

a:hover {
	color: var(--color-link-hover);
	text-decoration: underline;
}

a:focus {
	outline: 2px dotted currentColor;
	outline-offset: 2px;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	background: var(--color-link);
	border: none;
	color: #ffffff;
	padding: 12px 24px;
	cursor: pointer;
	font-weight: 600;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--color-link-hover);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	border: 1px solid var(--color-border);
	padding: 8px 12px;
	width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--color-link);
	outline: 2px solid var(--color-link);
	outline-offset: 0;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	padding: 48px 0;
}

.content-area {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 24px;
}

.no-sidebar .content-area {
	max-width: var(--content-width);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation {
	background: var(--color-bg-alt);
	padding: 16px 0;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.main-navigation li,
.footer-navigation li {
	margin: 0;
}

.footer-navigation {
	margin-bottom: 16px;
}

.footer-navigation a {
	display: inline-block;
	padding: 4px 0;
}

.main-navigation a {
	color: var(--color-text);
	padding: 8px 16px;
	display: block;
}

.main-navigation a:hover {
	color: var(--color-link);
	text-decoration: none;
}

/*--------------------------------------------------------------
# Posts
--------------------------------------------------------------*/
.post,
.page {
	margin-bottom: 48px;
}

.entry-header {
	margin-bottom: 24px;
}

.entry-title {
	margin-bottom: 12px;
}

.entry-meta {
	font-size: 16px;
	color: #666666;
}

.entry-content {
	margin-top: 24px;
}

.entry-footer {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	font-size: 16px;
}

.post-thumbnail {
	margin-bottom: 24px;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comments-area {
	margin-top: 48px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	padding: 20px;
	margin-bottom: 24px;
	background: var(--color-bg-alt);
}

.comment-author {
	font-weight: 700;
}

.comment-metadata {
	font-size: 14px;
	color: #666666;
}

.children {
	list-style: none;
	padding-left: 32px;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin-bottom: 48px;
}

.widget-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget li {
	padding: 8px 0;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 14px;
	text-align: center;
	color: #666666;
	margin-top: 8px;
}

.gallery {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 782px) {
	.gallery-columns-4,
	.gallery-columns-5,
	.gallery-columns-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.gallery-columns-3,
	.gallery-columns-4,
	.gallery-columns-5,
	.gallery-columns-6 { grid-template-columns: repeat(2, 1fr); }
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--color-bg-alt);
	clip: auto !important;
	clip-path: none;
	color: var(--color-link);
	display: block;
	font-size: 16px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 16px 24px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	float: left;
	margin: 0 24px 24px 0;
}

.alignright {
	float: right;
	margin: 0 0 24px 24px;
}

.aligncenter {
	display: block;
	margin: 0 auto 24px;
}
