/*
Theme Name: Carlos B. Sanchez
Theme URI: https://carlosbsanchez.com
Author: Carlos B. Sanchez
Author URI: https://carlosbsanchez.com
Description: Personal block theme for carlosbsanchez.com. Dark "control room" look with a tally-light accent. Edit everything in Appearance > Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carlosbsanchez
*/

/* ---------- Type helpers ---------- */
.display {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 80%;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1;
}

.hero-title {
	font-size: clamp(3rem, 7vw, 5.75rem) !important;
	font-stretch: 78%;
	line-height: 0.95;
	margin: 0;
}

h2.display {
	font-size: var(--wp--preset--font-size--xx-large);
	margin: 0;
}

.eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

.eyebrow.accent {
	color: var(--wp--preset--color--accent);
	letter-spacing: 0.12em;
}

.tally::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	margin-right: 10px;
	vertical-align: 1px;
}

.soft {
	color: var(--wp--preset--color--text-soft);
}

.muted {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.lead {
	font-size: var(--wp--preset--font-size--large);
	max-width: 560px;
}

.arrow-link {
	font-weight: 600;
	margin: 0;
}

.arrow-link a {
	display: inline-block;
	padding: 10px 0;
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 20px;
	padding-bottom: 20px;
}

.site-wordmark,
.site-wordmark a {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 80%;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	margin: 0;
}

.site-header .wp-block-navigation a {
	text-decoration: none;
	padding: 10px 0;
}

/* ---------- Sections ---------- */
.section {
	padding-top: 88px;
	padding-bottom: 88px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.section--hero {
	padding-top: 96px;
	border-top: 0;
}

.section--surface {
	background: var(--wp--preset--color--surface);
}

.section-head {
	align-items: flex-end;
}

.section-head > p {
	max-width: 420px;
	margin: 0;
}

/* ---------- Hero ---------- */
.hero {
	gap: 56px;
}

.hero-copy {
	flex: 999 1 520px;
	min-width: 0;
	gap: 28px;
}

.hero-media {
	flex: 1 1 360px;
	min-width: 0;
}

/* ---------- Cards ---------- */
.cards {
	gap: 20px;
}

.card {
	flex: 1 1 260px;
	min-width: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	padding: 28px;
	gap: 14px;
}

.card h3 {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 85%;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
	margin: 0;
}

.card > .soft {
	flex-grow: 1;
	margin: 0;
}

.section--surface .card {
	background: var(--wp--preset--color--ground);
}

.side-projects {
	gap: 20px;
}

.side-projects > .eyebrow {
	flex: 1 1 100%;
}

.side-project {
	flex: 1 1 360px;
	min-width: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 20px;
	justify-content: space-between;
	align-items: baseline;
}

.side-project h3 {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 85%;
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 4px;
}

.side-project-text {
	flex: 1 1 260px;
	min-width: 0;
}

.side-project-text p {
	margin: 0;
}

/* ---------- Placeholders (delete and drop in an Image block) ---------- */
.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 260px;
	margin: 0;
	padding: 16px;
	box-sizing: border-box;
	border: 1px dashed var(--wp--preset--color--line-strong);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}

.placeholder--tall {
	min-height: 460px;
}

.placeholder--headshot {
	min-height: 360px;
}

.hero-media img,
.gallery-item img,
.about-photo img {
	border-radius: 6px;
	width: 100%;
	display: block;
	object-fit: cover;
}

.hero-media .wp-block-image,
.gallery-item .wp-block-image,
.about-photo .wp-block-image {
	margin: 0;
}

.hero-media img {
	height: 460px;
}

.gallery-item img {
	height: 300px;
}

.about-photo img {
	height: 360px;
}

.gallery-item figcaption {
	font-size: 15px;
	color: var(--wp--preset--color--text-soft);
	text-align: left;
	margin-top: 10px;
}

/* ---------- Writing ---------- */
.writing {
	gap: 56px;
}

.writing-main {
	flex: 999 1 480px;
	min-width: 0;
	gap: 24px;
}

.subscribe {
	flex: 1 1 340px;
	min-width: 0;
	padding: 32px;
}

.wp-block-rss {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-rss .wp-block-rss__item {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 18px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
}

.wp-block-rss .wp-block-rss__item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-rss .wp-block-rss__item-title a {
	font-weight: 600;
	font-size: 19px;
	text-decoration: none;
}

.wp-block-rss .wp-block-rss__item-publish-date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}

.subscribe iframe {
	width: 100%;
	border: 0;
	border-radius: 4px;
}

/* ---------- Work gallery ---------- */
.gallery {
	gap: 16px;
}

.gallery-item {
	flex: 1 1 280px;
	min-width: 0;
	gap: 10px;
}

.gallery-item--wide {
	flex: 2 1 480px;
}

.gallery-item > p:last-child {
	font-size: 15px;
	color: var(--wp--preset--color--text-soft);
	margin: 0;
}

/* ---------- About ---------- */
.about {
	gap: 56px;
	align-items: flex-start;
}

.about-photo {
	flex: 1 1 280px;
	min-width: 0;
}

.about-text {
	flex: 999 1 480px;
	min-width: 0;
	gap: 20px;
}

.about-text p {
	font-size: 19px;
	margin: 0;
}

/* ---------- Contact ---------- */
.contact {
	gap: 56px;
}

.contact-intro {
	flex: 1 1 320px;
	min-width: 0;
	gap: 20px;
}

.contact-form {
	flex: 999 1 480px;
	min-width: 0;
}

/* Form plugin fields pick up the dark look */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--line-strong);
	background: var(--wp--preset--color--ground);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	min-height: 48px;
}

.contact-form label {
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--text);
}

.contact-form button,
.contact-form input[type="submit"] {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ground);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 40px;
	padding-bottom: 48px;
}

.footer-inner {
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}

.footer-about {
	flex: 1 1 420px;
	min-width: 0;
	gap: 8px;
}

.footer-about p {
	margin: 0;
	max-width: 560px;
}

.footer-about .site-wordmark,
.footer-about .site-wordmark a {
	font-size: 18px;
}

.footer-links {
	gap: 4px 24px;
}

.footer-links p {
	margin: 0;
}

.footer-links a {
	display: inline-block;
	padding: 10px 0;
}

/* ---------- Blog / pages ---------- */
.post-list .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 28px 0;
}

.post-list .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0 0 6px;
}

.post-list .wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}

/* Keyboard focus that's easy to see on dark */
:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
