/*
Theme Name: Joel Hinchliffe
Theme URI: https://joelhinchliffe.com/
Author: Joel Hinchliffe
Author URI: https://joelhinchliffe.com/
Description: A lightweight, full-width block theme for Joel Hinchliffe's personal profile site.
Requires at least: 6.6
Tested up to: 7.1
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: joelhinchliffe
*/

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
[id] { scroll-margin-top: 88px; }

/* Remove default gaps between full-width sections and template parts */
.wp-site-blocks > * + * { margin-block-start: 0; }
.jh-sections > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* Header */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.jh-header { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--wp--preset--color--border); }
.jh-brand a { color: var(--wp--preset--color--navy); text-decoration: none; }
.jh-brand a:hover { color: var(--wp--preset--color--accent); }

/* Small uppercase label above headings */
.jh-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }

/* Hero */
.jh-hero { position: relative; overflow: hidden; }
.jh-hero::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(31, 122, 224, 0.10) 45%, rgba(15, 42, 68, 0) 70%); pointer-events: none; }
.jh-hero > * { position: relative; }
.jh-panel { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.jh-panel .jh-panel-stat { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1rem; }

/* Cards */
.jh-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--border); border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 42, 68, 0.04), 0 8px 24px rgba(15, 42, 68, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; height: 100%; box-sizing: border-box; }
.jh-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 42, 68, 0.05), 0 16px 36px rgba(15, 42, 68, 0.10); border-color: #cfd8e3; }
@media (prefers-reduced-motion: reduce) { .jh-card, .jh-card:hover { transition: none; transform: none; } }
.jh-stat .jh-stat-num { line-height: 1; letter-spacing: -0.02em; }
.jh-award { border-left: 4px solid var(--wp--preset--color--accent); }
.jh-award--top { border-left-color: var(--wp--preset--color--teal); background: linear-gradient(135deg, #ffffff 0%, #eefaf8 100%); }

/* Lists */
.jh-checks { list-style: none; padding-left: 0; }
.jh-checks li { position: relative; padding-left: 1.6em; }
.jh-checks li + li { margin-top: 0.45em; }
.jh-checks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--wp--preset--color--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.jh-bullets { padding-left: 1.2em; }
.jh-bullets li + li { margin-top: 0.4em; }
.jh-bullets li::marker { color: var(--wp--preset--color--accent); }

/* Timeline */
.jh-timeline { position: relative; padding-left: 2rem; }
.jh-timeline::before { content: ""; position: absolute; left: 6px; top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--teal)); border-radius: 2px; }
.jh-role { position: relative; }
.jh-role::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: 0.4em; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--white); border: 3px solid var(--wp--preset--color--accent); box-sizing: border-box; }
.jh-role--current::before { background: var(--wp--preset--color--teal); border-color: var(--wp--preset--color--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2); }
.jh-date { font-variant-numeric: tabular-nums; }
.jh-company-head { border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: 1rem; }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.jh-btn-light .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); }
.jh-btn-light .wp-block-button__link:hover { background: var(--wp--preset--color--soft); color: var(--wp--preset--color--navy); }
.jh-btn-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.jh-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); color: var(--wp--preset--color--white); box-shadow: inset 0 0 0 2px #ffffff; }

/* Links on dark backgrounds */
.has-navy-background-color a:not(.wp-element-button), .has-navy-deep-background-color a:not(.wp-element-button) { color: #9fd8ff; }

@media (max-width: 781px) {
	.jh-hero-cols { gap: 2rem !important; }
	.jh-timeline { padding-left: 1.6rem; }
	.jh-role::before { left: calc(-1.6rem + 1px); }
}

@media (max-width: 600px) {
	.jh-card { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
	.jh-timeline { padding-left: 1.4rem; }
	.jh-role::before { left: calc(-1.4rem + 1px); }
}

/* Headshot (never cropped: full square, rounded corners only) */
.jh-photo { margin-bottom: 0; }
.jh-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); }
.jh-hero-cols > .wp-block-column:last-child > * + * { margin-top: var(--wp--preset--spacing--40); }
@media (max-width: 781px) { .jh-photo { max-width: 320px; } }

/* Travel map */
.jh-map img { display: block; width: 100%; height: auto; border: 1px solid var(--wp--preset--color--border); box-shadow: 0 1px 2px rgba(15, 42, 68, 0.04), 0 8px 24px rgba(15, 42, 68, 0.06); background: #ffffff; }
.jh-place .wp-block-heading { line-height: 1.3; }
