/*
Theme Name: Owen Oliver
Theme URI: https://owenoliver.io
Author: Owen Oliver
Description: Portfolio theme for owenoliver.io — robotics, motorsport, resume and blog.
Requires at least: 6.5
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: owen-oliver
*/

body {
	margin: 0;
	background-color: #0B0B0C;
	background-image:
		linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.oo-pad { padding-left: 32px; padding-right: 32px; }

/* header */
.oo-header { padding: 24px 32px; }
.oo-nav { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.oo-brand { font-size: 18px; line-height: 1.1; font-weight: 400; width: 110px; }
.oo-navitem { display: flex; gap: 10px; min-height: 44px; color: #EDEDED; }
.oo-navitem svg { flex-shrink: 0; }
.oo-navtext { display: flex; flex-direction: column; gap: 3px; }
.oo-navtitle { font-size: 18px; line-height: 1; }
.oo-navsub { font-size: 10px; line-height: 1.3; color: #8A8D91; }
.oo-navitem[aria-current="page"], .oo-navitem[aria-current="page"] .oo-navsub { color: #FF6A2B; }

/* shared bits */
.oo-label { font-size: 12px; color: #8A8D91; margin: 0; }
.oo-dot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #B8BBBF; margin: 0; }
.oo-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF5B1F; flex-shrink: 0; }
.oo-dot p { margin: 0; }
.oo-display { font-size: clamp(56px, 9vw, 128px) !important; font-weight: 300; line-height: 0.95 !important; letter-spacing: -0.04em; margin: 0; }
.oo-pagehead { padding: 72px 32px 48px; border-bottom: 1px solid #222326; display: flex; flex-direction: column; gap: 16px; }
.oo-pagehead p, .oo-pagehead .wp-block-term-description p { margin: 0; max-width: 640px; font-size: 18px; color: #A6A9AD; }
.oo-media { background: #151617; border: 1px solid #1E1F21; overflow: hidden; position: relative; }
.oo-square { aspect-ratio: 1 / 1; }
.oo-43 { aspect-ratio: 4 / 3; }
.oo-169 { aspect-ratio: 16 / 9; }
.oo-media .wp-block-post-featured-image { margin: 0; height: 100%; }
.oo-media .wp-block-post-featured-image a { display: block; height: 100%; }
.oo-media img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.oo-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid #EDEDED; border-radius: 22px; font-size: 14px; font-weight: 400; }

/* home */
.oo-hero { min-height: max(640px, 82vh); padding: 0 32px 40px !important; }
.oo-hero .wp-block-cover__inner-container { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.oo-hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; }
.oo-hero p { margin: 0; }
.oo-intro { display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 96px 32px; border-bottom: 1px solid #222326; }
.oo-intro > .oo-lede { flex: 2 1 480px; min-width: 0; margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; }
.oo-intro > .oo-aside { flex: 1 1 280px; min-width: 0; font-size: 14px; line-height: 1.6; color: #A6A9AD; }
.oo-intro .oo-aside p { margin: 0 0 14px; }
.oo-block { padding: 64px 32px 96px; }
.oo-blockhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.oo-blockhead h2 { font-size: 18px; font-weight: 400; margin: 0; letter-spacing: 0; }
.oo-tiles .wp-block-post-template { gap: 32px 24px !important; }
.oo-tile-title { font-size: 16px !important; font-weight: 400; margin: 12px 0 2px !important; letter-spacing: 0; line-height: 1.3; }
.oo-tiles .wp-block-post-excerpt { margin: 0; }
.oo-tiles .wp-block-post-excerpt p { margin: 0; font-size: 12px; color: #8A8D91; }
.oo-background { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 72px 32px; border-top: 1px solid #222326; }
.oo-background h2 { flex: 1 1 200px; font-size: 18px; font-weight: 400; margin: 0; letter-spacing: 0; }
.oo-background p { flex: 3 1 480px; min-width: 0; margin: 0; font-size: 18px; line-height: 1.55; color: #A6A9AD; }

/* project archives */
.oo-projects .wp-block-post-template { margin: 0; }
.oo-project { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; padding: 56px 32px; border-bottom: 1px solid #222326; }
.oo-project > .oo-media { flex: 3 1 520px; min-width: 0; }
.oo-project-body { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.oo-project-body > * { margin: 0 !important; }
.oo-project-body .wp-block-post-title { font-size: 36px; line-height: 1.05; }
.oo-project-body .wp-block-post-content p { font-size: 15px; line-height: 1.6; color: #A6A9AD; margin: 0 0 20px; }
.oo-specs { margin: 0; }
.oo-specs table { width: 100%; border-collapse: collapse; font-size: 13px; }
.oo-specs td { border: 0; border-bottom: 1px solid #2A2B2E; padding: 10px 0; vertical-align: top; }
.oo-specs tr:first-child td { border-top: 1px solid #2A2B2E; }
.oo-specs td:first-child { color: #8A8D91; padding-right: 16px; white-space: nowrap; }
.oo-specs td:last-child { text-align: right; }

/* pages: resume */
.oo-section { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 56px 32px; border-bottom: 1px solid #222326; margin: 0 !important; }
.oo-section > .oo-section-title { flex: 1 1 200px; font-size: 18px; font-weight: 400; margin: 0; letter-spacing: 0; }
.oo-section > .oo-section-body { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; margin: 0; }
.oo-section-body > * { margin: 0; }
.oo-job { display: flex; flex-direction: column; gap: 8px; }
.oo-job > * { margin: 0 !important; }
.oo-job h3 { font-size: 24px; }
.oo-job ul { padding-left: 18px; font-size: 14px; line-height: 1.6; color: #A6A9AD; }
.oo-skills { border-top: 1px solid #2A2B2E; }
.oo-skills p { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; margin: 0; border-bottom: 1px solid #2A2B2E; font-size: 14px; line-height: 1.5; }
.oo-skills strong { width: 140px; font-weight: 300; color: #8A8D91; }
.oo-edu h3 { font-size: 18px; font-weight: 400; letter-spacing: 0; margin: 0; }
.oo-edu p { margin: 2px 0 0; font-size: 14px; color: #A6A9AD; }
.oo-note { padding: 40px 32px; font-size: 14px; color: #A6A9AD; margin: 0 !important; }

/* pages: contact */
.oo-contact { padding: 48px 32px 120px; }
.oo-rows { border-top: 1px solid #222326; max-width: 1100px; }
.oo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid #222326; color: #EDEDED; }
.oo-row .oo-val { font-size: clamp(24px, 3.4vw, 44px); font-weight: 300; letter-spacing: -0.02em; }

/* blog */
.oo-postlist { padding: 32px 32px 96px; }
.oo-postrow { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #222326; }
.oo-postrow > * { margin: 0 !important; }
.oo-postrow .wp-block-post-date { width: 120px; font-size: 12px; color: #8A8D91; }
.oo-postrow .wp-block-post-title { flex: 1 1 360px; min-width: 0; font-size: 22px; }
.oo-postrow .wp-block-post-terms { font-size: 12px; color: #8A8D91; }
.oo-article { padding: 72px 32px 96px; }
.oo-article .oo-article-head { max-width: 900px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.oo-article .oo-article-head > * { margin: 0; }
.oo-article h1.wp-block-post-title { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.oo-article .wp-block-post-featured-image { margin: 0 0 56px; }
.oo-article .wp-block-post-content { max-width: 720px; font-size: 18px; line-height: 1.7; color: #CFD1D4; }
.oo-article .wp-block-post-content h2 { font-size: 28px; color: #EDEDED; margin-top: 40px; }
.oo-article .wp-block-post-content a { text-decoration: underline; text-underline-offset: 3px; }
.oo-article .wp-block-post-content pre { background: #151617; border: 1px solid #2A2B2E; padding: 20px; font-size: 13px; overflow-x: auto; }
.oo-article figcaption { font-size: 12px; color: #8A8D91; }
.oo-postnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 32px; border-top: 1px solid #222326; font-size: 14px; }

/* footer */
.oo-footer { padding: 48px 32px; border-top: 1px solid #222326; display: flex; flex-wrap: wrap; gap: 24px 64px; font-size: 14px; }
.oo-footer > div { display: flex; flex-direction: column; gap: 4px; }
.oo-footer .oo-copy { margin-left: auto; align-self: flex-end; font-size: 12px; color: #8A8D91; }

@media (max-width: 600px) {
	.oo-header, .oo-pad, .oo-intro, .oo-block, .oo-background, .oo-project, .oo-section, .oo-pagehead, .oo-contact, .oo-postlist, .oo-article, .oo-footer, .oo-note, .oo-postnav { padding-left: 20px !important; padding-right: 20px !important; }
	.oo-hero { padding: 0 20px 32px !important; }
	.oo-nav { gap: 16px 28px; }
	.oo-brand { width: 100%; }
}

/* page title + page content spacing */
.oo-pagetitle { padding: 72px 32px 16px; }
.oo-page > * { margin-block-start: 0; }
.oo-pagehead-tail { padding-top: 0 !important; }
.oo-contact .oo-display { margin-bottom: 48px; }
.oo-latest { border-top: 1px solid #222326; padding-top: 64px; }
.oo-tiles .wp-block-post-date { margin: 12px 0 0; }
.oo-tiles .oo-label + .oo-tile-title { margin-top: 2px !important; font-size: 20px !important; font-weight: 300; }
.wp-block-query-pagination { margin-top: 32px; font-size: 14px; }
