/*
Theme Name: Digital Resume
Author: Logan Moore
Author URI: https://loganm.dev
Description: A lightweight, text-first personal website with editable profile details, work history, portfolio items, related articles, and separate header and footer menus.
Version: 2.9.0
Requires at least: 6.6
Tested up to: 7.1
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: digital-resume
Tags: blog, portfolio, one-column, custom-menu, accessibility-ready, translation-ready
*/

:root {
	color-scheme: light;
	--background: #fff;
	--surface: #f5f6f7;
	--ink: #212529;
	--muted: #60666b;
	--link: #205fc7;
	--rule: #72777c;
	--line: #e3e6e8;
	--button-text: #fff;
	--button-hover: #174b9f;
}
:root[data-color-mode="dark"] {
	color-scheme: dark;
	--background: #15191d;
	--surface: #20262c;
	--ink: #f0f2f4;
	--muted: #b2bbc3;
	--link: #8cb9ff;
	--rule: #89939e;
	--line: #3c444d;
	--button-text: #15191d;
	--button-hover: #b3d0ff;
}
@media (prefers-color-scheme: dark) {
	:root[data-color-mode="auto"] {
		color-scheme: dark;
		--background: #15191d;
		--surface: #20262c;
		--ink: #f0f2f4;
		--muted: #b2bbc3;
		--link: #8cb9ff;
		--rule: #89939e;
		--line: #3c444d;
		--button-text: #15191d;
		--button-hover: #b3d0ff;
	}
}
* { box-sizing: border-box; }
/* Keep centered content aligned when navigating between short and long pages. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
	html { overflow-y: scroll; }
}
body {
	margin: 0;
	background: var(--background);
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: .04rem;
	overflow-wrap: anywhere;
}
a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 4px;
}
button, input, textarea, select { font: inherit; letter-spacing: inherit; }
button, input[type="submit"], .wp-block-button__link {
	padding: .6rem 1rem;
	border: 1px solid var(--link);
	border-radius: 3px;
	background: var(--link);
	color: var(--button-text);
	cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--button-hover); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select {
	max-width: 100%;
	padding: .6rem .75rem;
	border: 1px solid var(--rule);
	border-radius: 2px;
	background: var(--background);
	color: var(--ink);
}
textarea { width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--link); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
figure { max-width: 100%; margin: 1.75rem 0; }
figcaption, .wp-caption-text { color: var(--muted); font-size: .875rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 500; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.site-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 900px;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding: 3rem 2rem 1.5rem;
}
.admin-bar .site-shell { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
.header-profile { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.header-nav { margin-top: 1.75rem; font-size: .875rem; }
.identity { min-width: 0; }
.identity-with-photo { display: flex; align-items: center; gap: 1rem; max-width: 100%; }
.identity-text { min-width: 0; }
.profile-photo { display: block; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center; }
.site-name { margin: 0 0 .5rem; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; font-weight: 500; letter-spacing: 0; }
.site-name a { color: inherit; }
.site-role { margin: 0; }
.contact-info { flex-shrink: 0; margin: 0; padding: 0; list-style: none; text-align: right; }
.contact-info li { margin: .75rem 0; }
.contact-info li:first-child { margin-top: .7rem; }
.contact-info li, .contact-info a { display: flex; align-items: baseline; justify-content: flex-end; gap: .65rem; }
.icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 1em; fill: currentColor; vertical-align: -.1em; }
.site-main { width: 100%; }
.social-nav { margin-top: 2rem; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin: 0; padding: 0; list-style: none; text-align: center; }
.social-links a { display: inline-flex; align-items: baseline; gap: .35rem; min-height: 24px; }
.expertise { margin: 1.5rem 0 0; font-size: .875rem; }
.profile-bio, .home-content { margin-top: 1.5rem; }
.home-section { margin-top: 1.75rem; }
.section-title, .section-heading { margin: 0 0 1.5rem; padding: .5rem 0; border-bottom: 1px dotted var(--rule); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin: 0; }
.section-more { font-size: .8125rem; flex-shrink: 0; }
/* Keep text aligned when an employer or project in a mixed list has no image. */
.work-entry, .portfolio-entry, .portfolio-heading { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 1rem; }
.work-content, .portfolio-content { grid-column: 2; min-width: 0; }
.work-logo-link, .work-logo-wrap, .portfolio-icon-link, .portfolio-icon-wrap { display: block; width: 64px; height: 64px; }
.work-logo, .portfolio-icon { display: block; width: 64px; height: 64px; object-fit: contain; }
/* Lists with no rendered images keep their original full-width text layout. */
.work-history:not(:has(.work-logo)) .work-entry,
.entry-list:not(:has(.portfolio-icon)) .portfolio-entry { display: block; }
.portfolio-heading h1 { margin: 0; min-width: 0; }
.work-role { margin: 0; }
.work-excerpt { margin: .5rem 0 0; }
.work-case-studies { margin: .6rem 0 0; font-size: .875rem; }
.work-case-studies a, .portfolio-all-link { display: inline-block; min-height: 24px; }
.entry-preview { margin-bottom: 2rem; }
.entry-preview:last-child { margin-bottom: 0; }
.entry-title { font-size: 1.15rem; margin: 0 0 .4rem; font-weight: 400; }
.entry-title .icon { font-size: .8em; }
.entry-date { color: var(--muted); margin: 0 0 .35rem; font-size: .8125rem; }
.entry-summary { font-size: .9375rem; }
.entry-summary p { margin: 0 0 .6rem; }
.publication-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: .6rem 0 0; list-style: none; font-size: .875rem; }
.publication-links a { display: inline-block; min-height: 24px; }
.publication-links .icon { width: .8em; height: .8em; }
.site-footer { margin-top: auto; padding-top: 4rem; text-align: left; font-size: .875rem; }
.header-menu, .footer-menu { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.5rem; row-gap: .5rem; margin: 0; padding: 0; list-style: none; text-align: center; }
.header-menu a, .footer-menu a { display: inline-block; min-height: 24px; }
.header-menu .current-menu-item > a, .footer-menu .current-menu-item > a { text-decoration: underline; }
.footer-note { margin: .75rem 0 0; color: var(--muted); font-size: .8125rem; }
.interior-main { margin-top: 1.75rem; }
.page-heading { padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px dotted var(--rule); }
.page-heading h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2rem); }
.page-heading p { margin: .75rem 0 0; }
.page-heading .entry-date { margin: 0 0 .75rem; }
.portfolio-archive-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.portfolio-archive-heading h1 { min-width: 0; overflow-wrap: anywhere; }
.portfolio-all-link { margin-left: auto; text-align: right; }
.archive-description { margin-top: 1rem; }
.prose { line-height: 1.75; letter-spacing: .015rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-top: 0; margin-bottom: 1.5rem; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin-top: 2rem; margin-bottom: 1rem; }
.prose a, .comment-content a { text-decoration: underline; }
.prose li { margin-bottom: .3rem; }
blockquote { margin-left: 0; margin-right: 0; padding-left: 1.25rem; border-left: 2px solid var(--rule); }
pre { padding: 1rem; background: var(--surface); overflow-x: auto; max-width: 100%; letter-spacing: 0; }
code { font-size: .9em; letter-spacing: 0; }
table { border-collapse: collapse; width: 100%; }
td, th { border-bottom: 1px solid var(--line); padding: .65rem; text-align: left; }
.wp-block-table { overflow-x: auto; }
.wp-block-image img { height: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-taxonomy { color: var(--muted); font-size: .875rem; margin-top: 2rem; }
.single-post .entry-taxonomy { text-align: left; }
.tag-list { display: block; margin-top: .5rem; }
.entry-breadcrumb { margin-bottom: 1.25rem; font-size: .875rem; }
.entry-breadcrumb a { display: inline-block; min-height: 24px; }
.related-articles { margin-top: 3rem; }
.related-articles-list { list-style: none; margin: 0; padding: 0; }
.related-articles-list li { margin-bottom: 1.5rem; }
.related-articles-list li:last-child { margin-bottom: 0; }
.pagination, .post-navigation, .page-links { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.pagination .nav-links { justify-content: flex-start; }
.page-numbers, .post-page-numbers { display: inline-block; padding: .3rem .5rem; }
.page-numbers.current { color: var(--ink); font-weight: 600; }
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.25rem; }
.comment-body { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.comment-metadata, .reply { font-size: .8125rem; }
.comment-content { margin-top: .75rem; }
.comment-form label { display: block; margin-bottom: .3rem; }
.comment-form-cookies-consent { display: flex; align-items: baseline; gap: .5rem; }
.comment-form-cookies-consent label { display: inline; }
.comment-form input:not([type="checkbox"]):not([type="submit"]) { width: 100%; }
.comment-reply-title small { margin-left: 1rem; font-size: .875rem; }
.search-form { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.search-form label { flex: 1 1 15rem; }
.search-field { width: 100%; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: .75rem;
	left: .75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: .75rem 1rem;
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--background);
	color: var(--link);
}
@media (min-width: 768px) {
	.header-menu, .social-links { justify-content: flex-start; text-align: left; }
}
@media (max-width: 767px) {
	.expertise { text-align: center; }
	.header-profile { flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
	.identity-with-photo { flex-direction: column; }
	.contact-info { flex-shrink: 1; max-width: 100%; text-align: center; }
	.contact-info li, .contact-info a { justify-content: center; }
	.site-name { font-size: clamp(1.75rem, 5vw, 2.25rem); }
	.section-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
	.portfolio-archive-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
	.portfolio-all-link { margin-left: 0; text-align: left; }
	.admin-bar .site-shell { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); }
}
@media (max-width: 359px) {
	.site-shell { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
	html { overflow-y: visible; scrollbar-gutter: auto; }
	:root, :root[data-color-mode] {
		color-scheme: light;
		--background: #fff;
		--surface: #f5f6f7;
		--ink: #212529;
		--muted: #60666b;
		--link: #205fc7;
		--rule: #72777c;
		--line: #e3e6e8;
		--button-text: #fff;
		--button-hover: #174b9f;
	}
	.site-shell { max-width: none; min-height: 0; padding: 0; }
	.header-nav, .site-footer, .entry-breadcrumb, .related-articles, .comments-area, .search-form, .post-navigation, .skip-link, #wpadminbar { display: none; }
	a { color: inherit; }
}
