/*
Theme Name: Wayne Keith
Theme URI: https://waynekeith.io
Author: Wayne Keith
Description: A modern, minimal dark block theme for waynekeith.io — home base for iOS apps and other ventures. Navy, orange and white, with patterns for app landing pages and privacy policies.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waynekeith
*/

:root {
	color-scheme: dark;
}

::selection {
	background: rgba(249, 115, 22, 0.35);
	color: #fff;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Remove root-level gaps so the hero sits flush under the header */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(8, 17, 32, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .header-inner {
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

/* When the title and nav wrap onto two rows on small screens */
.site-header .header-inner .wp-block-group.alignwide {
	row-gap: 0.4rem;
}

/* Signature logo */
.site-signature {
	margin: 0;
}

.site-signature img {
	height: 54px;
	width: auto;
	display: block;
}

.site-signature a:hover img {
	filter: brightness(1.18);
}

@media (max-width: 599px) {
	.site-header .wp-block-navigation {
		font-size: 0.875rem;
	}

	.site-signature img {
		height: 38px;
	}
}

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Sections ---------- */
.section {
	padding-top: clamp(3.5rem, 9vw, 6.5rem);
	padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

.section-tight {
	padding-top: clamp(2rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.glow-hero {
	background:
		radial-gradient(70% 55% at 50% 0%, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0.05) 45%, transparent 70%),
		linear-gradient(180deg, #0e1b2f 0%, #081120 100%);
}

/* ---------- Type helpers ---------- */
.eyebrow {
	color: var(--wp--preset--color--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.text-gradient {
	background: var(--wp--preset--gradient--ember);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.muted,
.muted a {
	color: var(--wp--preset--color--muted);
}

/* ---------- Cards ---------- */
.card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
		var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 20px;
	padding: 1.75rem;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(249, 115, 22, 0.45);
}

.cta-strip {
	text-align: center;
	padding: clamp(2.25rem, 6vw, 3.75rem);
}

.cta-strip:hover {
	transform: none;
}

/* ---------- Images ---------- */
.app-icon img {
	border-radius: 22.5%;
	box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
}

.screenshot-frame img {
	border-radius: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.avatar img {
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-appstore img {
	height: 54px;
	width: auto;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid rgba(255, 255, 255, 0.18);
	color: var(--wp--preset--color--contrast);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	background: transparent;
}

/* ---------- Details / FAQ ---------- */
.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	padding: 1rem 1.25rem;
}

.wp-block-details summary {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer {
	padding-top: 2.25rem;
	padding-bottom: 2.5rem;
}

.site-footer p {
	color: var(--wp--preset--color--muted);
}

.footer-links a {
	color: var(--wp--preset--color--muted);
}

.footer-links a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Misc ---------- */
.site-main {
	min-height: 55vh;
}

a:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.card,
	.card:hover {
		transform: none;
		transition: none;
	}
}
